:root {
  --bg: #141016;
  --bg-2: #1c1618;
  --card: rgba(36, 26, 28, 0.72);
  --card-2: #1c1d22;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f5f5f5;
  --muted: rgba(255, 255, 255, 0.62);
  --faint: rgba(255, 255, 255, 0.42);
  --orange: #ff4d2e;
  --orange-2: #ff7a4a;
  --gold: #e8c56b;
  --green: #20c997;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --max: 1120px;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #0c090e; }
body {
  margin: 0;
  background-color: #161018;
  background-image:
    radial-gradient(1100px 680px at 100% -8%, rgba(255, 77, 46, 0.5), transparent 56%),
    radial-gradient(820px 560px at -8% 12%, rgba(232, 197, 107, 0.18), transparent 50%),
    radial-gradient(760px 520px at 82% 46%, rgba(176, 42, 36, 0.28), transparent 58%),
    radial-gradient(640px 480px at 6% 70%, rgba(255, 122, 74, 0.14), transparent 54%),
    radial-gradient(900px 420px at 55% 108%, rgba(92, 28, 32, 0.7), transparent 52%),
    linear-gradient(165deg, #24181c 0%, #161218 34%, #1a1216 62%, #100e12 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--sans);
  font-weight: 420;
  line-height: 1.55;
  font-size: 17px;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.28;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, 0.28) 100%);
}
.topnote, main, footer { position: relative; z-index: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: rgba(255, 77, 46, 0.35); }

.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 560;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 560; letter-spacing: -0.03em; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(48px, 6.4vw, 84px); }
h1 em, h2 em { font-style: italic; font-weight: 520; color: #fff; }
h2 { font-size: clamp(34px, 4vw, 52px); }
h3 { font-size: 26px; letter-spacing: -0.02em; }
p { margin: 0; color: var(--muted); }
.lead { font-size: 18.5px; max-width: 46ch; }

.topnote {
  background: #05060a;
  color: var(--faint);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
}
.topnote strong { color: var(--gold); font-weight: 560; }

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(var(--max), calc(100% - 40px));
  margin: 14px auto;
  padding: 10px 12px 10px 14px;
  background: rgba(22, 14, 16, 0.78);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 680; letter-spacing: -0.03em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand span { font-size: 16px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14.5px;
}
.nav-links a:hover, .nav-links a.is-current { color: var(--text); background: rgba(255,255,255,0.06); }
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: #fff;
  position: relative;
  margin: 0 auto;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--orange);
  color: #fff;
  font-weight: 560;
  cursor: pointer;
}
.btn:hover { background: var(--orange-2); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn.ghost:hover { border-color: rgba(255,255,255,0.28); background: rgba(255,255,255,0.04); }
.btn.small { min-height: 40px; padding: 0 14px; font-size: 14.5px; }
.btn[aria-disabled="true"] { opacity: 0.72; cursor: default; }

.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 36px; align-items: center; padding: 28px 0 20px; }
.hero h1 { margin: 14px 0 16px; }
.hero h1 em { color: var(--orange-2); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 22px; color: var(--faint); font-size: 13.5px; }
.pills span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); margin-right: 8px; transform: translateY(-1px); }

.stage { position: relative; min-height: 620px; }
.stage::before {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  right: 10px;
  top: 30px;
  background: radial-gradient(circle, rgba(255, 77, 46, 0.55), rgba(255, 77, 46, 0) 68%);
  filter: blur(6px);
  z-index: -1;
}
.phone {
  background: #0c0d11;
  border-radius: 36px;
  padding: 8px;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,0.08);
}
.phone img { border-radius: 28px; width: 100%; height: auto; }
.phone-back { position: absolute; width: 250px; right: 18px; top: 46px; transform: rotate(7deg); opacity: 0.92; }
.phone-front { position: absolute; width: 268px; left: 8px; top: 0; transform: rotate(-6deg); }
.float {
  position: absolute;
  left: 168px;
  bottom: 46px;
  width: 250px;
  padding: 14px 14px 12px;
  border-radius: 16px;
  background: rgba(18, 18, 20, 0.88);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.float small { color: var(--gold); letter-spacing: 0.08em; text-transform: uppercase; font-size: 11px; }
.float strong { display: block; margin-top: 4px; font-size: 15px; }
.float em { display: block; margin-top: 2px; color: var(--muted); font-style: normal; font-size: 13px; }
.meter { height: 4px; border-radius: 99px; background: rgba(255,255,255,0.12); margin-top: 10px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 42%; background: linear-gradient(90deg, var(--orange), var(--gold)); }

.section { padding: 78px 0; }
.section.head { padding-bottom: 10px; }
.section-intro { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: end; margin-bottom: 28px; }
.kicker { color: var(--orange); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 560; margin-bottom: 10px; }

.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.split.reverse { grid-template-columns: 1.1fr 0.9fr; }
.split + .split { margin-top: 72px; }
.split .copy h2 { margin: 8px 0 14px; }
.points { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.points li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; color: var(--muted); }
.points li::before { content: ""; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--orange); }
.shot { justify-self: center; width: min(300px, 100%); }

.genres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.genre {
  min-height: 148px;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(255,255,255,0.06);
}
.genre strong { font-family: var(--serif); font-size: 28px; font-weight: 560; }
.genre span { color: rgba(255,255,255,0.74); margin-top: 4px; }
.g-romance { background: linear-gradient(160deg, #9a4634, #3c1814); }
.g-revenge { background: linear-gradient(160deg, #7a2432, #2a1016); }
.g-billion { background: linear-gradient(160deg, #8d7342, #3a3016); }
.g-fantasy { background: linear-gradient(160deg, #6d6536, #2a2612); }
.g-thriller { background: linear-gradient(160deg, #3c3630, #141210); }
.g-family { background: linear-gradient(160deg, #b15e38, #3d2418); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.step {
  background: linear-gradient(180deg, rgba(52, 34, 32, 0.88), rgba(28, 20, 22, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 18px 16px 20px;
  min-height: 210px;
}
.step b {
  display: block;
  font-family: var(--serif);
  font-size: 28px;
  color: var(--orange);
  margin-bottom: 16px;
}
.step h3 { font-size: 22px; margin-bottom: 8px; }

.band {
  background:
    radial-gradient(500px 180px at 90% 0%, rgba(232, 197, 107, 0.18), transparent 60%),
    linear-gradient(120deg, #ff4d2e, #c4341c 55%, #7a2418);
  border-radius: 28px;
  padding: 42px 40px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 20px;
  align-items: center;
  color: #fff;
}
.band p { color: rgba(255,255,255,0.86); }
.band .actions { margin-top: 18px; }
.band .btn { background: #fff; color: #1a0d0a; }
.band .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.store-note { font-size: 13.5px; color: rgba(255,255,255,0.8); margin-top: 12px; }

.page-hero { padding: 36px 0 10px; max-width: 760px; }
.page-hero h1 { font-size: clamp(42px, 5vw, 68px); margin: 12px 0 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card {
  background: linear-gradient(180deg, rgba(52, 34, 32, 0.9), rgba(28, 20, 22, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 20px;
}
.card h3 { margin-bottom: 8px; }
.card .tag { color: var(--gold); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }

.faq { display: grid; gap: 10px; }
.faq-item { background: linear-gradient(180deg, rgba(48, 32, 30, 0.9), rgba(26, 18, 20, 0.82)); border: 1px solid rgba(255,255,255,0.12); border-radius: 16px; overflow: hidden; }
.faq-item button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 16px 18px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-weight: 560;
}
.faq-item button span { color: var(--orange); }
.faq-item p { padding: 0 18px 16px; display: none; }
.faq-item.is-open p { display: block; }

.prose { max-width: 760px; display: grid; gap: 14px; }
.prose h2 { font-size: 30px; margin-top: 18px; }
.prose ul { margin: 0; padding-left: 18px; color: var(--muted); }
.draft {
  border: 1px solid rgba(232, 197, 107, 0.35);
  background: rgba(232, 197, 107, 0.08);
  color: #f3e6c4;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14.5px;
}

form { display: grid; gap: 12px; }
label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
input, textarea {
  background: #101114;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 12px;
  outline: none;
}
input:focus, textarea:focus { border-color: rgba(255, 77, 46, 0.7); }
textarea { min-height: 140px; resize: vertical; }
.form-note {
  background: rgba(32, 201, 151, 0.1);
  border: 1px solid rgba(32, 201, 151, 0.35);
  color: #d8fff3;
  border-radius: 12px;
  padding: 12px 14px;
}

.home-mock {
  width: min(300px, 100%);
  margin: 0 auto;
  background: #05060a;
  border-radius: 36px;
  padding: 22px 16px 16px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: var(--shadow);
}
.home-mock .when { color: var(--faint); font-size: 13px; }
.home-mock .clock { font-family: var(--serif); font-size: 64px; line-height: 0.95; margin: 4px 0 14px; }
.search-pill {
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--faint);
  font-size: 14px;
  margin-bottom: 14px;
}
.widget {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  background: #161616;
  border-radius: 18px;
  padding: 10px;
  border: 1px solid var(--line);
}
.poster {
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.45)),
    linear-gradient(160deg, #6d8cff, #1a1d3a 70%);
  min-height: 96px;
}
.widget small { color: var(--gold); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.widget strong { display: block; font-size: 14px; margin-top: 3px; }
.widget em { font-style: normal; color: var(--muted); font-size: 12.5px; }
.widget .meter { margin: 8px 0; }
.mini-btn {
  display: inline-flex;
  background: var(--orange);
  color: #fff;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12.5px;
  font-weight: 560;
}
.docks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.docks i {
  display: grid;
  place-items: center;
  height: 46px;
  border-radius: 14px;
  background: #1a1b20;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.two-col { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; align-items: start; }
.langs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.langs span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--muted);
  font-size: 14px;
}
.langs span.on { color: #fff; border-color: rgba(255, 77, 46, 0.6); background: rgba(255, 77, 46, 0.12); }

footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 36px 0 28px;
}
.foot {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 24px;
}
footer h3 { font-family: var(--sans); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
footer a { display: block; color: var(--muted); padding: 4px 0; font-size: 14.5px; }
footer a:hover { color: #fff; }
.legal { margin-top: 26px; color: var(--faint); font-size: 13px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@media (max-width: 980px) {
  .hero, .section-intro, .split, .split.reverse, .band, .foot, .two-col {
    grid-template-columns: 1fr;
  }
  .steps, .genres, .grid-3 { grid-template-columns: 1fr 1fr; }
  .stage { min-height: 0; display: flex; justify-content: center; }
  .stage::before { display: none; }
  .phone-front { position: static; transform: none; width: min(280px, 100%); }
  .phone-back, .float { display: none; }
  .split.reverse .shot { order: -1; }
}
@media (max-width: 640px) {
  .steps, .genres, .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { background-attachment: scroll; }
  .nav { border-radius: 22px; align-items: flex-start; flex-wrap: wrap; }
  .nav-toggle { display: grid; place-items: center; margin-left: auto; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 6px 6px 8px;
  }
  .nav-links.is-open { display: flex; }
  .nav .btn.small { display: none; }
  .stage { min-height: 0; }
  h1 { font-size: 46px; }
  .band { padding: 28px 22px; }
  .legal { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Opened from the app (?app=1): hide site chrome */
html.is-app .nav,
html.is-app footer {
  display: none !important;
}
html.is-app main.wrap,
html.is-app main.wrap.section {
  padding-top: 24px;
}
