/* Bunny landing — dark expressive system (brand-identity.md §2.2).
   Amber on near-black; Fraunces display; Sora UI; functional motion only. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; background: var(--color-bgDeep); }
body { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--color-bgDeep);
  color: var(--color-inkOnDark);
  font-family: var(--type-ui);
  font-size: var(--type-size-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Centered content shell — the single rhythm every section shares. */
.shell { max-width: 1140px; margin: 0 auto; padding-left: var(--space-8); padding-right: var(--space-8); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--color-accent); color: #12100d; padding: 8px 16px; z-index: 100;
}
.skip-link:focus { left: 0; }

/* Header — a real bar: hairline bottom, centered shell, generous air. */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18,16,13,0.72); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-lineDark);
}
.site-header .shell { display: flex; justify-content: space-between; align-items: center; padding-top: var(--space-5, 20px); padding-bottom: var(--space-5, 20px); }
.wordmark { font-family: var(--type-ui); font-weight: 700; font-size: var(--type-size-lg); letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 8px; }
.wm-word { white-space: nowrap; }
.wm-accent { color: var(--color-accent); font-weight: 800; }
.logo-mark { color: var(--color-accent); flex-shrink: 0; }
.logo-check { stroke-dasharray: 20; stroke-dashoffset: 20; animation: draw-check 1.2s var(--motion-ease) 0.3s forwards; }
.logo-ring { stroke-dasharray: 80; stroke-dashoffset: 80; animation: draw-ring 1s var(--motion-ease) forwards; }
@keyframes draw-check { to { stroke-dashoffset: 0; } }
@keyframes draw-ring { to { stroke-dashoffset: 0; } }
.site-nav { display: flex; gap: var(--space-6); align-items: center; }
.site-nav a { color: var(--color-inkOnDark); text-decoration: none; font-size: var(--type-size-sm); opacity: 0.85; white-space: nowrap; }
.site-nav a:hover { opacity: 1; }
.site-nav a.cta { background: var(--color-accent); color: #12100d; padding: 9px 18px; border-radius: var(--radius-pill); font-weight: 600; opacity: 1; }

/* Hamburger toggle + mobile dropdown — hidden by default, shown on small screens. */
.nav-toggle { display: none; background: none; border: 1px solid var(--color-lineDark); border-radius: var(--radius-md); padding: 10px 8px; cursor: pointer; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav-toggle .bar { display: block; width: 22px; height: 2px; background: var(--color-inkOnDark); border-radius: 2px; transition: transform var(--motion-fast) var(--motion-ease), opacity var(--motion-fast) var(--motion-ease); }
.nav-toggle.open .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open .bar:nth-child(2) { opacity: 0; }
.nav-toggle.open .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; flex-direction: column; gap: 0; border-top: 1px solid var(--color-lineDark); background: rgba(18,16,13,0.98); backdrop-filter: blur(12px); padding: var(--space-2) var(--space-4) var(--space-4); }
.mobile-menu.open { display: flex; }
body.menu-open { overflow: hidden; }
.mobile-menu a { color: var(--color-inkOnDark); text-decoration: none; padding: 14px 4px; font-size: var(--type-size-base); border-bottom: 1px solid var(--color-lineDark); opacity: 0.9; }
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a.menu-cta { color: var(--color-accent); font-weight: 600; }

/* CTA label swap — declared once, before the media queries override it. */
.site-nav a.cta .cta-short { display: none; }

/* Responsive nav — two clean states, width-driven, live as the viewport resizes:
     ≥ 861px  full inline nav (all text links + long CTA, NO hamburger)
     ≤ 860px  hamburger ONLY (wordmark + menu button; CTA lives in the dropdown)
   This avoids ever showing a header CTA pill and a hamburger at the same time —
   that combination read as "nav in both places". */
@media (max-width: 860px) {
  .nav-toggle { display: flex; order: 3; }
  .site-nav { display: none; }
  .site-header .shell { padding-top: var(--space-4); padding-bottom: var(--space-4); }
}
/* Desktop: full nav only — never a hamburger, never the dropdown. */
@media (min-width: 861px) {
  .nav-toggle { display: none !important; }
  .mobile-menu { display: none !important; }
}

/* Hero — the shell centers it; the section only owns vertical rhythm. */
.hero { position: relative; padding-top: var(--space-16); padding-bottom: var(--space-12); }
.hero-glow {
  position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: min(900px, 100vw); height: 500px; pointer-events: none; z-index: -1;
  background: radial-gradient(ellipse 50% 40% at 50% 40%, rgba(240,161,52,0.14), transparent 70%);
  animation: glow-pulse 6s ease-in-out infinite;
}
@keyframes glow-pulse { 0%,100% { opacity: 0.7; } 50% { opacity: 1; } }

/* Scroll reveal (progressive enhancement; reduced-motion disables) */
.reveal { opacity: 0; transform: translateY(18px); animation: reveal 0.7s var(--motion-ease) forwards; }
.reveal:nth-of-type(1) { animation-delay: 0.05s; }
.reveal:nth-of-type(2) { animation-delay: 0.15s; }
.reveal:nth-of-type(3) { animation-delay: 0.25s; }
.reveal:nth-of-type(4) { animation-delay: 0.35s; }
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }
.eyebrow { color: var(--color-accent); font-size: var(--type-size-sm); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 var(--space-4); }
.display { font-family: var(--type-display); font-weight: 500; font-size: clamp(32px, 6vw, var(--type-size-hero)); line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 var(--space-6); }
.display .accent { color: var(--color-accent); }
.lede { font-size: var(--type-size-lg); max-width: 640px; opacity: 0.9; margin: 0 0 var(--space-8); }
.hero-ctas { display: flex; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-12); }

.btn { display: inline-block; padding: 12px 24px; border-radius: var(--radius-pill); font-weight: 600; text-decoration: none; font-size: var(--type-size-base); transition: transform var(--motion-fast) var(--motion-ease); }
.btn.primary { background: var(--color-accent); color: #12100d; }
.btn.primary:hover { transform: translateY(-1px); }
.btn.ghost { border: 1px solid #4a4237; color: var(--color-inkOnDark); }
.btn.ghost:hover { border-color: var(--color-accent); }

/* Transaction-truth timeline (the ownable asset): connected steps, not a card grid. */
.timeline-figure { margin: var(--space-8) 0 0; overflow-x: auto; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-3); position: relative; }
.timeline li { background: #1b1712; border: 1px solid var(--color-lineDark); border-radius: var(--radius-md); padding: var(--space-4); position: relative; min-width: 0; }
/* connecting arrow between steps — visible, amber-tinted so the flow reads. */
.timeline li:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; right: calc(-1 * var(--space-3)); width: var(--space-3); height: 2px;
  background: var(--color-accent); opacity: 0.4; z-index: 1;
}
.timeline li:not(:last-child)::before {
  content: ""; position: absolute; top: 50%; right: calc(-1 * var(--space-3) - 1px); transform: translateY(-50%);
  border: 5px solid transparent; border-left-color: var(--color-accent); opacity: 0.4; z-index: 1;
}
.t-label { display: block; font-weight: 700; margin-bottom: 4px; }
.t-note { display: block; font-size: var(--type-size-sm); opacity: 0.8; }
/* State borders use border-color (longhand) so the base .timeline li border
   shorthand above doesn't need overriding specificity. */
.timeline li.t-state-pending { border-color: var(--color-warn); animation: pending-pulse 2.4s ease-in-out infinite; }
.timeline li.t-state-verified { border-color: var(--color-ok); }
@keyframes pending-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(240,161,52,0); }
  50% { box-shadow: 0 0 18px 0 rgba(240,161,52,0.22); }
}
.timeline li { transition: transform var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) var(--motion-ease); }
.timeline li:hover { transform: translateY(-3px); }
.timeline-caption { font-size: var(--type-size-sm); opacity: 0.7; margin-top: var(--space-4); }
@media (max-width: 900px) {
  .timeline { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
  .timeline li::before, .timeline li::after { display: none; }
}

/* Sections — the shell centers content; the section owns rhythm + hairline. */
.section { border-top: 1px solid var(--color-lineDark); }
.section .shell { padding-top: var(--space-12); padding-bottom: var(--space-12); }
.display-sm { font-family: var(--type-display); font-weight: 500; font-size: var(--type-size-xxl); margin: 0 0 var(--space-6); letter-spacing: -0.01em; }
.steps { padding-left: var(--space-6); margin: 0; display: grid; gap: var(--space-4); }
.steps strong { color: var(--color-accent); }

.cards { list-style: none; padding: 0; margin: 0 0 var(--space-8); display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-4); }
.card { background: #1b1712; border: 1px solid var(--color-lineDark); border-radius: var(--radius-md); padding: var(--space-6); }
.card h3 { margin: 0 0 var(--space-2); font-size: var(--type-size-lg); }
.card p { margin: 0; opacity: 0.85; font-size: var(--type-size-sm); }

.callout { border-left: 3px solid var(--color-accent); padding-left: var(--space-4); font-style: italic; opacity: 0.9; max-width: 640px; }

.states { list-style: none; padding: 0; display: grid; gap: var(--space-3); margin-bottom: var(--space-6); }
.badge { display: inline-block; padding: 2px 10px; border-radius: var(--radius-pill); font-size: var(--type-size-sm); font-weight: 600; margin-right: var(--space-2); }
.badge.ok { background: var(--color-ok); color: #fff; }
.badge.info { background: var(--color-info); color: #fff; }
.badge.unknown { background: var(--color-unknown); color: #fff; }
.badge.danger { background: var(--color-danger); color: #fff; }

.demo-note p { max-width: 640px; opacity: 0.9; }
.demo-note strong { color: var(--color-accent); }

/* Waitlist */
.access .shell { max-width: 680px; }
.waitlist { display: grid; gap: var(--space-4); margin: var(--space-6) 0; }
.waitlist label { display: grid; gap: var(--space-2); font-size: var(--type-size-sm); font-weight: 600; }
.waitlist input, .waitlist select { background: #1b1712; border: 1px solid var(--color-lineDark); border-radius: var(--radius-md); padding: 12px; color: var(--color-inkOnDark); font-family: var(--type-ui); font-size: var(--type-size-base); }
.waitlist input:focus, .waitlist select:focus { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.waitlist button { justify-self: start; border: none; cursor: pointer; }
.waitlist .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.waitlist button[disabled] { opacity: 0.6; cursor: default; }
.form-error { color: #e8b4a0; font-size: var(--type-size-sm); margin: 0; }
.waitlist-success { text-align: center; padding: var(--space-6) 0; }
.success-mark { color: var(--color-accent); margin: 0 auto var(--space-4); display: block; animation: pop 0.4s var(--motion-ease); }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success-title { font-family: var(--type-display); font-weight: 500; font-size: var(--type-size-xxl); margin: 0 0 var(--space-3); }
.success-copy { opacity: 0.85; max-width: 480px; margin: 0 auto; }
.fine { font-size: var(--type-size-sm); opacity: 0.65; }

/* Footer */
.site-footer { border-top: 1px solid var(--color-lineDark); }
.site-footer .shell { display: grid; gap: var(--space-4); padding-top: var(--space-8); padding-bottom: var(--space-8); }
.site-footer nav { display: flex; gap: var(--space-5, 20px); flex-wrap: wrap; }
.fine a { color: inherit; text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 2px; }
.fine a:hover { color: var(--color-accent); }

/* Mobile — tighter gutters, full-width CTAs, footer nav wraps. The shell
   already centers; only rhythm + the mobile-specific collapses live here. */
@media (max-width: 700px) {
  .hero { padding-top: var(--space-12); padding-bottom: var(--space-8); }
  .section .shell { padding-top: var(--space-8); padding-bottom: var(--space-8); }
  .site-footer .shell { padding-top: var(--space-6); padding-bottom: var(--space-6); }
  .shell { padding-left: var(--space-4); padding-right: var(--space-4); }
  .timeline-figure { margin-top: var(--space-6); }
  .lede { font-size: var(--type-size-base); }
  .hero-ctas .btn { width: 100%; text-align: center; }
}
.site-footer a { color: var(--color-inkOnDark); text-decoration: none; font-size: var(--type-size-sm); opacity: 0.8; }

/* Reduced motion: no transitions/parallax/animation anywhere */
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .reveal { opacity: 1; transform: none; animation: none; }
  .hero-glow { animation: none; }
  .logo-check, .logo-ring { animation: none; stroke-dashoffset: 0; }
  .timeline li.t-state-pending { animation: none; }
  .timeline li { transition: none; }
}
