/* ── crosd landing page (index.html only) ─────────────────────────
   Extends style.css. Sodium-night palette, dark only. */

:root {
  --s2: #171c23;
  --grid: #161a21;
  --water: #0b1c22;
  --line: rgba(255, 255, 255, 0.08);
  --line2: rgba(255, 255, 255, 0.14);
}

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

.shell { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ── nav ─────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 9, 12, 0.78);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; gap: 28px;
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--t); font-weight: 600; font-size: 17px; letter-spacing: -0.01em;
}
.brand:hover { color: var(--t); }
.brand .mark {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--a); color: var(--af);
  font-family: 'Newsreader', serif; font-size: 18px; line-height: 1;
}
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--d); font-size: 14.5px; font-weight: 500; }
.nav-links a:hover { color: var(--t); }
.nav-links a.btn, .nav-links a.btn:hover { color: var(--af); }
.btn.small { height: 40px; padding: 0 18px; border-radius: 12px; font-size: 14.5px; }
@media (max-width: 640px) { .nav-links a:not(.btn) { display: none; } }

/* ── hero ────────────────────────────────────────────────────── */
.hero { position: relative; padding: 72px 0 40px; }
.hero::before {
  content: ""; position: absolute; inset: -64px 0 0;
  background:
    radial-gradient(560px 360px at 12% 8%, rgba(255, 107, 44, 0.13), transparent 70%),
    radial-gradient(520px 380px at 88% 60%, rgba(53, 224, 214, 0.09), transparent 70%),
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 100% 44px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 44px 100%;
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 48px; align-items: center;
}
.hero h1 { font-size: 76px; margin: 18px 0 22px; }
.hero .lede { font-size: 18px; max-width: 520px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 30px 0 14px; }
.hero .meta { color: var(--d2); font-size: 13.5px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 58px; }
  .hero { padding-top: 48px; }
}
@media (max-width: 480px) { .hero h1 { font-size: 46px; } }

/* ── phone mockup ────────────────────────────────────────────── */
.phone-col { display: flex; justify-content: center; }
.phone {
  width: 310px; border-radius: 46px; padding: 12px;
  background: #0d0f14;
  border: 1px solid var(--line2);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.55),
    0 0 0 6px rgba(255, 255, 255, 0.03),
    0 0 120px rgba(255, 107, 44, 0.07);
  position: relative;
}
.screen {
  border-radius: 36px; overflow: hidden; background: var(--g2);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.screen-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px 10px;
}
.screen-top .logo { font-family: 'Newsreader', serif; font-size: 19px; color: var(--t); }
.screen-top .logo em { color: var(--a); font-style: normal; }
.chip-new {
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--af); background: var(--a);
  padding: 4px 8px; border-radius: 100px;
}
.screen-map { display: block; width: 100%; height: auto; }
.crossing-card {
  margin: 10px 12px 14px; padding: 13px 14px;
  border-radius: 16px; background: var(--s);
  border: 1px solid var(--line);
  border-left: 3px solid var(--a);
  display: flex; gap: 12px; align-items: center;
}
.crossing-card .x {
  font-size: 19px; color: #fff; line-height: 1;
  font-family: 'Newsreader', serif;
}
.crossing-card b { display: block; color: var(--t); font-size: 14px; font-weight: 600; }
.crossing-card span { display: block; color: var(--d); font-size: 12px; margin-top: 2px; }

/* trace draw-in */
.trace { stroke-dasharray: 700; stroke-dashoffset: 700; animation: draw 2.2s cubic-bezier(0.5, 0, 0.2, 1) forwards; }
.trace.t2 { animation-delay: 0.45s; }
.xmark { opacity: 0; transform-origin: center; animation: pop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) forwards; }
.xmark.x1 { animation-delay: 1.6s; }
.xmark.x2 { animation-delay: 2.2s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; scale: 0.3; } to { opacity: 1; scale: 1; } }

/* ── sections ────────────────────────────────────────────────── */
section { padding: 76px 0; }
.kicker { margin-bottom: 6px; }
.section-title { font-size: 40px; margin: 6px 0 14px; }
.section-lede { font-size: 16.5px; max-width: 600px; }
@media (max-width: 640px) { .section-title { font-size: 32px; } section { padding: 56px 0; } }

/* the almosts */
.almosts { padding-top: 20px; }
.almost-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 26px; }
.almost {
  padding: 22px 20px; border-radius: 18px;
  background: var(--s); border: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.almost::after {
  content: "\00d7"; position: absolute; right: 12px; top: 2px;
  font-family: 'Newsreader', serif; font-size: 44px; color: rgba(255, 255, 255, 0.06);
}
.almost q {
  quotes: "\201C" "\201D";
  font-family: 'Newsreader', serif; font-style: italic; font-weight: 300;
  font-size: 19px; color: var(--t2); line-height: 1.35; display: block;
}
.almost span { display: block; margin-top: 10px; font-size: 12.5px; color: var(--d2); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 36px; }
.step {
  padding: 26px 22px; border-radius: 20px;
  background: var(--s); border: 1px solid var(--line);
}
.step .num {
  font-family: 'Newsreader', serif; font-size: 15px; color: var(--a);
  display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 10px;
  background: rgba(255, 107, 44, 0.12); border: 1px solid rgba(255, 107, 44, 0.25);
  margin-bottom: 16px;
}
.step h3 { font-size: 18px; font-weight: 600; color: var(--t); margin-bottom: 8px; }
.step p { font-size: 14.5px; }
.step .mono {
  display: inline-block; margin-top: 14px; padding: 7px 11px; border-radius: 10px;
  background: var(--g2); border: 1px solid var(--line);
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 12px; color: var(--d); letter-spacing: 0.01em;
}
.step .mono b { color: var(--c); font-weight: 500; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* privacy band */
.privacy-band {
  border-radius: 28px; padding: 56px 48px;
  background: linear-gradient(180deg, var(--s), var(--g2));
  border: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.privacy-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px 260px at 85% 0%, rgba(53, 224, 214, 0.08), transparent 70%);
  pointer-events: none;
}
.privacy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 34px; position: relative; }
.pcard { padding: 22px; border-radius: 18px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); }
.pcard h3 { font-size: 16px; font-weight: 600; color: var(--t); margin-bottom: 6px; display: flex; gap: 9px; align-items: center; }
.pcard h3 .ico { color: var(--ok); font-size: 14px; }
.pcard p { font-size: 14px; }
.pcard .hash {
  display: block; margin-top: 12px; padding: 8px 11px; border-radius: 10px;
  background: var(--g); border: 1px solid var(--line);
  font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12px; color: var(--d2);
}
.pcard .hash b { color: var(--c); font-weight: 500; }
.pcard .hash s { color: var(--d2); text-decoration: none; }
.pcard .hash .arr { color: var(--a); }
@media (max-width: 820px) {
  .privacy-band { padding: 40px 24px; }
  .privacy-grid { grid-template-columns: 1fr; }
}

/* precision */
.precision-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 36px; }
.prec {
  padding: 26px 22px; border-radius: 20px; text-align: center;
  background: var(--s); border: 1px solid var(--line);
}
.prec svg { display: block; margin: 0 auto 14px; }
.prec h3 { font-size: 17px; font-weight: 600; color: var(--t); }
.prec .r { color: var(--a); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; display: block; margin: 4px 0 8px; }
.prec p { font-size: 13.5px; margin: 0 auto; }
@media (max-width: 820px) { .precision-row { grid-template-columns: 1fr; } }

/* faq */
.faq { max-width: 720px; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0; color: var(--t); font-weight: 500; font-size: 16.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: 'Newsreader', serif; font-size: 24px; color: var(--d);
  transition: rotate 0.25s ease; flex-shrink: 0;
}
.faq details[open] summary::after { rotate: 45deg; color: var(--a); }
.faq details p { padding: 0 0 20px; font-size: 15px; max-width: 640px; }

/* final cta */
.final { text-align: center; padding: 96px 0 88px; position: relative; }
.final::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(480px 300px at 50% 30%, rgba(255, 107, 44, 0.1), transparent 70%);
  pointer-events: none;
}
.final h2 { font-size: 46px; font-weight: 400; margin: 0 0 14px; position: relative; }
.final h2 em { font-style: italic; font-weight: 300; }
.final p { margin: 0 auto 30px; position: relative; }
.final .cta-row { justify-content: center; position: relative; }
@media (max-width: 640px) { .final h2 { font-size: 34px; } }

/* footer */
.foot { border-top: 1px solid var(--line); }
.foot-inner {
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center;
  padding: 28px 0 40px; color: var(--d2); font-size: 13px;
}
.foot-inner a { color: var(--d); }
.foot-inner a:hover { color: var(--t); }
.foot-inner .spacer { flex: 1; }

/* reveal on scroll */
.reveal { opacity: 0; translate: 0 22px; transition: opacity 0.7s ease, translate 0.7s ease; }
.reveal.in { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  .trace { animation: none; stroke-dashoffset: 0; }
  .xmark { animation: none; opacity: 1; }
  .reveal { opacity: 1; translate: none; transition: none; }
  html { scroll-behavior: auto; }
}
