:root {
  --background: 260 87% 3%;
  --foreground: 40 6% 95%;
  --hero-sub: 40 6% 82%;
  --brand-gold: #ffad42;
  --brand-pink: #fc6076;
  --brand-magenta: #d14dc5;
  --brand-purple: #7c4dff;
  --brand-blue: #2b5bfc;
  --gradient-brand: linear-gradient(
    90deg,
    #ffad42 0%,
    #fc6076 28%,
    #d14dc5 54%,
    #7c4dff 76%,
    #2b5bfc 100%
  );
  --font-body: "Geist Sans", ui-sans-serif, system-ui, sans-serif;
  --font-headline: "General Sans", "Geist Sans", ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

*::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body {
  margin: 0;
  min-height: 100vh;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-body);
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.page-wrapper {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: hsl(var(--background));
}

.hero-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  filter: brightness(0.88) saturate(1.08) contrast(1.18);
}

.video-grade {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 48% 42% at 14% 78%, rgba(255, 173, 66, 0.07), transparent 62%),
    radial-gradient(ellipse 40% 38% at 86% 18%, rgba(43, 91, 252, 0.08), transparent 64%),
    radial-gradient(ellipse 28% 30% at 70% 82%, rgba(252, 96, 118, 0.05), transparent 68%),
    linear-gradient(180deg, rgba(5, 2, 12, 0.18) 0%, rgba(5, 2, 12, 0.08) 42%, rgba(5, 2, 12, 0.28) 100%);
}

.page-content {
  position: relative;
  z-index: 10;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.hero-blur {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 984px;
  height: 527px;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 32% 48%, rgba(70, 32, 140, 0.22), transparent 58%),
    radial-gradient(circle at 72% 42%, rgba(30, 50, 140, 0.1), transparent 52%),
    radial-gradient(circle at 18% 70%, rgba(255, 173, 66, 0.06), transparent 48%),
    rgb(4 2 10);
  opacity: 0.72;
  filter: blur(82px);
  pointer-events: none;
  z-index: 0;
}

.hero-chroma {
  position: absolute;
  inset: -8% 0 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 36% 32% at 22% 68%, rgba(255, 173, 66, 0.08), transparent 72%),
    radial-gradient(ellipse 30% 28% at 78% 34%, rgba(43, 91, 252, 0.09), transparent 70%),
    radial-gradient(ellipse 24% 26% at 58% 84%, rgba(252, 96, 118, 0.05), transparent 72%);
}

.navbar,
.hero-main,
.logo-marquee-wrap,
.navbar-divider {
  position: relative;
  z-index: 1;
}

.navbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
}

.brand img {
  display: block;
  height: 40px;
  width: 40px;
  object-fit: contain;
  border-radius: 8px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 200px;
  padding: 0.55rem;
  border-radius: 0.9rem;
  background: hsl(var(--background) / 0.92);
  backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 30;
}

.dropdown-panel a {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: 0.55rem;
  color: hsl(var(--foreground) / 0.88);
  font-size: 0.9rem;
}

.dropdown-panel a:hover {
  background: hsl(var(--foreground) / 0.08);
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown.is-open .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 1.5px;
  background: hsl(var(--foreground));
  border-radius: 2px;
}

.mobile-menu {
  display: none;
}

.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: hsl(var(--foreground) / 0.9);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.nav-item:hover {
  color: hsl(var(--foreground));
  opacity: 0.75;
}

.navbar-divider {
  height: 1px;
  margin-top: 3px;
  background: linear-gradient(
    to right,
    transparent,
    hsl(var(--foreground) / 0.2),
    transparent
  );
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  transition: transform 0.25s ease, background-color 0.25s ease, opacity 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.btn-secondary {
  background: hsl(var(--foreground) / 0.08);
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--foreground) / 0.18);
  backdrop-filter: blur(8px);
}

.btn-nav {
  padding: 0.5rem 1rem;
  font-size: 0.92rem;
  font-weight: 500;
}

.btn-cta {
  padding: 24px 29px;
  margin-top: 25px;
  font-size: 1rem;
  font-weight: 500;
}

.hero-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.hero-copy {
  text-align: center;
  max-width: 1100px;
}

.hero-title {
  margin: 0;
  font-family: var(--font-headline);
  font-size: clamp(4.5rem, 18vw, 220px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.024em;
  color: hsl(var(--foreground));
}

.hero-title-gradient {
  background-image: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin: 9px auto 0;
  max-width: 32rem;
  color: hsl(var(--hero-sub));
  font-size: 1.125rem;
  line-height: 2rem;
  opacity: 0.8;
}

.trust-line {
  margin: 16px auto 0;
  color: hsl(var(--foreground) / 0.52);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.logo-marquee-wrap {
  padding-bottom: 2.5rem;
}

.logo-marquee {
  width: min(100% - 2rem, 64rem);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.marquee-label {
  margin: 0;
  flex: 0 0 auto;
  color: hsl(var(--foreground) / 0.5);
  font-size: 0.875rem;
  line-height: 1.4;
}

.audience-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: hsl(var(--foreground) / 0.88);
  font-size: 1rem;
  font-weight: 500;
}

.audience-list li {
  position: relative;
  padding-right: 1.5rem;
}

.audience-list li:not(:last-child)::after {
  content: "·";
  position: absolute;
  right: 0.35rem;
  color: hsl(var(--foreground) / 0.35);
}

.liquid-glass {
  background: rgba(255, 255, 255, 0.01);
  background-blend-mode: luminosity;
  backdrop-filter: blur(4px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.liquid-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0.15) 20%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0.15) 80%,
    rgba(255, 255, 255, 0.45) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.section {
  position: relative;
  padding: 7rem 0;
  background: hsl(var(--background) / 0.88);
  backdrop-filter: blur(18px);
}

.container {
  width: min(100% - 2.5rem, 1120px);
  margin: 0 auto;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 3.5rem;
}

.section-intro {
  max-width: 46rem;
  margin-bottom: 3rem;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: hsl(var(--foreground) / 0.55);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  font-family: var(--font-headline);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.lead,
.stack p,
.feature-card p,
.feature-card li {
  color: hsl(var(--hero-sub) / 0.9);
  line-height: 1.7;
}

.lead {
  margin: 1.1rem 0 0;
  max-width: 42rem;
  font-size: 1.05rem;
}

.stack,
.feature-grid,
.journey-grid,
.timeline {
  display: grid;
  gap: 1.25rem;
}

.stack article {
  padding-top: 1.25rem;
  border-top: 1px solid hsl(var(--foreground) / 0.12);
}

.stack article:first-child {
  padding-top: 0;
  border-top: none;
}

.stack span {
  display: inline-block;
  margin-bottom: 0.7rem;
  color: hsl(var(--foreground) / 0.45);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.stack h3,
.feature-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.feature-grid,
.journey-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.timeline {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
  padding: 1.5rem;
  border-radius: 1rem;
}

.feature-card ol,
.feature-card ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
}

.feature-card li {
  margin-bottom: 0.65rem;
}

.cta-section {
  border-top: 1px solid hsl(var(--foreground) / 0.08);
}

.cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cta-row .btn-cta {
  margin-top: 0;
  flex-shrink: 0;
}

.feature-card.expand-card {
  text-align: left;
  width: 100%;
}

.expand-card summary {
  cursor: pointer;
  list-style: none;
}

.expand-card summary::-webkit-details-marker {
  display: none;
}

.expand-body {
  margin-top: 0.75rem;
}

.tab-bar,
.dash-toggle,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.tab-btn,
.unit-chip {
  border-radius: 999px;
  padding: 0.55rem 1rem;
  border: 1px solid hsl(var(--foreground) / 0.18);
  background: hsl(var(--foreground) / 0.05);
  color: hsl(var(--foreground) / 0.85);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.tab-btn.is-active,
.unit-chip:has(input:checked) {
  background: hsl(var(--foreground) / 0.12);
  border-color: hsl(var(--foreground) / 0.35);
}

.unit-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tab-panel[hidden],
.dash-panel[hidden] {
  display: none;
}

.playground,
.waitlist-layout,
.loop-layout {
  display: grid;
  gap: 1.75rem;
}

.playground {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.waitlist-layout {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.8fr);
  align-items: start;
}

.playground-controls fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 1.25rem;
}

.playground-controls legend {
  margin-bottom: 0.7rem;
  color: hsl(var(--foreground) / 0.7);
  font-size: 0.85rem;
}

.slider-field {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
  color: hsl(var(--foreground) / 0.78);
}

.slider-field input[type="range"] {
  width: 100%;
  accent-color: #a855f7;
}

.playground-results {
  display: grid;
  gap: 1.1rem;
}

.stat {
  margin: 0;
  font-family: var(--font-headline);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.03em;
}

.stat.dim {
  color: hsl(var(--foreground) / 0.45);
  line-height: 1.15;
}

.lead a,
.tab-panel a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.preview-badge {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.08rem 0.4rem;
  border: 1px solid hsl(var(--foreground) / 0.22);
  border-radius: 999px;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--foreground) / 0.55);
  font-weight: 500;
  vertical-align: middle;
}

.stat.accent {
  background-image: linear-gradient(to left, #6366f1, #a855f7, #fcd34d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hint {
  margin: 0.35rem 0 0;
  color: hsl(var(--foreground) / 0.5);
  font-size: 0.88rem;
}

.loop-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}

.loop-step {
  text-align: left;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid hsl(var(--foreground) / 0.14);
  background: hsl(var(--foreground) / 0.04);
  color: hsl(var(--foreground) / 0.78);
}

.loop-step span {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: hsl(var(--foreground) / 0.45);
}

.loop-step.is-active {
  border-color: hsl(var(--foreground) / 0.4);
  background: hsl(var(--foreground) / 0.1);
  color: hsl(var(--foreground));
}

.dash-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 0.55rem;
  height: 140px;
  margin-bottom: 1.25rem;
}

.bars span {
  flex: 1;
  height: 0;
  min-height: 4px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #a855f7, #6366f1);
  transform-origin: bottom;
  transition: height 0.28s ease;
}

.budget-track {
  height: 10px;
  border-radius: 999px;
  background: hsl(var(--foreground) / 0.12);
  overflow: hidden;
  margin-bottom: 1.15rem;
}

.budget-fill {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6366f1, #a855f7, #fcd34d);
  transition: width 0.12s linear;
}

.dash-meta p {
  margin: 0 0 0.4rem;
}

.dash-lesson {
  margin-top: 1.1rem;
  max-width: 40rem;
}

.code-wrap {
  border-radius: 1rem;
  overflow: hidden;
}

.code-toolbar {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  color: hsl(var(--foreground) / 0.55);
  font-size: 0.8rem;
  border-bottom: 1px solid hsl(var(--foreground) / 0.08);
}

.copy-btn {
  color: hsl(var(--foreground) / 0.8);
}

pre {
  margin: 0;
  padding: 1.1rem 1.15rem 1.25rem;
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.65;
  color: hsl(var(--hero-sub));
}

.waitlist-form {
  display: grid;
  gap: 0.9rem;
}

.waitlist-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: hsl(var(--foreground) / 0.75);
}

.waitlist-form input,
.waitlist-form select {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border-radius: 0;
  border: 1px solid hsl(var(--foreground) / 0.18);
  background: hsl(var(--foreground) / 0.04);
  color: hsl(var(--foreground));
  font: inherit;
  color-scheme: dark;
}

.waitlist-form .btn-cta {
  margin-top: 0.2rem;
  width: 100%;
}

.waitlist-panel {
  display: grid;
}

.waitlist-form.is-done {
  display: none;
}

.waitlist-success h3 {
  margin: 0 0 0.7rem;
  font-family: var(--font-headline);
  font-size: 1.6rem;
  font-weight: 500;
}

.waitlist-success p {
  margin: 0 0 0.7rem;
  color: hsl(var(--hero-sub) / 0.92);
  line-height: 1.7;
}

.form-status {
  min-height: 1.2rem;
  margin: 0;
  color: #fcd34d;
  font-size: 0.9rem;
}

.site-footer {
  position: relative;
  padding: 4rem 0 3rem;
  background: hsl(var(--background) / 0.92);
  border-top: 1px solid hsl(var(--foreground) / 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
}

.footer-brand {
  margin: 0 0 0.5rem;
  font-family: var(--font-headline);
  font-size: 1.2rem;
}

.site-footer a,
.site-footer p {
  display: block;
  margin: 0 0 0.45rem;
  color: hsl(var(--foreground) / 0.62);
  font-size: 0.92rem;
}

.site-footer a:hover {
  color: hsl(var(--foreground));
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes marquee {
  from {
    transform: translateX(0%);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes barGrow {
  from {
    transform: scaleY(0.15);
    opacity: 0.4;
  }

  to {
    transform: scaleY(1);
    opacity: 1;
  }
}

@media (max-width: 960px) {
  .nav-center {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-menu {
    display: none;
    position: relative;
    z-index: 2;
    padding: 0.4rem 1.25rem 1rem;
  }

  .mobile-menu:not([hidden]) {
    display: grid;
    gap: 0.2rem;
  }

  .mobile-menu a {
    padding: 0.7rem 0;
    border-bottom: 1px solid hsl(var(--foreground) / 0.08);
    color: hsl(var(--foreground) / 0.9);
  }

  .split,
  .feature-grid,
  .journey-grid,
  .timeline,
  .cta-row,
  .playground,
  .waitlist-layout,
  .loop-steps,
  .footer-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .logo-marquee {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .audience-list {
    width: 100%;
  }

  .hero-blur {
    width: min(92vw, 984px);
    height: min(48vw, 527px);
  }

  .hero-chroma {
    opacity: 0.85;
  }
}

@media (max-width: 640px) {
  .navbar {
    padding: 1rem 1.1rem;
  }

  .hero-main {
    padding: 1.5rem 1.1rem;
  }

  .btn-cta {
    width: 100%;
  }

  .section {
    padding: 4.5rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .marquee-track,
  .bars.is-animating span {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
