@import url("tokens.css");

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-sans); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }

.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; }
.eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }
.accent { color: var(--accent); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 15px; padding: 12px 20px; border-radius: var(--radius-sm); background: var(--text); color: var(--bg); border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 30px var(--accent-glow); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--lg { font-size: 17px; padding: 15px 26px; }
.btn--sm { font-size: 13px; padding: 9px 16px; }

/* Reveal (JS-driven; visible by default for no-JS / reduced-motion) */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.nav[data-scrolled] { border-bottom-color: var(--border); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav__links { display: flex; gap: 24px; font-size: 14px; color: var(--muted); }
.nav__links a:hover { color: var(--text); }
@media (max-width: 640px) { .nav__links { display: none; } }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.brand__mark { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, var(--accent), var(--accent-deep)); box-shadow: 0 0 20px var(--accent-glow); }

.foot { border-top: 1px solid var(--border); margin-top: 96px; padding: 56px 0 40px; }
.foot__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.foot__tag { color: var(--muted); font-size: 14px; margin: 12px 0 0; }
.foot__col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--muted); }
.foot__col a:hover { color: var(--text); }
.foot__head { color: var(--text); font-weight: 600; margin-bottom: 4px; }
.foot__base { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; color: var(--muted); }
@media (max-width: 720px) { .foot__inner { grid-template-columns: 1fr 1fr; } .foot__base { flex-direction: column; } }

.hero { padding: 72px 0 40px; position: relative; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.display { font-size: clamp(40px, 6vw, 68px); line-height: 1.02; letter-spacing: -.03em; font-weight: 800; margin: 16px 0 18px; }
.lede { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); max-width: 46ch; margin: 0 0 26px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__proof { color: var(--muted); margin-top: 22px; }
.hero__device { position: relative; display: flex; justify-content: center; }
.hero__device img { border-radius: 28px; border: 1px solid var(--border); box-shadow: 0 40px 80px rgba(0,0,0,.5); }
.hero__glow { position: absolute; inset: -10% -10% 0 -10%; background: radial-gradient(50% 50% at 60% 40%, var(--accent-glow), transparent 70%); filter: blur(30px); z-index: -1; }
@media (max-width: 860px) { .hero__grid { grid-template-columns: 1fr; } .hero__device { order: -1; } }

.stats { padding: 28px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat__num { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.02em; }
.stat__label { color: var(--muted); text-transform: uppercase; }
.stats__sync { text-align: center; color: var(--muted); margin: 20px 0 0; }
.stats__sync b { color: var(--text); font-weight: 600; }
@media (max-width: 560px) { .stats__row { grid-template-columns: repeat(2, 1fr); } }

.thesis { padding: 88px 0; text-align: center; }
.thesis__line { font-size: clamp(28px, 4.4vw, 48px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: 14px auto 20px; max-width: 18ch; }
.thesis__sub { color: var(--muted); font-size: 18px; max-width: 54ch; margin: 0 auto; }

.features { padding: 40px 0; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 56px 0; }
.feature--flip .feature__text { order: 2; }
.feature__title { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; letter-spacing: -.02em; margin: 12px 0 14px; line-height: 1.1; }
.feature__body { color: var(--muted); font-size: 17px; margin: 0 0 18px; }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; color: var(--text); font-size: 15px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.feature__art { display: flex; justify-content: center; }
.feature__art img { border-radius: 24px; border: 1px solid var(--border); box-shadow: 0 30px 60px rgba(0,0,0,.45); }
.pro { color: var(--gold); font-weight: 700; }
.eyebrow--pro { color: var(--gold); }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; gap: 28px; } .feature--flip .feature__text { order: 0; } .feature__art { order: -1; } }

.wall { position: relative; margin: 72px 0; min-height: 560px; display: flex; align-items: center; overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.wall__grid { position: absolute; inset: -6% 0; display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; padding: 12px; transform: rotate(-4deg) scale(1.15); opacity: .5; }
.wall__tile { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; }
.wall__tile--ph { background: linear-gradient(150deg, var(--elevated), var(--surface)); }
.wall__scrim { position: absolute; inset: 0; background: radial-gradient(120% 90% at 30% 50%, rgba(10,11,17,.55), rgba(10,11,17,.92) 70%), linear-gradient(180deg, var(--bg), transparent 20%, transparent 80%, var(--bg)); }
.wall__copy { position: relative; max-width: 640px; }
.wall__title { font-size: clamp(32px, 5vw, 56px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; margin: 0 0 16px; }
.wall__sub { color: var(--muted); font-size: 18px; max-width: 46ch; margin: 0 0 26px; }
@media (max-width: 640px) { .wall__grid { grid-template-columns: repeat(5, 1fr); } }

.proof { padding: 64px 0; }
.proof__quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 18px; }
.quote { margin: 0; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); font-size: 18px; line-height: 1.5; }
.quote cite { display: block; margin-top: 14px; font-size: 14px; color: var(--muted); font-style: normal; }
@media (max-width: 700px) { .proof__quotes { grid-template-columns: 1fr; } }

.faq { padding: 72px 0; }
.faq__title { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.02em; margin: 12px 0 28px; }
.faq__list { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.qa { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px 20px; }
.qa summary { cursor: pointer; font-weight: 600; font-size: 17px; padding: 16px 0; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; float: right; color: var(--accent); font-size: 22px; line-height: 1; }
.qa[open] summary::after { content: "−"; }
.qa p { color: var(--muted); margin: 0 0 16px; }

.cta { padding: 40px 0 8px; }
.cta__inner { position: relative; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: 28px; padding: 72px 24px; overflow: hidden; }
.cta__glow { position: absolute; inset: auto -20% -60% -20%; height: 300px; background: radial-gradient(50% 100% at 50% 100%, var(--accent-glow), transparent 70%); }
.cta__title { position: relative; font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; letter-spacing: -.02em; margin: 0 0 14px; }
.cta__sub { position: relative; color: var(--muted); font-size: 18px; max-width: 46ch; margin: 0 auto 26px; }
.cta__meta { position: relative; color: var(--muted); margin-top: 20px; }

.legal { padding: 56px 0; }
.legal__inner { max-width: 720px; }
.legal h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -.02em; margin: 0 0 6px; }
.legal h2 { font-size: 20px; margin: 32px 0 8px; }
.legal p { color: var(--muted); }
.legal .updated { color: var(--muted); font-size: 14px; }
.legal .note { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--gold); border-radius: var(--radius-sm); padding: 14px 16px; color: var(--text); }
.legal a { color: var(--accent); }
