:root {
  --void: #040910;
  --navy: #07111f;
  --beanie: #12263f;
  --rib: #183250;
  --arc: #4eb6ff;
  --arc-hot: #8ad4ff;
  --arc-deep: #1a6fd4;
  --cream: #f4d7a6;
  --fur: #e4b56a;
  --snow: #f4f8ff;
  --mute: #9bb0c9;
  --line: rgba(138, 212, 255, 0.18);
  --glass: rgba(8, 18, 34, 0.72);
  --font-display: "Nunito", sans-serif;
  --font-body: "Outfit", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--void);
  color: var(--snow);
  font-family: var(--font-body);
}

body {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

#orbit-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.spot {
  position: fixed;
  width: 42vw;
  height: 42vw;
  left: 0;
  top: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(circle, rgba(78, 182, 255, 0.16), transparent 68%);
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
}

.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(78, 182, 255, 0.2), transparent 55%),
    radial-gradient(ellipse 40% 40% at 80% 20%, rgba(244, 215, 166, 0.06), transparent 50%),
    linear-gradient(180deg, #06101c 0%, #040910 48%, #071525 100%);
}

.aurora {
  position: absolute;
  filter: blur(48px);
  opacity: 0.55;
  mix-blend-mode: screen;
  animation: drift 18s ease-in-out infinite;
}

.aurora-a {
  width: 55vw;
  height: 28vw;
  left: -8%;
  top: 8%;
  background: #1a6fd4;
}

.aurora-b {
  width: 48vw;
  height: 22vw;
  right: -10%;
  top: 18%;
  background: #4eb6ff;
  animation-delay: -6s;
}

.aurora-c {
  width: 36vw;
  height: 18vw;
  left: 30%;
  bottom: 8%;
  background: #8ad4ff;
  opacity: 0.28;
  animation-delay: -11s;
}

.horizon-arc {
  position: absolute;
  left: 50%;
  bottom: -18vh;
  width: 140vw;
  height: 46vh;
  transform: translateX(-50%);
  border: 2px solid rgba(138, 212, 255, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 80px rgba(78, 182, 255, 0.12),
    inset 0 0 80px rgba(78, 182, 255, 0.05);
  animation: pulse-arc 8s ease-in-out infinite;
}

.rib-wash {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0 11px,
    rgba(255, 255, 255, 0.015) 11px 12px
  );
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}

.arch-ghost {
  position: absolute;
  left: 50%;
  top: 12%;
  width: min(920px, 88vw);
  transform: translateX(-50%);
  opacity: 0.9;
  animation: breathe 7s ease-in-out infinite;
}

.grain,
.vignette {
  position: absolute;
  inset: 0;
}

.grain {
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.vignette {
  background: radial-gradient(ellipse at center, transparent 40%, rgba(4, 9, 16, 0.78) 100%);
}

.nav,
.ticker,
main,
.foot {
  position: relative;
  z-index: 2;
}

.nav {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 28px;
  background: rgba(6, 16, 28, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  transition: padding 0.3s ease, background 0.3s ease;
}

.nav.compact {
  padding: 8px 24px;
  background: rgba(4, 9, 16, 0.88);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(138, 212, 255, 0.45);
  box-shadow: 0 0 18px rgba(78, 182, 255, 0.35);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy strong {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-copy small {
  color: var(--arc-hot);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 22px;
  margin-left: 18px;
}

.nav-links a {
  color: var(--mute);
  font-size: 14px;
  letter-spacing: 0.04em;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--arc-hot), transparent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

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

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

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

.icon-btn,
.buy-btn,
.ghost-btn,
.ca-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(18, 38, 63, 0.6);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.icon-btn {
  width: 40px;
  height: 40px;
}

.icon-btn img,
.buy-btn img,
.ghost-btn img,
.text-link img,
.foot-links img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.buy-btn,
.ghost-btn {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
}

.buy-btn.solid {
  background: linear-gradient(180deg, #8ad4ff 0%, #2f8de0 100%);
  color: #041018;
  border-color: transparent;
  box-shadow: 0 8px 28px rgba(78, 182, 255, 0.28);
}

.buy-btn.solid img {
  filter: brightness(0.25);
}

.ghost-btn {
  background: rgba(8, 18, 34, 0.45);
}

.buy-btn:hover,
.ghost-btn:hover,
.icon-btn:hover,
.ca-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(138, 212, 255, 0.5);
  box-shadow: 0 10px 30px rgba(78, 182, 255, 0.18);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--glass);
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  margin: 4px auto;
  background: var(--snow);
}

.ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 22, 40, 0.55);
}

.ticker-track {
  display: flex;
  gap: 42px;
  width: max-content;
  padding: 10px 0;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--arc-hot);
  animation: marquee 28s linear infinite;
}

.ticker-track span {
  position: relative;
}

.ticker-track span::after {
  content: "";
  position: absolute;
  right: -24px;
  top: 50%;
  width: 7px;
  height: 7px;
  border: 2px solid var(--arc);
  border-bottom: 0;
  border-left: 0;
  border-radius: 8px 8px 0 0;
  transform: translateY(-50%);
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding-bottom: 80px;
}

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

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--arc-hot);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
}

.mini-arch {
  width: 22px;
  height: 16px;
  color: var(--arc-hot);
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 92px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.chrome {
  background: linear-gradient(180deg, #ffffff 0%, #d7e8f8 38%, #ffffff 50%, #7eb6e8 78%, #f3f8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 8px 24px rgba(78, 182, 255, 0.35));
  animation: chrome-shift 7s ease-in-out infinite;
  background-size: 100% 200%;
}

.symbol-pill {
  display: inline-flex;
  margin: 16px 0 10px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(18, 38, 63, 0.7);
  color: var(--cream);
  letter-spacing: 0.18em;
  font-weight: 700;
}

.lede {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: var(--cream);
}

.sub {
  margin: 0 0 26px;
  max-width: 34em;
  color: var(--mute);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.ca-chip {
  padding: 8px 12px 8px 8px;
  gap: 10px;
  background: rgba(4, 9, 16, 0.55);
}

.ca-label {
  width: 34px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #163056;
  color: var(--arc-hot);
  font-size: 11px;
  font-weight: 700;
}

.ca-chip code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--snow);
}

.ca-status {
  color: var(--mute);
  font-size: 12px;
}

.hero-stage {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(138, 212, 255, 0.22);
  box-shadow: 0 0 24px rgba(78, 182, 255, 0.08);
}

.ring-a {
  width: 340px;
  height: 340px;
  animation: spin 18s linear infinite;
  border-top-color: var(--arc-hot);
}

.ring-b {
  width: 420px;
  height: 420px;
  animation: spin 28s linear infinite reverse;
  border-left-color: var(--cream);
  opacity: 0.7;
}

.ring-c {
  width: 500px;
  height: 500px;
  animation: spin 40s linear infinite;
  border-bottom-color: var(--arc);
  opacity: 0.45;
}

.orbit-spark {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--arc-hot);
  box-shadow: 0 0 16px var(--arc-hot);
}

.s1 { animation: spark-a 18s linear infinite; }
.s2 { animation: spark-b 28s linear infinite; }
.s3 { animation: spark-c 40s linear infinite; }

.portrait {
  position: relative;
  width: min(320px, 72vw);
  aspect-ratio: 1;
  margin: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid #163056;
  box-shadow:
    0 0 0 1px rgba(244, 215, 166, 0.25),
    0 0 60px rgba(78, 182, 255, 0.35),
    inset 0 0 40px rgba(4, 9, 16, 0.15);
  animation: float-y 5.5s ease-in-out infinite;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
}

.portrait-caption {
  position: absolute;
  bottom: 18px;
  margin: 0;
  color: var(--mute);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 11px;
}

.about,
.howtobuy,
.chart,
.joinus {
  padding: 88px 0 20px;
}

.section-head {
  margin-bottom: 36px;
}

.section-head h2,
.about-copy h3,
.stitch h3 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
}

.rib-frame {
  position: relative;
  padding: 22px;
  border-radius: 36px;
  background:
    repeating-linear-gradient(
      90deg,
      #0f2036 0 9px,
      #1c3d63 9px 11px,
      #163250 11px 18px
    );
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(138, 212, 255, 0.18);
}

.rib-frame::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 28px;
  border: 1px solid rgba(138, 212, 255, 0.25);
  pointer-events: none;
}

.rib-frame img {
  border-radius: 24px;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 10%;
}

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

.traits {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 16px;
}

.traits li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(8, 18, 34, 0.55);
}

.trait-num,
.stitch-index {
  font-family: var(--font-mono);
  color: var(--arc-hot);
}

.traits h3,
.stitch h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.traits p,
.stitch p {
  margin: 0;
  color: var(--mute);
  line-height: 1.6;
}

.howtobuy {
  position: relative;
}

.stitch-rail {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 210px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--arc), transparent);
  opacity: 0.35;
}

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

.stitch {
  position: relative;
  padding: 22px 20px 24px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(22, 48, 86, 0.45), rgba(8, 18, 34, 0.7));
  overflow: hidden;
}

.stitch::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: repeating-linear-gradient(
    180deg,
    #12263f 0 8px,
    #8ad4ff 8px 10px
  );
}

.stitch-index {
  display: block;
  margin-bottom: 12px;
  font-size: 12px;
  letter-spacing: 0.14em;
}

.ghost-btn.slim {
  margin-top: 16px;
  padding: 8px 12px;
  font-size: 13px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--arc-hot);
  font-size: 14px;
}

.text-link:hover {
  color: var(--snow);
}

.chart-bezel {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #050910;
  box-shadow: 0 0 0 1px rgba(78, 182, 255, 0.08), 0 24px 80px rgba(0, 0, 0, 0.35);
}

.bezel-rail {
  display: flex;
  justify-content: space-between;
  padding: 10px 16px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--arc-hot);
  background: linear-gradient(90deg, #0c1b30, #12263f);
}

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

.join-banner {
  position: relative;
  margin: 0 0 24px;
  aspect-ratio: 3 / 1;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 20px 70px rgba(78, 182, 255, 0.16);
}

.join-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.banner-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.16) 48%, transparent 62%);
  transform: translateX(-100%);
  animation: sheen 6.5s ease-in-out infinite;
}

.join-card {
  padding: 28px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(8, 18, 34, 0.62);
}

.join-card p {
  margin: 0 0 20px;
  color: var(--mute);
  line-height: 1.7;
  max-width: 46em;
}

.join-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px;
  border-top: 1px solid var(--line);
  background: rgba(4, 9, 16, 0.8);
}

.foot p {
  margin: 0;
  color: var(--mute);
}

.foot-links {
  display: flex;
  gap: 18px;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--arc-hot);
  font-size: 14px;
}

.lift {
  opacity: 0;
  transform: translateY(28px);
}

.lift.in {
  animation: lift-in 0.9s ease forwards;
}

.delay-1 { animation-delay: 0.12s; }
.delay-2 { animation-delay: 0.24s; }
.delay-3 { animation-delay: 0.36s; }

.nav.ready .brand-mark {
  animation: pop-in 0.7s ease;
}

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(6%, -4%, 0) rotate(8deg); }
}

@keyframes pulse-arc {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.9; }
}

@keyframes breathe {
  0%, 100% { opacity: 0.55; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.03); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes chrome-shift {
  0%, 100% { background-position: 0 0; }
  50% { background-position: 0 100%; }
}

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

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes spark-a {
  0% { transform: rotate(0deg) translateX(170px); }
  100% { transform: rotate(360deg) translateX(170px); }
}

@keyframes spark-b {
  0% { transform: rotate(80deg) translateX(210px); }
  100% { transform: rotate(440deg) translateX(210px); }
}

@keyframes spark-c {
  0% { transform: rotate(200deg) translateX(250px); }
  100% { transform: rotate(560deg) translateX(250px); }
}

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

@keyframes lift-in {
  to { opacity: 1; transform: none; }
}

@keyframes pop-in {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@media (max-width: 980px) {
  .hero,
  .about-grid,
  .stitches {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 420px;
    order: -1;
  }

  .ring-c,
  .s3 {
    display: none;
  }

  .stitch-rail {
    display: none;
  }

  .nav-links,
  .nav-tools {
    display: none;
  }

  .nav.open .nav-links,
  .nav.open .nav-tools {
    display: flex;
  }

  .nav.open {
    flex-wrap: wrap;
  }

  .nav.open .nav-links,
  .nav.open .nav-tools {
    width: 100%;
    margin: 8px 0 0;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: block;
  }

  .foot {
    flex-direction: column;
    text-align: center;
  }

  .chart-bezel iframe {
    height: 520px;
  }
}

@media (max-width: 640px) {
  main {
    width: min(100% - 24px, 1180px);
  }

  h1 {
    font-size: 52px;
  }

  .join-banner {
    aspect-ratio: 3 / 1;
    min-height: 120px;
  }

  .chart-bezel iframe {
    height: 420px;
  }

  .orbit.ring-b {
    width: 300px;
    height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .lift {
    opacity: 1;
    transform: none;
  }
}
