* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--void);
  color-scheme: dark;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--void);
  color: var(--bone);
  font-family: "Satoshi", system-ui, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-line);
  border-radius: var(--r-lg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 24px 60px -20px rgba(0,0,0,0.7);
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  pointer-events: none;
}

.nav-shell {
  position: relative;
  width: min(1240px, calc(100% - 34px));
  min-height: 126px;
  margin: 16px auto 0;
  padding: 8px 16px 8px 18px;
  display: grid;
  grid-template-columns: minmax(300px, 390px) 1fr auto;
  align-items: center;
  column-gap: 24px;
  pointer-events: auto;
  background: rgba(6,13,20,0.54);
  border-color: rgba(232,239,242,0.10);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: clamp(310px, 27vw, 390px);
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 0 20px rgba(53,214,232,0.12));
}

.desktop-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 34px);
  white-space: nowrap;
}

.desktop-nav a,
.footer-links a {
  color: var(--ash);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 180ms ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--bone);
}

.nav-cta,
.mobile-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(53,214,232,0.30);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(53,214,232,0.14), rgba(34,224,107,0.12));
  color: var(--bone);
  font-family: "Satoshi", system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  appearance: none;
  width: 42px;
  height: 42px;
  padding: 10px 7px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  margin: 5px auto;
  border-radius: 4px;
  background: var(--bone);
  transition: transform 180ms ease, opacity 180ms ease;
}

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

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

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

.mobile-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(330px, calc(100vw - 34px));
  padding: 12px;
  background: rgba(6,13,20,0.92);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu a {
  display: flex;
  min-height: 48px;
  align-items: center;
  padding: 0 14px;
  border-radius: 12px;
  color: var(--ash);
  font-weight: 600;
}

.mobile-menu a:focus-visible,
.mobile-menu a:hover {
  color: var(--bone);
  background: rgba(255,255,255,0.04);
}

.mobile-menu .mobile-cta {
  margin-top: 6px;
  color: var(--bone);
}

.hero {
  position: relative;
  min-height: max(820px, 100svh);
  overflow: hidden;
  isolation: isolate;
  background: var(--void);
}

.hero-backdrop,
.hero-backdrop img,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-backdrop {
  z-index: -3;
  display: block;
}

.hero-backdrop img {
  display: block;
  object-fit: cover;
  object-position: center 58%;
  opacity: 0.88;
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(6,13,20,0.98) 0%, rgba(6,13,20,0.88) 33%, rgba(6,13,20,0.46) 58%, rgba(6,13,20,0.18) 100%),
    linear-gradient(180deg, rgba(6,13,20,0.18) 0%, rgba(6,13,20,0.06) 56%, rgba(6,13,20,0.72) 100%);
}

.hero-inner {
  position: relative;
  width: min(1240px, calc(100% - 48px));
  min-height: max(820px, 100svh);
  margin: 0 auto;
  padding: 190px 0 82px;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(420px, 0.84fr);
  align-items: center;
  gap: clamp(24px, 4vw, 68px);
}

.hero-copy {
  position: relative;
  z-index: 4;
  max-width: 720px;
  padding-bottom: 32px;
}

.hero-eyebrow {
  margin: 0 0 22px;
  color: var(--cyan);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  margin: 0 12px 4px 0;
  background: linear-gradient(90deg, var(--cyan), var(--signal));
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--bone);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: clamp(3.45rem, 6.1vw, 6.3rem);
  line-height: 0.93;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.hero-sub {
  max-width: 660px;
  margin: 28px 0 0;
  color: #a9bac4;
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-button {
  min-height: 52px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.hero-button:hover,
.hero-button:focus-visible {
  transform: translateY(-2px);
}

.hero-button--primary {
  border: 1px solid rgba(53,214,232,0.48);
  background: linear-gradient(135deg, rgba(53,214,232,0.94), rgba(34,224,107,0.94));
  color: #041016;
  box-shadow: 0 14px 42px -20px rgba(34,224,107,0.8);
}

.hero-button--secondary {
  border: 1px solid rgba(232,239,242,0.16);
  background: rgba(6,13,20,0.46);
  color: var(--bone);
  backdrop-filter: blur(12px);
}

.gate-stage {
  position: relative;
  z-index: 3;
  align-self: stretch;
  min-height: 560px;
  max-height: 650px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(14,26,36,0.10), rgba(14,26,36,0.26));
  border: 1px solid rgba(232,239,242,0.055);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 34px 80px -42px rgba(0,0,0,0.9);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 9%, #000 92%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 9%, #000 92%, transparent 100%);
}

.gate-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.gate-line {
  position: absolute;
  left: 5%;
  right: 5%;
  top: 57%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(53,214,232,0.62) 24%, rgba(34,224,107,0.72) 72%, transparent);
  box-shadow: 0 0 18px rgba(53,214,232,0.25), 0 0 34px rgba(34,224,107,0.12);
  pointer-events: none;
}

.gate-caption {
  position: absolute;
  z-index: 2;
  top: 53.4%;
  left: 7%;
  right: 7%;
  display: flex;
  justify-content: space-between;
  color: rgba(232,239,242,0.48);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  pointer-events: none;
}

.gate-caption__ratio {
  color: rgba(34,224,107,0.62);
}

.future-anchor-stage {
  position: relative;
  height: 1px;
  overflow: visible;
  background: var(--void);
}

.anchor-target {
  position: absolute;
  top: -120px;
  left: 0;
}

.anchor-target--mid { left: 20%; }
.anchor-target--low { left: 40%; }
.anchor-target--bottom { left: 60%; }
.anchor-target--start { left: 80%; }

.site-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  background: #050B10;
}

.footer-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 210px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  grid-template-areas: "brand links" "brand note";
  align-items: center;
  gap: 10px 40px;
  padding-block: 38px;
}

.footer-brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
}

.footer-brand img {
  display: block;
  width: min(330px, 100%);
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.footer-links {
  grid-area: links;
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-note {
  grid-area: note;
  justify-self: end;
  margin: 0;
  color: #5f727f;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

@media (max-width: 1080px) {
  .nav-shell {
    grid-template-columns: minmax(260px, 335px) 1fr auto;
    column-gap: 16px;
  }

  .brand-logo {
    width: clamp(275px, 30vw, 335px);
  }

  .desktop-nav {
    gap: 18px;
  }

  .desktop-nav a {
    font-size: 0.8rem;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.7fr);
    gap: 24px;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 6.2vw, 5rem);
  }
}

@media (max-width: 860px) {
  .nav-shell {
    width: min(100% - 24px, 760px);
    min-height: 106px;
    margin-top: 10px;
    padding: 7px 9px 7px 14px;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 8px;
    border-radius: 20px;
  }

  .brand-logo {
    width: clamp(230px, 61vw, 310px);
    height: auto;
  }

  .desktop-nav,
  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    min-height: 850px;
  }

  .hero-backdrop img {
    object-position: 66% center;
    opacity: 0.72;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(6,13,20,0.96) 0%, rgba(6,13,20,0.88) 34%, rgba(6,13,20,0.30) 62%, rgba(6,13,20,0.80) 100%),
      linear-gradient(90deg, rgba(6,13,20,0.78), rgba(6,13,20,0.22));
  }

  .hero-inner {
    width: min(100% - 32px, 720px);
    min-height: 850px;
    padding: 150px 0 34px;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(280px, 1fr);
    align-items: start;
    gap: 12px;
  }

  .hero-copy {
    max-width: 650px;
    padding-bottom: 4px;
  }

  .hero-eyebrow {
    margin-bottom: 15px;
  }

  .hero h1 {
    max-width: 620px;
    font-size: clamp(2.75rem, 10vw, 4.7rem);
    line-height: 0.96;
  }

  .hero-sub {
    max-width: 610px;
    margin-top: 20px;
    font-size: 1rem;
    line-height: 1.55;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .hero-button {
    min-height: 48px;
  }

  .gate-stage {
    min-height: 300px;
    max-height: 340px;
    width: min(100%, 600px);
    justify-self: center;
    margin: 0;
    border-radius: 24px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    grid-template-areas: "brand" "links" "note";
    gap: 24px;
    align-items: start;
    padding-block: 34px;
  }

  .footer-brand img {
    width: min(310px, 84vw);
  }

  .footer-links,
  .footer-note {
    justify-self: start;
  }
}

@media (max-width: 520px) {
  .hero {
    min-height: 820px;
  }

  .hero-inner {
    width: calc(100% - 26px);
    min-height: 820px;
    padding-top: 132px;
    grid-template-rows: auto 270px;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 12.4vw, 3.65rem);
  }

  .hero-sub {
    margin-top: 17px;
    font-size: 0.94rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-top: 20px;
  }

  .hero-button {
    min-height: 46px;
    padding: 0 12px;
    font-size: 0.78rem;
    text-align: center;
  }

  .gate-stage {
    min-height: 250px;
    max-height: 270px;
  }
}

@media (max-width: 420px) {
  .nav-shell {
    width: calc(100% - 16px);
    min-height: 92px;
    padding-left: 10px;
  }

  .brand-logo {
    width: min(240px, calc(100vw - 84px));
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
  }

  .mobile-menu {
    width: calc(100vw - 16px);
    right: -1px;
  }

  .hero-inner {
    padding-top: 116px;
  }

  .hero-eyebrow {
    font-size: 0.69rem;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 12vw, 3.2rem);
  }

  .hero-actions {
    grid-template-columns: 1fr;
  }

  .gate-stage {
    min-height: 235px;
  }

  .footer-inner {
    width: calc(100% - 30px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  .hero-button:hover,
  .hero-button:focus-visible { transform: none; }
}
