/* $RAX — styles. Tokens from the design handoff (21 Sep 2026): page #050505, alt #0A0A0A, card #0d0d0d,
   accent #E84142 (hover #ff5a5b), text #F5F5F5 / #d4d4d4 / #b8b8b8 / #c9c9c9, muted #8a8a8a / #666,
   borders #1c1c1c / #222 / #2a2a2a / #333 / #3a3a3a. Fonts: Archivo Black, Archivo, IBM Plex Mono. */

:root {
  --bg: #050505;
  --alt: #0A0A0A;
  --card: #0d0d0d;
  --red: #E84142;
  --red-hover: #ff5a5b;
  --red-btn: #D83737;        /* button fill: white text reads 4.6:1 (the brand red reads 4.0:1) */
  --red-btn-hover: #C82E2E;
  --text: #F5F5F5;
  --text-2: #d4d4d4;
  --text-3: #b8b8b8;
  --text-4: #c9c9c9;
  --muted: #8a8a8a;
  --muted-2: #7a7a7a;        /* was #666 (3.6:1); 4.8:1 on the page */
  --b1: #1c1c1c;
  --b2: #222;
  --b3: #2a2a2a;
  --b4: #333;
  --b5: #3a3a3a;
  --display: 'Archivo Black', 'Archivo', sans-serif;
  --body: 'Archivo', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-hover); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; }
.red { color: var(--red); }
.center { text-align: center; }
:focus-visible { outline: 2px solid var(--red-hover); outline-offset: 3px; }

/* logo mark: the pure-CSS red triangle from the design */
.tri { display: inline-block; width: 0; height: 0; border-left: 11px solid transparent; border-right: 11px solid transparent; border-bottom: 19px solid var(--red); }
.tri-footer { border-left-width: 8px; border-right-width: 8px; border-bottom-width: 14px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); }
.logo:hover { color: var(--text); }
.logo-text { font-family: var(--display); font-size: 22px; letter-spacing: 1px; }
.logo-sm { gap: 8px; }
.logo-sm .logo-text { font-size: 15px; letter-spacing: 0; }

/* accessibility helpers */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--red-btn); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 700; transition: top .15s ease; }
.skip:focus { top: 12px; }
dl, dd { margin: 0; }
.ca-btn[disabled] { cursor: default; }
.kv { display: flex; flex-direction: column-reverse; }

/* buttons */
.btn { display: inline-block; font-weight: 700; border-radius: 8px; white-space: nowrap; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.btn-red { background: var(--red-btn); color: #fff; }
.btn-red:hover { background: var(--red-btn-hover); color: #fff; }
.btn-lg { font-size: 16px; padding: 16px 30px; }
.btn-outline { border: 1px solid var(--b5); color: var(--text-2); font-weight: 600; }
.btn-outline:hover { border-color: var(--red); color: var(--text); }
.ca-btn { font-family: var(--mono); background: none; cursor: pointer; transition: border-color .15s ease, color .15s ease; }
.ca-btn-nav { font-size: 13px; border: 1px solid var(--b4); color: #a3a3a3; border-radius: 6px; padding: 8px 14px; }
.ca-btn-nav:hover { border-color: var(--red); color: var(--text); }
/* the red box that holds the contract address: a label before launch, a copy control after it */
.ca-box { font-family: inherit; line-height: inherit; border: 0; cursor: pointer; letter-spacing: .5px; white-space: normal; overflow-wrap: anywhere; }
.ca-box[disabled] { cursor: default; }
.ca-box[disabled]:hover { background: var(--red-btn); }
.ca-box .ca-long, .ca-box .ca-short { font-family: var(--mono); font-weight: 500; letter-spacing: 0; }
.ca-box .ca-long { font-size: 14px; }
.ca-box .ca-short { display: none; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-row.center { justify-content: center; }

/* 1 · nav */
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 24px; padding: 16px 32px; background: rgba(5,5,5,.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(232,65,66,.25); }
.nav-links { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; font-weight: 600; letter-spacing: .5px; margin-left: auto; }
.nav-links a { color: var(--text-4); }
.nav-links a:hover { color: var(--text); }

/* 2 · hero */
.hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px; align-items: center; max-width: 1200px; margin: 0 auto; padding: 64px 32px 40px; }
.hero-glow { position: absolute; right: -120px; top: 50%; transform: translateY(-50%); width: 640px; height: 640px; border-radius: 50%; background: radial-gradient(circle, rgba(232,65,66,.35) 0%, rgba(232,65,66,0) 70%); animation: rax-pulse 5s ease-in-out infinite; pointer-events: none; }
.hero-copy { min-width: 0; position: relative; }
.badge { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(232,65,66,.5); border-radius: 999px; padding: 6px 14px; font-family: var(--mono); font-size: 12px; color: var(--red); margin-bottom: 24px; }
h1 { font-size: clamp(44px, 6vw, 76px); line-height: 1.02; margin: 0 0 20px; text-wrap: pretty; }
.sub { font-size: 18px; line-height: 1.6; color: var(--text-3); margin: 0 0 32px; max-width: 480px; }
.hero-art { position: relative; min-width: 0; }
.hero-art img { width: 100%; max-width: 520px; margin: 0 auto; filter: drop-shadow(0 0 60px rgba(232,65,66,.35)); }

/* 3 · marquee */
.marquee { position: relative; overflow: hidden; border-top: 0; border-bottom: 1px solid rgba(232,65,66,.3); background: var(--alt); padding: 12px 0; }   /* sits directly under the nav; the nav's own red line is its top edge */
.marquee-track { display: flex; width: max-content; animation: rax-marquee var(--marquee-dur, 60s) linear infinite; font-family: var(--display); font-size: 16px; letter-spacing: 2px; white-space: nowrap; }
.marquee-group { display: flex; flex-shrink: 0; }   /* two identical groups, each wider than any screen; the loop slides exactly one group */
.marquee-track span { padding-right: 48px; }
.marquee-track b { color: var(--red); font-weight: 400; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track, .marquee.is-paused .marquee-track { animation-play-state: paused; }
.marquee-pause { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); z-index: 2; font-family: var(--mono); font-size: 11px; line-height: 1; color: var(--text-4); background: var(--alt); border: 1px solid var(--b4); border-radius: 6px; padding: 6px 8px; cursor: pointer; }
.marquee-pause:hover { border-color: var(--red); color: var(--text); }
.marquee-pause[aria-pressed="true"] { color: var(--red); border-color: var(--red); }

/* 3b · the dig (video band) */
.dig { background: var(--bg); padding: 24px 0 8px; }   /* 40 px of hero bottom + 24 px = a 64 px breath between the top block and the video */
.dig .inner { padding-top: 0; padding-bottom: 0; }   /* two classes: beats the general .inner padding declared further down (it was silently adding 72 px above and below the video) */
.dig-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; border: 1px solid var(--b2); background: #0a0a0a; box-shadow: 0 30px 80px rgba(232,65,66,.12); }
.dig-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.dig-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); background: rgba(5,5,5,.6); color: #fff; font-size: 26px; cursor: pointer; }
.dig-play:hover { background: var(--red-btn); border-color: var(--red-btn); }
.dig-sound { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.45); background: rgba(5,5,5,.62); color: #fff; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.dig-sound:hover { border-color: #fff; background: rgba(5,5,5,.8); }
.dig-sound[aria-pressed="true"] { background: var(--red-btn); border-color: var(--red-btn); }
.dig-line { text-align: center; font-family: var(--display); font-size: clamp(20px, 2.6vw, 28px); margin: 22px 0 0; letter-spacing: .01em; }

/* 4 · live stats */
.stats { max-width: 1200px; margin: 0 auto; padding: 56px 32px 8px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.stat { border: 1px solid var(--b2); border-radius: 12px; padding: 24px; background: var(--alt); text-align: center; }
.stat-label { font-family: var(--mono); font-size: 12px; letter-spacing: 2px; color: var(--muted); margin-bottom: 8px; }
.stat-value { font-family: var(--display); font-size: 32px; }
.stat-red { border-color: rgba(232,65,66,.5); background: rgba(232,65,66,.06); }
.stat-red .stat-label, .stat-red .stat-value { color: var(--red); }

/* 5 · story */
.story { max-width: 900px; margin: 0 auto; padding: 72px 32px; text-align: center; }
h2 { font-size: clamp(30px, 4vw, 44px); margin: 0 0 20px; }
.story p { font-size: 17px; line-height: 1.7; color: var(--text-3); margin: 0 auto 16px; max-width: 640px; }
.story .tagline { font-family: var(--display); font-size: 22px; color: var(--text); margin: 24px 0 0; max-width: none; line-height: 1.3; }

/* 6 · machine + 8 · faq bands */
.band { background: var(--alt); border-top: 1px solid var(--b1); border-bottom: 1px solid var(--b1); }
.inner { max-width: 1200px; margin: 0 auto; padding: 72px 32px; }
.inner-narrow { max-width: 1000px; }
.band h2 { margin-bottom: 12px; }
.band#faq h2 { margin-bottom: 48px; }
.lead { color: var(--text-3); font-size: 16px; max-width: 560px; margin: 0 auto 48px; line-height: 1.6; }
.fly-badge { font-size: 11px; letter-spacing: 1px; color: var(--red); border: 1px solid rgba(232,65,66,.5); border-radius: 999px; padding: 2px 8px; }
.machine-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; max-width: 860px; margin: 0 auto; }
.scard h3 .fly-badge { vertical-align: middle; margin-left: 8px; font-family: var(--mono); }
.story .tagline { margin-top: 8px; }
.scard { border: 1px solid var(--b2); border-radius: 16px; padding: 28px; }
.scard h3 { font-size: 20px; margin: 0 0 20px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.big { font-family: var(--display); font-size: 24px; }
.small { font-size: 13px; color: var(--muted); }
.mono-note { font-family: var(--mono); font-size: 12px; color: var(--muted); margin: 32px 0 0; }

/* 7 · steps */
.steps { max-width: 1200px; margin: 0 auto; padding: 72px 32px; }
.steps h2 { margin-bottom: 48px; }
.step-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.step { border: 1px solid var(--b2); border-radius: 16px; padding: 28px; text-align: center; }
.num { font-family: var(--display); font-size: 40px; color: var(--red); }
.step h3 { font-size: 18px; margin: 12px 0 8px; }
.step p { margin: 0; font-size: 14px; color: var(--text-3); line-height: 1.6; }

/* 8 · faq */
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 20px; }
.faq { border: 1px solid var(--b2); border-radius: 12px; padding: 24px; }
.faq h3 { font-family: var(--body); font-size: 16px; font-weight: 700; margin: 0 0 10px; color: var(--text); }
.faq p { margin: 0; font-size: 14px; color: var(--text-3); line-height: 1.7; }

/* 9 · community */
.community { position: relative; overflow: hidden; text-align: center; padding: 96px 32px; }
.community-glow { position: absolute; left: 50%; bottom: -320px; transform: translateX(-50%); width: 720px; height: 720px; border-radius: 50%; background: radial-gradient(circle, rgba(232,65,66,.3) 0%, rgba(232,65,66,0) 70%); animation: rax-pulse 5s ease-in-out infinite; pointer-events: none; }
.community h2 { font-size: clamp(34px, 5vw, 56px); margin: 0 0 16px; position: relative; }
.community .lead { margin: 0 0 32px; position: relative; }
.community .cta-row { position: relative; }

/* 10 · footer */
.footer { border-top: 1px solid var(--b1); padding: 24px 32px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.disclaimer { font-family: var(--mono); font-size: 12px; color: var(--muted-2); }

/* motion */
@keyframes rax-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes rax-pulse { 0%, 100% { opacity: .55; } 50% { opacity: .9; } }
@media (prefers-contrast: more) {
  :root { --muted: #b8b8b8; --muted-2: #a3a3a3; --text-3: #d4d4d4; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .hero-glow, .community-glow { animation: none; opacity: .7; }
  html { scroll-behavior: auto; }
}

/* responsive (the handoff asks for the hero to stack below ~800px) */
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; padding: 40px 20px 24px; }   /* phones: a 40 px unit above and below the top block */
  .hero-art { order: -1; }
  .hero-art img { max-width: 360px; }
  .hero-glow { right: 50%; top: 200px; transform: translateX(50%); width: 480px; height: 480px; }
  .nav { padding: 12px 16px; gap: 12px; }
  .nav-links { display: none; }
  .ca-btn-nav { margin-left: auto; }   /* the chip takes the top-right slot on phones */
  .stats, .steps, .inner, .story { padding-left: 20px; padding-right: 20px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 40px; }
  .dig { padding: 16px 0 0; }   /* 24 + 16 = the same 40 px before the video; the stats' 40 px follows the caption */
  .dig-inner { padding-left: 12px; padding-right: 12px; }
  .dig-frame { border-radius: 12px; }
  .dig-line { font-size: 18px; margin-top: 16px; }
  .dig-sound { right: 10px; bottom: 10px; min-height: 44px; min-width: 44px; justify-content: center; padding: 0 12px; }
  .dig-sound-text { display: none; }   /* the icon alone on phones; the label stays for screen readers via aria-label */   /* four numbers in two rows on a phone */
  .stat { padding: 18px 12px; }
  .stat-value { font-size: 26px; }
  .faq-grid { grid-template-columns: 1fr; }
  .community { padding: 72px 20px; }
  .footer { padding: 20px 16px; }
}
@media (max-width: 380px) {
  .nav { gap: 8px; }
  .logo-text { font-size: 20px; }
  .btn-lg { padding: 14px 22px; font-size: 15px; }
  .ca-box .ca-long { display: none; }
  .ca-box .ca-short { display: inline; }   /* the short address on phones; the tap still copies the whole thing */
  .stat-value { font-size: 22px; }
}
@media (max-width: 330px) {
  .stats { grid-template-columns: 1fr; }
}
