:root {
  --bg: #0b0c10;
  --surface: #161821;
  --pink: #ec4899;
  --purple: #a855f7;
  --cyan: #0ea5e9;
  --text: #ffffff;
  --muted: #94a3b8;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--text);
  font-family: var(--font-body);
  background: var(--bg);
  overflow-x: hidden;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

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

/* ── Atmosphere ─────────────────────────────────────────────── */

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, #0b0c10 0%, #12101a 55%, #0b0c10 100%);
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: drift 14s ease-in-out infinite;
}

.glow-a {
  width: min(55vw, 520px);
  height: min(55vw, 520px);
  top: -12%;
  left: -8%;
  background: rgba(168, 85, 247, 0.28);
}

.glow-b {
  width: min(48vw, 460px);
  height: min(48vw, 460px);
  right: -6%;
  bottom: 8%;
  background: rgba(236, 72, 153, 0.22);
  animation-delay: -4s;
}

.glow-c {
  width: min(36vw, 340px);
  height: min(36vw, 340px);
  left: 38%;
  top: 28%;
  background: rgba(14, 165, 233, 0.12);
  animation-delay: -8s;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  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='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

@keyframes drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(2%, 3%) scale(1.06);
  }
}

/* ── Chrome ─────────────────────────────────────────────────── */

.top,
.hero,
.foot {
  position: relative;
  z-index: 1;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.top-cta {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s ease;
}

.top-cta:hover {
  color: var(--text);
}

/* ── Hero ───────────────────────────────────────────────────── */

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(1rem, 3vw, 2rem) clamp(1.25rem, 4vw, 3rem) 2rem;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
}

.brand {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 4.75rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  background: linear-gradient(100deg, var(--purple), var(--pink) 55%, #f9a8d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: brand-in 0.9s ease both;
}

.hero h1 {
  margin: 0 0 1rem;
  max-width: 14ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  animation: rise 0.8s 0.15s ease both;
}

.lede {
  margin: 0 0 1.75rem;
  max-width: 34ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
  animation: rise 0.8s 0.28s ease both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  animation: rise 0.8s 0.4s ease both;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.55rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  box-shadow: 0 12px 40px rgba(168, 85, 247, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(236, 72, 153, 0.35);
  filter: brightness(1.05);
}

.cta:active {
  transform: translateY(0);
}

.cta-hint {
  color: var(--muted);
  font-size: 0.85rem;
}

@keyframes brand-in {
  from {
    opacity: 0;
    letter-spacing: 0.08em;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    letter-spacing: -0.03em;
    transform: translateY(0);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Visual stage ───────────────────────────────────────────── */

.hero-stage {
  display: flex;
  justify-content: center;
  animation: rise 1s 0.2s ease both;
}

.stage-frame {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 1 / 1.05;
}

.panel-stack {
  position: absolute;
  inset: 8% 18% 28% 8%;
}

.comic-panel {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  border: 2px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(160deg, rgba(22, 24, 33, 0.95), rgba(11, 12, 16, 0.9));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.comic-panel .panel-lines {
  position: absolute;
  inset: 12%;
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(148, 163, 184, 0.18) 18% 20%, transparent 20%),
    linear-gradient(180deg, transparent 0 28%, rgba(148, 163, 184, 0.12) 28% 30%, transparent 30%),
    linear-gradient(180deg, transparent 0 58%, rgba(148, 163, 184, 0.1) 58% 60%, transparent 60%),
    radial-gradient(circle at 72% 34%, rgba(236, 72, 153, 0.35), transparent 28%),
    radial-gradient(circle at 30% 70%, rgba(14, 165, 233, 0.25), transparent 32%);
}

.p1 {
  transform: rotate(-6deg) translate(-4%, 2%);
  z-index: 1;
}

.p2 {
  transform: rotate(2deg) translate(6%, -2%);
  z-index: 2;
  animation: panel-shift 7s ease-in-out infinite;
}

.p3 {
  transform: rotate(7deg) translate(14%, 6%);
  z-index: 3;
  border-color: rgba(236, 72, 153, 0.35);
  animation: panel-shift-b 7s 1.2s ease-in-out infinite;
}

@keyframes panel-shift {
  0%,
  100% {
    transform: rotate(2deg) translate(6%, -2%);
  }
  50% {
    transform: rotate(3.5deg) translate(8%, 0%);
  }
}

@keyframes panel-shift-b {
  0%,
  100% {
    transform: rotate(7deg) translate(14%, 6%);
  }
  50% {
    transform: rotate(8.5deg) translate(16%, 8%);
  }
}

.wave-rail {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 10%;
  height: 56px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(22, 24, 33, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
  backdrop-filter: blur(8px);
}

.wave-rail span {
  flex: 1;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--cyan), var(--pink));
  transform-origin: bottom center;
  animation: pulse 1.2s ease-in-out infinite;
}

.wave-rail span:nth-child(1) { height: 28%; animation-delay: 0s; }
.wave-rail span:nth-child(2) { height: 48%; animation-delay: 0.08s; }
.wave-rail span:nth-child(3) { height: 72%; animation-delay: 0.16s; }
.wave-rail span:nth-child(4) { height: 40%; animation-delay: 0.24s; }
.wave-rail span:nth-child(5) { height: 88%; animation-delay: 0.32s; }
.wave-rail span:nth-child(6) { height: 56%; animation-delay: 0.4s; }
.wave-rail span:nth-child(7) { height: 34%; animation-delay: 0.48s; }
.wave-rail span:nth-child(8) { height: 76%; animation-delay: 0.56s; }
.wave-rail span:nth-child(9) { height: 50%; animation-delay: 0.64s; }
.wave-rail span:nth-child(10) { height: 92%; animation-delay: 0.72s; }
.wave-rail span:nth-child(11) { height: 42%; animation-delay: 0.8s; }
.wave-rail span:nth-child(12) { height: 64%; animation-delay: 0.88s; }

@keyframes pulse {
  0%,
  100% {
    transform: scaleY(0.7);
    opacity: 0.7;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

.play-orb {
  position: absolute;
  top: 42%;
  right: 6%;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text);
  background: linear-gradient(135deg, var(--purple), var(--pink));
  box-shadow:
    0 0 0 8px rgba(168, 85, 247, 0.12),
    0 16px 40px rgba(236, 72, 153, 0.35);
  animation: orb-breathe 3.2s ease-in-out infinite;
}

.play-orb svg {
  margin-left: 3px;
}

@keyframes orb-breathe {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 0 0 8px rgba(168, 85, 247, 0.12),
      0 16px 40px rgba(236, 72, 153, 0.35);
  }
  50% {
    transform: scale(1.05);
    box-shadow:
      0 0 0 14px rgba(168, 85, 247, 0.08),
      0 20px 48px rgba(236, 72, 153, 0.45);
  }
}

/* ── Footer ─────────────────────────────────────────────────── */

.foot {
  padding: 1rem clamp(1.25rem, 4vw, 3rem) 1.5rem;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

/* ── Responsive ─────────────────────────────────────────────── */

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 0.5rem;
  }

  .hero-copy {
    order: 1;
  }

  .hero-stage {
    order: 2;
  }

  .brand {
    font-size: clamp(2.4rem, 12vw, 3.6rem);
  }

  .hero h1 {
    max-width: 18ch;
  }

  .stage-frame {
    width: min(100%, 340px);
  }
}

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