/* EFFECTIVE ELON — visual system */
:root {
  --ink: #02030a;
  --ink-soft: #070a15;
  --panel: rgba(8, 14, 30, 0.72);
  --cyan: #18e9ff;
  --blue: #2671ff;
  --violet: #6934ff;
  --white: #effcff;
  --muted: #8291a8;
  --line: rgba(150, 228, 255, 0.19);
  --display: "Archivo Black", sans-serif;
  --tech: "Chakra Petch", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--cyan) var(--ink);
}

body {
  margin: 0;
  color: var(--white);
  background:
    radial-gradient(circle at 75% 16%, rgba(16, 90, 255, 0.15), transparent 32rem),
    radial-gradient(circle at 17% 52%, rgba(77, 32, 255, 0.12), transparent 26rem),
    var(--ink);
  font-family: var(--tech);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  background-image:
    linear-gradient(rgba(80, 170, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 170, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000 0, transparent 90%);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.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;
}

#starfield {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

.scroll-meter {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 101;
  width: 100%;
  height: 2px;
}

.scroll-meter span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--violet), var(--cyan), #fff);
  box-shadow: 0 0 14px var(--cyan);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  min-height: 82px;
  padding: 14px clamp(20px, 4vw, 68px);
  border-bottom: 1px solid var(--line);
  background: rgba(2, 3, 10, 0.74);
  backdrop-filter: blur(22px);
  transition: min-height 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  min-height: 68px;
  background: rgba(2, 3, 10, 0.92);
}

.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  justify-self: start;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(24, 233, 255, 0.5));
}

.brand-copy {
  display: grid;
  line-height: 1;
}

.brand-copy strong {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--cyan);
  font-size: 8px;
  letter-spacing: 0.32em;
}

.site-nav {
  display: flex;
  gap: clamp(22px, 3vw, 48px);
  align-items: center;
}

.site-nav a {
  position: relative;
  padding: 9px 0;
  color: #aab7ca;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.site-nav a::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  content: "";
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  transition: width 0.25s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--white);
}

.site-nav a:hover::after,
.site-nav a.active::after {
  width: 100%;
}

.site-nav span {
  margin-right: 6px;
  color: var(--cyan);
  font-size: 9px;
}

.header-buy {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-self: end;
  padding: 10px 16px 10px 10px;
  border: 1px solid rgba(24, 233, 255, 0.45);
  background: linear-gradient(110deg, rgba(24, 233, 255, 0.18), rgba(38, 113, 255, 0.07));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: transform 0.25s ease, background 0.25s ease;
}

.header-buy:hover {
  transform: translateY(-2px);
  background: var(--cyan);
  color: var(--ink);
}

.header-buy img {
  width: 27px;
  height: 27px;
  object-fit: contain;
}

.menu-toggle {
  display: none;
}

.section {
  position: relative;
  padding: 130px clamp(22px, 5vw, 84px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "copy"
    "visual"
    "actions";
  row-gap: clamp(14px, 2vh, 24px);
  align-items: center;
  justify-items: center;
  height: 100svh;
  min-height: 760px;
  padding-top: 108px;
  padding-bottom: 22px;
  overflow: hidden;
  z-index: 2;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  top: 10%;
  left: 50%;
  z-index: 0;
  width: 70vw;
  height: 70vw;
  content: "";
  background: radial-gradient(circle, rgba(39, 102, 255, 0.14), rgba(23, 61, 145, 0.07) 42%, transparent 72%);
  filter: blur(55px);
  transform: translateX(-28%);
}

.hero::after {
  display: none;
}

.hero-orbit {
  position: absolute;
  right: -18vw;
  top: 7vh;
  z-index: 0;
  width: 75vw;
  height: 75vw;
  border: 1px solid rgba(24, 233, 255, 0.12);
  border-radius: 50%;
  transform: rotate(-16deg) scaleY(0.38);
  box-shadow:
    0 0 120px rgba(24, 233, 255, 0.05),
    inset 0 0 90px rgba(24, 233, 255, 0.06);
}

.hero-orbit::after {
  position: absolute;
  inset: 8%;
  border: 1px dashed rgba(105, 52, 255, 0.22);
  border-radius: inherit;
  content: "";
}

.hero-emblem {
  display: none;
}

.hero-emblem::before,
.hero-emblem::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.hero-emblem::before {
  inset: 0;
  border: 1px solid rgba(24, 233, 255, 0.18);
  box-shadow: inset 0 0 55px rgba(24, 233, 255, 0.04);
}

.hero-emblem::after {
  inset: 19%;
  border: 1px dashed rgba(105, 137, 255, 0.2);
}

.hero-emblem img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 33%;
  height: 33%;
  object-fit: contain;
  opacity: 0.68;
  filter: drop-shadow(0 0 20px rgba(24, 233, 255, 0.65));
  transform: translate(-50%, -50%);
}

.emblem-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(105, 52, 255, 0.25);
  border-radius: 50%;
  transform-origin: center;
}

.ring-one {
  width: 112%;
  height: 32%;
  transform: translate(-50%, -50%) rotate(-18deg);
  animation: emblem-orbit-one 12s linear infinite;
}

.ring-two {
  width: 86%;
  height: 24%;
  border-color: rgba(24, 233, 255, 0.22);
  transform: translate(-50%, -50%) rotate(62deg);
  animation: emblem-orbit-two 9s linear infinite reverse;
}

.emblem-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 15px var(--cyan);
}

.dot-one { top: 25%; right: 5%; }
.dot-two { bottom: 8%; left: 30%; width: 4px; height: 4px; }

@keyframes emblem-orbit-one {
  to { transform: translate(-50%, -50%) rotate(342deg); }
}

@keyframes emblem-orbit-two {
  to { transform: translate(-50%, -50%) rotate(-298deg); }
}

.hero-actions {
  grid-area: actions;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1vw, 18px);
  align-content: center;
  align-self: center;
  justify-self: center;
  width: 100%;
  max-width: 1480px;
  margin: 0;
}

.rail-label {
  display: none;
}

.action-card {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 82px;
  padding: 11px 17px 11px 11px;
  border: 1px solid var(--line);
  background: rgba(8, 15, 30, 0.68);
  color: var(--white);
  text-align: left;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.action-card:hover {
  border-color: rgba(24, 233, 255, 0.72);
  background: rgba(13, 39, 66, 0.85);
  transform: translateY(-6px);
}

.action-card.primary {
  border-color: rgba(24, 233, 255, 0.5);
  background: linear-gradient(110deg, rgba(24, 233, 255, 0.2), rgba(38, 113, 255, 0.08));
}

.action-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(24, 233, 255, 0.2);
  background: rgba(24, 233, 255, 0.06);
}

.action-icon img {
  width: 49px;
  height: 49px;
  object-fit: contain;
}

.action-icon svg {
  width: 24px;
  fill: #fff;
}

.action-card > span:nth-child(2) {
  display: grid;
}

.action-card small {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.action-card strong {
  margin-top: 2px;
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: 0.08em;
}

.action-card b {
  color: var(--cyan);
  font-size: 22px;
}

.hero-copy {
  grid-area: copy;
  z-index: 2;
  align-self: start;
  justify-self: center;
  width: 100%;
  max-width: 1540px;
  margin: 0;
  text-align: center;
  pointer-events: none;
}

.eyebrow,
.kicker {
  color: #aec0d6;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
}

.eyebrow span {
  display: inline-block;
  width: 38px;
  height: 1px;
  margin: 0 11px 4px 0;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.eyebrow em {
  color: var(--cyan);
  font-style: normal;
}

.hero h1 {
  display: flex;
  gap: clamp(18px, 2vw, 40px);
  align-items: baseline;
  justify-content: center;
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: clamp(42px, 4.25vw, 82px);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.hero h1 span {
  display: inline-block;
  white-space: nowrap;
}

.hero h1 .line-1 {
  color: #fff;
  text-shadow: 0 0 35px rgba(38, 113, 255, 0.2);
}

.hero h1 .line-2 {
  color: var(--cyan);
  font-size: 0.66em;
  letter-spacing: -0.045em;
  text-shadow: 0 0 28px rgba(24, 233, 255, 0.34);
}

.hero-meta {
  display: grid;
  grid-template-columns: minmax(220px, 390px) auto;
  gap: 28px;
  align-items: end;
  justify-content: center;
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}

.hero-meta p {
  margin: 0;
  color: #9baabd;
  font-size: 13px;
  line-height: 1.5;
}

.ticker-lockup {
  padding-left: 18px;
  border-left: 1px solid var(--cyan);
}

.ticker-lockup small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.15em;
}

.ticker-lockup strong {
  font-family: var(--display);
  font-size: clamp(25px, 3vw, 42px);
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.hero-visual {
  grid-area: visual;
  position: relative;
  z-index: 1;
  align-self: center;
  justify-self: center;
  width: min(48vw, calc(100svh - 405px), 540px);
  max-width: 540px;
  min-height: 0;
  aspect-ratio: 1;
  margin: 0;
}

.image-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(83, 174, 255, 0.28);
  border-radius: 2px;
  clip-path: polygon(8% 0, 100% 0, 100% 91%, 92% 100%, 0 100%, 0 9%);
  box-shadow: 0 0 80px rgba(38, 113, 255, 0.13);
}

.image-frame::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(90deg, rgba(2, 3, 10, 0.9), transparent 34%),
    linear-gradient(0deg, rgba(2, 3, 10, 0.8), transparent 28%);
  pointer-events: none;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: saturate(1.12) contrast(1.05);
  transform: scale(1);
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-visual:hover .image-frame img {
  transform: scale(1.025);
}

.scan-line {
  position: absolute;
  top: -20%;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 18%;
  background: linear-gradient(to bottom, transparent, rgba(24, 233, 255, 0.11), transparent);
  animation: scan 6s linear infinite;
}

@keyframes scan {
  to { transform: translateY(720%); }
}

.hero-visual figcaption {
  position: absolute;
  right: 22px;
  bottom: 17px;
  z-index: 3;
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.hero-visual figcaption b {
  color: var(--cyan);
}

.scroll-cue {
  grid-column: 2 / 4;
  display: inline-flex;
  gap: 16px;
  align-items: center;
  justify-self: start;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.18em;
}

.scroll-cue i {
  position: relative;
  display: block;
  width: 76px;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.15);
}

.scroll-cue i::after {
  position: absolute;
  top: 0;
  left: -50%;
  width: 50%;
  height: 100%;
  content: "";
  background: var(--cyan);
  animation: cue 2s ease-in-out infinite;
}

@keyframes cue {
  to { transform: translateX(300%); }
}

.roadmap {
  min-height: 100svh;
  z-index: 1;
  margin-top: 0;
  padding-top: 130px;
  overflow: hidden;
  border-top: 1px solid rgba(24, 233, 255, 0.16);
  background:
    radial-gradient(ellipse at 74% 18%, rgba(38, 113, 255, 0.11), transparent 42%),
    radial-gradient(ellipse at 20% 0%, rgba(24, 233, 255, 0.035), transparent 34%),
    rgba(8, 14, 31, 0.58);
}

.roadmap::after {
  position: absolute;
  right: -6vw;
  top: 8%;
  color: rgba(144, 211, 255, 0.025);
  content: "02";
  font-family: var(--display);
  font-size: 38vw;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

.section-heading {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 40px;
  align-items: end;
  justify-content: space-between;
  max-width: 1440px;
  margin: 0 auto 80px;
}

.kicker {
  color: var(--cyan);
}

.section-heading h2,
.terminal-copy h2 {
  margin: 18px 0 0;
  font-family: var(--display);
  font-size: clamp(48px, 6vw, 94px);
  line-height: 0.9;
  letter-spacing: -0.065em;
  text-transform: uppercase;
}

.section-heading h2 em,
.terminal-copy h2 em {
  color: var(--cyan);
  font-style: normal;
  text-shadow: 0 0 22px rgba(24, 233, 255, 0.25);
}

.section-heading > p {
  max-width: 380px;
  margin: 0 0 4px;
  color: #95a4b6;
  font-size: 15px;
  line-height: 1.65;
}

.roadmap-track {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1440px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.roadmap-track::before {
  position: absolute;
  top: -2px;
  left: 0;
  width: 25%;
  height: 3px;
  content: "";
  background: var(--cyan);
  box-shadow: 0 0 16px var(--cyan);
}

.phase {
  position: relative;
  min-height: 470px;
  padding: 34px clamp(20px, 2.3vw, 38px);
  border-right: 1px solid var(--line);
  background: rgba(4, 8, 18, 0.52);
  transition: background 0.35s ease, transform 0.35s ease;
}

.phase:last-child {
  border-right: 0;
}

.phase:hover {
  z-index: 2;
  background: rgba(10, 29, 51, 0.88);
  transform: translateY(-10px);
}

.phase-index {
  color: rgba(211, 240, 255, 0.1);
  font-family: var(--display);
  font-size: 74px;
  font-weight: 800;
  line-height: 1;
}

.phase-status {
  display: flex;
  gap: 7px;
  align-items: center;
  margin: 22px 0 45px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.18em;
}

.phase-status i,
.live-pulse i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #647083;
}

.phase.is-live .phase-status,
.phase.is-live .phase-index {
  color: var(--cyan);
}

.phase.is-live .phase-status i,
.live-pulse i {
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  50% { opacity: 0.35; transform: scale(0.7); }
}

.phase h3 {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: clamp(23px, 2.2vw, 35px);
  letter-spacing: -0.045em;
}

.phase p {
  min-height: 100px;
  margin: 0;
  color: #93a2b5;
  font-size: 14px;
  line-height: 1.65;
}

.phase ul {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.phase li {
  color: #c2ccda;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.phase li::before {
  margin-right: 9px;
  color: var(--cyan);
  content: "+";
}

.terminal {
  display: grid;
  grid-template-columns: minmax(280px, 0.65fr) minmax(600px, 1.65fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
  min-height: 100svh;
  border-top: 1px solid rgba(24, 233, 255, 0.16);
  background: rgba(2, 6, 16, 0.34);
  box-shadow: inset 0 18px 34px -34px rgba(24, 233, 255, 0.65);
}

.terminal::before {
  position: absolute;
  top: 18%;
  left: 28%;
  z-index: -1;
  width: 52vw;
  height: 52vw;
  border: 1px solid rgba(24, 233, 255, 0.08);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 100px rgba(38, 113, 255, 0.08);
}

.terminal-copy p {
  max-width: 420px;
  margin: 28px 0;
  color: #95a4b6;
  font-size: 15px;
  line-height: 1.7;
}

.text-link {
  display: inline-flex;
  gap: 42px;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--cyan);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.text-link span {
  color: var(--cyan);
  font-size: 19px;
  transition: transform 0.25s ease;
}

.text-link:hover span {
  transform: translate(4px, -4px);
}

.dex-window {
  overflow: hidden;
  border: 1px solid rgba(127, 207, 255, 0.28);
  background: #060a13;
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
  box-shadow: 0 32px 100px rgba(0, 23, 90, 0.35);
}

.window-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(13, 21, 38, 0.9);
  font-size: 9px;
  letter-spacing: 0.15em;
}

.window-dots {
  display: flex;
  gap: 7px;
}

.window-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #334159;
}

.window-dots i:first-child { background: var(--cyan); }
.window-dots i:nth-child(2) { background: var(--blue); }
.window-title { color: #8595aa; }

.live-pulse {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-self: end;
  color: var(--cyan);
}

.iframe-shell {
  position: relative;
  display: block;
  height: min(69vh, 720px);
  min-height: 520px;
}

.iframe-shell iframe {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
  background: #050810;
}

.chart-placeholder {
  width: 100%;
  height: 100%;
  min-height: 520px;
  display: grid;
  place-content: center;
  border: 1px solid var(--line);
  background: #050810;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-align: center;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  padding: 36px clamp(22px, 5vw, 84px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-brand img {
  width: 38px;
  height: 38px;
}

.site-footer p {
  margin: 0;
}

.site-footer > span {
  justify-self: end;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  padding: 14px 18px;
  border: 1px solid var(--cyan);
  background: rgba(3, 12, 23, 0.94);
  color: var(--cyan);
  font-size: 10px;
  letter-spacing: 0.14em;
  transform: translateY(30px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
  }
  .hero h1 { display: block; font-size: clamp(45px, 6vw, 72px); }
  .hero h1 .line-2 { display: block; margin-top: 6px; }
  .action-card {
    grid-template-columns: 50px minmax(0, 1fr) auto;
    gap: 9px;
    min-height: 72px;
    padding: 8px 10px 8px 8px;
  }
  .action-icon { width: 50px; height: 50px; }
  .action-icon img { width: 43px; height: 43px; }
  .action-card small { font-size: 8px; }
  .action-card strong { font-size: 12px; letter-spacing: 0.04em; }
  .action-card b { font-size: 16px; }
  .roadmap-track { grid-template-columns: repeat(2, 1fr); }
  .phase:nth-child(2) { border-right: 0; }
  .phase:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .roadmap-track::before { width: 50%; }
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
    min-height: 68px;
    padding: 10px 18px;
  }

  .brand-copy { display: none; }
  .brand img { width: 42px; height: 42px; }

  .menu-toggle {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 6px;
    width: 42px;
    height: 42px;
    margin-right: 8px;
    padding: 13px 10px;
    border: 1px solid var(--line);
    background: transparent;
  }

  .menu-toggle > span:not(.sr-only) {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--white);
    transition: transform 0.25s ease;
  }

  .menu-toggle[aria-expanded="true"] > span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] > span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

  .site-nav {
    position: fixed;
    top: 68px;
    left: 0;
    display: grid;
    gap: 4px;
    width: 100%;
    padding: 22px;
    border-bottom: 1px solid var(--line);
    background: rgba(2, 3, 10, 0.97);
    transform: translateY(-140%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
  }

  .site-nav.open { transform: translateY(0); opacity: 1; }
  .site-nav a { padding: 14px 0; font-size: 14px; }
  .header-buy span { display: none; }
  .header-buy { padding: 6px; }

  .section { padding: 100px 22px; }

  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    height: 100svh;
    min-height: 640px;
    padding: 82px 16px 16px;
    overflow: hidden;
  }

  .hero-copy { order: 1; margin: 0; }
  .hero-copy { min-width: 0; max-width: 100%; }
  .hero-emblem { display: none; }
  .hero-visual {
    position: relative;
    inset: auto;
    order: 2;
    width: min(100%, 33svh, 300px);
    max-width: 300px;
    min-height: 0;
    aspect-ratio: 1;
    align-self: center;
    opacity: 1;
  }
  .hero-actions {
    order: 3;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    max-width: none;
    margin: 0;
  }
  .rail-label { grid-column: 1 / -1; margin: 0; }
  .action-card {
    grid-template-columns: 38px 1fr auto;
    gap: 8px;
    min-height: 58px;
    padding: 6px 9px 6px 6px;
  }
  .action-icon { width: 38px; height: 38px; }
  .action-icon img { width: 33px; height: 33px; }
  .action-icon svg { width: 17px; }
  .action-card small { font-size: 7px; }
  .action-card strong { font-size: 10px; letter-spacing: 0.03em; }
  .action-card b { font-size: 14px; }
  .hero h1 { margin: 0 0 10px; font-size: clamp(34px, 7.8vw, 60px); line-height: 0.87; }
  .hero h1 .line-2 { display: block; margin-top: 5px; font-size: 0.72em; }
  .hero-meta { grid-template-columns: 1fr auto; }
  .hero-meta p { font-size: 11px; line-height: 1.35; }
  .ticker-lockup strong { font-size: 25px; }

  .section-heading { display: block; margin-bottom: 50px; }
  .section-heading > p { margin-top: 28px; }
  .roadmap-track { grid-template-columns: 1fr; }
  .phase { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .phase:last-child { border-bottom: 0; }
  .phase p { min-height: 0; }
  .roadmap-track::before { width: 100%; }

  .terminal { grid-template-columns: 1fr; gap: 48px; }
  .iframe-shell { height: 620px; min-height: 0; }
  .site-footer { grid-template-columns: 1fr; justify-items: start; }
  .site-footer > span { justify-self: start; }
}

@media (max-width: 520px) {
  .hero-meta { grid-template-columns: 1fr auto; gap: 12px; }
  .ticker-lockup { margin-top: 0; padding-left: 10px; }
  .hero-visual { min-height: 0; aspect-ratio: 1; }
  .hero h1 { font-size: clamp(29px, 7.1vw, 37px); letter-spacing: -0.07em; }
  .hero h1 .line-2 { font-size: 0.72em; }
  .hero-visual figcaption { left: 14px; right: auto; gap: 11px; flex-direction: column; }
  .action-card:hover { transform: none; }
  .section-heading h2,
  .terminal-copy h2 { font-size: clamp(43px, 14vw, 66px); }
  .window-title { display: none; }
  .window-bar { grid-template-columns: 1fr 1fr; }
  .iframe-shell { height: 560px; }
  .site-footer p { line-height: 1.6; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}

[hidden] { display: none !important; }
