/* ============ MiraDrama — product page ============ */

:root {
  --md-bg: #0a0c14;
  --amber: #e8913f;
  --terracotta: #c96f4a;
  --paper: #f2ead8;
  --md-blue: #4a7dc9;
  --md-violet: #8a5fc9;
  --emerald: #3f9c6a;
  --crimson: #b03a4a;
  --md-ink: #f0ecf2;
  --md-dim: rgba(240, 236, 242, 0.62);
  --md-faint: rgba(240, 236, 242, 0.38);
  --story: linear-gradient(100deg, var(--amber), var(--terracotta) 55%, var(--crimson));
}

body {
  background: var(--md-bg);
  color: var(--md-ink);
}

/* ---------- hero ---------- */

.md-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

#md-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.md-hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 12, 20, 0.82) 0%, rgba(10, 12, 20, 0.45) 36%, rgba(10, 12, 20, 0) 60%);
  pointer-events: none;
}

.md-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: 7rem 0 5rem;
}

.md-kicker {
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--md-faint);
  margin: 0 0 1.6rem;
}

.md-title {
  font-size: clamp(2.4rem, 6.4vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 1.4rem;
  max-width: 14ch;
}

.md-title .amber {
  background: var(--story);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.md-sub {
  max-width: 44ch;
  color: var(--md-dim);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.65;
  margin: 0 0 1.8rem;
}

.md-sub em,
.md-lead em {
  color: var(--md-ink);
  font-style: normal;
}

.md-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 2.2rem;
}

.md-chip {
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--md-dim);
  border: 1px solid rgba(240, 236, 242, 0.16);
  border-radius: 999px;
  padding: 0.42rem 0.9rem;
  backdrop-filter: blur(6px);
  background: rgba(14, 16, 26, 0.35);
}

.md-chip.live {
  color: var(--amber);
  border-color: rgba(232, 145, 63, 0.35);
}

.md-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.md-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  width: 1px;
  height: 52px;
  background: rgba(240, 236, 242, 0.14);
  overflow: hidden;
  z-index: 2;
}

.md-scroll::after {
  content: "";
  position: absolute;
  left: 0;
  top: -40%;
  width: 100%;
  height: 40%;
  background: var(--amber);
  animation: md-drop 2.4s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes md-drop {
  to { top: 110%; }
}

/* ---------- sections ---------- */

.md-section {
  position: relative;
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: clamp(5rem, 11vh, 8.5rem) 0;
}

.md-section .kicker {
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 1.2rem;
}

.md-h2 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  font-weight: 700;
  margin: 0 0 1.4rem;
}

.md-lead {
  max-width: 56ch;
  color: var(--md-dim);
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.7;
  margin: 0 0 1.6rem;
}

/* watch / shape / create */

.stages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.4rem;
}

.stage {
  border: 1px solid rgba(240, 236, 242, 0.09);
  border-radius: 18px;
  padding: 1.5rem 1.3rem 1.4rem;
  background: linear-gradient(160deg, rgba(30, 26, 44, 0.55), rgba(12, 12, 22, 0.35));
  backdrop-filter: blur(10px);
}

.stage .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-bottom: 1.1rem;
  box-shadow: 0 0 18px 2px currentColor;
  display: block;
}

.stage h3 {
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.55rem;
}

.stage p {
  color: var(--md-dim);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
}

.stage:nth-child(1) .dot { background: var(--amber); color: var(--amber); }
.stage:nth-child(2) .dot { background: var(--md-violet); color: var(--md-violet); }
.stage:nth-child(3) .dot { background: var(--emerald); color: var(--emerald); }

/* story multiverse */

.worlds-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}

.world {
  border: 1px solid rgba(240, 236, 242, 0.09);
  border-radius: 18px;
  padding: 1.4rem 1.1rem;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.35s;
  position: relative;
  overflow: hidden;
}

.world::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.85;
  z-index: -1;
}

.world:hover {
  transform: translateY(-5px);
  border-color: rgba(232, 145, 63, 0.3);
}

.world h3 {
  font-size: 0.88rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 0.45rem;
}

.world p {
  color: var(--md-dim);
  font-size: 0.84rem;
  line-height: 1.55;
  margin: 0;
}

.w-romance::before { background: linear-gradient(160deg, rgba(232, 145, 63, 0.22), rgba(138, 74, 106, 0.12)), #14101c; }
.w-mystery::before { background: linear-gradient(160deg, rgba(74, 125, 201, 0.22), rgba(20, 30, 50, 0.2)), #0d1220; }
.w-family::before { background: linear-gradient(160deg, rgba(201, 162, 74, 0.2), rgba(90, 60, 30, 0.16)), #171208; }
.w-folklore::before { background: linear-gradient(160deg, rgba(63, 156, 106, 0.2), rgba(14, 34, 24, 0.2)), #0b1410; }
.w-second::before { background: linear-gradient(160deg, rgba(122, 140, 180, 0.2), rgba(40, 50, 70, 0.2)), #10141e; }
.w-city::before { background: linear-gradient(160deg, rgba(138, 95, 201, 0.2), rgba(30, 20, 50, 0.2)), #120e1c; }
.w-childhood::before { background: linear-gradient(160deg, rgba(242, 220, 160, 0.16), rgba(120, 100, 60, 0.14)), #16130c; }
.w-historical::before { background: linear-gradient(160deg, rgba(201, 111, 74, 0.2), rgba(60, 30, 20, 0.18)), #160f0a; }

/* language */

.cities {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.cities li {
  border: 1px solid rgba(240, 236, 242, 0.14);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  color: var(--md-dim);
  font-size: 0.92rem;
  transition: border-color 0.3s, color 0.3s;
}

.cities li:hover {
  border-color: rgba(232, 145, 63, 0.45);
  color: var(--md-ink);
}

.cities li:last-child {
  border-style: dashed;
  color: var(--md-faint);
}

/* final */

.md-final {
  text-align: center;
  padding-bottom: clamp(6rem, 14vh, 10rem);
}

.md-final .md-h2 {
  background: var(--story);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.md-final .md-lead {
  margin-left: auto;
  margin-right: auto;
}

/* reveal */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

[data-reveal].in {
  opacity: 1;
  transform: none;
}

/* footer */

.md-footer {
  border-top: 1px solid rgba(240, 236, 242, 0.08);
  padding: 2.4rem 0 2.8rem;
  text-align: center;
  color: var(--md-faint);
  font-size: 0.85rem;
}

.md-footer a {
  color: var(--md-dim);
  text-decoration: none;
}

.md-footer a:hover {
  color: var(--amber);
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .stages { grid-template-columns: 1fr; }
  .worlds-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .worlds-grid { grid-template-columns: 1fr; }
  .md-hero-inner { padding-top: 6rem; }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .md-scroll::after { animation: none; }
}
