:root {
  --bg: #05070c;
  --panel: rgba(8, 11, 18, 0.66);
  --panel-strong: rgba(7, 10, 16, 0.86);
  --text: #eef1f5;
  --muted: #a5acb7;
  --faint: #737b87;
  --line: rgba(255, 255, 255, 0.14);
  --line-soft: rgba(255, 255, 255, 0.075);
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background: transparent;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
}

::selection {
  background: #dbe2ec;
  color: #0a0d12;
}

.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-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-160%);
  padding: 9px 12px;
  background: #f5f5f5;
  color: #111;
  text-decoration: none;
  font-size: 12px;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Fixed background. Keep it above the html canvas, never behind body. */
.space-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #070a10;
}

.space-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.58) brightness(0.62) contrast(1.08);
  transform: scale(1.02);
}

.space-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 6, 11, 0.28) 0%, rgba(3, 6, 11, 0.48) 52%, rgba(3, 6, 11, 0.78) 100%),
    linear-gradient(90deg, rgba(2, 5, 10, 0.56) 0%, rgba(2, 5, 10, 0.16) 48%, rgba(2, 5, 10, 0.35) 100%);
}

.space-noise {
  position: absolute;
  inset: 0;
  opacity: 0.025;
  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='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.72'/%3E%3C/svg%3E");
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 clamp(18px, 4vw, 54px);
  border-bottom: 1px solid transparent;
  transition: height 180ms ease, background 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  height: 62px;
  background: rgba(5, 8, 13, 0.86);
  border-bottom-color: var(--line-soft);
  backdrop-filter: blur(16px);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f5f6f8;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.035em;
  white-space: nowrap;
}

.brand-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d9dfe8;
  box-shadow: 0 0 0 4px rgba(217, 223, 232, 0.07);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.site-nav a {
  color: #b3bac5;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.035em;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #fff;
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 14px;
}

.video-toggle {
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 5px 0;
  background: transparent;
  color: #929aa6;
  cursor: pointer;
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.video-toggle:hover,
.video-toggle:focus-visible {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.45);
}

.menu-button {
  display: none;
}

/* Shared width */
.hero-inner,
.hero-meta,
.section-shell,
.join-shell,
.quote-section blockquote,
.site-footer {
  width: min(calc(100% - 40px), var(--max));
  margin-left: auto;
  margin-right: auto;
}

/* Hero */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 116px 0 34px;
}

.hero-inner {
  margin-top: auto;
  padding-bottom: clamp(48px, 8vh, 92px);
}

.eyebrow {
  margin: 0 0 20px;
  color: #a4abb6;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 920px;
  color: #f4f5f7;
  font-size: clamp(64px, 11vw, 154px);
  font-weight: 520;
  letter-spacing: -0.07em;
  line-height: 0.9;
  overflow-wrap: anywhere;
}

.hero-copy {
  max-width: 760px;
  margin: 34px 0 0;
  color: #c8cdd5;
  font-size: clamp(16px, 1.55vw, 21px);
  line-height: 1.85;
  letter-spacing: -0.01em;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.primary-link {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(8, 11, 18, 0.38);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.035em;
  backdrop-filter: blur(10px);
}

.primary-link:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.62);
}

.text-link {
  color: #b7bec8;
  text-decoration: none;
  font-size: 12px;
}

.text-link:hover {
  color: #fff;
}

.text-link span {
  margin-left: 8px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 8, 13, 0.34);
  backdrop-filter: blur(7px);
}

.hero-meta > div {
  min-width: 0;
  min-height: 84px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 15px 20px;
  border-right: 1px solid var(--line-soft);
}

.hero-meta > div:last-child {
  border-right: 0;
}

.hero-meta span {
  color: #7f8793;
  font-size: 10px;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.hero-meta strong {
  min-width: 0;
  margin-top: 5px;
  color: #e9ebef;
  font-size: 15px;
  font-weight: 520;
  overflow-wrap: anywhere;
}

.hero-meta .status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-meta .status i {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #a7c7b0;
}

/* Content */
.content-section {
  padding: clamp(64px, 9vw, 132px) 0;
  background: linear-gradient(180deg, rgba(5, 8, 13, 0.12), rgba(5, 8, 13, 0.3));
}

.content-section + .content-section {
  background: rgba(5, 8, 13, 0.3);
}

.section-shell {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(34px, 5vw, 64px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line-soft);
}

.section-index {
  padding-top: 5px;
  color: #717986;
  font-size: 11px;
  letter-spacing: 0.09em;
}

.section-copy {
  min-width: 0;
}

.section-copy h2 {
  max-width: 900px;
  margin: 0;
  color: #f1f3f6;
  font-size: clamp(36px, 5.8vw, 76px);
  font-weight: 460;
  letter-spacing: -0.05em;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: clamp(42px, 8vw, 112px);
  margin-top: clamp(48px, 7vw, 88px);
}

.lead {
  margin: 0;
  max-width: 700px;
  color: #d1d5db;
  font-size: clamp(20px, 2.45vw, 32px);
  line-height: 1.65;
  letter-spacing: -0.025em;
}

.body-copy {
  color: #a2a9b4;
  font-size: 14px;
  line-height: 2.05;
}

.body-copy p {
  margin: 0 0 24px;
}

.body-copy span {
  color: #e1e5ea;
}

.feature-list {
  margin-top: clamp(52px, 7vw, 92px);
  border-top: 1px solid var(--line);
}

.feature-list article {
  display: grid;
  grid-template-columns: 62px minmax(150px, 0.65fr) minmax(0, 1.35fr);
  gap: 22px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--line-soft);
}

.feature-list article > span {
  color: #69727e;
  font-size: 10px;
  letter-spacing: 0.075em;
}

.feature-list h3 {
  margin: 0;
  color: #e8ebef;
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 460;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.feature-list p {
  max-width: 620px;
  margin: 0;
  color: #9aa2ae;
  font-size: 14px;
  line-height: 1.9;
}

.quote-section {
  padding: clamp(80px, 12vw, 170px) 0;
  background: rgba(4, 7, 12, 0.18);
}

.quote-section blockquote {
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
}

.quote-section blockquote p {
  max-width: 1040px;
  margin: 0;
  color: rgba(239, 242, 246, 0.93);
  font-size: clamp(34px, 5.8vw, 76px);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1.22;
}

.quote-section blockquote footer {
  margin-top: 30px;
  color: #7c8490;
  font-size: 10px;
  letter-spacing: 0.13em;
}

.join-section {
  padding: clamp(76px, 9vw, 126px) 0 clamp(90px, 11vw, 150px);
  background: linear-gradient(180deg, rgba(5, 8, 13, 0.28), rgba(5, 8, 13, 0.58));
}

.join-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 42px;
  align-items: end;
  padding: clamp(32px, 5vw, 58px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.join-shell h2 {
  max-width: 760px;
  margin: 0;
  color: #f1f3f6;
  font-size: clamp(36px, 5vw, 66px);
  font-weight: 460;
  letter-spacing: -0.05em;
  line-height: 1.08;
}

.join-shell p:not(.eyebrow) {
  max-width: 600px;
  margin: 24px 0 0;
  color: #9fa6b1;
  font-size: 14px;
}

.join-button {
  width: 220px;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 19px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.035);
  color: #f1f3f5;
  text-decoration: none;
  font-size: 12px;
  backdrop-filter: blur(10px);
}

.join-button:hover:not([aria-disabled="true"]) {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.52);
}

.join-button[aria-disabled="true"] {
  opacity: 0.5;
  cursor: default;
}

.site-footer {
  min-height: 112px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 28px;
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid var(--line-soft);
  color: #7a828e;
  font-size: 10px;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.site-footer > div {
  display: flex;
  align-items: baseline;
  gap: 11px;
}

.site-footer strong {
  color: #d6dae0;
  font-size: 12px;
  font-weight: 600;
}

.site-footer p,
.site-footer span {
  margin: 0;
}

/* Reveal is progressive enhancement: content stays visible if JS fails. */
[data-reveal] {
  opacity: 1;
  transform: none;
}

body.motion-ready [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 520ms ease, transform 520ms ease;
}

body.motion-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    position: fixed;
    top: 62px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 20px 22px;
    background: rgba(5, 8, 13, 0.97);
    border-bottom: 1px solid var(--line-soft);
    backdrop-filter: blur(16px);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .menu-button {
    width: 32px;
    height: 32px;
    display: grid;
    place-content: center;
    gap: 5px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-button > span:not(.sr-only) {
    width: 18px;
    height: 1px;
    display: block;
    background: #d7dbe1;
  }

  .hero-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-meta > div:nth-child(2) {
    border-right: 0;
  }

  .hero-meta > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line-soft);
  }

  .body-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .join-shell {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 620px) {
  .site-header,
  .site-header.is-scrolled {
    height: 58px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .site-nav {
    top: 58px;
  }

  .video-toggle {
    display: none;
  }

  .hero {
    min-height: 100svh;
    padding: 102px 0 22px;
  }

  .hero-inner,
  .hero-meta,
  .section-shell,
  .join-shell,
  .quote-section blockquote,
  .site-footer {
    width: min(calc(100% - 36px), var(--max));
  }

  .hero h1 {
    font-size: clamp(58px, 21vw, 96px);
    line-height: 0.94;
  }

  .hero-copy {
    margin-top: 28px;
  }

  .hero-copy br {
    display: none;
  }

  .hero-actions {
    gap: 17px;
  }

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

  .hero-meta > div {
    min-height: 74px;
    padding: 13px;
  }

  .section-shell {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .section-index {
    padding-top: 0;
  }

  .feature-list article {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 13px;
  }

  .feature-list p {
    grid-column: 2;
  }

  .join-button {
    width: 100%;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 26px 0;
  }

  .site-footer > div {
    flex-direction: column;
    gap: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body.motion-ready [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}