/* Magni commercial site (magniads.com) — one page, dark, same look as the panel's login screen.
   Sections: 1 fonts+tokens · 2 base · 3 buttons · 4 nav · 5 atmosphere · 6 hero · 7 tape · 8 sections+cards
   9 how · 10 replace · 11 faq · 12 start · 13 footer · 14 floating CTA · 15 motion · 16 responsive */

/* ============================================================ 1. fonts + tokens */
@font-face { font-family: 'Glancyr'; src: url('/fonts/Glancyr-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('/fonts/Montserrat-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('/fonts/Montserrat-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('/fonts/Montserrat-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --bg: #0B1016;
  --panel: #101820;
  --raised: linear-gradient(180deg, #1D2631, #121820);
  --text: #E8ECF1;
  --text-2: #C3CBD6;
  --muted: #A3ADBA;
  --line: rgba(255,255,255,.09);
  --line-2: rgba(255,255,255,.13);
  --line-3: rgba(255,255,255,.22);
  --blue: #0237D7;
  --blue-hover: #1747EA;
  --blue-bright: #4B74FF;
  --blue-text: #8FA9FF;
  --green: #5BD6A6;
  --ring: 0 0 0 2px var(--bg), 0 0 0 4px var(--blue-bright); /* dark gap + bright blue: visible on the dark bg and on blue buttons (>= 3:1) */
  --r: 12px;
  --r-card: 16px;
  --r-mark: 26px;
  --head: 'Glancyr', 'Montserrat', system-ui, sans-serif;
  --body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', monospace;
  --wrap: 1120px;
  --gutter: 16px;
  --nav-h: 68px;
  --sec-y: 64px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ============================================================ 2. base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
html, body { margin: 0; }
body {
  font-family: var(--body); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
}
img, svg { display: block; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; margin: 0; color: #fff; letter-spacing: -.01em; }
h1 { font-size: 34px; line-height: 1.1; letter-spacing: -.02em; }
h2 { font-size: 30px; line-height: 1.15; }
h3 { font-size: 18px; line-height: 1.3; }
h1 em, h2 em { font-style: normal; color: var(--blue-text); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 800px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: var(--r); background: var(--blue); color: #fff; font-weight: 600; }
.skip:focus { top: 12px; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
.eyebrow { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-text); margin: 0 0 14px; }
.num { font-family: var(--head); font-weight: 600; }

/* ============================================================ 3. buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px;
  border-radius: var(--r); font-weight: 600; font-size: 15px; line-height: 1; white-space: nowrap;
  border: 1px solid transparent; transition: background-color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 28px rgba(2,55,215,.38), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-primary:hover { background: var(--blue-hover); transform: translateY(-1px); }
.btn-primary:focus-visible { box-shadow: 0 10px 28px rgba(2,55,215,.38), inset 0 1px 0 rgba(255,255,255,.18), var(--ring); border-radius: var(--r); }
.btn-secondary { background: rgba(255,255,255,.04); color: var(--text); border-color: var(--line-2); }
.btn-secondary:hover { background: rgba(255,255,255,.08); border-color: var(--line-3); }
.btn-secondary:focus-visible { border-radius: var(--r); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }

/* ============================================================ 4. nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--nav-h); transition: background-color .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(11,16,22,.8); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 600; font-size: 20px; color: #fff; letter-spacing: -.01em; }
.brand img { height: 28px; width: auto; }
.nav-links { display: none; }
.nav-links a { font-weight: 500; font-size: 15px; color: var(--text-2); transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-login { font-weight: 600; font-size: 15px; color: var(--text); }
.nav-login:hover { color: var(--blue-text); }
.nav-right .nav-login, .nav-right .nav-cta { display: none; }
.burger { width: 44px; height: 44px; display: grid; place-items: center; gap: 0; border-radius: 10px; position: relative; }
.burger span { position: absolute; left: 12px; width: 20px; height: 2px; border-radius: 2px; background: #fff; transition: transform .3s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
/* mobile menu (the same .nav-links, dropped under the bar) */
.nav.open .nav-links {
  display: flex; flex-direction: column; gap: 4px; position: absolute; left: var(--gutter); right: var(--gutter); top: calc(var(--nav-h) + 8px);
  padding: 10px; border-radius: var(--r-card); background: var(--panel); border: 1px solid var(--line-2);
  box-shadow: 0 24px 60px rgba(0,0,0,.55);
}
.nav.open .nav-links a:not(.btn) { display: block; padding: 12px 14px; border-radius: 10px; font-size: 16px; color: var(--text); }
.nav.open .nav-links a:not(.btn):hover { background: rgba(255,255,255,.05); }
.nav.open .nav-links .nav-cta { margin: 8px 4px 4px; height: 48px; font-size: 15px; }
.nav.open { background: rgba(11,16,22,.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* ============================================================ 5. atmosphere (from the login page) */
.atmo { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.atmo-dots { position: absolute; inset: 0; background: url('/img/pattern.png') center top / 1100px auto repeat; opacity: .16;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 100%, #000 0%, transparent 75%); mask-image: radial-gradient(ellipse 70% 55% at 50% 100%, #000 0%, transparent 75%); }
.atmo-outline { position: absolute; left: -6vw; top: -10vh; height: 126vh; width: auto; max-width: none; opacity: .17;
  -webkit-mask-image: linear-gradient(90deg, #000 38%, transparent 78%); mask-image: linear-gradient(90deg, #000 38%, transparent 78%); }
.atmo-glow { position: absolute; right: -4vw; bottom: -24vh; height: 78vh; width: auto; max-width: none; opacity: .46; transform: rotate(-4deg);
  -webkit-mask-image: linear-gradient(180deg, #000 35%, transparent 92%); mask-image: linear-gradient(180deg, #000 35%, transparent 92%); }
.atmo-light { position: absolute; left: 50%; bottom: -38vh; width: 130vw; height: 72vh; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(2,55,215,.42), rgba(2,55,215,.12) 55%, rgba(2,55,215,0)); }
.atmo-grain { position: absolute; inset: 0; background: url('/img/auth-grain.png'); opacity: .55; mix-blend-mode: overlay; }
@media (max-width: 1100px) {
  .atmo-outline { left: -30vw; opacity: .10; }
  .atmo-glow { right: -24vw; height: 56vh; opacity: .34; }
}
/* lighter version for the final CTA */
.atmo-light-mode .atmo-dots { opacity: .10; }
.atmo-light-mode .atmo-outline { opacity: .09; height: 110%; top: -4%; }
.atmo-light-mode .atmo-glow { opacity: .30; height: 90%; bottom: -30%; }
.atmo-light-mode .atmo-light { opacity: .7; bottom: -45%; height: 80%; }
.atmo-light-mode .atmo-grain { opacity: .4; }

/* ============================================================ 6. hero */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--nav-h) + 56px) 0 64px; }
.hero-in { display: grid; gap: 48px; align-items: center; }
.hero-copy { max-width: 560px; }
.hero h1 { margin-bottom: 18px; }
.hero-sub { font-size: 17px; line-height: 1.6; color: var(--text-2); max-width: 520px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.stats { display: grid; grid-template-columns: 1fr; gap: 18px; margin: 0; padding-top: 28px; border-top: 1px solid var(--line); }
.stat dt { font-family: var(--head); font-size: 26px; line-height: 1.1; color: #fff; margin-bottom: 6px; }
.stat dd { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.hero-mock { min-width: 0; }
.mock-slot:empty { min-height: 420px; border-radius: var(--r-card); border: 1px dashed var(--line-2); } /* placeholder only while the slot is empty (no :has needed) */

/* ============================================================ 7. tape */
.tape { padding: 32px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel); overflow: hidden; }
.tape-head { margin-bottom: 14px; }
.tape-label { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tape-row { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.tape-row + .tape-row { border-top: 1px solid var(--line); }
.tape-track { display: flex; width: max-content; animation: tape 40s linear infinite; }
.tape-track.rev { animation-direction: reverse; }
.tape:hover .tape-track { animation-play-state: paused; }
.tape-list { display: flex; align-items: center; flex: none; }
.tape-list li { display: flex; align-items: center; gap: 28px; padding: 18px 14px 18px 0; font-family: var(--head); font-size: 20px; color: var(--text-2); white-space: nowrap; letter-spacing: -.01em; }
.tape-list li::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--blue-bright); opacity: .8; flex: none; margin-right: 14px; }
@keyframes tape { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================ 8. sections + cards */
.sec { padding: var(--sec-y) 0; }
.sec-alt { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { max-width: 640px; margin-bottom: 40px; }
.sec-head h2 { margin-bottom: 14px; }
.sec-sub { font-size: 17px; color: var(--text-2); max-width: 560px; }
.cards { display: grid; gap: 16px; }
.card {
  position: relative; isolation: isolate; overflow: hidden; padding: 26px; border-radius: var(--r-card); background: var(--raised); border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 10px 30px rgba(0,0,0,.25);
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
/* a soft blue light that follows the pointer (site.js sets --mx/--my) */
.card::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 0%), rgba(75,116,255,.18), transparent 65%); }
.card:hover::before { opacity: 1; }
.card:hover { transform: translateY(-2px); border-color: var(--line-3); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 16px 40px rgba(0,0,0,.35); }
.card h3 { margin: 0 0 8px; }
.card p { color: var(--text-2); font-size: 15.5px; line-height: 1.55; }
.tile { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 20px; background: rgba(2,55,215,.16); border: 1px solid rgba(75,116,255,.22); color: var(--blue-text); transition: box-shadow .3s, background-color .3s, border-color .3s; }
.tile svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.card:hover .tile { box-shadow: 0 0 28px rgba(2,55,215,.45), 0 0 0 1px rgba(75,116,255,.28); background: rgba(2,55,215,.26); border-color: rgba(75,116,255,.4); }
.card:hover .tile svg { transform: scale(1.08); }
.tile svg { transition: transform .35s var(--ease); }
/* the icon strokes draw themselves when the card appears (site.js adds .draw + pathLength="1"; without it the icon is simply there) */
.tile svg.draw > * { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s ease-out; transition-delay: calc(var(--i, 0) * 90ms + .35s); }
.stagger.on .tile svg.draw > * { stroke-dashoffset: 0; }
/* the highlighted word of each section title gets an underline that draws itself */
.sec-head h2 em, .start h2 em { padding-bottom: .04em; background: linear-gradient(var(--blue-bright), var(--blue-bright)) no-repeat 0 100% / 0 2px; transition: background-size .9s var(--ease) .35s; }
.sec-head.on h2 em, .start-in.on h2 em { background-size: 100% 2px; }

/* ============================================================ 9. how */
.steps { position: relative; display: grid; gap: 28px; counter-reset: step; }
.steps::before { content: ''; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px; background: linear-gradient(180deg, var(--blue-bright), rgba(75,116,255,.15)); transform-origin: top; transform: scaleY(0); transition: transform 1.1s var(--ease) .25s; }
.steps.on::before { transform: scaleY(1); }
.step { position: relative; padding-left: 68px; }
.step-n { position: absolute; left: 0; top: 0; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--raised); border: 1px solid var(--line-2); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 24px rgba(0,0,0,.35), 0 0 30px rgba(2,55,215,.18); font-family: var(--head); font-size: 18px; color: #fff; }
/* each number pops in and sends out one ring; then a light travels along the line, step by step */
.step-n::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; border: 1.5px solid var(--blue-bright); opacity: 0; pointer-events: none; }
.stagger.on > .step .step-n { animation: pop .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + .15s); }
.stagger.on > .step .step-n::after { animation: ping 1.1s ease-out both; animation-delay: calc(var(--i, 0) * 90ms + .45s); }
.steps::after { content: ''; position: absolute; left: 20px; top: 24px; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(75,116,255,.35), 0 0 16px var(--blue-bright); opacity: 0; pointer-events: none; }
.steps.on::after { animation: travel-y 4.2s ease-in-out 1.6s infinite; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } to { transform: scale(1); opacity: 1; } }
@keyframes ping { from { transform: scale(1); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
@keyframes travel-y { 0% { top: 24px; opacity: 0; } 8% { opacity: 1; } 80% { opacity: 1; } 90%, 100% { top: calc(100% - 28px); opacity: 0; } }
@keyframes travel-x { 0% { left: 24px; opacity: 0; } 8% { opacity: 1; } 80% { opacity: 1; } 90%, 100% { left: calc(100% - 32px); opacity: 0; } }
.step h3 { margin: 10px 0 8px; }
.step p { color: var(--text-2); font-size: 15.5px; line-height: 1.55; max-width: 320px; }
.chips-row { display: flex; flex-direction: column; gap: 14px; margin-top: 48px; padding: 20px 22px; border-radius: var(--r-card); border: 1px solid var(--line); background: rgba(255,255,255,.025); }
.chips-label { font-weight: 600; font-size: 15px; color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; background: rgba(2,55,215,.14); border: 1px solid rgba(75,116,255,.22); color: var(--text); font-weight: 500; font-size: 14px; }
.chips svg { width: 16px; height: 16px; fill: none; stroke: var(--blue-text); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
/* the chips light up one after the other, like the panel working through them */
.chips-row.on .chips li { animation: chip 4.8s ease-in-out infinite; }
.chips-row.on .chips li:nth-child(2) { animation-delay: 1.2s; }
.chips-row.on .chips li:nth-child(3) { animation-delay: 2.4s; }
.chips-row.on .chips li:nth-child(4) { animation-delay: 3.6s; }
@keyframes chip {
  0%, 20% { background: rgba(2,55,215,.4); border-color: rgba(75,116,255,.7); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(2,55,215,.35); }
  28%, 100% { background: rgba(2,55,215,.14); border-color: rgba(75,116,255,.22); transform: none; box-shadow: 0 0 0 rgba(2,55,215,0); }
}

/* ============================================================ 10. replace */
.card-flow { padding-top: 24px; }
.flow-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.flow-n { display: block; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--blue-text); }
.pill { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; letter-spacing: .01em; border: 1px solid; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-bad { color: #FF8A8A; background: rgba(255,92,92,.10); border-color: rgba(255,92,92,.28); }
.pill-new { color: var(--blue-text); background: rgba(2,55,215,.16); border-color: rgba(75,116,255,.3); }
.pill-ok { color: var(--green); background: rgba(91,214,166,.10); border-color: rgba(91,214,166,.3); }
.pill-ok i { animation: dot 1.8s ease-in-out infinite; }
@keyframes dot { 0%, 100% { box-shadow: 0 0 0 0 rgba(91,214,166,.55); } 60% { box-shadow: 0 0 0 5px rgba(91,214,166,0); } }
/* a thin light runs across the top of the three cards in order: 01, then 02, then 03, on a loop */
.card-flow::after { content: ''; position: absolute; top: 0; left: 24px; right: 24px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--blue-bright), rgba(75,116,255,.35)); transform: scaleX(0); transform-origin: left; opacity: 0; pointer-events: none; }
.stagger.on > .card-flow:nth-child(1)::after { animation: flow-1 6s linear 1s infinite; }
.stagger.on > .card-flow:nth-child(2)::after { animation: flow-2 6s linear 1s infinite; }
.stagger.on > .card-flow:nth-child(3)::after { animation: flow-3 6s linear 1s infinite; }
@keyframes flow-1 { 0% { transform: scaleX(0); opacity: 1; } 18% { transform: scaleX(1); opacity: 1; } 88% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes flow-2 { 0%, 24% { transform: scaleX(0); opacity: 1; } 42% { transform: scaleX(1); opacity: 1; } 88% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes flow-3 { 0%, 48% { transform: scaleX(0); opacity: 1; } 66% { transform: scaleX(1); opacity: 1; } 88% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }

/* ============================================================ 11. faq */
.faq { display: grid; gap: 10px; }
.faq-item { border-radius: var(--r-card); border: 1px solid var(--line); background: var(--raised); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); transition: border-color .25s; }
.faq-item:hover, .faq-item.open { border-color: var(--line-3); }
.faq-item { transition: border-color .25s, box-shadow .3s, transform .3s var(--ease); }
.faq-item.open { box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 0 0 1px rgba(75,116,255,.22), 0 14px 36px rgba(0,0,0,.35); }
.faq-item:hover:not(.open) { transform: translateX(4px); }
.faq-a-in p { opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .3s var(--ease); }
.faq-item.open .faq-a-in p { opacity: 1; transform: none; transition-delay: .12s; }
.faq-item h3 { margin: 0; font: inherit; }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 18px 20px; text-align: left; font-family: var(--head); font-size: 17px; line-height: 1.35; color: #fff; border-radius: var(--r-card); }
.faq-q svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--text-2); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease), stroke .2s; }
.faq-item.open .faq-q svg { transform: rotate(180deg); stroke: var(--blue-text); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-in { overflow: hidden; }
.faq-a-in p { padding: 0 20px 20px; color: var(--text-2); font-size: 15.5px; line-height: 1.6; max-width: 680px; }
.faq-a-in .num { color: #fff; font-size: 1em; }

/* ============================================================ 12. start */
.start { position: relative; isolation: isolate; overflow: hidden; padding: 88px 0; text-align: center; border-top: 1px solid var(--line); }
.start-in { display: flex; flex-direction: column; align-items: center; }
.mark { position: relative; width: 104px; height: 104px; margin: 0 auto 28px; border-radius: var(--r-mark); display: grid; place-items: center;
  background: var(--raised); border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 18px 48px rgba(0,0,0,.5), 0 0 60px rgba(2,55,215,.28); }
.mark::before { content: ''; position: absolute; inset: -40px; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(2,55,215,.30), transparent); }
.mark img { height: 54px; width: auto; }
/* the mark floats and sends out two rings; the Telegram button gets a light sweep now and then */
.start-in.on .mark { animation: float 5s ease-in-out infinite; }
.mark .ring { position: absolute; inset: -1px; border-radius: inherit; border: 1.5px solid rgba(75,116,255,.7); opacity: 0; pointer-events: none; }
.start-in.on .mark .ring { animation: ring 3.2s ease-out infinite; }
.start-in.on .mark .ring:nth-child(2) { animation-delay: 1.6s; }
.start .btn-primary { position: relative; overflow: hidden; }
.start .btn-primary::after { content: ''; position: absolute; top: -20%; bottom: -20%; left: -70%; width: 45%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent); transform: skewX(-18deg); pointer-events: none; }
.start-in.on .btn-primary::after { animation: shine 4.5s ease-in-out 1.5s infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes shine { 0% { left: -70%; } 35%, 100% { left: 140%; } }
.start h2 { font-size: 36px; margin-bottom: 12px; }
.start-sub { font-size: 17px; color: var(--text-2); margin-bottom: 30px; max-width: 460px; }
.start-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ============================================================ 13. footer */
.foot { padding: 44px 0 28px; background: var(--panel); border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.foot-top { display: flex; flex-direction: column; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand img { height: 32px; width: auto; }
.foot-brand strong { display: block; font-family: var(--head); font-weight: 600; color: #fff; font-size: 14px; letter-spacing: .02em; }
.foot-brand span { display: block; color: var(--muted); }
.foot-brand a { color: var(--text-2); }
.foot-brand a:hover { color: #fff; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot-links a { color: var(--text-2); font-weight: 500; }
.foot-links a:hover { color: #fff; }
.foot-official { margin: 22px 0; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line); background: rgba(255,255,255,.025); color: var(--text-2); line-height: 1.55; }
.foot-official strong { color: #fff; font-weight: 600; }
.foot-bottom { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }

/* ============================================================ 14. floating CTA */
.fab { display: none; }
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(11,16,22,.88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .4s var(--ease); }
.bar .btn { width: 100%; }
.bar.show { transform: translateY(0); }
body.cta-on .foot { padding-bottom: 96px; }

/* ============================================================ 15. motion */
/* hero on load: staggered rise; the mock slides in from the right a bit later */
.rise { opacity: 0; transform: translateY(16px); animation: rise .6s ease-out forwards; animation-delay: calc(.08s + var(--i, 0) * .1s); }
.slide { opacity: 0; transform: translateX(28px); animation: slide .7s var(--ease) forwards; animation-delay: .5s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
@keyframes slide { to { opacity: 1; transform: translateX(0); } }
/* scroll reveal: .reveal gets .on once 15% visible; children of .stagger wait --i */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease-out, transform .6s ease-out; }
.reveal.on { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(18px); transition: opacity .6s ease-out, transform .6s ease-out; transition-delay: calc(var(--i, 0) * 90ms); }
.stagger.on > * { opacity: 1; transform: none; }
.stagger.reveal { transform: none; }
.card:hover { transition-delay: 0s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .slide, .reveal, .stagger > * { animation: none; opacity: 1; transform: none; transition: none; }
  .tape-track { animation: none; }
  .steps::before { transform: none; transition: none; }
  .faq-a, .faq-item, .faq-q svg, .card, .tile, .tile svg, .bar, .nav, .nav-links a, .burger span, .btn, .faq-a-in p, .sec-head h2 em, .start h2 em { transition: none; }
  .card:hover, .btn-primary:hover, .faq-item:hover:not(.open), .card:hover .tile svg { transform: none; }
  .card::before, .steps::after, .step-n::after, .mark .ring, .start .btn-primary::after { display: none; }
  .stagger.on > .step .step-n, .chips-row.on .chips li, .card-flow::after, .pill-ok i, .start-in.on .mark { animation: none; }
  .card-flow::after { transform: none; opacity: 1; }
  .faq-a-in p { opacity: 1; transform: none; }
  .sec-head h2 em, .start h2 em { background-size: 100% 2px; }
}

/* ============================================================ 16. responsive */
@media (min-width: 560px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .foot-top { flex-direction: row; align-items: center; justify-content: space-between; }
  .foot-bottom { flex-direction: row; justify-content: space-between; }
}
@media (min-width: 720px) {
  :root { --sec-y: 96px; }
  .bar { display: none; }
  body.cta-on .foot { padding-bottom: 28px; }
  body.cta-on .foot-bottom { padding-right: 220px; }
  .fab { display: inline-flex; align-items: center; gap: 10px; position: fixed; right: 24px; bottom: 24px; z-index: 40; height: 52px; padding: 0 20px 0 16px; border-radius: 999px;
    background: var(--blue); color: #fff; font-weight: 600; font-size: 15px; box-shadow: 0 14px 36px rgba(2,55,215,.45), inset 0 1px 0 rgba(255,255,255,.18);
    opacity: 0; transform: translateY(16px) scale(.96); pointer-events: none; transition: opacity .35s var(--ease), transform .35s var(--ease), background-color .2s; }
  .fab svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
  .fab:hover { background: var(--blue-hover); }
  .fab.show { opacity: 1; transform: none; pointer-events: auto; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .steps::before { left: 24px; right: 24px; top: 24px; bottom: auto; width: auto; height: 2px; background: linear-gradient(90deg, var(--blue-bright), rgba(75,116,255,.15)); transform-origin: left; transform: scaleX(0); }
  .steps.on::before { transform: scaleX(1); }
  .steps::after { top: 21px; left: 24px; }
  .steps.on::after { animation-name: travel-x; }
  .step { padding-left: 0; padding-top: 0; }
  .step-n { position: relative; margin-bottom: 22px; }
  .step h3 { margin-top: 0; }
  .chips-row { flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; }
  .start { padding: 120px 0; }
  .start h2 { font-size: 44px; }
}
@media (min-width: 860px) {
  .nav-links { display: flex; align-items: center; gap: 32px; }
  .nav-links .nav-login, .nav-links .nav-cta { display: none; }
  .nav-right .nav-login, .nav-right .nav-cta { display: inline-flex; }
  .burger { display: none; }
}
@media (min-width: 960px) {
  :root { --sec-y: 112px; }
  h1 { font-size: 56px; }
  h2 { font-size: 40px; }
  .hero { padding: calc(var(--nav-h) + 88px) 0 104px; min-height: 100vh; display: flex; align-items: center; }
  .hero-in { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; }
  .hero-sub { font-size: 18px; }
  .stat dt { font-size: 28px; }
  .cards-3 { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .card { padding: 28px; }
  .sec-head { margin-bottom: 52px; }
  .tape-list li { font-size: 22px; padding: 22px 16px 22px 0; }
}
@media (prefers-reduced-motion: reduce) and (min-width: 720px) {
  .fab { transition: none; }
  .steps::before { transform: none; }
}
