/* NXT Cloud — black and baby blue */

:root {
  --black: #020409;
  --ink: #060c15;
  --navy: #0b1626;
  --navy-2: #102038;
  --line: #16283d;
  --line-strong: #24405c;
  --sky: #89cff0;
  --mist: #dcf1fc;
  --slate: #93a8bb;
  --electric: #1e9bff;
  --display: "Unbounded", "Trebuchet MS", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1180px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--black);
  color: var(--mist);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--max), 100% - 3rem); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--sky); color: #04121c; padding: 0.6rem 1rem; border-radius: 8px; font-weight: 600;
}
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.85rem 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; line-height: 1;
  border: 1px solid transparent; cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--sky); color: #04121c; }
.btn-primary:hover { background: var(--mist); }
.btn-ghost { border-color: var(--line-strong); color: var(--mist); }
.btn-ghost:hover { border-color: var(--sky); color: var(--sky); }
.btn-sm { padding: 0.65rem 1.15rem; font-size: 0.88rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(2, 4, 9, 0.78);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1.5rem; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand img { width: 46px; height: 46px; mix-blend-mode: screen; }
.brand span { font-family: var(--display); font-weight: 500; font-size: 1rem; letter-spacing: 0.05em; }

.nav { display: flex; align-items: center; gap: 1.75rem; font-size: 0.93rem; color: var(--slate); }
.nav a { transition: color 0.2s; }
.nav a:hover { color: var(--mist); }
.nav a[aria-current="page"] { color: var(--sky); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-strong);
  color: var(--mist); border-radius: 10px; padding: 0.5rem 0.7rem; cursor: pointer; font: inherit; font-size: 0.9rem;
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: 4.5rem 0 11rem; isolation: isolate; background: var(--black); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; z-index: -1; background: linear-gradient(180deg, transparent, var(--black)); pointer-events: none; }

.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image:
    radial-gradient(1.5px 1.5px at 8% 22%, rgba(220, 241, 252, 0.7), transparent),
    radial-gradient(1px 1px at 17% 64%, rgba(220, 241, 252, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 31% 12%, rgba(137, 207, 240, 0.7), transparent),
    radial-gradient(1px 1px at 44% 38%, rgba(220, 241, 252, 0.45), transparent),
    radial-gradient(1px 1px at 52% 78%, rgba(220, 241, 252, 0.4), transparent),
    radial-gradient(1.5px 1.5px at 63% 18%, rgba(220, 241, 252, 0.6), transparent),
    radial-gradient(1px 1px at 74% 52%, rgba(137, 207, 240, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 88% 30%, rgba(220, 241, 252, 0.6), transparent),
    radial-gradient(1px 1px at 93% 72%, rgba(220, 241, 252, 0.4), transparent),
    radial-gradient(1px 1px at 3% 84%, rgba(220, 241, 252, 0.4), transparent);
}

.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2rem; align-items: center; }

.hero h1 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.1; letter-spacing: -0.03em;
  color: #fff;
}
.hero .lede { margin-top: 1.6rem; max-width: 34rem; font-size: 1.15rem; color: var(--slate); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.2rem; }
.hero-note { margin-top: 1.4rem; font-size: 0.92rem; color: var(--slate); display: flex; align-items: center; gap: 0.6rem; }
.hero-note i { width: 8px; height: 8px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 4px rgba(137, 207, 240, 0.18); }

.scene { position: relative; width: min(100%, 540px); margin-inline: auto; aspect-ratio: 1; }
.scene .glow {
  position: absolute; inset: 6%; border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 155, 255, 0.42) 0%, rgba(30, 155, 255, 0.12) 45%, transparent 70%);
  filter: blur(18px);
}
.scene .logo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  mix-blend-mode: screen; animation: float 9s ease-in-out infinite;
}
.scene .orbits { position: absolute; inset: -4%; width: 108%; height: 108%; animation: spin 90s linear infinite; }

.clouds { position: absolute; left: 0; right: 0; bottom: 0; height: 380px; z-index: -1; pointer-events: none; }
.cloud {
  position: absolute; bottom: 0; border-radius: 50%; filter: blur(34px);
  background: radial-gradient(ellipse at center, rgba(137, 207, 240, 0.34) 0%, rgba(30, 110, 190, 0.22) 45%, transparent 72%);
}
.cloud.c1 { left: -10%; width: 55%; height: 240px; animation: drift 46s ease-in-out infinite alternate; }
.cloud.c2 { left: 22%; width: 60%; height: 300px; bottom: -70px; opacity: 0.85; animation: drift 62s ease-in-out infinite alternate-reverse; }
.cloud.c3 { right: -12%; width: 58%; height: 260px; animation: drift 54s ease-in-out infinite alternate; }
.cloud.c4 { left: 8%; width: 84%; height: 150px; bottom: -40px;
  background: radial-gradient(ellipse at center, rgba(11, 22, 38, 0.95) 0%, rgba(11, 22, 38, 0.6) 55%, transparent 75%);
  animation: none; filter: blur(22px);
}

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { from { transform: translateX(-4%); } to { transform: translateX(6%); } }

/* Sections */
.section { padding: 6.5rem 0; }
.section-head { max-width: 40rem; margin-bottom: 3rem; }
.section h2, .band h2 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem); line-height: 1.2; letter-spacing: -0.02em; color: #fff;
}
.section-head p { margin-top: 1rem; color: var(--slate); }

/* Pills */
.pill { display: inline-flex; align-items: center; padding: 0.3rem 0.8rem; border-radius: 999px; font-size: 0.78rem; font-weight: 700; line-height: 1.4; }
.pill--soon { background: var(--sky); color: #04121c; }
.pill--dev { border: 1px solid #3e7595; color: var(--sky); }
.pill--plan { border: 1px dashed #3a566f; color: var(--slate); }

/* Products */
.products { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: auto auto; gap: 1.25rem; }
.card { background: var(--ink); border: 1px solid var(--line); border-radius: 22px; padding: 2rem; display: flex; flex-direction: column; }
.card h3 { font-family: var(--display); font-weight: 500; font-size: 1.35rem; letter-spacing: -0.01em; color: #fff; margin: 1.1rem 0 0.35rem; }
.card .tag { color: var(--sky); font-size: 0.95rem; font-weight: 600; }
.card p.body { margin-top: 0.9rem; color: var(--slate); font-size: 1rem; }
.card .more { margin-top: auto; padding-top: 1.4rem; color: var(--sky); font-weight: 600; font-size: 0.93rem; display: inline-flex; align-items: center; gap: 0.4rem; }
.card .more:hover { color: var(--mist); }

.card--main {
  grid-row: span 2; padding: 2.5rem; border: 1.5px solid var(--sky);
  background: radial-gradient(120% 90% at 100% 0%, rgba(30, 155, 255, 0.18), transparent 60%), var(--navy);
}
.card--main h3 { font-size: 2rem; margin-top: 1.4rem; }
.card--main p.body { font-size: 1.05rem; max-width: 30rem; }
.card--dev { border-color: var(--line-strong); }
.card--plan { border-style: dashed; border-color: #2a4258; }

.checks { margin-top: 1.5rem; display: grid; gap: 0.7rem; }
.checks li { position: relative; padding-left: 1.7rem; color: var(--mist); font-size: 0.98rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.45em; width: 10px; height: 10px; border-radius: 50%;
  background: var(--sky); box-shadow: 0 0 0 4px rgba(137, 207, 240, 0.16);
}
.card--main .btn { margin-top: 2rem; align-self: flex-start; }

/* Roadmap */
.roadmap { background: linear-gradient(180deg, var(--black), var(--ink) 40%, var(--black)); }
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; position: relative; }
.stage { position: relative; padding-top: 2.6rem; }
.stage::before { content: ""; position: absolute; top: 9px; left: 0; right: -2rem; height: 2px; background: var(--line-strong); }
.stage:last-child::before { right: 0; background: linear-gradient(90deg, var(--line-strong), transparent); }
.stage::after { content: ""; position: absolute; top: 0; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--black); border: 2px solid var(--sky); }
.stage--now::after { background: var(--sky); box-shadow: 0 0 0 6px rgba(137, 207, 240, 0.2); }
.stage--next::after { background: radial-gradient(circle, var(--sky) 0 35%, var(--black) 40%); }
.stage--later::after { border: 2px dashed #4a6a85; }
.stage .when { font-family: var(--display); font-size: 0.95rem; color: var(--sky); }
.stage h3 { font-family: var(--display); font-weight: 500; font-size: 1.3rem; color: #fff; margin: 0.4rem 0 0.6rem; }
.stage p { color: var(--slate); font-size: 0.98rem; max-width: 22rem; }

/* White paper band */
.band { padding: 0 0 6.5rem; }
.band-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
  border: 1px solid var(--line-strong); border-radius: 28px; padding: 3.25rem;
  background: radial-gradient(90% 120% at 0% 0%, rgba(30, 155, 255, 0.16), transparent 60%), var(--navy);
}
.band-card p { color: var(--slate); margin: 1rem 0 1.8rem; max-width: 30rem; }
.toc-preview { columns: 2; column-gap: 2rem; counter-reset: sec; font-size: 0.95rem; color: var(--mist); }
.toc-preview li { counter-increment: sec; break-inside: avoid; padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.toc-preview li::before { content: counter(sec) "  "; color: var(--sky); font-weight: 700; margin-right: 0.35rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 3rem 0 2.5rem; color: var(--slate); font-size: 0.92rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.footer-brand p { margin-top: 0.7rem; max-width: 20rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1.75rem; align-content: flex-start; }
.footer-links a:hover { color: var(--mist); }
.legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 0.85rem; }

/* White paper page */
.doc-hero { padding: 4.5rem 0 3rem; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.doc-hero::after { content: ""; position: absolute; right: -8%; top: -60%; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(30, 155, 255, 0.22), transparent 65%); filter: blur(30px); z-index: -1; }
.doc-hero h1 { font-family: var(--display); font-weight: 500; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -0.025em; color: #fff; }
.doc-hero p { margin-top: 1.2rem; color: var(--slate); max-width: 38rem; }
.doc-meta { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 0.6rem 1.25rem; font-size: 0.9rem; color: var(--slate); align-items: center; }

.doc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 4.5rem; padding: 3.5rem 0 6rem; }
.toc { position: sticky; top: 104px; align-self: start; font-size: 0.92rem; }
.toc p { font-family: var(--display); font-size: 0.85rem; color: var(--mist); margin-bottom: 0.9rem; }
.toc a { display: block; padding: 0.4rem 0.9rem; color: var(--slate); border-left: 2px solid var(--line); transition: color 0.2s, border-color 0.2s; }
.toc a:hover { color: var(--mist); }
.toc a.is-active { color: var(--sky); border-left-color: var(--sky); }

.doc { max-width: 44rem; }
.doc section { padding-top: 3.25rem; }
.doc section:first-child { padding-top: 0; }
.doc h2 { font-family: var(--display); font-weight: 500; font-size: 1.55rem; line-height: 1.2; letter-spacing: -0.015em; color: #fff; margin-bottom: 1.1rem; }
.doc h3 { font-family: var(--display); font-weight: 500; font-size: 1.05rem; color: var(--mist); margin: 1.8rem 0 0.5rem; }
.doc p { color: #c2d5e3; margin-bottom: 1rem; line-height: 1.75; }
.doc ul.bullets { margin: 0.5rem 0 1.2rem; display: grid; gap: 0.6rem; }
.doc ul.bullets li { position: relative; padding-left: 1.5rem; color: #c2d5e3; line-height: 1.7; }
.doc ul.bullets li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 7px; height: 7px; border-radius: 50%; background: var(--sky); }
.doc a.inline { color: var(--sky); border-bottom: 1px solid rgba(137, 207, 240, 0.4); }
.doc a.inline:hover { border-bottom-color: var(--sky); }
.doc .callout { background: var(--navy); border: 1px solid var(--line-strong); border-radius: 16px; padding: 1.4rem 1.6rem; margin: 1.5rem 0; }
.doc .callout p { margin: 0; }

.table-wrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--line); border-radius: 16px; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 32rem; }
th, td { text-align: left; padding: 0.95rem 1.2rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 700; color: var(--mist); background: var(--navy); }
td { color: #c2d5e3; }
tr:last-child td { border-bottom: 0; }

/* Responsive */
@media (max-width: 960px) {
  .nav-toggle { display: inline-block; }
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0;
    background: rgba(2, 4, 9, 0.97); border-bottom: 1px solid var(--line); padding: 0.75rem 1.5rem 1.25rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.75rem 0; width: 100%; }
  .nav .btn { width: auto; margin-top: 0.5rem; }
  .hero { padding: 3rem 0 9rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .scene { width: min(100%, 400px); order: -1; }
  .products { grid-template-columns: 1fr; }
  .card--main { grid-row: auto; }
  .band-card { grid-template-columns: 1fr; padding: 2.25rem; gap: 2rem; }
  .doc-layout { grid-template-columns: 1fr; gap: 2rem; }
  .toc { position: static; }
  .toc nav { display: flex; flex-wrap: wrap; gap: 0.4rem; }
  .toc a { border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.85rem; }
  .toc a.is-active { border-color: var(--sky); }
}

@media (max-width: 720px) {
  .section { padding: 4.5rem 0; }
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .stage { padding: 0 0 2.5rem 2.6rem; }
  .stage::before { top: 0; bottom: 0; left: 9px; right: auto; width: 2px; height: auto; }
  .stage:last-child::before { background: linear-gradient(180deg, var(--line-strong), transparent); }
  .toc-preview { columns: 1; }
  .brand span { font-size: 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scene .logo, .scene .orbits, .cloud { animation: none; }
  .btn { transition: none; }
}
