/* ============================================================
   VAYS — vays.app
   Hand-rolled CSS. No framework, no build step.
   Design tokens carried over from the original brand draft.
   ============================================================ */

:root {
  --night:   #070812;
  --night-2: #080812;
  --night-3: #05060d;
  --ink:     #f7f4ff;
  --soft:    #c7c0d8;
  --muted:   #a7a0b8;
  --line:    rgba(255, 255, 255, .10);

  --purple:  #7C4DFF;
  --violet:  #A366F7;
  --magenta: #F22D9D;
  --orange:  #FF8A00;
  --green:   #22C55E;

  --grad-text: linear-gradient(100deg, #FF8A00 0%, #F22D9D 48%, #A366F7 100%);
  --grad-brand: linear-gradient(90deg, #7C4DFF, #F22D9D, #FF8A00, #7C4DFF);

  --maxw: 1200px;
  --radius: 22px;

  --shadow-soft: 0 30px 100px rgba(0, 0, 0, .45);
  --shadow-glow: 0 0 90px rgba(124, 77, 255, .32);
  color-scheme: dark;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--night); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--night);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 104px 0; position: relative; }
.center { text-align: center; }
.grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.soft  { color: var(--soft); }
.eyebrow { max-width: 760px; }

/* ---------- backgrounds ---------- */
.brand-bg { position: relative; overflow: hidden; }
.brand-bg::before {
  content: ""; position: absolute; inset: -20%; z-index: -2;
  background:
    radial-gradient(900px 520px at 16% 12%, rgba(124, 77, 255, .32), transparent 62%),
    radial-gradient(780px 480px at 85% 10%, rgba(242, 45, 157, .20), transparent 60%),
    radial-gradient(620px 400px at 60% 92%, rgba(255, 138, 0, .12), transparent 62%),
    linear-gradient(180deg, #080812 0%, #100a24 45%, #070812 100%);
}
.brand-bg::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .28;
  background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px);
  background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 20%, #000 70%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 20%, #000 70%, transparent);
}
.bg-flat { background: var(--night-2); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 8, 18, .72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.site-header .wrap { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand-link { display: flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: -.02em; }
.brand-link img { width: 36px; height: 36px; border-radius: 11px; }
.brand-link span { font-size: 20px; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 600; color: var(--muted); }
.nav a:hover { color: #fff; }
.header-actions { display: flex; align-items: center; gap: 12px; }

/* language toggle */
.lang-toggle {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
  font-size: 12px; font-weight: 800; letter-spacing: .04em;
}
.lang-toggle a {
  display: inline-block; border: 0; background: transparent; color: var(--muted);
  padding: 6px 12px; cursor: pointer; transition: .18s ease; font: inherit; text-decoration: none;
}
.lang-toggle a:hover { color: #fff; }
.lang-toggle a[aria-current="true"] { background: rgba(124, 77, 255, .22); color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  border-radius: 16px; padding: 13px 20px; font-weight: 800; font-size: 15px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease; cursor: pointer;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { color: #080812; background: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 50px rgba(255, 255, 255, .16); }
.btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05); }
.btn-ghost:hover { background: rgba(255, 255, 255, .09); transform: translateY(-2px); }
.btn-pill { border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 900; background: #fff; color: #070812; }
.btn-pill:hover { transform: translateY(-1px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; padding: 7px 13px;
  font-size: 11.5px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase;
  color: #c8b8ff; background: rgba(124, 77, 255, .12); border: 1px solid rgba(124, 77, 255, .28);
}
.dot { width: 8px; height: 8px; border-radius: 999px; background: var(--green); box-shadow: 0 0 10px var(--green); }
.tag { font-size: 12px; font-weight: 900; letter-spacing: .06em; color: #c8b8ff; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px;
  background: rgba(255, 138, 0, .14); color: #ffd29b; border: 1px solid rgba(255, 138, 0, .3);
}
.chip.free { background: rgba(34, 197, 94, .14); color: #9ff0bd; border-color: rgba(34, 197, 94, .3); }

/* ---------- glass cards ---------- */
.glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .035));
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .10) inset, 0 30px 80px rgba(0, 0, 0, .28);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-radius: var(--radius);
}
.card { padding: 26px; }
.card h3 { font-size: 19px; font-weight: 900; margin-top: 16px; }
.card p { color: var(--muted); margin-top: 8px; }
.card-link { display: inline-block; margin-top: 14px; font-weight: 800; font-size: 14px; color: var(--violet); }
.card-link:hover { color: #fff; }

.iconbox {
  width: 50px; height: 50px; display: grid; place-items: center; border-radius: 16px;
  background: rgba(124, 77, 255, .10); border: 1px solid rgba(124, 77, 255, .22); color: var(--violet);
}
.iconbox svg { width: 25px; height: 25px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- hero ---------- */
.hero { padding-top: 120px; padding-bottom: 110px; }
.hero-grid { display: grid; grid-template-columns: 1fr 520px; gap: 56px; align-items: center; }
.hero-logo { display: flex; align-items: center; gap: 18px; margin-top: 26px; }
.hero-logo > div { min-width: 0; }
.hero-tagline { overflow-wrap: break-word; }
.hero-logo img { width: 88px; height: 88px; border-radius: 26px; box-shadow: var(--shadow-glow); flex: none; }
.hero-wordmark { font-size: clamp(48px, 7vw, 88px); font-weight: 900; line-height: .92; letter-spacing: -.075em; }
.hero-tagline { color: var(--muted); font-weight: 600; margin-top: 4px; }
.hero h1 { font-size: clamp(40px, 5.6vw, 76px); font-weight: 900; line-height: .98; letter-spacing: -.055em; margin-top: 32px; }
.hero .lede { font-size: clamp(17px, 2vw, 21px); color: var(--soft); margin-top: 24px; max-width: 600px; }
.hero-cta { margin-top: 34px; }
.trust { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; font-weight: 700; color: var(--muted); }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { width: 15px; height: 15px; stroke: var(--green); fill: none; stroke-width: 2.4; }

/* phones */
.phones { position: relative; min-height: 620px; }
.phone {
  width: min(330px, 78vw); border-radius: 44px; padding: 9px;
  background: linear-gradient(145deg, #3c3f48, #05060a 42%, #8c8d96 47%, #171820 54%, #010104);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .65), 0 0 75px rgba(124, 77, 255, .35);
}
.phone img { border-radius: 36px; border: 1px solid rgba(255, 255, 255, .12); }
.phone-a { position: absolute; left: 0; top: 10px; transform: rotate(-4deg); }
.phone-b { position: absolute; right: 0; top: 240px; width: min(230px, 60vw); transform: rotate(5deg); opacity: .85; }

/* ---------- generic section heads ---------- */
.head h2 { font-size: clamp(32px, 4.6vw, 60px); font-weight: 900; letter-spacing: -.055em; line-height: 1.04; margin-top: 22px; }
.head p { font-size: clamp(16px, 1.8vw, 19px); color: var(--soft); margin-top: 20px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

/* grids */
.grid { display: grid; gap: 20px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- feature group labels ---------- */
.feature-group + .feature-group { margin-top: 40px; }
.group-label {
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
  font-size: 13px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: var(--violet);
}
.group-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- platforms / pricing ---------- */
.plat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plat .card { display: flex; flex-direction: column; }
.plat h3 { font-size: 22px; }
.plat .price { font-size: 15px; font-weight: 800; margin-top: 6px; }
.plat ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.plat li { display: flex; gap: 10px; align-items: flex-start; color: var(--soft); font-size: 14.5px; }
.plat li svg { width: 16px; height: 16px; flex: none; margin-top: 3px; stroke: var(--violet); fill: none; stroke-width: 2.2; }
.plat .card-foot { margin-top: auto; padding-top: 22px; }

/* ---------- VAYS KIT ---------- */
.kit-layer {
  position: relative; border-radius: 32px; padding: 44px 32px; text-align: center;
  background: linear-gradient(180deg, rgba(124, 77, 255, .30), rgba(12, 10, 26, .96));
  border: 1px solid rgba(178, 138, 255, .42);
  box-shadow: 0 0 90px rgba(124, 77, 255, .35), 0 0 0 1px rgba(255, 255, 255, .06) inset;
}
.kit-layer::before {
  content: ""; position: absolute; inset: -2px; border-radius: 34px; z-index: -1;
  background: var(--grad-brand); opacity: .55; filter: blur(16px);
}
.kit-layer .big { font-size: clamp(40px, 6vw, 70px); font-weight: 900; letter-spacing: -.06em; }
.kit-layer .sub { margin-top: 10px; font-size: 14px; font-weight: 900; letter-spacing: .28em; text-transform: uppercase; color: #c8b8ff; }
.kit-pills { margin-top: 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.kit-pills .glass { padding: 18px; text-align: center; font-weight: 900; }

/* ---------- stack rows ---------- */
.stack-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 24px; }
.stack-row .name { font-size: 18px; font-weight: 900; }
.stack-row .desc { color: var(--muted); margin-top: 3px; font-size: 14.5px; }

/* ---------- comparison table ---------- */
.compare-wrap { margin-top: 44px; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
table.compare { width: 100%; border-collapse: collapse; min-width: 880px; }
table.compare th, table.compare td { padding: 16px 18px; text-align: center; border-bottom: 1px solid var(--line); }
table.compare thead th { font-size: 15px; font-weight: 900; color: var(--ink); }
table.compare thead th small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--muted); margin-top: 2px; }
table.compare tbody th { text-align: left; font-weight: 700; color: var(--soft); font-size: 14.5px; white-space: nowrap; }
table.compare td { font-size: 14px; color: var(--muted); }
table.compare .colhead-vays { color: transparent; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; }
/* highlighted VAYS column */
table.compare th.cell-vays, table.compare td.cell-vays {
  background: rgba(124, 77, 255, .10);
  border-left: 1px solid rgba(124, 77, 255, .28);
  border-right: 1px solid rgba(124, 77, 255, .28);
  color: var(--ink); font-weight: 700;
}
table.compare thead th.cell-vays { border-top: 1px solid rgba(124, 77, 255, .28); border-top-left-radius: 14px; border-top-right-radius: 14px; }
table.compare tbody tr:last-child td.cell-vays { border-bottom: 1px solid rgba(124, 77, 255, .28); border-bottom-left-radius: 14px; border-bottom-right-radius: 14px; }
.ic { display: inline-flex; width: 20px; height: 20px; }
.ic svg { width: 20px; height: 20px; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ic.yes svg { stroke: var(--green); }
.ic.no svg  { stroke: rgba(255,255,255,.30); }
.ic.mid svg { stroke: var(--orange); }
.compare-note { margin-top: 16px; font-size: 12.5px; color: var(--muted); text-align: center; }

/* ---------- powered-by logos ---------- */
.logos { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 22px 44px; }
.logos .lbl { width: 100%; text-align: center; font-size: 12px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.logo { display: inline-flex; flex-direction: column; align-items: center; gap: 9px; }
.logo-img { height: 27px; width: auto; filter: brightness(0) invert(1); opacity: .74; transition: opacity .2s ease; }
.logo:hover .logo-img { opacity: 1; }
.logo .sub { font-size: 11px; font-weight: 700; letter-spacing: .05em; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 44px auto 0; display: grid; gap: 14px; }
.faq-item { padding: 22px 26px; }
.faq-item h3 { font-size: 17px; font-weight: 800; }
.faq-item p { color: var(--muted); margin-top: 8px; font-size: 15px; line-height: 1.65; }

/* ---------- requirements note ---------- */
.req-note {
  margin: 26px auto 0; max-width: 620px; text-align: center;
  font-size: 13.5px; color: var(--muted);
  display: inline-flex; align-items: center; gap: 9px; justify-content: center;
}
.req-note svg { width: 16px; height: 16px; stroke: var(--violet); fill: none; stroke-width: 2; flex: none; }
.req-wrap { text-align: center; }

/* ---------- final CTA ---------- */
.cta { text-align: center; max-width: 880px; margin: 0 auto; }
.cta img { width: 92px; height: 92px; border-radius: 28px; margin: 0 auto; box-shadow: var(--shadow-glow); }
.cta h2 { font-size: clamp(32px, 4.6vw, 60px); font-weight: 900; letter-spacing: -.055em; margin-top: 28px; }
.cta p { color: var(--soft); font-size: 18px; margin-top: 18px; }
.cta .btn-row { justify-content: center; margin-top: 32px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; background: var(--night-3); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; font-size: 14px; color: var(--muted); }
.site-footer .f-brand { display: flex; align-items: center; gap: 12px; }
.site-footer .f-brand img { width: 32px; height: 32px; border-radius: 9px; }
.site-footer .f-brand b { color: #fff; }
.site-footer nav { display: flex; gap: 22px; }
.site-footer nav a:hover { color: #fff; }

/* ---------- legal / text pages ---------- */
.legal { padding: 120px 0 80px; }
.legal .container-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.legal h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 900; letter-spacing: -.04em; }
.legal h2 { font-size: 22px; font-weight: 800; margin: 38px 0 10px; letter-spacing: -.01em; }
.legal h4 { font-size: 13px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--violet); margin: 0 0 10px; }
.legal p, .legal li { color: var(--soft); line-height: 1.7; font-size: 15.5px; }
.legal p { margin: 12px 0; }
.legal ul, .legal ol { padding-left: 22px; display: grid; gap: 8px; margin: 12px 0; }
.legal a { color: var(--violet); }
.legal a:hover { color: #fff; }
.legal .updated { color: var(--muted); font-size: 14px; margin-top: 6px; }
.legal code { background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: 13.5px; }
.legal .toc { margin: 28px 0; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.03); }
.legal .toc ol { margin: 0; }
.legal hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- mobile nav button ---------- */
.menu-btn { display: none; appearance: none; background: transparent; border: 0; color: #fff; cursor: pointer; padding: 6px; }
.menu-btn svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ============================================================
   responsive
   ============================================================ */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-grid > * { min-width: 0; } /* let grid children shrink, no overflow */
  .phones { min-height: 540px; max-width: 420px; margin: 0 auto; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .cols-3 { grid-template-columns: repeat(2, 1fr); }
  .plat { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .hero { padding-top: 104px; }
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .header-actions .btn-pill { display: none; }
  .cols-2, .cols-3 { grid-template-columns: 1fr; }
  .kit-pills { grid-template-columns: repeat(2, 1fr); }
  .phone-b { display: none; }
  .phone-a { position: relative; transform: none; top: 0; margin: 0 auto; }
  .phones { min-height: 0; max-width: 100%; }
  .hero h1 { overflow-wrap: break-word; }
  /* mobile dropdown nav */
  .nav.open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(7, 8, 18, .97); border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
  }
  .nav.open a { padding: 12px 0; border-bottom: 1px solid var(--line); }
}
