/* Meloduels marketing — house tokens from docs/branding.md */
:root {
  --bg-void: #0b0d12;
  --bg-elevated: #151922;
  --bg-panel: #1a2130;
  --accent-electric: #2ee6a6;
  --accent-hot: #ff4d6d;
  --accent-amber: #f5c542;
  --ink-primary: #f4f7fa;
  --ink-muted: #8b95a8;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink-primary);
  background: var(--bg-void);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent-electric);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink-primary);
}

h1,
h2,
h3,
.brand {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
}

p {
  margin: 0;
}

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

/* —— Nav —— */
.site-nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  padding: 1.25rem 0;
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink-primary);
  text-decoration: none;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.nav-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--ink-primary);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 6.5rem 0 3.5rem;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 85% 15%, rgba(46, 230, 166, 0.14), transparent 55%),
    radial-gradient(700px 480px at 10% 80%, rgba(255, 77, 109, 0.12), transparent 50%),
    linear-gradient(165deg, #10141c 0%, var(--bg-void) 48%, #090b10 100%);
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18%;
  height: 140px;
  opacity: 0.35;
}

.hero-wave path {
  fill: none;
  stroke: var(--accent-electric);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 8 10;
  animation: wave-drift 18s linear infinite;
}

.hero-wave path:nth-child(2) {
  stroke: var(--accent-hot);
  opacity: 0.55;
  animation-duration: 24s;
  animation-direction: reverse;
}

@keyframes wave-drift {
  to {
    stroke-dashoffset: -240;
  }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  align-items: end;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: center;
  }
}

.hero-copy {
  max-width: 34rem;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.4rem;
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.9s var(--ease) 0.1s forwards;
}

.hero-brand img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
}

.hero-brand span {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.hero h1 {
  font-size: clamp(2.6rem, 7.5vw, 4.6rem);
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.95s var(--ease) 0.22s forwards;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent-electric);
}

.hero-lead {
  color: var(--ink-muted);
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  max-width: 28rem;
  margin-bottom: 1.75rem;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.95s var(--ease) 0.34s forwards;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.95s var(--ease) 0.46s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.35rem;
  border-radius: 12px;
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent-electric);
  color: var(--bg-void);
}

.btn-primary:hover {
  background: #5aefbb;
  color: var(--bg-void);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-primary);
  border-color: rgba(244, 247, 250, 0.18);
}

.btn-ghost:hover {
  border-color: var(--accent-hot);
  color: var(--ink-primary);
}

.hero-visual {
  position: relative;
  opacity: 0;
  transform: translateY(24px);
  animation: rise 1.1s var(--ease) 0.3s forwards;
}

.hero-visual img {
  width: min(100%, 420px);
  margin-inline: auto;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -40px 80px rgba(46, 230, 166, 0.08);
  mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
}

@media (min-width: 900px) {
  .hero-visual img {
    width: 100%;
    max-width: none;
    border-radius: 32px 0 0 32px;
    margin-inline: 0;
    mask-image: linear-gradient(to left, transparent 0%, #000 18%);
  }

  .hero {
    align-items: center;
    padding-bottom: 0;
  }

  .hero-visual {
    justify-self: end;
    width: calc(50vw - 1rem);
    max-width: 560px;
  }
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

/* —— Sections —— */
.section {
  padding: 5.5rem 0;
  border-top: 1px solid rgba(139, 149, 168, 0.14);
}

.section-kicker {
  color: var(--accent-amber);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.section h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  max-width: 16ch;
  margin-bottom: 0.85rem;
}

.section-lead {
  color: var(--ink-muted);
  max-width: 36rem;
  margin-bottom: 2.75rem;
}

.steps {
  display: grid;
  gap: 2rem;
  counter-reset: step;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

.step {
  position: relative;
  padding-top: 0.25rem;
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--accent-hot);
  margin-bottom: 0.85rem;
  line-height: 1;
}

.step h3 {
  font-size: 1.35rem;
  margin-bottom: 0.55rem;
}

.step p {
  color: var(--ink-muted);
  font-size: 0.98rem;
}

.split {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 800px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
  }
}

.split-block h3 {
  font-size: 1.75rem;
  margin-bottom: 0.65rem;
}

.split-block h3 span {
  color: var(--accent-electric);
}

.split-block.hot h3 span {
  color: var(--accent-hot);
}

.split-block p {
  color: var(--ink-muted);
  margin-bottom: 1rem;
}

.split-block ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.split-block li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.15rem;
  color: var(--ink-primary);
  font-size: 0.98rem;
}

.split-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 1px;
  background: var(--accent-electric);
}

.split-block.hot li::before {
  background: var(--accent-hot);
}

.band {
  background:
    linear-gradient(120deg, rgba(46, 230, 166, 0.08), transparent 40%),
    var(--bg-elevated);
  border-top: 1px solid rgba(46, 230, 166, 0.18);
  border-bottom: 1px solid rgba(255, 77, 109, 0.14);
}

.band .wrap {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .band .wrap {
    grid-template-columns: 1.4fr auto;
    align-items: center;
  }
}

.band h2 {
  max-width: 18ch;
  margin-bottom: 0.5rem;
}

.band p {
  color: var(--ink-muted);
}

/* —— Legal pages —— */
.legal-hero {
  padding: 7.5rem 0 2.5rem;
  background:
    radial-gradient(700px 320px at 0% 0%, rgba(46, 230, 166, 0.1), transparent 55%),
    var(--bg-void);
}

.legal-hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  margin-bottom: 0.65rem;
}

.legal-hero p {
  color: var(--ink-muted);
}

.legal {
  padding: 2rem 0 5rem;
  max-width: 46rem;
}

.legal h2 {
  font-size: 1.35rem;
  margin: 2.25rem 0 0.75rem;
  color: var(--ink-primary);
}

.legal p,
.legal li {
  color: var(--ink-muted);
  margin-bottom: 0.85rem;
}

.legal ul {
  padding-left: 1.2rem;
  margin: 0 0 1rem;
}

.legal strong {
  color: var(--ink-primary);
  font-weight: 600;
}

/* —— Footer —— */
.site-footer {
  border-top: 1px solid rgba(139, 149, 168, 0.14);
  padding: 2.5rem 0 3rem;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr;
    align-items: end;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.footer-note {
  color: var(--ink-muted);
  font-size: 0.92rem;
  max-width: 28rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--accent-electric);
}

.footer-meta {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(139, 149, 168, 0.12);
  color: var(--ink-muted);
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
}

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

  .hero-brand,
  .hero h1,
  .hero-lead,
  .cta-row,
  .hero-visual {
    opacity: 1;
    transform: none;
  }
}
