/* ==========================================================================
   НуПривет — анонимный чат для общения и знакомств
   Дизайн-система и стили. Тема: «сумеречный разговор» —
   тёплый коралл + вечерний фиолет на глубоком плам-фоне.
   Шрифты: Unbounded (дисплей) + Onest (текст/интерфейс).
   ========================================================================== */

/* ---------- Токены ---------- */
:root {
  --bg:        #120E1D;
  --bg-2:      #1A1330;
  --surface:   #211937;
  --surface-2: #2A2148;
  --line:      rgba(168,139,255,.14);
  --line-2:    rgba(168,139,255,.28);

  --coral:  #FF836B;
  --pink:   #FF6F9C;
  --violet: #A88BFF;
  --aqua:   #6FE3D2;

  --text:   #F4EFFF;
  --muted:  #B7ACD4;
  --muted-2:#8A80A8;

  --spark: linear-gradient(115deg, #FF836B 0%, #FF6F9C 42%, #A88BFF 100%);
  --spark-soft: linear-gradient(115deg, rgba(255,131,107,.16), rgba(168,139,255,.16));

  --radius: 20px;
  --radius-lg: 30px;
  --shadow: 0 24px 60px -28px rgba(0,0,0,.75);
  --ring: 0 0 0 3px rgba(168,139,255,.45);

  --maxw: 1160px;
  --ease: cubic-bezier(.22,.61,.36,1);

  --font-d: "Unbounded", system-ui, sans-serif;
  --font-b: "Onest", system-ui, sans-serif;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-b);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 12px; }

/* Ambient background glow */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 50% at 12% 8%, rgba(255,131,107,.14), transparent 60%),
    radial-gradient(55% 55% at 88% 4%, rgba(168,139,255,.18), transparent 60%),
    radial-gradient(70% 60% at 50% 110%, rgba(111,227,210,.10), transparent 60%),
    var(--bg);
}

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

/* ---------- Typography ---------- */
h1,h2,h3,h4 { font-family: var(--font-d); font-weight: 700; line-height: 1.06; margin: 0; letter-spacing: -.01em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-b); font-weight: 600; font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--violet);
}
.eyebrow::before { content:""; width: 22px; height: 2px; background: var(--spark); border-radius: 2px; }
.grad { background: var(--spark); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 1.12rem; max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  --pad: 15px 26px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad); border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; letter-spacing: .01em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s;
  white-space: nowrap;
}
.btn-primary { color: #1a0f14; background: var(--spark); box-shadow: 0 14px 34px -14px rgba(255,111,156,.7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -14px rgba(255,111,156,.85); }
.btn-ghost { color: var(--text); background: rgba(255,255,255,.04); border-color: var(--line-2); }
.btn-ghost:hover { transform: translateY(-2px); background: rgba(255,255,255,.08); border-color: var(--violet); }
.btn-block { width: 100%; }
.btn-lg { --pad: 17px 34px; font-size: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(18,14,29,.85), rgba(18,14,29,.55));
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-d); font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.brand-dot {
  width: 34px; height: 34px; border-radius: 12px; background: var(--spark);
  display: grid; place-items: center; color: #1a0f14; font-size: 18px;
  box-shadow: 0 8px 20px -8px rgba(255,111,156,.8);
  animation: floaty 5s var(--ease) infinite;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); border-radius: 12px; width: 44px; height: 44px; color: var(--text); }

/* ---------- Age badge ---------- */
.age-chip {
  display: inline-grid; place-items: center; width: 40px; height: 24px; border-radius: 7px;
  font-family: var(--font-d); font-weight: 700; font-size: 12px; color: var(--text);
  border: 1px solid var(--line-2); background: rgba(255,255,255,.03);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; padding: 70px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }

.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: block; transform: translateY(110%); }
.hero.ready h1 .line > span { animation: riseIn .9s var(--ease) forwards; }
.hero.ready h1 .line:nth-child(2) > span { animation-delay: .12s; }
.hero.ready h1 .line:nth-child(3) > span { animation-delay: .24s; }

.hero-sub { margin-top: 22px; opacity: 0; transform: translateY(14px); }
.hero.ready .hero-sub { animation: riseIn .8s var(--ease) .5s forwards; }
.hero-actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; opacity: 0; }
.hero.ready .hero-actions { animation: riseIn .8s var(--ease) .62s forwards; }
.hero-meta { margin-top: 26px; display: flex; gap: 26px; flex-wrap: wrap; color: var(--muted-2); font-size: 14px; opacity: 0; }
.hero.ready .hero-meta { animation: fadeIn 1s var(--ease) .8s forwards; }
.hero-meta b { color: var(--text); font-family: var(--font-d); font-size: 20px; display: block; }

/* Chat mockup (signature element) */
.phone {
  position: relative; justify-self: center; width: 100%; max-width: 380px;
  border-radius: 34px; padding: 16px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.05);
  opacity: 0; transform: translateY(30px) scale(.97);
}
.hero.ready .phone { animation: riseIn 1s var(--ease) .35s forwards; }
.phone::after { /* glow */
  content:""; position: absolute; inset: -30% -20% auto; height: 60%; z-index: -1;
  background: var(--spark); filter: blur(70px); opacity: .35; border-radius: 50%;
}
.phone-top { display: flex; align-items: center; gap: 11px; padding: 6px 8px 14px; border-bottom: 1px solid var(--line); }
.mask {
  width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; font-size: 20px;
  background: var(--spark-soft); border: 1px solid var(--line-2);
}
.phone-top .who { font-weight: 700; font-size: 15px; }
.phone-top .status { font-size: 12px; color: var(--aqua); display: flex; align-items: center; gap: 6px; }
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 0 rgba(111,227,210,.6); animation: pulse 2s infinite; }

.chat-stream { padding: 16px 6px 6px; display: flex; flex-direction: column; gap: 10px; min-height: 300px; }
.bubble {
  max-width: 82%; padding: 11px 15px; border-radius: 18px; font-size: 14.5px; line-height: 1.45;
  opacity: 0; transform: translateY(8px) scale(.98); animation: pop .4s var(--ease) forwards;
}
.bubble.them { align-self: flex-start; background: rgba(255,255,255,.05); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.bubble.me { align-self: flex-end; background: var(--spark); color: #1a0f14; font-weight: 600; border-bottom-right-radius: 6px; }
.typing { align-self: flex-start; display: inline-flex; gap: 5px; padding: 13px 16px; background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 18px; border-bottom-left-radius: 6px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing span:nth-child(2){ animation-delay: .2s; } .typing span:nth-child(3){ animation-delay: .4s; }
.phone-input { margin-top: 12px; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 16px; background: rgba(0,0,0,.25); border: 1px solid var(--line); color: var(--muted-2); font-size: 14px; }
.phone-input .send { margin-left: auto; width: 34px; height: 34px; border-radius: 11px; background: var(--spark); display: grid; place-items: center; color: #1a0f14; }

/* Floating orbs */
.orb { position: absolute; border-radius: 50%; filter: blur(2px); z-index: -1; opacity: .5; animation: floaty 9s var(--ease) infinite; }
.orb.o1 { width: 14px; height: 14px; background: var(--coral); top: 12%; left: -2%; }
.orb.o2 { width: 10px; height: 10px; background: var(--aqua); top: 68%; left: 46%; animation-delay: 1.5s; }
.orb.o3 { width: 18px; height: 18px; background: var(--violet); top: 4%; right: 30%; animation-delay: 2.4s; }

/* Greeting marquee */
.marquee { margin-top: 30px; overflow: hidden; border-block: 1px solid var(--line); mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 40px; width: max-content; padding: 16px 0; animation: scrollx 32s linear infinite; }
.marquee-track span { font-family: var(--font-d); font-size: 18px; color: var(--muted-2); display: inline-flex; align-items: center; gap: 40px; }
.marquee-track span::after { content:"•"; color: var(--violet); }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section { padding: 84px 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 46px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin-top: 14px; }
.section-head p { margin-top: 16px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { position: relative; padding: 30px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.step-n { font-family: var(--font-d); font-size: 15px; color: var(--violet); font-weight: 700; }
.step h3 { font-size: 1.32rem; margin: 14px 0 10px; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }
.step::before { content:""; position: absolute; inset: auto auto -40% -20%; width: 60%; height: 80%; background: var(--spark-soft); filter: blur(30px); opacity: 0; transition: opacity .4s; }
.step:hover::before { opacity: 1; }

/* Feature cards */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature { padding: 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform .3s var(--ease), border-color .3s; }
.feature:hover { transform: translateY(-4px); border-color: var(--line-2); }
.feature .ico { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; font-size: 24px; background: var(--spark-soft); border: 1px solid var(--line-2); margin-bottom: 18px; }
.feature h3 { font-size: 1.28rem; margin-bottom: 10px; }
.feature p { color: var(--muted); margin: 0; font-size: 15.5px; }

/* Safety split */
.safety { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; padding: 44px; border-radius: var(--radius-lg); background: linear-gradient(150deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); }
.safety ul { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.safety li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.safety li .ck { flex: none; width: 24px; height: 24px; border-radius: 8px; background: var(--spark); color: #1a0f14; display: grid; place-items: center; font-size: 13px; font-weight: 800; margin-top: 2px; }
.safety li b { color: var(--text); }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; }
.qa { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; }
.qa summary { list-style: none; cursor: pointer; padding: 20px 24px; font-family: var(--font-d); font-weight: 600; font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content:"+"; font-size: 24px; color: var(--violet); transition: transform .3s; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa .a { padding: 0 24px 22px; color: var(--muted); }

/* CTA banner */
.cta-band { text-align: center; padding: 66px 30px; border-radius: var(--radius-lg); background: var(--spark); color: #1a0f14; position: relative; overflow: hidden; }
.cta-band h2 { font-size: clamp(2rem, 4vw, 3rem); }
.cta-band p { max-width: 52ch; margin: 16px auto 28px; color: #2a141c; opacity: .85; font-weight: 500; }
.cta-band .btn-ghost { background: rgba(26,15,20,.12); border-color: rgba(26,15,20,.3); color: #1a0f14; }
.cta-band .btn-dark { background: #1a0f14; color: var(--text); }
.cta-band .btn-dark:hover { transform: translateY(-2px); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: 20px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { font-family: var(--font-b); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 16px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { color: var(--muted); font-size: 15px; transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.req { color: var(--muted-2); font-size: 13.5px; line-height: 1.75; margin-top: 14px; }
.req b { color: var(--muted); }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--muted-2); font-size: 13.5px; }

/* ==========================================================================
   OVERLAYS: age gate, cookie, auth modal
   ========================================================================== */
.overlay { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 22px;
  background: rgba(8,6,14,.72); backdrop-filter: blur(8px); }
.overlay.show { display: grid; animation: fadeIn .3s ease; }

.gate { max-width: 460px; text-align: center; background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-2); border-radius: var(--radius-lg); padding: 40px 34px; box-shadow: var(--shadow); }
.gate .age-big { font-family: var(--font-d); font-size: 40px; }
.gate h2 { font-size: 1.7rem; margin: 12px 0 12px; }
.gate p { color: var(--muted); font-size: 15px; }
.gate .row { display: flex; gap: 12px; margin-top: 24px; }
.gate .row .btn { flex: 1; }
.gate .fine { font-size: 12.5px; color: var(--muted-2); margin-top: 18px; }

/* Cookie */
.cookie { position: fixed; left: 22px; right: 22px; bottom: 22px; z-index: 90; max-width: 560px; margin-inline: auto;
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 18px; padding: 18px 20px;
  box-shadow: var(--shadow); display: none; gap: 16px; align-items: center; }
.cookie.show { display: flex; animation: riseIn .5s var(--ease); }
.cookie p { margin: 0; font-size: 13.5px; color: var(--muted); }
.cookie a { color: var(--violet); text-decoration: underline; }
.cookie .btn { --pad: 11px 20px; font-size: 14px; }

/* Auth modal */
.modal { width: 100%; max-width: 460px; background: linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-2); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden;
  transform: translateY(16px) scale(.98); transition: transform .3s var(--ease); }
.overlay.show .modal { transform: none; }
.modal-head { padding: 26px 28px 0; }
.modal-tabs { display: flex; gap: 6px; background: rgba(0,0,0,.28); padding: 5px; border-radius: 14px; margin-bottom: 22px; }
.modal-tabs button { flex: 1; padding: 11px; border: none; background: transparent; color: var(--muted); font-weight: 600; border-radius: 10px; transition: .25s; }
.modal-tabs button.active { background: var(--spark); color: #1a0f14; }
.modal-body { padding: 4px 28px 28px; }
.pane { display: none; } .pane.active { display: block; animation: fadeIn .3s ease; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 7px; font-weight: 600; }
.field input { width: 100%; padding: 13px 15px; border-radius: 13px; background: rgba(0,0,0,.28);
  border: 1px solid var(--line); color: var(--text); font-size: 15px; font-family: inherit; transition: border-color .2s, box-shadow .2s; }
.field input::placeholder { color: var(--muted-2); }
.field input:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(168,139,255,.18); outline: none; }
.field input[aria-invalid="true"] { border-color: var(--coral); }
.field .err { display: none; color: var(--coral); font-size: 12.5px; margin-top: 6px; }
.field.invalid .err { display: block; }
.check { display: flex; gap: 11px; align-items: flex-start; margin: 6px 0 16px; font-size: 13px; color: var(--muted); }
.check input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--violet); }
.check a { color: var(--violet); text-decoration: underline; }
.modal-msg { display: none; padding: 12px 15px; border-radius: 12px; font-size: 14px; margin-bottom: 14px; }
.modal-msg.ok { display: block; background: rgba(111,227,210,.12); border: 1px solid rgba(111,227,210,.35); color: var(--aqua); }
.modal-msg.bad { display: block; background: rgba(255,131,107,.1); border: 1px solid rgba(255,131,107,.35); color: var(--coral); }
.modal-close { position: absolute; top: 16px; right: 18px; width: 38px; height: 38px; border-radius: 12px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--text); font-size: 18px; z-index: 2; }

/* ==========================================================================
   LEGAL / DOCUMENT PAGES
   ========================================================================== */
.doc-hero { padding: 56px 0 20px; }
.doc-hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-top: 12px; }
.doc-hero .meta { color: var(--muted-2); font-size: 14px; margin-top: 14px; }
.doc-wrap { display: grid; grid-template-columns: 250px 1fr; gap: 46px; padding: 30px 0 90px; align-items: start; }
.doc-toc { position: sticky; top: 90px; border: 1px solid var(--line); border-radius: 18px; padding: 20px; background: var(--surface); }
.doc-toc h4 { font-family: var(--font-b); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 12px; }
.doc-toc a { display: block; color: var(--muted); font-size: 14px; padding: 6px 0; transition: color .2s; }
.doc-toc a:hover { color: var(--text); }
.doc-body { max-width: 760px; }
.doc-body section { margin-bottom: 34px; scroll-margin-top: 90px; }
.doc-body h2 { font-size: 1.5rem; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.doc-body h3 { font-size: 1.15rem; margin: 20px 0 10px; font-family: var(--font-b); font-weight: 700; }
.doc-body p, .doc-body li { color: var(--muted); }
.doc-body p { margin: 0 0 12px; }
.doc-body ul, .doc-body ol { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 8px; }
.doc-body strong { color: var(--text); }
.callout { border: 1px solid var(--line-2); background: var(--spark-soft); border-radius: 16px; padding: 18px 20px; margin: 0 0 18px; }
.callout p { color: var(--text); margin: 0; font-size: 15px; }
.table-req { width: 100%; border-collapse: collapse; margin: 6px 0 14px; font-size: 15px; }
.table-req td { padding: 10px 12px; border: 1px solid var(--line); vertical-align: top; }
.table-req td:first-child { color: var(--muted-2); width: 44%; }
.table-req td:last-child { color: var(--text); }

/* ==========================================================================
   CHAT DEMO PAGE
   ========================================================================== */
.chat-app { display: grid; grid-template-columns: 300px 1fr; gap: 0; height: calc(100vh - 72px);
  border-top: 1px solid var(--line); }
.chat-side { border-right: 1px solid var(--line); background: var(--bg-2); padding: 22px; overflow-y: auto; }
.chat-side h3 { font-size: 1.1rem; margin-bottom: 4px; }
.chat-side .hint { color: var(--muted-2); font-size: 13px; margin-bottom: 18px; }
.room { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; border: 1px solid var(--line); margin-bottom: 10px; background: var(--surface); cursor: pointer; transition: border-color .2s, transform .2s; }
.room:hover { border-color: var(--line-2); transform: translateX(2px); }
.room.active { border-color: var(--violet); background: var(--surface-2); }
.room .mask { width: 40px; height: 40px; border-radius: 12px; }
.room .rname { font-weight: 700; font-size: 14px; }
.room .rlast { color: var(--muted-2); font-size: 12px; }
.chat-main { display: flex; flex-direction: column; height: 100%; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.chat-log { flex: 1; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.chat-log .bubble { animation: pop .3s var(--ease) forwards; max-width: 62%; }
.chat-note { text-align: center; color: var(--muted-2); font-size: 12px; margin: 6px 0; }
.chat-compose { display: flex; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--line); }
.chat-compose input { flex: 1; padding: 14px 16px; border-radius: 14px; background: rgba(0,0,0,.28); border: 1px solid var(--line); color: var(--text); font-family: inherit; font-size: 15px; }
.chat-compose input:focus { border-color: var(--violet); outline: none; }

/* ==========================================================================
   KEYFRAMES
   ========================================================================== */
@keyframes riseIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { to { opacity: 1; transform: none; } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(111,227,210,.6); } 70% { box-shadow: 0 0 0 8px rgba(111,227,210,0); } 100% { box-shadow: 0 0 0 0 rgba(111,227,210,0); } }
@keyframes blink { 0%,100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-2px); } }
@keyframes scrollx { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .phone { order: -1; max-width: 340px; }
  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .safety { grid-template-columns: 1fr; padding: 30px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .doc-wrap { grid-template-columns: 1fr; }
  .doc-toc { position: static; }
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .nav.open .nav-links { display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 10px 22px 20px; }
  .nav.open .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .chat-app { grid-template-columns: 1fr; height: auto; }
  .chat-side { display: none; }
  .chat-main { height: calc(100vh - 72px); }
  .chat-log .bubble { max-width: 82%; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .cta-band { padding: 44px 20px; }
  .hero-actions .btn { flex: 1; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero h1 .line > span, .hero-sub, .hero-actions, .hero-meta, .phone, .reveal { opacity: 1 !important; transform: none !important; }
}
