:root {
  --bg: #09090B;
  --bg-elevated: #111114;
  --bg-subtle: #16161A;
  --line: rgba(255, 255, 255, 0.1);
  --line-gold: rgba(223, 192, 138, 0.34);

  --ink: #F5F3EE;
  --ink-muted: #A6A29B;
  --gold: #DFC08A;
  --gold-hover: #ECD2A3;
  --gold-ink: #09090B;

  --glow-paras: radial-gradient(circle at 72% 45%, rgba(186, 108, 52, 0.24) 0%, rgba(9, 9, 11, 0) 60%);
  --glow-lontar: radial-gradient(circle at 72% 45%, rgba(168, 58, 42, 0.22) 0%, rgba(9, 9, 11, 0) 60%);
  --glow-atelier: radial-gradient(circle at 72% 45%, rgba(56, 112, 86, 0.24) 0%, rgba(9, 9, 11, 0) 60%);

  --font-display: 'Bodoni Moda', Georgia, serif;
  --font-sans: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --container: 1240px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  scrollbar-color: #3A352E #09090B;
  scrollbar-width: thin;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: var(--gold-ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
a { text-underline-offset: 0.22em; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 200;
  background: var(--gold);
  color: var(--gold-ink);
  padding: 0.7rem 1.2rem;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* =========================================================
   MINIMAL DARK STUDIO HEADER
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(9, 9, 11, 0.9);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.brand__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.brand__text {
  font-family: var(--font-display);
  font-size: 1.18rem;
  letter-spacing: 0.22em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__links a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: color 0.2s ease;
}

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

.nav__right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Ambient Sound Toggle */
.bgm-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-elevated);
  color: var(--ink-muted);
  border: 1px solid var(--line);
  padding: 0.48rem 0.8rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.bgm-btn:hover,
.bgm-btn.is-playing {
  border-color: var(--line-gold);
  color: var(--gold);
}

.bgm-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 11px;
}

.bgm-bars span {
  width: 2px;
  height: 4px;
  background: currentColor;
  transition: height 0.2s ease;
}

.bgm-btn.is-playing .bgm-bars span {
  animation: eqPulse 1.1s ease-in-out infinite alternate;
}
.bgm-btn.is-playing .bgm-bars span:nth-child(2) { animation-delay: 0.25s; }
.bgm-btn.is-playing .bgm-bars span:nth-child(3) { animation-delay: 0.5s; }

@keyframes eqPulse {
  from { height: 3px; }
  to { height: 11px; }
}

.nav__wa {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.95rem;
  background: var(--gold);
  color: var(--gold-ink);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.nav__wa:hover { background: var(--gold-hover); }

/* Shared Buttons */
.btn-gold,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.92rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.22s var(--ease);
}

.btn-gold {
  background: var(--gold);
  color: var(--gold-ink);
  border: 1px solid var(--gold);
}
.btn-gold:hover { background: var(--gold-hover); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.24);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-1px); }

.btn-link {
  display: inline-flex;
  align-items: center;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.5rem 0.25rem;
}
.btn-link:hover { text-decoration: underline; }

/* =========================================================
   1. DARK CINEMA HERO + INTERACTIVE IPHONE STAGE
   ========================================================= */
.hero {
  position: relative;
  min-height: calc(100svh - 62px);
  display: flex;
  align-items: center;
  padding: clamp(2.5rem, 5vw, 4.25rem) 1.5rem;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero__ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--glow-paras);
  transition: opacity 0.5s ease;
}

.hero[data-theme-glow="lontar"] .hero__ambient { background: var(--glow-lontar); }
.hero[data-theme-glow="atelier"] .hero__ambient { background: var(--glow-atelier); }

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero__copy { min-width: 0; }

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.9rem, 5.4vw, 4.85rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--ink);
  text-wrap: balance;
}

.hero__lead {
  margin: 1.4rem 0 0;
  max-width: 50ch;
  color: var(--ink-muted);
  font-size: 1.04rem;
}

.hero__cta-row {
  margin-top: 2.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Instant Theme Switcher Strip */
.stage-picker {
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.stage-pill {
  text-align: left;
  padding: 0.9rem 1rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  transition: border-color 0.22s ease, background 0.22s ease;
}

.stage-pill:hover { border-color: rgba(255, 255, 255, 0.28); }

.stage-pill.is-active {
  background: rgba(223, 192, 138, 0.08);
  border-color: var(--gold);
}

.stage-pill__name {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}

.stage-pill__meta {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-muted);
}

.stage-pill.is-active .stage-pill__meta { color: var(--gold); }

/* Interactive Dark-Titanium iPhone Frame */
.phone-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  min-width: 0;
}

.phone-device {
  position: relative;
  width: 344px;
  max-width: 100%;
  height: 670px;
  padding: 11px;
  border-radius: 48px;
  background: linear-gradient(145deg, #2D2D32 0%, #151518 45%, #232328 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.75);
  transition: transform 0.35s var(--ease);
}

.phone-notch {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 24px;
  border-radius: 999px;
  background: #09090B;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
}

.phone-camera {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1D2430;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background: #14100D;
}

.phone-screen iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.phone-toolbar {
  width: 344px;
  max-width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0 0.5rem;
}

.phone-toolbar__status {
  font-size: 0.76rem;
  color: var(--ink-muted);
}

.phone-toolbar__open {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
}
.phone-toolbar__open:hover { text-decoration: underline; }

/* =========================================================
   2. DARK CINEMA SHOWCASE CHAPTERS (NO BOXED CARDS)
   ========================================================= */
.chapters {
  padding: clamp(5rem, 9vw, 7.5rem) 0;
}

.chapters__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--line);
}

.display-h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 4vw, 3.35rem);
  line-height: 1.08;
  font-weight: 400;
  color: var(--ink);
}

.filter-bar {
  display: flex;
  gap: 0.45rem;
}

.filter-chip {
  padding: 0.55rem 1.1rem;
  background: transparent;
  color: var(--ink-muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.filter-chip.is-active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.chapter {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  border-bottom: 1px solid var(--line);
}

.chapter.is-hidden { display: none; }

.chapter--reverse .chapter__visual { order: 2; }

.chapter__visual {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  aspect-ratio: 16 / 11;
  will-change: transform;
}

.chapter__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.chapter__overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(180deg, transparent 0%, rgba(9, 9, 11, 0.88) 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chapter__tag {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.chapter__palette {
  display: flex;
  gap: 6px;
}

.chapter__palette i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: block;
}

/* Typographic Dark Cinema Visual Plates for Lontar & Atelier */
.visual-art {
  width: 100%;
  height: 100%;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.visual-art--lontar {
  background: radial-gradient(circle at 25% 25%, #3B281B 0%, #16110D 75%);
}

.visual-art--atelier {
  background: radial-gradient(circle at 75% 25%, #1E3229 0%, #0D1411 75%);
}

.visual-art__meta {
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.visual-art__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--ink);
}

.visual-art__sub {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.chapter__content { min-width: 0; }

.chapter__content h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 2.65rem);
  line-height: 1.12;
  font-weight: 400;
  color: var(--ink);
}

.chapter__desc {
  margin: 1.1rem 0 0;
  color: var(--ink-muted);
  max-width: 50ch;
}

.chapter__points {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: #D9D5CD;
  font-size: 0.95rem;
}

.chapter__points li::before {
  content: '— ';
  color: var(--gold);
}

.chapter__points code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  color: var(--gold);
}

.chapter__actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}

/* =========================================================
   3. INTERACTIVE GUEST LINK TESTER
   ========================================================= */
.tester {
  padding: clamp(3.5rem, 6vw, 5rem) 0;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--line);
}

.tester__inner {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 2rem 3rem;
  align-items: center;
}

.tester__lead {
  margin: 0.75rem 0 0;
  color: var(--ink-muted);
}

.tester__lead code {
  font-family: var(--font-mono);
  color: var(--gold);
}

.tester__form {
  display: grid;
  grid-template-columns: 1fr 185px auto;
  gap: 0.65rem;
}

.tester__form input,
.tester__form select {
  padding: 0.9rem 1.05rem;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.94rem;
}

.tester__form input:focus,
.tester__form select:focus {
  border-color: var(--gold);
}

/* =========================================================
   4. MINIMALIST ARCHITECTURAL PRICING LEDGER
   ========================================================= */
.pricing {
  padding: clamp(5rem, 9vw, 7.5rem) 0;
  border-bottom: 1px solid var(--line);
}

.pricing__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

.pricing__note {
  margin: 0;
  max-width: 48ch;
  color: var(--ink-muted);
}

.ledger {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.ledger__col {
  min-width: 0;
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ledger__col:last-child { border-right: none; }

.ledger__col--highlight {
  background: linear-gradient(180deg, rgba(223, 192, 138, 0.06) 0%, rgba(9, 9, 11, 0) 100%);
}

.ledger__badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.ledger__col h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 400;
}

.ledger__badge {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  border: 1px solid var(--line-gold);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.ledger__price {
  margin: 1rem 0 0;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.ledger__price span { font-size: 0.85rem; color: var(--ink-muted); }
.ledger__price strong { font-size: 2rem; color: var(--gold); }

.ledger__desc {
  margin: 0.85rem 0 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.ledger__list {
  margin: 1.75rem 0 2.25rem;
  padding: 1.75rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-size: 0.94rem;
  color: #DDD9D1;
}

.ledger__list li::before {
  content: '— ';
  color: var(--gold);
}

.ledger__list code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--gold);
}

.ledger__btn {
  width: 100%;
  white-space: normal;
  text-align: center;
}

/* =========================================================
   5. PROCESS & FAQ
   ========================================================= */
.process {
  padding: clamp(5rem, 9vw, 7.5rem) 0;
  border-bottom: 1px solid var(--line);
}

.process__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.steps {
  margin: 2rem 0 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.65rem;
}

.steps h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
}

.steps p {
  margin: 0.35rem 0 0;
  color: var(--ink-muted);
}

.faq {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1.15rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq summary::after {
  content: '+';
  font-family: var(--font-mono);
  color: var(--gold);
  font-size: 1.15rem;
}

.faq details[open] summary::after { content: '−'; }

.faq details p {
  margin: 0.75rem 0 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* =========================================================
   6. FOOTER
   ========================================================= */
.footer {
  padding: 4rem 0;
  background: #060608;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.footer__wordmark {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.16em;
}

.footer__sub {
  margin: 0.35rem 0 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.footer__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
}

.footer__domain {
  font-size: 0.8rem;
  color: var(--gold);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1020px) {
  .hero__inner,
  .chapter,
  .tester__inner,
  .ledger,
  .process__grid {
    grid-template-columns: 1fr;
  }

  .chapter--reverse .chapter__visual { order: 0; }

  .ledger__col {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 2rem 0;
  }
  .ledger__col:last-child { border-bottom: none; }
}

@media (max-width: 720px) {
  .nav__inner { padding: 0.75rem 1rem; gap: 0.65rem; }
  .brand__text { font-size: 1rem; letter-spacing: 0.16em; }
  .nav__links { display: none; }
  .nav__right { gap: 0.45rem; }
  .bgm-btn { padding: 0.42rem 0.65rem; font-size: 0.7rem; }
  .nav__wa { padding: 0.45rem 0.75rem; font-size: 0.7rem; }

  .hero { padding: 1.75rem 1.15rem 2.25rem; min-height: auto; }
  .stage-picker {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.45rem;
  }
  .stage-pill { padding: 0.65rem 0.6rem; }
  .stage-pill__name { font-size: 0.78rem; }
  .stage-pill__meta { display: none; }

  .tester__form { grid-template-columns: 1fr; }

  .phone-device {
    height: 490px;
    border-radius: 40px;
  }
  .phone-screen { border-radius: 30px; }

  .footer__right { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-parallax], .phone-device { transform: none !important; }
  .bgm-btn.is-playing .bgm-bars span { animation: none; }
}
