/* ============ Rayphase — design system ============ */
:root {
  --bg: #070D16;
  --bg-raise: #0A1420;
  --ink: #EAF2F9;
  --ink-dim: #94A8BC;
  --cyan: #38E1FF;
  --blue: #4F7CFF;
  --grad: linear-gradient(135deg, var(--cyan), var(--blue));
  --line: rgba(148, 168, 188, 0.16);
  --maxw: 1160px;
  --nav-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', 'SF Pro Display', 'Segoe UI', Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ============ starfield canvas ============ */
#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* everything above the stars */
.nav, main, .footer { position: relative; z-index: 1; }

/* ============ nav ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 13, 22, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: var(--nav-h);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark { height: 34px; width: auto; }
.brand-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.42em;
  padding-left: 0.42em; /* optically recenter */
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }

/* ============ buttons ============ */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s, color 0.2s;
}
.btn-primary {
  background: var(--grad);
  color: #04111A;
  box-shadow: 0 4px 24px rgba(56, 225, 255, 0.25);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(56, 225, 255, 0.38);
}
.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(234, 242, 249, 0.03);
}
.btn-ghost:hover { border-color: rgba(148, 168, 188, 0.45); }
.nav-links .btn-ghost { padding: 9px 20px; font-size: 14px; }

/* ============ hero ============ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 40px) 24px 60px;
  position: relative;
}
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
}
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}
h1 {
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--ink-dim);
  max-width: 54ch;
  margin-bottom: 36px;
}
.cta-row { display: flex; gap: 16px; flex-wrap: wrap; }
.cta-row.center { justify-content: center; }

/* hero art: the logo, with a breathing horizon and a pinging satellite */
.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  max-width: 460px;
  margin: 0 auto;
}
.hero-mark {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 0 60px rgba(56, 225, 255, 0.18));
}

.mark-wrap { position: relative; width: 100%; }

/* horizon: a soft halo breathing over the planet's rim */
.horizon-halo {
  position: absolute;
  left: 14%; top: 8%;
  width: 46%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 225, 255, 0.20), transparent 65%);
  opacity: 0;
  animation: horizon-breathe 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes horizon-breathe {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

/* satellite: a soft radar ping expanding from the dot */
.sat-ping {
  position: absolute;
  left: 92.8%; top: 17%;
  width: 5%; aspect-ratio: 1;
  margin: -2.5% 0 0 -2.5%;
  border: 2px solid #38E1FF;
  border-radius: 50%;
  opacity: 0;
  animation: ping 4.5s ease-out infinite;
  pointer-events: none;
}
.sat-ping-2 { animation-delay: 2.25s; }
@keyframes ping {
  0% { transform: scale(0.6); opacity: 0.7; }
  70%, 100% { transform: scale(3.4); opacity: 0; }
}

/* compact hero (secondary pages) */
.hero-compact { min-height: 56vh; }
.hero-compact .hero-inner { grid-template-columns: 1fr; }

/* contact small print */
.contact-note {
  margin-top: 30px;
  font-size: 14px;
  color: var(--ink-dim);
}
.contact-note a { color: var(--cyan); text-decoration: none; }

/* scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1.5px solid rgba(148, 168, 188, 0.4);
  border-radius: 14px;
  display: block;
}
.scroll-hint span {
  position: absolute;
  top: 7px; left: 50%;
  width: 3px; height: 8px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--cyan);
  animation: drip 2s ease-in-out infinite;
}
@keyframes drip {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(14px); opacity: 0; }
}

/* ============ stats band ============ */
.stats { border-block: 1px solid var(--line); background: rgba(10, 20, 32, 0.5); }
.stats-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 44px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat { text-align: center; }
.stat strong {
  display: block;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 6px;
}
.stat span { font-size: 14px; color: var(--ink-dim); }

/* ============ sections ============ */
.section { padding: 110px 24px; }
.section-alt { background: rgba(10, 20, 32, 0.45); border-block: 1px solid var(--line); }
.section-inner { max-width: var(--maxw); margin: 0 auto; }
.section-inner.narrow { max-width: 760px; }
.section-inner.center { text-align: center; }
h2 {
  font-size: clamp(30px, 3.8vw, 46px);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.section p { color: var(--ink-dim); }

/* cards */
.cards {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  padding: 34px 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(10, 20, 32, 0.55);
  backdrop-filter: blur(6px);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 225, 255, 0.35);
}
.card-icon {
  width: 52px; height: 52px;
  margin-bottom: 22px;
  color: var(--cyan);
}
.card-icon svg { width: 100%; height: 100%; }
.card h3 { font-size: 19px; font-weight: 650; margin-bottom: 10px; }
.card p { font-size: 15px; }

/* split layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.checklist {
  list-style: none;
  margin-top: 26px;
  display: grid;
  gap: 12px;
}
.checklist li {
  padding-left: 30px;
  position: relative;
  color: var(--ink-dim);
  font-size: 15.5px;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 14px; height: 8px;
  border-left: 2.5px solid var(--cyan);
  border-bottom: 2.5px solid var(--cyan);
  transform: rotate(-45deg);
}

/* animated phase waves */
.wave-svg {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(7, 13, 22, 0.7);
}
.wave { animation: travel 5s linear infinite; }
.wave-b { animation-duration: 7s; }
@keyframes travel { to { transform: translateX(-160px); } }
.wave-caption {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--ink-dim);
  text-align: center;
}

/* CTA */
.section-cta {
  background:
    radial-gradient(ellipse 60% 80% at 50% 110%, rgba(56, 225, 255, 0.12), transparent),
    rgba(10, 20, 32, 0.45);
  border-top: 1px solid var(--line);
}
.section-cta .cta-row { margin-top: 34px; }

/* ============ shared section copy ============ */
.section-lede { max-width: 70ch; font-size: 17px; margin-bottom: 8px; }
.section-note {
  margin-top: 44px;
  font-size: 15px;
  color: var(--ink-dim);
  border-left: 3px solid var(--cyan);
  padding-left: 18px;
  max-width: 72ch;
}

/* chips (why-now timeframes) */
.chip {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0.08em;
  color: var(--cyan);
  border: 1px solid rgba(56, 225, 255, 0.35);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 18px;
}

/* ============ timeline (technology roadmap) ============ */
.timeline {
  list-style: none;
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: phase;
}
.timeline li {
  position: relative;
  padding: 30px 26px 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(7, 13, 22, 0.6);
  counter-increment: phase;
}
.timeline li::before {
  content: counter(phase);
  position: absolute;
  top: -16px;
  left: 24px;
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  color: #04111A;
  background: var(--grad);
  border-radius: 50%;
}
.timeline-when {
  display: block;
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
}
.timeline h3 { font-size: 18px; margin-bottom: 8px; }
.timeline p { font-size: 14.5px; }

/* ============ market tiers ============ */
.tiers { margin-top: 56px; display: grid; gap: 26px; }
.tier {
  display: grid;
  grid-template-columns: minmax(180px, 38%) 1fr;
  gap: 28px;
  align-items: center;
}
.tier-bar {
  height: 64px;
  width: var(--w);
  min-width: 130px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(56, 225, 255, 0.22), rgba(79, 124, 255, 0.22));
  border: 1px solid rgba(56, 225, 255, 0.35);
  display: flex;
  align-items: center;
  padding: 0 22px;
}
.tier-bar strong {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tier-label h3 { font-size: 17px; margin-bottom: 4px; }
.tier-label p { font-size: 14.5px; }

/* unit economics strip */
.econ {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  border-top: 1px solid var(--line);
  padding-top: 40px;
}
.econ-item strong {
  display: block;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 6px;
}
.econ-item span { font-size: 13.5px; color: var(--ink-dim); }

/* ============ team ============ */
.team {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.member {
  padding: 34px 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(10, 20, 32, 0.55);
}
.member h3 { font-size: 21px; margin-bottom: 4px; }
.member-role {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}
.member p:not(.member-role) { font-size: 15px; }

/* ============ investor ask ============ */
.ask {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.ask-stat {
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(7, 13, 22, 0.6);
  text-align: center;
}
.ask-stat strong {
  display: block;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 6px;
}
.ask-stat span { font-size: 13.5px; color: var(--ink-dim); }

/* use-of-funds allocation bar */
.alloc { margin-top: 44px; }
.alloc-bar {
  display: flex;
  height: 18px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.alloc-bar span { width: var(--w); display: block; }
.a1 { background: #38E1FF; }
.a2 { background: #4F7CFF; }
.a3 { background: #7C5CFF; }
.a4 { background: #2C5C8A; }
.a5 { background: #6B8BA6; }
.alloc-legend {
  list-style: none;
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-size: 13.5px;
  color: var(--ink-dim);
}
.alloc-legend i {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 3px;
  margin-right: 8px;
}

/* ============ footer ============ */
.footer { border-top: 1px solid var(--line); }
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 36px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer .brand-mark { height: 26px; width: auto; }
.footer .brand-name { font-size: 12.5px; }
.footer p { font-size: 13.5px; color: var(--ink-dim); }

/* ============ reveal animation (JS-gated: no-JS users see everything) ============ */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.visible { opacity: 1; transform: none; }

/* ============ responsive ============ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy .cta-row { justify-content: center; }
  .lede { margin-inline: auto; }
  .hero-art { max-width: 320px; order: -1; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .nav-links a:not(.btn) { display: none; }
  .timeline { grid-template-columns: 1fr; gap: 34px; }
  .tier { grid-template-columns: 1fr; gap: 14px; }
  .econ { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: 1fr; }
  .ask { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .horizon-halo, .sat-ping, .wave, .scroll-hint span { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
