* { box-sizing: border-box; }

:root {
  --bg: #0b0a08;
  --bg2: #141109;
  --panel: #17140f;
  --panel-line: rgba(255, 255, 255, .08);
  --text: #f4efe4;
  --muted: #9c9284;
  --amber: #ffb020;
  --amber-deep: #ff6a1f;
  --hazard: #ffcf3f;
  --line: rgba(255, 176, 32, .25);
  --green: #7fcf8f;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
  --display: "Big Shoulders Display", ui-sans-serif, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 145, 0, .08), transparent 32%),
    radial-gradient(circle at 8% 80%, rgba(255, 106, 31, .05), transparent 30%),
    var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
}

main section[id] { scroll-margin-top: 96px; }

a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--amber);
  color: #0b0a08;
  padding: 10px 16px;
  font-weight: 700;
  z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 10, 8, .7);
  backdrop-filter: blur(10px);
  transition: background .25s, border-color .25s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11, 10, 8, .92);
  border-bottom-color: var(--panel-line);
}

.nav-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: .04em;
  font-size: 20px;
  text-transform: uppercase;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 9px;
  border: 1px solid var(--panel-line);
}

.brand-small { font-size: 16px; }
.brand-small img { width: 26px; height: 26px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  color: #b7ada0;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  position: relative;
  padding: 4px 0;
  transition: color .2s;
}
.nav-links a:hover { color: var(--amber); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--amber);
  transition: right .2s ease;
}
.nav-links a:hover::after { right: 0; }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.icon-link {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--panel-line);
  color: #cfc6b8;
  transition: border-color .2s, color .2s, transform .2s;
}
.icon-link:hover {
  color: var(--amber);
  border-color: var(--line);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--panel-line);
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.menu-toggle span {
  width: 16px;
  height: 2px;
  background: var(--text);
  transition: transform .25s, opacity .25s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hazard-strip {
  height: 3px;
  background: repeating-linear-gradient(-45deg, var(--hazard) 0 10px, #17140f 10px 20px);
  opacity: .5;
}

.mobile-menu {
  position: fixed;
  top: 78px;
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(11, 10, 8, .98);
  border-bottom: 1px solid var(--panel-line);
  display: flex;
  flex-direction: column;
  padding: 8px 20px 20px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform .2s, opacity .2s;
}
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu a {
  padding: 14px 4px;
  font-size: 15px;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 600;
  border-bottom: 1px solid var(--panel-line);
}
.mobile-menu-socials { display: flex; gap: 12px; padding-top: 16px; }

/* Hero */

.hero {
  position: relative;
  min-height: calc(100vh - 78px);
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 30px;
  overflow: hidden;
  z-index: 2;
}

.glow {
  position: absolute;
  width: 420px;
  height: 420px;
  right: 10%;
  top: 22%;
  border-radius: 50%;
  background: rgba(255, 142, 0, .08);
  filter: blur(80px);
  pointer-events: none;
}

.hero-copy { position: relative; z-index: 2; }

.eyebrow {
  color: var(--amber);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

h1, h2, h3 { font-family: var(--display); }

h1 {
  font-size: clamp(64px, 9vw, 124px);
  line-height: .86;
  letter-spacing: -.02em;
  margin: 0;
  font-weight: 900;
  text-transform: uppercase;
}

h1 span {
  color: var(--amber);
  text-shadow: 0 0 35px rgba(255, 145, 0, .18);
}

.sub {
  max-width: 430px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  margin: 26px 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 4px;
  padding: 13px 22px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  cursor: pointer;
  transition: transform .2s, border-color .2s, background .2s;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 173, 0, .6);
}

.primary {
  background: var(--amber);
  color: #16130a;
  border-color: var(--amber);
}

.ghost {
  background: transparent;
  color: var(--text);
}

.readout {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #6b6357;
}
.readout-item { display: flex; align-items: center; gap: 8px; }
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2.2s ease-in-out infinite;
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
}

.hero-art img {
  width: min(570px, 100%);
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 20px 55px rgba(0, 0, 0, .65));
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.ring-outer {
  width: 390px;
  height: 390px;
  box-shadow: 0 0 80px rgba(255, 145, 0, .06);
  animation: spin 26s linear infinite;
  border-style: dashed;
}
.ring-inner {
  width: 470px;
  height: 470px;
  opacity: .5;
  animation: spin-reverse 34s linear infinite;
}

/* Marquee */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--panel-line);
  border-bottom: 1px solid var(--panel-line);
  background: var(--panel);
  padding: 14px 0;
  position: relative;
  z-index: 2;
}
.marquee-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: marquee 22s linear infinite;
}
.marquee-track span {
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.marquee-track span:nth-child(3n+2) { color: var(--amber); }

/* Sections */

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 110px 0;
  border-top: 1px solid var(--panel-line);
  position: relative;
  z-index: 2;
}

.about, .specs, .assembly, .roadmap, .faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.roadmap, .faq { grid-template-columns: .8fr 1.2fr; }

h2 {
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: .96;
  letter-spacing: -.01em;
  margin: 0;
  text-transform: uppercase;
  font-weight: 800;
}

.about-copy {
  align-self: start;
  max-width: 500px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 26px;
}

.tag-row { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  border: 1px solid var(--panel-line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: 10px;
  padding: 36px;
  position: relative;
  background-image:
    radial-gradient(circle, #4a4436 0 100%),
    radial-gradient(circle, #4a4436 0 100%),
    radial-gradient(circle, #4a4436 0 100%),
    radial-gradient(circle, #4a4436 0 100%);
  background-repeat: no-repeat;
  background-size: 5px 5px;
  background-position: 12px 12px, calc(100% - 12px) 12px, 12px calc(100% - 12px), calc(100% - 12px) calc(100% - 12px);
}

/* Specs */

.spec-table { margin: 0; }
.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--panel-line);
}
.spec-row:first-child { padding-top: 0; }
.spec-row dt {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.spec-row dd {
  margin: 0;
  color: var(--amber);
  font-weight: 600;
  font-size: 14px;
  text-align: right;
}

.specs-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.specs-note {
  color: #6b6357;
  font-size: 12px;
  line-height: 1.6;
  max-width: 320px;
  margin: 0;
}

/* Assembly */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 46px;
}
.steps::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  bottom: 8px;
  width: 0;
  border-left: 2px dashed var(--line);
  transform: translateX(-50%);
}
.step {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: start;
  gap: 24px;
  max-width: 560px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}
.step.in-view { opacity: 1; transform: none; }
.step:nth-child(odd) { margin-right: auto; }
.step:nth-child(even) {
  margin-left: auto;
  grid-template-columns: 1fr 120px;
  text-align: right;
}
.step:nth-child(even) .step-num { order: 2; }
.step-num {
  font-family: var(--display);
  font-size: 56px;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--amber);
  line-height: 1;
}
.step-copy h3 {
  margin: 6px 0 10px;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: .01em;
}
.step-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

/* Roadmap terminal */

.terminal { padding: 0; overflow: hidden; }
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: #100e0a;
  border-bottom: 1px solid var(--panel-line);
}
.terminal-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3a3730;
}
.terminal-title {
  margin-left: 10px;
  font-size: 12px;
  color: #6b6357;
  letter-spacing: .04em;
}
.log {
  list-style: none;
  margin: 0;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 13px;
  color: #d8d0c2;
}
.tag-status {
  display: inline-block;
  min-width: 58px;
  text-align: center;
  border-radius: 4px;
  padding: 2px 6px;
  margin-right: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
}
.tag-status.done { background: rgba(127, 207, 143, .15); color: var(--green); }
.tag-status.live { background: rgba(255, 176, 32, .18); color: var(--amber); }
.tag-status.queued { background: rgba(255, 255, 255, .06); color: #948b7c; }
.cursor-line {
  padding: 0 22px 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--amber);
  font-size: 13px;
}
.cursor {
  width: 8px;
  height: 15px;
  background: var(--amber);
  animation: blink 1s step-end infinite;
}

/* FAQ */

.accordion { display: flex; flex-direction: column; }
.qa { border-bottom: 1px solid var(--panel-line); }
.qa:first-child { border-top: 1px solid var(--panel-line); }
.qa-trigger {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  padding: 20px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  gap: 16px;
}
.qa-trigger:hover { color: var(--amber); }
.qa-icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.qa-icon::before, .qa-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.qa-icon::before { width: 16px; height: 2px; }
.qa-icon::after { width: 2px; height: 16px; transition: transform .25s; }
.qa.open .qa-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa-panel {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows .3s ease;
}
.qa.open .qa-panel { grid-template-rows: 1fr; }
.qa-panel-inner { min-height: 0; }
.qa-panel p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  max-width: 520px;
}

/* Footer */

footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 40px 0 40px;
  border-top: 1px solid var(--panel-line);
  position: relative;
  z-index: 2;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.footer-links { display: flex; gap: 12px; }
.disclaimer {
  color: #6b6357;
  font-size: 12px;
  line-height: 1.7;
  max-width: 640px;
  margin: 0 0 26px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  color: #555;
  font-size: 11px;
  letter-spacing: .2em;
}

/* Reveal on scroll */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in-view { opacity: 1; transform: none; }

.reveal-load {
  opacity: 0;
  transform: translateY(16px);
  animation: reveal-in .7s ease forwards;
  animation-delay: calc(var(--d, 0) * .09s);
}

@keyframes reveal-in {
  to { opacity: 1; transform: none; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes spin-reverse {
  to { transform: rotate(-360deg); }
}
@keyframes marquee {
  to { transform: translateX(-33.3333%); }
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
}

@media (max-width: 760px) {
  .nav-inner { height: 66px; }
  .mobile-menu { top: 66px; }
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 50px 0 30px;
  }
  .hero-art {
    min-height: 360px;
    order: -1;
  }
  .hero-art img { width: min(340px, 88vw); }
  .ring-outer { width: 260px; height: 260px; }
  .ring-inner { width: 320px; height: 320px; }
  .section { padding: 70px 0; }
  .about, .specs, .assembly, .roadmap, .faq {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .steps::before { display: none; }
  .step, .step:nth-child(even) {
    grid-template-columns: 70px 1fr;
    margin: 0;
    text-align: left;
    max-width: none;
  }
  .step:nth-child(even) .step-num { order: 0; }
  .step-num { font-size: 40px; }
  .panel { padding: 24px; }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
