:root {
  --bg: #07060b;
  --bg-elevated: #0e0c14;
  --surface: #14111c;
  --fg: #f4f1f8;
  --muted: #9b94a8;
  --subtle: #6b6478;
  --pink: #fe2c55;
  --pink-bright: #ff4d6d;
  --cyan: #25f4ee;
  --violet: #a855f7;
  --pink-soft: rgba(254, 44, 85, 0.14);
  --cyan-soft: rgba(37, 244, 238, 0.12);
  --border: rgba(244, 241, 248, 0.1);
  --border-strong: rgba(244, 241, 248, 0.18);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius: 22px;
  --shadow-glow: 0 0 48px rgba(254, 44, 85, 0.22), 0 0 80px rgba(37, 244, 238, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

.wrap {
  width: min(72rem, calc(100% - 2rem));
  margin-inline: auto;
}

.pink {
  color: var(--pink);
}
.muted {
  color: var(--muted);
}
.muted.sm {
  font-size: 0.9rem;
}
.muted.max {
  max-width: 36rem;
}
.tiny {
  color: var(--subtle);
  font-size: 0.75rem;
}
.hidden {
  display: none !important;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}
.site-header.scrolled {
  background: rgba(7, 6, 11, 0.92);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}
.header-inner {
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand img,
.footer-brand img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  object-fit: cover;
}
.nav-desktop {
  display: none;
  gap: 0.15rem;
}
.nav-desktop a {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}
.nav-desktop a:hover {
  color: var(--fg);
}
.header-actions {
  display: none;
  gap: 0.5rem;
}
.menu-btn {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.menu-btn span {
  width: 16px;
  height: 1.5px;
  background: var(--fg);
  display: block;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.75rem 1rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.mobile-nav a:not(.btn) {
  padding: 0.85rem 0.75rem;
  border-radius: 0.75rem;
  font-weight: 500;
}
@media (min-width: 768px) {
  .nav-desktop,
  .header-actions {
    display: flex;
  }
  .menu-btn,
  .mobile-nav {
    display: none !important;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 1.25rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:active {
  transform: scale(0.98);
}
.btn-sm {
  min-height: 2.25rem;
  padding: 0 1rem;
  font-size: 0.8rem;
}
.btn-lg {
  min-height: 3rem;
  padding: 0 1.6rem;
  font-size: 1rem;
}
.btn-primary {
  background: var(--pink);
  color: var(--fg);
}
.btn-primary:hover {
  background: var(--pink-bright);
}
.btn-secondary {
  background: var(--surface);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  border-color: rgba(37, 244, 238, 0.4);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 7rem 0 3rem;
}
.tt-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 40% at 50% 0%, rgba(254, 44, 85, 0.18), transparent 70%),
    radial-gradient(ellipse 40% 35% at 80% 20%, rgba(37, 244, 238, 0.12), transparent 65%),
    radial-gradient(ellipse 35% 30% at 15% 30%, rgba(168, 85, 247, 0.12), transparent 60%);
}
.tt-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.7;
  background-image:
    linear-gradient(rgba(244, 241, 248, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 241, 248, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 10%, transparent 75%);
}
.hero-grid {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.hero-copy {
  text-align: center;
}
.kicker {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}
h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4.25rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}
.grad {
  background: linear-gradient(90deg, #25f4ee, #a855f7, #fe2c55);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  margin: 1.25rem auto 0;
  max-width: 28rem;
  color: var(--muted);
}
.lede a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: rgba(254, 44, 85, 0.5);
  text-underline-offset: 2px;
}
.hero-cta {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
  max-width: 20rem;
  margin-inline: auto;
}
.hero-art {
  position: relative;
  max-width: 24rem;
  margin-inline: auto;
  width: 100%;
}
.art-glow {
  position: absolute;
  inset: -0.75rem;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(37, 244, 238, 0.15), rgba(168, 85, 247, 0.1), rgba(254, 44, 85, 0.2));
  filter: blur(28px);
}
.tt-border {
  position: relative;
  border-radius: 28px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(37, 244, 238, 0.55), rgba(254, 44, 85, 0.55), rgba(168, 85, 247, 0.4));
  box-shadow: var(--shadow-glow);
  overflow: hidden;
}
.tt-border img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 27px;
  background: var(--bg-elevated);
}
@media (min-width: 640px) {
  .hero {
    padding: 8rem 0 4rem;
  }
  .hero-cta {
    flex-direction: row;
    max-width: none;
    justify-content: center;
  }
}
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 0.9fr;
  }
  .hero-copy {
    text-align: left;
  }
  .lede {
    margin-left: 0;
  }
  .hero-cta {
    justify-content: flex-start;
    margin-inline: 0;
  }
  .hero-art {
    max-width: none;
  }
}

/* Ticker */
.ticker {
  border-block: 1px solid var(--border);
  background: rgba(14, 12, 20, 0.9);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}
.ticker-track {
  display: flex;
  width: max-content;
  gap: 2rem;
  padding: 0.7rem 0;
  animation: marquee 28s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  white-space: nowrap;
}
.ticker-track span::before {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  background: var(--pink);
}

/* Sections */
.section {
  padding: 3.5rem 0;
  scroll-margin-top: 5rem;
}
.section-alt {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}
h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.eyebrow {
  margin: 0 0 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}
.steps {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
}
@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}
.card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.step-n {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--pink);
}
.step-t {
  margin: 0.5rem 0 0;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.step-t.small {
  font-size: 0.9rem;
  margin: 0;
}
.note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

/* Submit */
.submit-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .submit-grid {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }
}
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.form-card,
.success-card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
@media (min-width: 640px) {
  .form-card,
  .success-card {
    padding: 2rem;
  }
}
.form-card label {
  display: block;
  margin-bottom: 1rem;
}
.form-card label span {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.form-card label em {
  font-style: normal;
  font-weight: 400;
  color: var(--muted);
}
.form-card input {
  width: 100%;
  height: 3rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  padding: 0 1rem;
  outline: none;
}
.form-card input:focus {
  border-color: rgba(254, 44, 85, 0.5);
  box-shadow: 0 0 0 3px rgba(254, 44, 85, 0.15);
}
.form-error {
  color: var(--pink-bright);
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
}
.success-card {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  border-color: rgba(37, 244, 238, 0.3);
  background: var(--cyan-soft);
}
.check {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: var(--cyan);
  color: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.text-link {
  margin-top: 0.85rem;
  color: var(--cyan);
  font-size: 0.9rem;
  font-weight: 500;
}
.text-link:hover {
  text-decoration: underline;
}

/* Chart */
.chart-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.badge {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}
.chart-panel {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
}
.chart-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
}
.chart-bar img {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  object-fit: cover;
}
.mono {
  margin: 0.1rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--subtle);
}
.chart-body {
  min-height: 13rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image:
    linear-gradient(to right, rgba(244, 241, 248, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244, 241, 248, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}
.chart-body p {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer-brand {
  font-size: 0.9rem;
}
.footer-links {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.footer-links a:hover {
  color: var(--fg);
}
@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .ticker-track {
    animation: none;
  }
}
