:root {
  --navy: #031526;
  --deep: #062544;
  --cobalt: #0a4d8c;
  --arc: #1a8cff;
  --ice: #8fd6ff;
  --mist: #d7eefe;
  --paper: #f4fbff;
  --ink: #e8f4ff;
  --mute: #9cb8d4;
  --line: rgba(143, 214, 255, 0.22);
  --glass: rgba(6, 28, 52, 0.62);
  --shadow: 0 24px 60px rgba(1, 10, 24, 0.45);
  --font: "Manrope", system-ui, sans-serif;
  --display: "Unbounded", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--arc) var(--navy);
}

body {
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background: var(--navy);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }

.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 18% -10%, rgba(26, 140, 255, 0.28), transparent 55%),
    radial-gradient(900px 520px at 88% 8%, rgba(143, 214, 255, 0.16), transparent 50%),
    linear-gradient(180deg, #04182c 0%, #052244 42%, #031526 100%);
}

.sky-wash {
  position: absolute;
  inset: -20%;
  background:
    conic-gradient(from 180deg at 50% 20%, transparent, rgba(26, 140, 255, 0.08), transparent 40%);
  animation: wash 18s linear infinite;
}

.sky-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  animation: drift 16s ease-in-out infinite;
}

.sky-orb-a { width: 340px; height: 340px; left: -80px; top: 18%; background: #1574d8; }
.sky-orb-b { width: 260px; height: 260px; right: -40px; top: 46%; background: #4ec4ff; animation-delay: -6s; }
.sky-orb-c { width: 200px; height: 200px; left: 42%; bottom: 8%; background: #0b3f78; animation-delay: -11s; }

.sky-grid {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(143, 214, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 214, 255, 0.16) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 78%);
}

#ion-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bolt {
  position: absolute;
  width: 92px;
  height: 320px;
  opacity: 0.22;
  filter: drop-shadow(0 0 12px #7ad4ff);
}

.bolt path {
  fill: url(#none);
  stroke: #b9ecff;
  stroke-width: 2;
  fill: #8fd6ff;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw-bolt 3.8s ease-in-out infinite;
}

.bolt-left { left: 3%; top: 12%; transform: rotate(-8deg); }
.bolt-right { right: 4%; top: 28%; transform: rotate(10deg); animation-delay: 1.4s; }
.bolt-right path { animation-delay: 1.4s; }

.topbar, main, footer, .drawer { position: relative; z-index: 1; }

.topbar {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 28px;
  backdrop-filter: blur(18px);
  background: rgba(3, 21, 38, 0.72);
  border-bottom: 1px solid var(--line);
  z-index: 8;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.04em;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(143, 214, 255, 0.35), 0 0 22px rgba(26, 140, 255, 0.45);
}

.nav {
  display: flex;
  gap: 22px;
  margin-left: 12px;
  font-size: 14px;
  color: var(--mute);
}

.nav a:hover { color: var(--paper); }

.rail {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.glyph {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(8, 40, 72, 0.7);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.glyph img { width: 16px; height: 16px; }
.glyph:hover {
  transform: translateY(-2px);
  border-color: var(--ice);
  box-shadow: 0 0 18px rgba(26, 140, 255, 0.45);
}

.buy, .ghost, .text-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
}

.buy {
  padding: 10px 16px;
  background: linear-gradient(180deg, #4db4ff, #1274e0);
  color: #f7fbff;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(18, 116, 224, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.buy img { width: 15px; height: 15px; filter: brightness(2); }
.buy:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(18, 116, 224, 0.5); }
.buy.solid { padding: 13px 20px; }

.ghost {
  padding: 11px 16px;
  border: 1px solid var(--line);
  background: rgba(6, 32, 58, 0.55);
  color: var(--mist);
}

.ghost img { width: 16px; height: 16px; }
.ghost:hover { border-color: var(--ice); color: white; }

.menu {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  place-items: center;
  gap: 6px;
  flex-direction: column;
}

.menu span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ice);
}

.drawer {
  display: none;
  flex-direction: column;
  gap: 14px;
  padding: 16px 28px 22px;
  background: rgba(3, 21, 38, 0.94);
  border-bottom: 1px solid var(--line);
}

.drawer[hidden] { display: none !important; }

main { padding: 0 28px 80px; }

.hero {
  max-width: 1180px;
  margin: 0 auto;
  min-height: calc(100vh - 80px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0 72px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ice);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7af0ff;
  box-shadow: 0 0 12px #7af0ff;
  animation: pulse 1.6s ease-in-out infinite;
}

h1 {
  font-family: var(--display);
  font-size: clamp(64px, 9vw, 108px);
  line-height: 0.88;
  letter-spacing: -0.03em;
}

.gloss, .gloss-sm {
  display: block;
  color: #fff;
  text-shadow:
    0 1px 0 #d7eeff,
    0 2px 0 #9ed6ff,
    0 3px 0 #5ab0ff,
    0 10px 28px rgba(20, 130, 255, 0.45);
}

.gloss.accent {
  background: linear-gradient(180deg, #ffffff 15%, #bfe8ff 52%, #4aa6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 10px 18px rgba(26, 140, 255, 0.35));
}

.gloss-sm {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.15;
}

.lede {
  margin: 22px 0 10px;
  font-size: 22px;
  font-weight: 600;
}

.sub {
  max-width: 520px;
  color: var(--mute);
  line-height: 1.65;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 26px;
}

.pills {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.pills div {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--glass);
}

.pills dt {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}

.pills dd { margin-top: 4px; font-weight: 700; }

.hero-mark { display: grid; place-items: center; }

.coil {
  position: relative;
  width: min(420px, 86vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  animation: float 5.5s ease-in-out infinite;
}

.coil img {
  width: 72%;
  border-radius: 50%;
  z-index: 2;
  filter: drop-shadow(0 20px 40px rgba(8, 70, 140, 0.55));
}

.ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(143, 214, 255, 0.28);
}

.ring-a {
  inset: 2%;
  border-width: 2px;
  border-color: transparent;
  border-top-color: #8fd6ff;
  border-right-color: rgba(143, 214, 255, 0.2);
  animation: spin 8s linear infinite;
  box-shadow: 0 0 30px rgba(80, 190, 255, 0.25);
}

.ring-b {
  inset: 8%;
  border-style: dashed;
  animation: spin 18s linear infinite reverse;
}

.ring-c {
  inset: -6%;
  border-color: rgba(26, 140, 255, 0.18);
  animation: pulse-ring 3.4s ease-in-out infinite;
}

.sparks {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 18% 22%, #fff, transparent 8%),
    radial-gradient(circle at 80% 30%, #b9ecff, transparent 7%),
    radial-gradient(circle at 70% 78%, #4db4ff, transparent 8%);
  animation: spark 2.8s ease-in-out infinite;
  pointer-events: none;
}

.mark-caption {
  margin-top: 18px;
  color: var(--mute);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-head { max-width: 760px; margin: 0 auto 36px; }
.section-head .text-btn { margin-top: 16px; }

.about, .howto, .chart, .join {
  max-width: 1180px;
  margin: 0 auto;
  padding: 88px 0 20px;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 28px;
  align-items: stretch;
}

.portrait-card, .signal, .step, .join-card, .chart-shell {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 48, 86, 0.55), rgba(4, 22, 42, 0.72));
  box-shadow: var(--shadow);
}

.portrait-card {
  border-radius: 28px;
  overflow: hidden;
}

.portrait-frame {
  aspect-ratio: 1;
  overflow: hidden;
  background: #0a63c7;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: slow-zoom 14s ease-in-out infinite alternate;
}

.portrait-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px 18px;
}

.portrait-meta img { width: 36px; border-radius: 50%; }
.portrait-meta span { display: block; color: var(--mute); font-size: 13px; }

.about-copy p {
  color: var(--mute);
  line-height: 1.75;
  margin-bottom: 16px;
}

.facts { list-style: none; display: grid; gap: 12px; margin-top: 22px; }

.facts li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(6, 32, 58, 0.5);
}

.facts img { width: 22px; margin-top: 2px; }
.facts span { display: block; color: var(--mute); font-size: 13px; margin-top: 3px; }

.signal-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.signal {
  border-radius: 22px;
  padding: 22px;
}

.signal h3 {
  font-family: var(--display);
  font-size: 18px;
  margin-bottom: 8px;
}

.signal p { color: var(--mute); line-height: 1.65; }

.still-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.still {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(4, 22, 42, 0.6);
  box-shadow: var(--shadow);
  aspect-ratio: 1;
}

.still img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.still:hover img { transform: scale(1.06); }

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.step {
  position: relative;
  border-radius: 24px;
  padding: 24px 20px 22px;
  overflow: hidden;
}

.step::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% 20%;
  height: 90px;
  background: radial-gradient(circle, rgba(26, 140, 255, 0.28), transparent 70%);
  pointer-events: none;
}

.step-num {
  font-family: var(--display);
  color: var(--ice);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.step-icon {
  width: 48px;
  height: 48px;
  margin: 14px 0 16px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(26, 140, 255, 0.12);
  border: 1px solid var(--line);
}

.step-icon img { width: 22px; }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--mute); line-height: 1.6; font-size: 14px; }

.text-btn {
  margin-top: 14px;
  color: var(--ice);
  font-weight: 700;
  font-size: 14px;
}

.text-btn img { width: 14px; }
.text-btn:hover { color: white; }

.chart-shell {
  border-radius: 28px;
  overflow: hidden;
  min-height: 640px;
  position: relative;
}

.chart-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(143, 214, 255, 0.2);
  z-index: 1;
}

.chart-shell iframe {
  width: 100%;
  height: 640px;
  border: 0;
  background: #0b1220;
}

.banner-wrap {
  aspect-ratio: 3 / 1;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow), 0 0 40px rgba(26, 140, 255, 0.18);
  position: relative;
}

.banner-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.22) 48%, transparent 62%);
  transform: translateX(-120%);
  animation: sheen 5.5s ease-in-out infinite;
}

.banner-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.join-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.join-card {
  border-radius: 22px;
  padding: 24px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.join-card img { width: 26px; margin-bottom: 16px; }
.join-card h3 { font-family: var(--display); margin-bottom: 8px; }
.join-card p { color: var(--mute); line-height: 1.6; }
.join-card:hover {
  transform: translateY(-6px);
  border-color: var(--ice);
}

.foot {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px;
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-size: 13px;
}

.foot .brand { color: var(--paper); }
.foot p { margin-right: auto; }

.rise {
  opacity: 0;
  transform: translateY(28px);
  animation: rise 0.9s ease forwards;
}

.delay { animation-delay: 0.16s; }
.delay-2 { animation-delay: 0.28s; }
.delay-3 { animation-delay: 0.4s; }

.in-view { animation-play-state: running; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes float {
  50% { transform: translateY(-12px); }
}

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

@keyframes pulse-ring {
  50% { transform: scale(1.04); opacity: 0.45; }
}

@keyframes drift {
  50% { transform: translate3d(24px, -30px, 0); }
}

@keyframes wash { to { transform: rotate(360deg); } }

@keyframes draw-bolt {
  0%, 18% { stroke-dashoffset: 900; opacity: 0.05; }
  40%, 62% { stroke-dashoffset: 0; opacity: 0.3; }
  100% { stroke-dashoffset: -900; opacity: 0.05; }
}

@keyframes spark {
  50% { opacity: 0.35; transform: scale(1.04); }
}

@keyframes sheen {
  0%, 35% { transform: translateX(-120%); }
  60%, 100% { transform: translateX(120%); }
}

@keyframes slow-zoom {
  to { transform: scale(1.08); }
}

@media (max-width: 980px) {
  .nav { display: none; }
  .buy { display: none; }
  .menu { display: flex; }
  .drawer { display: flex; }
  .hero, .about-grid, .steps, .signal-row, .join-grid, .pills, .still-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero { grid-template-columns: 1fr; text-align: left; min-height: auto; }
  .steps { grid-template-columns: 1fr 1fr; }
  .foot { flex-wrap: wrap; }
}

@media (max-width: 680px) {
  main { padding: 0 16px 64px; }
  .topbar { padding: 12px 16px; }
  .rail .glyph:nth-child(2), .rail .glyph:nth-child(3) { display: none; }
  .pills, .signal-row, .steps, .join-grid, .about-grid {
    grid-template-columns: 1fr;
  }
  h1 { font-size: 58px; }
  .chart-shell, .chart-shell iframe { min-height: 480px; height: 480px; }
  .banner-wrap { border-radius: 18px; }
}
