:root {
  --bg: #070b10;
  --bg-2: #0b1118;
  --surface: rgba(17, 24, 34, 0.82);
  --surface-solid: #111822;
  --surface-2: rgba(21, 31, 43, 0.88);
  --text: #eef4f8;
  --muted: #9aa8b5;
  --soft: #c9d6df;
  --accent: #38d47a;
  --accent-2: #7df7b0;
  --accent-cyan: #4ed7ff;
  --warning: #ffb84d;
  --danger: #ff5f6d;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(125, 247, 176, 0.35);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --glow: 0 0 32px rgba(56, 212, 122, 0.2);
  --radius: 22px;
  --radius-sm: 14px;
  --max-width: 1180px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 15% 8%, rgba(56, 212, 122, 0.16), transparent 28rem),
    radial-gradient(circle at 86% 12%, rgba(78, 215, 255, 0.11), transparent 30rem),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 48%, var(--bg) 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: -2;
}

body::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 82%);
}

body::after {
  animation: driftGlow 18s ease-in-out infinite alternate;
  background:
    radial-gradient(circle at 24% 24%, rgba(56, 212, 122, 0.12), transparent 24rem),
    radial-gradient(circle at 76% 58%, rgba(78, 215, 255, 0.1), transparent 26rem);
  z-index: -1;
}

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

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(20px);
  background: rgba(7, 11, 16, 0.78);
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  left: 0;
  min-height: 74px;
  padding: 0.9rem clamp(1rem, 4vw, 2.4rem);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 0.75rem;
  min-width: 0;
}

.brand-mark {
  align-items: center;
  background: rgba(56, 212, 122, 0.12);
  border: 1px solid rgba(125, 247, 176, 0.24);
  border-radius: 16px;
  box-shadow: var(--glow);
  display: inline-flex;
  height: 44px;
  justify-content: center;
  overflow: hidden;
  width: 44px;
}

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

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 0.05rem;
}

.nav-links {
  display: none;
  gap: 0.35rem;
}

.nav-links a {
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  padding: 0.54rem 0.78rem;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
  color: var(--text);
}

.nav-toggle {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  padding: 0.62rem 0.78rem;
}

main {
  margin: 0 auto;
  max-width: var(--max-width);
  padding: 0 clamp(1rem, 4vw, 2rem) 4.5rem;
}

.hero-shell {
  min-height: min(660px, calc(100vh - 74px));
  padding: clamp(2.1rem, 4.6vw, 4rem) 0 clamp(1rem, 3vw, 2rem);
}

.hero-grid {
  align-items: center;
  display: grid;
  gap: clamp(1.5rem, 3.6vw, 3.6rem);
  min-width: 0;
}

.hero-copy {
  display: grid;
  gap: 1.15rem;
  max-width: 780px;
  min-width: 0;
}

.page-hero .hero-copy {
  max-width: 700px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.7rem;
}

.hero-description,
.section-heading p,
.deck-card p,
.feature-card p,
.mode-card p,
.step-card p,
.glass-panel p,
.spotlight-card p,
.visual-panel p,
.faq-list p {
  color: var(--muted);
}

.hero-description,
.subtitle,
.deck-card p,
.feature-card p,
.mode-card p,
.step-card p {
  text-wrap: pretty;
}

.page-hero {
  padding: clamp(2.4rem, 5vw, 4.4rem) 0 clamp(0.8rem, 2.6vw, 1.8rem);
}

.page-hero .glass-panel {
  padding: clamp(1.35rem, 4vw, 2rem);
}

.section-slide {
  padding: clamp(1.05rem, 3.2vw, 2.25rem) 0;
}

.page-hero + .section-slide {
  padding-top: clamp(0.55rem, 1.8vw, 1.2rem);
}

.section-tight {
  padding-top: clamp(0.7rem, 2vw, 1.35rem);
}

.section-heading {
  margin-bottom: 1.35rem;
  max-width: 780px;
}

.section-heading + .card-deck,
.section-heading + .timeline {
  margin-top: 0;
}

.section-kicker,
.eyebrow {
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(3rem, 8vw, 6.3rem);
  letter-spacing: 0;
  line-height: 0.9;
  margin-bottom: 0;
}

.hero-title,
.page-title,
.page-hero h1 {
  font-size: clamp(2.9rem, 4.8vw, 4.85rem);
  letter-spacing: 0;
  line-height: 0.95;
  max-width: 760px;
  overflow-wrap: break-word;
}

.hero-title.is-long,
.page-title.is-long {
  font-size: clamp(2.6rem, 3.65vw, 4rem);
  line-height: 0.98;
  max-width: 700px;
}

h2 {
  font-size: clamp(1.7rem, 4vw, 3rem);
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 0.7rem;
}

.visual-panel h2,
.spotlight-card h2 {
  font-size: clamp(1.45rem, 2.5vw, 2.2rem);
}

h3 {
  font-size: 1.05rem;
  line-height: 1.18;
  margin-bottom: 0.65rem;
}

.subtitle {
  color: var(--soft);
  font-size: clamp(1.05rem, 1.75vw, 1.35rem);
  max-width: 780px;
}

.button {
  align-items: center;
  border-radius: var(--radius-sm);
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 46px;
  padding: 0.78rem 1rem;
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #05130b;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
}

.glass-panel,
.visual-panel,
.spotlight-card,
.deck-card,
.feature-card,
.mode-card,
.step-card,
.command-card {
  background:
    linear-gradient(180deg, rgba(19, 28, 39, 0.9), rgba(12, 18, 26, 0.86));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.26);
}

.glass-panel,
.visual-panel,
.spotlight-card {
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  padding: clamp(1.25rem, 4vw, 2rem);
  position: relative;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.visual-panel:hover,
.spotlight-card:hover {
  border-color: rgba(125, 247, 176, 0.28);
}

.visual-panel::before,
.spotlight-card::before,
.deck-card::before,
.feature-card::before {
  background: linear-gradient(90deg, rgba(56, 212, 122, 0.45), rgba(78, 215, 255, 0.18), transparent);
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.visual-panel {
  min-height: 360px;
}

.page-hero .visual-panel,
.page-hero .spotlight-card {
  align-self: center;
  min-height: auto;
}

.page-hero .visual-panel:not(.profile-stack) {
  min-height: 240px;
}

.page-hero .spotlight-card,
.hero-card {
  display: grid;
  gap: 0.85rem;
}

.profile-stack {
  display: grid;
  gap: 0.85rem;
}

.profile-banner {
  background:
    radial-gradient(circle at 30% 18%, rgba(56, 212, 122, 0.35), transparent 16rem),
    radial-gradient(circle at 82% 10%, rgba(78, 215, 255, 0.18), transparent 16rem),
    linear-gradient(135deg, #091018, #10201b 58%, #101824);
  border: 1px solid var(--border);
  border-radius: 20px;
  min-height: clamp(150px, 20vw, 190px);
  overflow: hidden;
  position: relative;
}

.profile-banner::after {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 26px 26px;
  content: "";
  inset: 0;
  opacity: 0.55;
  position: absolute;
}

.profile-banner img {
  display: block;
  height: 100%;
  min-height: clamp(150px, 20vw, 190px);
  object-fit: cover;
  position: relative;
  width: 100%;
  z-index: 1;
}

.profile-banner.is-fallback img {
  display: none;
}

.profile-card-row {
  align-items: center;
  display: flex;
  gap: 1rem;
}

.profile-avatar {
  background: var(--surface-solid);
  border: 4px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow: var(--glow);
  flex: 0 0 auto;
  height: 86px;
  overflow: hidden;
  width: 86px;
}

.profile-avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.stat-row,
.chip-row,
.profile-tags,
.title-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.stat-chip,
.profile-tags span,
.title-list span {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--soft);
  display: inline-flex;
  font-size: 0.88rem;
  font-weight: 800;
  gap: 0.45rem;
  padding: 0.48rem 0.7rem;
}

.dot {
  border-radius: 999px;
  display: inline-block;
  flex: 0 0 auto;
  height: 0.62rem;
  width: 0.62rem;
}

.dot-green {
  background: var(--accent);
  box-shadow: 0 0 18px rgba(56, 212, 122, 0.55);
}

.dot-cyan {
  background: var(--accent-cyan);
  box-shadow: 0 0 18px rgba(78, 215, 255, 0.45);
}

.dot-orange {
  background: var(--warning);
}

.dot-gray {
  background: #75808b;
}

.card-deck {
  display: grid;
  gap: clamp(0.85rem, 1.7vw, 1.1rem);
  margin-top: clamp(0.9rem, 2vw, 1.45rem);
}

.deck-card,
.feature-card,
.mode-card,
.step-card,
.command-card {
  min-width: 0;
  padding: clamp(1rem, 1.65vw, 1.35rem);
  position: relative;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
}

.deck-card:hover,
.feature-card:hover,
.mode-card:hover,
.step-card:hover,
.command-card:hover {
  border-color: rgba(125, 247, 176, 0.28);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.5);
  transform: translateY(-3px);
}

.feature-card {
  display: grid;
  gap: 0.7rem;
  min-height: 150px;
}

.mode-card {
  min-height: 170px;
}

.mode-card.is-locked {
  border-color: rgba(255, 184, 77, 0.28);
}

.horizontal-rail {
  display: grid;
  gap: 0.8rem;
  margin-top: clamp(0.9rem, 2vw, 1.45rem);
}

.rail-header {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.rail-actions {
  display: flex;
  gap: 0.45rem;
}

.rail-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.rail-track {
  display: grid;
  gap: 0.9rem;
  grid-auto-columns: minmax(230px, 30%);
  grid-auto-flow: column;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 0.15rem 0.1rem 0.9rem;
  scroll-snap-type: inline mandatory;
  scrollbar-color: rgba(125, 247, 176, 0.55) rgba(255, 255, 255, 0.08);
}

.rail-track > * {
  scroll-snap-align: start;
}

.timeline {
  display: grid;
  gap: 0.85rem;
  margin-top: clamp(0.9rem, 2vw, 1.45rem);
}

.step-card {
  align-items: flex-start;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: auto minmax(0, 1fr);
}

.step-number {
  align-items: center;
  background: rgba(56, 212, 122, 0.12);
  border: 1px solid rgba(125, 247, 176, 0.28);
  border-radius: 999px;
  color: var(--accent-2);
  display: inline-flex;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.command-card {
  display: grid;
  gap: 0.65rem;
}

.command-pill,
.inline-command {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
}

.command-pill {
  display: grid;
  gap: 0.28rem;
  padding: 0.78rem 0.85rem;
  text-align: left;
  width: 100%;
}

.command-pill code,
.inline-command {
  color: var(--accent-2);
  font-weight: 900;
}

.command-pill span {
  color: var(--muted);
  font-size: 0.92rem;
}

.inline-command {
  display: inline-flex;
  padding: 0.2rem 0.4rem;
  vertical-align: baseline;
}

.command-pill:hover,
.inline-command:hover,
.command-pill:focus-visible,
.inline-command:focus-visible,
.rail-button:hover,
.rail-button:focus-visible,
.button:focus-visible,
.nav-toggle:focus-visible,
.nav-links a:focus-visible {
  border-color: rgba(125, 247, 176, 0.5);
  outline: 3px solid rgba(56, 212, 122, 0.18);
  outline-offset: 2px;
}

.search-box {
  margin: 0.8rem 0 0.6rem;
}

.command-search {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  min-height: 48px;
  padding: 0.78rem 0.9rem;
  width: 100%;
}

.command-search::placeholder {
  color: var(--muted);
}

.command-card.is-hidden {
  display: none;
}

.info-grid,
.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-list article {
  background:
    linear-gradient(180deg, rgba(19, 28, 39, 0.86), rgba(12, 18, 26, 0.8));
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: clamp(1rem, 1.65vw, 1.3rem);
}

.waveform {
  align-items: end;
  display: flex;
  gap: 0.32rem;
  height: 78px;
  margin-top: 1rem;
}

.waveform span {
  animation: pulseBar 1.6s ease-in-out infinite alternate;
  background: linear-gradient(180deg, var(--accent-cyan), var(--accent));
  border-radius: 999px;
  display: block;
  flex: 1;
  min-width: 8px;
}

.waveform span:nth-child(1) { height: 30%; }
.waveform span:nth-child(2) { animation-delay: 0.15s; height: 58%; }
.waveform span:nth-child(3) { animation-delay: 0.3s; height: 42%; }
.waveform span:nth-child(4) { animation-delay: 0.45s; height: 84%; }
.waveform span:nth-child(5) { animation-delay: 0.6s; height: 62%; }
.waveform span:nth-child(6) { animation-delay: 0.75s; height: 36%; }
.waveform span:nth-child(7) { animation-delay: 0.9s; height: 70%; }

.mini-map {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.85rem;
}

.mini-map div {
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  gap: 0.65rem;
  justify-content: space-between;
  padding: 0.78rem 0.85rem;
}

.mini-map span {
  color: var(--muted);
  font-size: 0.9rem;
}

.copy-toast {
  background: #eafff1;
  border-radius: 999px;
  bottom: 1rem;
  color: #07140d;
  font-weight: 900;
  left: 50%;
  opacity: 0;
  padding: 0.72rem 1rem;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%, 1rem);
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 50;
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max-width);
  padding: 1.5rem clamp(1rem, 4vw, 2rem);
}

.site-footer p {
  margin: 0;
}

@keyframes driftGlow {
  from {
    transform: translate3d(-1rem, -0.5rem, 0) scale(1);
  }

  to {
    transform: translate3d(1rem, 0.8rem, 0) scale(1.05);
  }
}

@keyframes pulseBar {
  from {
    opacity: 0.55;
    transform: scaleY(0.74);
  }

  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

@media (min-width: 760px) {
  .hero-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.85fr);
  }

  .card-deck,
  .info-grid,
  .faq-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .two-column {
    align-items: start;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }
}

@media (min-width: 980px) {
  .nav-toggle {
    display: none;
  }

  .nav-links {
    display: flex;
  }

  .card-deck {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-hero.two-column {
    align-items: center;
    gap: clamp(1.75rem, 3.8vw, 3.7rem);
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.82fr);
  }

  .page-hero.two-column > :first-child {
    max-width: 700px;
    min-width: 0;
  }

  .page-hero.two-column > .visual-panel,
  .page-hero.two-column > .spotlight-card {
    justify-self: end;
    width: min(100%, 440px);
  }
}

@media (min-width: 1120px) {
  .card-deck.card-deck-wide {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 979px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .page-hero.two-column {
    align-items: start;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
  }

  .page-hero.two-column > .visual-panel,
  .page-hero.two-column > .spotlight-card {
    justify-self: stretch;
    width: 100%;
  }

  .brand {
    padding-right: 5rem;
  }

  .nav-toggle {
    position: absolute;
    right: 1rem;
    top: 1rem;
  }

  .nav-links.is-open {
    display: grid;
    width: 100%;
  }

  .nav-links.is-open a {
    background: rgba(255, 255, 255, 0.055);
    border-color: var(--border);
    border-radius: var(--radius-sm);
  }
}

@media (max-width: 759px) {
  main {
    padding-inline: 1rem;
  }

  h1 {
    font-size: clamp(2.65rem, 16vw, 4.2rem);
  }

  .hero-title,
  .page-title,
  .page-hero h1,
  .hero-title.is-long,
  .page-title.is-long {
    font-size: clamp(2.65rem, 12.5vw, 4.2rem);
    line-height: 0.98;
  }

  .page-hero {
    padding-top: clamp(2rem, 7vw, 3rem);
  }

  .hero-actions .button,
  .rail-header {
    width: 100%;
  }

  .rail-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .rail-track {
    grid-auto-columns: minmax(220px, 84%);
  }

  .profile-card-row,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
