/* =========================================================================
   VAIA marketing site — "2026" rich visual language
   Dark theme only. Tokens mirror the app; utilities keep effects consistent.
   No framework, no build step. Icons = inline SVG (Tabler-style outline).
   ========================================================================= */

/* ---- Self-hosted Inter (variable weight axis; reused from the app) ------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- Design tokens ------------------------------------------------------- */
:root {
  --bg-0: #0A0B0D;          /* darker 2026 base */
  --bg-1: #16181C;
  --bg-2: #1B1D21;
  --border: #23262B;
  --border-2: #2C2F35;
  --text: #E6E8EB;
  --text-2: #9AA0A8;
  --text-3: #6B7178;
  --accent: #4A9EFF;
  --accent-2: #7FB6FF;
  --accent-dim: #2A3542;
  --success: #4ECB94;
  --danger: #E5484D;

  --hair: rgba(255,255,255,0.08);
  --hair-2: rgba(255,255,255,0.12);

  --radius: 8px;
  --radius-lg: 14px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Helvetica, Arial, sans-serif;

  --maxw: 1120px;
  --nav-h: 66px;
}

/* ---- Reset / base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 14px); }
body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3 { margin: 0 0 0.5em; line-height: 1.12; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); font-weight: 800; letter-spacing: -1px; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 700; letter-spacing: -0.6px; }
h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.2px; }
p { margin: 0 0 1rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---- Gradient headline text --------------------------------------------- */
.gradient-text {
  background: linear-gradient(180deg, #FFFFFF, #B9C2CE);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---- Layout helpers ------------------------------------------------------ */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.section { position: relative; padding-block: clamp(52px, 8.5vw, 96px); }
.section--band { background: linear-gradient(180deg, rgba(74,158,255,0.035), transparent 60%), var(--bg-0); border-block: 1px solid var(--hair); }
.eyebrow { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); margin: 0 0 1rem; }
.eyebrow--accent { color: var(--accent-2); }
.center { text-align: center; }
.muted { color: var(--text-2); }
.lede { font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--text-2); max-width: 50ch; }

/* ---- Reusable visual effects (the 2026 kit) ------------------------------ */

/* Radial accent glow — hero, pricing, final CTA ONLY (restraint rule). */
.glow-hero {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 30%, rgba(74,158,255,0.15), transparent 68%);
}
.glow-bottom {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 110%, rgba(74,158,255,0.16), transparent 66%);
}

/* Faint 40px grid, radially masked so it fades out (top/hero only). */
.grid-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 70%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 70%);
}

/* Card — gradient fill + hairline border. */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.012));
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
}

/* Gradient-border wrapper (1px padding trick) — demo card, pricing, wide card. */
.gradient-border {
  position: relative; border-radius: var(--radius-lg); padding: 1px;
  background: linear-gradient(160deg, rgba(74,158,255,0.55), rgba(74,158,255,0.06) 45%, transparent 75%);
}
.gradient-border > * { border-radius: calc(var(--radius-lg) - 1px); }

/* Icon chip. */
.icon-chip {
  width: 38px; height: 38px; border-radius: 10px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: rgba(74,158,255,0.12); border: 1px solid rgba(74,158,255,0.2);
  color: var(--accent-2);
}
.icon-chip svg { width: 20px; height: 20px; }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 0.96rem;
  padding: 12px 22px; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform 100ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--lg { padding: 14px 26px; font-size: 1rem; }
.btn--sm { padding: 9px 16px; font-size: 0.9rem; }

/* Primary = gradient. RESERVED FOR DOWNLOAD ONLY. */
.btn-primary {
  background: linear-gradient(180deg, #5AA6FF, #3D8BF0);
  color: #03122b; border-color: #3D8BF0;
  box-shadow: 0 6px 20px rgba(74,158,255,0.38), inset 0 1px 0 rgba(255,255,255,0.35);
}
.btn-primary:hover { box-shadow: 0 8px 26px rgba(74,158,255,0.5), inset 0 1px 0 rgba(255,255,255,0.45); color: #03122b; }

/* Ghost / secondary. */
.btn-ghost {
  background: rgba(255,255,255,0.03); color: var(--text);
  border: 1px solid var(--hair-2);
}
.btn-ghost:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.22); color: var(--text); }

/* ---- Glass pill ---------------------------------------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.83rem; font-weight: 500; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--hair-2); background: rgba(255,255,255,0.03);
  color: var(--text-2); backdrop-filter: blur(6px);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill .dot--glow { background: var(--success); box-shadow: 0 0 8px 1px rgba(78,203,148,0.8); }
.pill--success { color: var(--success); border-color: color-mix(in srgb, var(--success) 38%, transparent); background: color-mix(in srgb, var(--success) 10%, transparent); }

/* ---- Logo ---------------------------------------------------------------- */
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-weight: 700; letter-spacing: 0.04em; }
.logo:hover { text-decoration: none; }
.logo-mark { color: #fff; flex: 0 0 auto; }

/* ---- Sticky nav (glass) -------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: color-mix(in srgb, var(--bg-0) 72%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--hair);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__link { color: var(--text-2); font-weight: 500; font-size: 0.92rem; padding: 8px 12px; border-radius: var(--radius); }
.nav__link:hover { color: var(--text); background: rgba(255,255,255,0.05); text-decoration: none; }
.nav__toggle { display: none; background: rgba(255,255,255,0.03); border: 1px solid var(--hair-2); border-radius: var(--radius); padding: 8px; cursor: pointer; color: var(--text); }
.nav__toggle:hover { background: rgba(255,255,255,0.08); }
.nav__toggle svg { width: 22px; height: 22px; }

/* ---- Hero ---------------------------------------------------------------- */
.hero { text-align: center; padding-block: clamp(56px, 10vw, 112px); }
.hero > .container { position: relative; z-index: 1; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 30px 0 20px; }
.hero .lede { margin-inline: auto; }
.trust { color: var(--text-3); font-size: 0.9rem; margin: 0; }
.trust .ok { color: var(--success); font-weight: 700; }
.trust b { color: var(--text-2); font-weight: 600; }

/* ---- Use-case pills ------------------------------------------------------ */
.usecases { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
.usecases .more { color: var(--text-3); font-size: 0.9rem; padding: 7px 4px; }

/* ---- Demo card ----------------------------------------------------------- */
.demo { max-width: 600px; margin-inline: auto; position: relative; z-index: 1; }
.demo-card { background: var(--bg-1); overflow: hidden; box-shadow: 0 30px 80px -34px rgba(0,0,0,0.9); }
.demo-card__bar { display: flex; align-items: center; gap: 10px; padding: 12px 15px; border-bottom: 1px solid var(--hair); background: rgba(255,255,255,0.02); }
.demo-card__bar .logo { font-size: 0.9rem; }
.demo-card__state { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--success); font-weight: 600; }
.demo-card__state .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px 1px rgba(78,203,148,0.7); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(1.5); } }
@media (prefers-reduced-motion: reduce) { .demo-card__state .dot { animation: none; } }
.demo-card__body { padding: 20px; }
.qa { margin-bottom: 16px; }
.qa:last-child { margin-bottom: 0; }
.qa__label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 5px; }
.qa__q { color: var(--text-2); font-style: italic; margin: 0; }
.qa__a { color: var(--text); margin: 0; }
.qa__a b { color: var(--accent-2); font-weight: 600; }
.demo-note { text-align: center; color: var(--text-3); font-size: 0.85rem; margin-top: 16px; }

/* Replaceable demo media placeholder — explicit size, no layout shift. */
.demo-media {
  width: 100%; aspect-ratio: 16 / 10; margin-top: 20px;
  border: 1px dashed var(--hair-2); border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.015); display: grid; place-items: center;
  color: var(--text-3); font-size: 0.85rem; text-align: center; padding: 16px;
}

/* ---- Problems VAIA solves (calm .card grid, no glow) --------------------- */
.problems { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.problem-card { padding: 24px; }
.problem-card h3 { margin-bottom: 8px; }
.problem-card__body { color: var(--text-2); margin: 0 0 12px; font-size: 0.95rem; }
.problem-card__fix { color: var(--accent-2); margin: 0; font-size: 0.95rem; font-weight: 500; }
.problem-card__fix::before { content: "→ "; color: var(--accent); }
.problem-card--wide { grid-column: 1 / -1; }  /* full-width 5th card */

/* ---- Feature grid -------------------------------------------------------- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature { padding: 26px; transition: border-color 160ms ease, transform 160ms ease; }
.feature:hover { border-color: var(--hair-2); transform: translateY(-3px); }
.feature .icon-chip { margin-bottom: 16px; }
.feature h3 { margin-bottom: 7px; }
.feature p { color: var(--text-2); margin: 0; font-size: 0.95rem; }

/* Wide full-width feature card (gradient-border, horizontal). */
.feature-wide { margin-top: 16px; }
.feature-wide__inner { display: flex; align-items: center; gap: 22px; padding: 26px 28px; background: var(--bg-1); }
.feature-wide .icon-chip { width: 46px; height: 46px; }
.feature-wide .icon-chip svg { width: 24px; height: 24px; }
.feature-wide__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.feature-wide h3 { margin: 0; font-size: 1.2rem; }
.feature-wide p { color: var(--text-2); margin: 0; }
.badge {
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-2); padding: 4px 9px; border-radius: 999px;
  background: rgba(74,158,255,0.12); border: 1px solid rgba(74,158,255,0.25);
}

/* ---- Testimonials -------------------------------------------------------- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.testimonial { padding: 24px; display: flex; flex-direction: column; gap: 14px; min-height: 168px; }
.testimonial__quote { color: var(--text-2); font-style: italic; margin: 0; }
.testimonial__who { display: flex; align-items: center; gap: 11px; margin-top: auto; }
.testimonial__avatar { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.05); border: 1px solid var(--hair-2); flex: 0 0 auto; }
.testimonial__name { font-size: 0.85rem; color: var(--text-3); }
.slot-tag { align-self: flex-start; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); border: 1px solid var(--hair-2); border-radius: 999px; padding: 3px 9px; }

/* ---- Pricing ------------------------------------------------------------- */
.price-hero { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin: 6px 0 30px; position: relative; z-index: 1; }
.price-hero__amount { font-size: 46px; font-weight: 800; letter-spacing: -1px; }
.price-hero__per { color: var(--text-2); font-size: 1.05rem; }
.pricing-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pricing-inner { background: var(--bg-1); overflow: hidden; }
.pricing { width: 100%; min-width: 520px; border-collapse: separate; border-spacing: 0; }
.pricing th, .pricing td { padding: 15px 22px; text-align: left; border-bottom: 1px solid var(--hair); }
.pricing thead th { font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-3); font-weight: 700; background: rgba(255,255,255,0.02); }
.pricing tbody tr:last-child td { border-bottom: none; }
.pricing td.row-label { color: var(--text-2); font-weight: 500; }
.pricing .col-vaia { background: rgba(74,158,255,0.08); color: var(--text); font-weight: 600; }
.pricing thead .col-vaia { color: var(--accent-2); }
.pricing thead .col-vaia .logo { color: var(--accent-2); font-size: 0.9rem; }
.pricing thead .col-vaia .logo-mark { color: var(--accent-2); }
.yes { color: var(--success); font-weight: 700; }
.no { color: var(--danger); font-weight: 700; }
.pricing-cta { margin-top: 28px; text-align: center; }

/* ---- FAQ accordion ------------------------------------------------------- */
.faq { max-width: 740px; margin-inline: auto; }
.faq__item { border: 1px solid var(--hair); border-radius: var(--radius); margin-bottom: 10px; background: rgba(255,255,255,0.02); overflow: hidden; }
.faq__q { width: 100%; text-align: left; font: inherit; font-weight: 600; font-size: 1rem; color: var(--text); background: transparent; border: 0; cursor: pointer; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq__q:hover { background: rgba(255,255,255,0.03); }
.faq__icon { flex: 0 0 auto; color: var(--text-3); transition: transform 180ms ease, color 180ms ease; }
.faq__q[aria-expanded="true"] .faq__icon { transform: rotate(45deg); color: var(--accent-2); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 240ms ease; }
.faq__a-inner { padding: 0 20px 18px; color: var(--text-2); }
.faq__a-inner p { margin: 0; }

/* ---- Final CTA ----------------------------------------------------------- */
.finalcta { text-align: center; }
.finalcta > .container { position: relative; z-index: 1; }
.finalcta h2 { margin-bottom: 24px; }
.finalcta .sub { color: var(--text-3); font-size: 0.9rem; margin-top: 16px; }

/* ---- Footer -------------------------------------------------------------- */
.footer { border-top: 1px solid var(--hair); background: var(--bg-0); padding-block: 34px; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.footer__brand { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer__copy { color: var(--text-3); font-size: 0.85rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer__links a { color: var(--text-2); font-size: 0.9rem; }
.footer__links a:hover { color: var(--text); }

/* ---- Numbered steps (download guidance / next steps) --------------------- */
.steps { margin: 0; padding-left: 1.2em; color: var(--text-2); }
.steps li { margin: 0 0 8px; }
.steps li:last-child { margin-bottom: 0; }
.steps b { color: var(--text); font-weight: 600; }

/* ---- Legal pages (terms / privacy / gdpr) --------------------------------
   Narrow readable column, calm typography. Long copy dropped in later needs
   ZERO layout work — just add <h2>/<p>/<ul> inside .legal__body. */
.legal { max-width: 720px; margin-inline: auto; }
.legal__updated { color: var(--text-3); font-size: 0.9rem; margin: -0.2em 0 2em; }
.legal__body { color: var(--text-2); font-size: 1rem; line-height: 1.75; }
.legal__body h2 { font-size: 1.3rem; color: var(--text); margin: 2em 0 0.6em; letter-spacing: -0.3px; }
.legal__body h3 { font-size: 1.05rem; color: var(--text); margin: 1.5em 0 0.4em; }
.legal__body p { margin: 0 0 1.1em; }
.legal__body ul, .legal__body ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.legal__body li { margin: 0 0 0.5em; }
.legal__body a { color: var(--accent); }
.legal__body code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; background: rgba(255,255,255,0.05); border: 1px solid var(--hair); border-radius: 5px; padding: 1px 6px; }
.legal__pending { border: 1px dashed var(--hair-2); border-radius: var(--radius); padding: 16px 18px; color: var(--text-3); font-size: 0.95rem; background: rgba(255,255,255,0.02); }

/* Legal tables (Privacy legal-bases + recipients). Calm, no accents; the wrapper
   scrolls horizontally on narrow screens so nothing overflows at 380px. Neutral
   white-overlay row borders + a heavier header rule + subtle zebra make the three
   columns easy to track across on the dark background. */
.legal__table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1.4em; }
.legal__body table { width: 100%; min-width: 460px; border-collapse: collapse; font-size: 0.94rem; }
.legal__body th, .legal__body td { text-align: left; vertical-align: top; padding: 13px 16px; border-bottom: 1px solid var(--hair-2); }
.legal__body thead th { color: var(--text-3); font-weight: 600; background: rgba(255,255,255,0.04); border-bottom: 2px solid var(--hair-2); }
.legal__body td { color: var(--text-2); }
.legal__body tbody tr:nth-child(even) { background: rgba(255,255,255,0.065); }
.legal__body tbody tr:last-child td { border-bottom: none; }

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 720px) {
  .nav__links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--bg-1); border-bottom: 1px solid var(--hair);
    padding: 12px 22px 18px;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
  }
  .nav__links[data-open="true"] { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__link { padding: 12px; font-size: 1rem; }
  .nav__links .btn { margin-top: 6px; }
  .nav__toggle { display: inline-flex; }

  .features { grid-template-columns: 1fr; }
  .problems { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .feature-wide__inner { flex-direction: column; align-items: flex-start; }
}
