/*
 * #Bullaunch Trading Contest, halaman season. Design read: soft-launch kompetisi untuk trader ritel Indonesia yang datang dari iklan Meta di HP,
 * bahasa visual "dark luxury night trading" dari brand/BRAND-DNA.md, dial ENERGY 3 / RHYTHM 2 / MOTION 2.
 * Alasan utama:
 * - Gelap karena aturan brand (logo hanya di atas Night #0C0A08), bukan karena "terlihat tech".
 * - Gold hanya untuk angka uang, tombol, dan nomor kursi: angka adalah alasan orang datang.
 * - Cormorant Garamond untuk judul dan angka (suara brand), Instrument Sans lebar 80% untuk "#BULLAUNCH" (pengganti Barlow di logo SVG).
 * - Motif: "kursi" bernomor. Lima kursi papan dan sebelas pemenang; kursi kosong ditampilkan apa adanya, itu FOMO yang jujur.
 * - Satu cahaya hangat di belakang tiga host: titik fokus hero. Tanpa grid, orb, atau glass di banyak elemen.
 */
:root {
  --night: #0C0A08;
  --surface: #14110D;
  --surface-2: #1C1813;
  --rule: #2E2820;
  --rule-gold: #5C4A2A;
  --ivory: #F2EADB;
  --muted: #B9AE9A;
  --neutral: #8F8571;
  --gold: #D4AF63;
  --gold-hi: #EBCB86;
  --warn: #E5596A;
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --max: 1120px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--night); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--night); color: var(--ivory);
  font: 400 16px/1.55 var(--body); overflow-x: clip;
  font-variant-numeric: lining-nums; /* Cormorant memakai angka gaya lama secara bawaan; angka uang dan tanggal harus rata */
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1.04; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--gold); color: var(--night); padding: 10px 14px; font-weight: 600; }
.skip:focus { left: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px;
  background: var(--gold); color: var(--night); border: 0; border-radius: 10px;
  font: 600 16px/1 var(--body); text-decoration: none; cursor: pointer;
  transition: background-color .15s ease;
}
.btn:hover { background: var(--gold-hi); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn--ghost { background: transparent; color: var(--gold); border: 1px solid var(--rule-gold); }
.btn--ghost:hover { background: var(--surface-2); }

/* bar */
.bar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px var(--gutter); padding-top: max(8px, env(safe-area-inset-top, 0px));
  background: var(--night); border-bottom: 1px solid var(--rule);
}
.bar__brand img { mix-blend-mode: lighten; }
.bar .btn { display: none; } /* di HP tombol hero dan dock sudah ada; dua tombol sekaligus terlalu ramai */
.bar__brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-family: var(--display); font-size: 21px; font-weight: 700; letter-spacing: .04em; }

main > section { padding-left: var(--gutter); padding-right: var(--gutter); }
main > section > * { max-width: var(--max); margin-left: auto; margin-right: auto; }

/* hero */
.hero { position: relative; display: grid; gap: 28px; padding-top: 22px; padding-bottom: 44px; isolation: isolate; }
.hero::before { /* satu cahaya hangat di belakang host, pusat perhatian hero */
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: radial-gradient(70% 46% at 50% 82%, rgba(212, 175, 99, .20), transparent 70%);
}
.hero__copy { display: grid; gap: 18px; min-width: 0; }
.lockup { display: flex; align-items: center; gap: 14px; }
.lockup__mark { width: 68px; height: auto; mix-blend-mode: lighten; flex: none; }
.lockup__words { display: grid; line-height: 1; }
.lockup__brand { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.lockup__title { font-family: var(--body); font-stretch: 78%; font-weight: 700; font-size: 34px; letter-spacing: -.01em; text-transform: uppercase; margin-top: 4px; }
.lockup__edition { font-weight: 600; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-hi); margin-top: 6px; } /* sama dengan logo SVG: baris bawah tebal dan lebih terang supaya terbaca di ukuran kecil */
.hero h1 { font-size: clamp(34px, 9vw, 60px); }
.hero h1 > span { display: block; color: var(--gold); }
.lede { color: var(--muted); max-width: 52ch; }

.clock { border: 1px solid var(--rule-gold); border-radius: 14px; padding: 16px; background: var(--surface); display: grid; gap: 12px; }
.clock__label { font-size: 14px; font-weight: 600; color: var(--gold); }
.clock__digits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.clock__digits span { display: grid; justify-items: center; padding: 8px 0 6px; border-radius: 10px; background: var(--surface-2); }
.clock__digits b { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 10vw, 48px); line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.clock__digits small { font-size: 12px; color: var(--muted); margin-top: 2px; }
.clock__dates { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13.5px; color: var(--muted); }
.clock__dates strong { color: var(--ivory); font-weight: 600; }
.clock[data-phase="ended"] .clock__digits { display: none; }

.hero__act { display: grid; gap: 12px; justify-items: start; }
.hero__act .btn { width: 100%; }
.count { font-size: 15px; color: var(--muted); }
.count strong { font-family: var(--display); font-size: 26px; color: var(--ivory); font-variant-numeric: lining-nums; }

.fan { position: relative; height: 300px; max-width: 460px; width: 100%; margin: 0 auto; }
.fan__card { position: absolute; margin: 0; width: 44%; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--surface-2); border: 1px solid rgba(242, 234, 219, .18); }
.fan__card img { width: 100%; height: 100%; object-fit: cover; }
.fan__card figcaption { position: absolute; left: 8px; bottom: 8px; padding: 3px 10px; border-radius: 6px; font-size: 13px; font-weight: 600; background: rgba(12, 10, 8, .82); }
.fan__card--l { left: 0; top: 34px; transform: rotate(-6deg); }
.fan__card--c { left: 25%; top: 0; width: 50%; z-index: 2; box-shadow: 0 18px 40px rgba(0, 0, 0, .55); /* kartu tengah di depan: Rosa host utama */ }
.fan__card--r { right: 0; top: 42px; transform: rotate(6deg); }

/* section rhythm */
.board, .prizes, .steps, .rules { padding-top: 48px; padding-bottom: 48px; }
.kicker { font-size: 14px; font-weight: 600; color: var(--gold); }
h2 { font-size: clamp(32px, 7.4vw, 48px); }

/* board */
.board { background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.board__head { display: grid; gap: 6px; margin-bottom: 20px; }
.board__meta { font-size: 14px; color: var(--muted); }
.board__note { padding: 14px 16px; border: 1px dashed var(--rule-gold); border-radius: 12px; color: var(--ivory); margin-bottom: 14px; font-size: 15px; }
.board__note strong { color: var(--gold); }
.seats { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 8px; }
.seat {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px;
  min-height: 64px; padding: 10px 14px; border-radius: 12px; background: var(--night); border: 1px solid var(--rule);
}
.seat__rank { font-family: var(--display); font-weight: 700; font-size: 34px; line-height: 1; color: var(--gold); text-align: center; font-variant-numeric: lining-nums; }
.seat__who { display: grid; gap: 2px; min-width: 0; }
.seat__name { font-weight: 600; font-size: 17px; overflow-wrap: anywhere; }
.seat__sub { font-size: 13px; color: var(--muted); }
.seat__amt { font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--ivory); font-variant-numeric: lining-nums tabular-nums; }
.seat__prize { font-size: 13px; font-weight: 600; color: var(--gold); text-align: right; white-space: nowrap; }
.seat__prize small { display: block; font-weight: 400; color: var(--muted); }
.seat--first { border-color: var(--rule-gold); background: var(--surface-2); }
.seat--first .seat__rank { font-size: 44px; }
.seat--empty { border-style: dashed; background: transparent; }
.seat--empty .seat__name { color: var(--muted); font-weight: 500; }
.seat--wait .seat__who i { display: block; height: 14px; width: 60%; border-radius: 4px; background: var(--surface-2); }
.seat--in { animation: seat-in .4s ease both; /* kursi baru terisi: perhatian ke perubahan nyata */ }
@keyframes seat-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.board__error { display: grid; gap: 12px; justify-items: start; margin-top: 14px; padding: 14px 16px; border: 1px solid var(--warn); border-radius: 12px; }
.fine { margin-top: 16px; font-size: 13.5px; color: var(--muted); max-width: 70ch; }

/* prizes */
.prizes h2 { margin-bottom: 22px; }
.prizes h2 span { color: var(--gold); }
.prizes__grid { display: grid; gap: 14px; }
.pz { padding: 20px; border-radius: 14px; border: 1px solid var(--rule); display: grid; gap: 10px; align-content: start; background: var(--surface); }
.pz--profit { border-color: var(--rule-gold); }
.pz__tag { font-size: 13px; font-weight: 600; color: var(--muted); }
.pz h3 { font-size: 30px; }
.pz__top { display: flex; align-items: baseline; gap: 10px; }
.pz__top span { font-family: var(--display); font-weight: 700; font-size: 54px; line-height: 1; color: var(--gold); font-variant-numeric: lining-nums; }
.pz--rebate .pz__top span { font-size: 44px; }
.pz__top small { color: var(--muted); font-size: 14px; }
.pz__list { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; counter-reset: pz 1; }
.pz__list li { counter-increment: pz; padding: 6px 10px; border-radius: 8px; background: var(--surface-2); font-size: 14px; }
.pz__list li::before { content: "#" counter(pz) " "; color: var(--muted); }
.pz__list b { font-family: var(--display); font-size: 18px; }
.pz__rule { font-size: 14px; color: var(--muted); }
.prizes__total { margin-top: 18px; font-size: 16px; color: var(--muted); }
.prizes__total strong { font-family: var(--display); font-size: 28px; color: var(--ivory); }

/* steps */
.steps h2 { margin-bottom: 20px; }
.steps__list { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 0; }
.steps__list li { display: grid; grid-template-columns: 56px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--rule); }
.steps__list li:last-child { border-bottom: 1px solid var(--rule); }
.steps__n { font-family: var(--display); font-weight: 700; font-size: 36px; line-height: 1; color: var(--gold); font-variant-numeric: lining-nums; }
.steps__list h3 { font-family: var(--body); font-size: 17px; font-weight: 600; line-height: 1.3; margin-bottom: 4px; }
.steps__list p { color: var(--muted); font-size: 15px; }

/* rules */
.rules { border-top: 1px solid var(--rule); }
.rules h2 { margin-bottom: 18px; }
.rules__list { margin: 0 auto; padding: 0 0 0 18px; display: grid; gap: 10px; color: var(--muted); }
.rules__list strong { color: var(--ivory); font-weight: 600; }
.rules__list li::marker { color: var(--gold); }
.warn { margin-top: 20px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); font-weight: 600; }

/* final */
.final { position: relative; display: grid; min-height: 460px; align-items: end; overflow: hidden; padding-top: 0; padding-bottom: 0; }
.final__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.final::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--night) 32%, rgba(12, 10, 8, .55) 64%, rgba(12, 10, 8, .2)); }
.final__copy { position: relative; z-index: 1; width: 100%; display: grid; gap: 12px; justify-items: start; padding: 120px 0 44px; }
.final h2 { font-size: clamp(34px, 8vw, 54px); max-width: 16ch; }
.final p { color: var(--ivory); }

.foot { display: grid; justify-items: center; gap: 8px; padding: 32px var(--gutter) 120px; text-align: center; font-size: 13px; color: var(--muted); border-top: 1px solid var(--rule); }
.foot a { color: var(--gold); min-height: 44px; display: inline-flex; align-items: center; }

/* dock: tombol tetap di bawah layar HP setelah tombol hero lewat */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--gutter); padding-bottom: max(10px, env(safe-area-inset-bottom, 0px));
  background: rgba(12, 10, 8, .96); border-top: 1px solid var(--rule-gold);
}
.dock[hidden] { display: none; }
.dock__t { font-size: 13px; color: var(--muted); line-height: 1.3; }
.dock__t strong { display: block; font-family: var(--display); font-size: 20px; color: var(--ivory); font-variant-numeric: lining-nums tabular-nums; }

/* pratinjau lokal: jelas bahwa angka adalah data contoh */
.sample { margin: 0; padding: 8px var(--gutter); background: var(--warn); color: var(--night); font-size: 13px; font-weight: 600; text-align: center; }

/* hero: uang dulu, Contest sebagai alasan sekarang */
.perlot { font-size: 15px; color: var(--ivory); padding-left: 12px; border-left: 2px solid var(--gold); max-width: 52ch; }
.hook { display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); }
.hook__t { font-size: 15px; color: var(--muted); }
.hook__t strong { color: var(--gold-hi); font-weight: 600; }
.hook__prize { font-size: 16px; }
.hook__prize strong { font-family: var(--display); font-size: 24px; color: var(--gold); font-weight: 700; }

/* kalkulator */
.calc { padding-top: 48px; padding-bottom: 48px; }
.calc__head { display: grid; gap: 6px; margin-bottom: 18px; }
.calc__lede { color: var(--muted); max-width: 60ch; }
.calc__form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.field { display: grid; gap: 6px; min-width: 0; grid-column: 1 / -1; }
.field--num { grid-column: auto; }
.field label { font-size: 14px; font-weight: 600; color: var(--muted); }
.field select, .field input {
  width: 100%; min-height: 48px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--rule-gold);
  background: var(--surface); color: var(--ivory); font: 500 16px/1.2 var(--body);
}
.field select:disabled { color: var(--neutral); }
.field input[aria-invalid] { border-color: var(--warn); }
.calc__err { grid-column: 1 / -1; color: var(--warn); font-size: 14px; }
.calc__out { padding: 18px; border-radius: 14px; border: 1px solid var(--rule-gold); background: var(--surface); display: grid; gap: 4px; }
.calc__label { font-size: 14px; font-weight: 600; color: var(--gold); }
.calc__usd { font-family: var(--display); font-weight: 700; font-size: clamp(44px, 12vw, 64px); line-height: 1; color: var(--ivory); }
.calc__rp { font-size: 17px; font-weight: 600; }
.calc__how { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.calc__state { padding: 14px 16px; border-radius: 12px; border: 1px dashed var(--rule-gold); color: var(--ivory); }
.brokers { margin-top: 28px; display: grid; gap: 12px; }
.brokers h3 { font-size: 26px; }
.brokers__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.brokers__list li { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px 6px 8px; border-radius: 10px; background: var(--surface); border: 1px solid var(--rule); font-weight: 600; font-size: 15px; }
.brokers__list img { width: 28px; height: 28px; border-radius: 6px; object-fit: contain; background: var(--ivory); }

/* keberatan yang sering muncul sebelum daftar */
.faq { padding-top: 48px; padding-bottom: 48px; border-top: 1px solid var(--rule); }
.faq h2 { margin-bottom: 16px; }
.faq__list { display: grid; gap: 8px; }
.faq details { border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); }
.faq summary { min-height: 52px; padding: 14px 44px 14px 16px; cursor: pointer; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-family: var(--display); font-size: 26px; color: var(--gold); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 16px 16px; color: var(--muted); }

@media (max-width: 359px) { /* HP sempit: bull lebih kecil supaya TRADING CONTEST · SEASON 01 tetap satu baris */
  .lockup { gap: 10px; }
  .lockup__mark { width: 62px; }
  .lockup__edition { font-size: 11.5px; letter-spacing: .06em; white-space: nowrap; }
}
@media (min-width: 720px) {
  .hero__act { grid-auto-flow: column; align-items: center; gap: 20px; }
  .hero__act .btn { width: auto; }
  .bar .btn { display: inline-flex; }
  .prizes__grid { grid-template-columns: 1.15fr 1fr; }
  .calc { display: grid; grid-template-columns: 1.1fr 1fr; column-gap: 28px; align-items: start; }
  .calc > * { max-width: none; margin-left: 0; margin-right: 0; }
  .calc__head { margin-bottom: 22px; }
  .calc .brokers { margin-top: 36px; }
  .calc__head, .calc .fine, .brokers { grid-column: 1 / -1; }
  .calc { padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2)); padding-right: max(var(--gutter), calc((100vw - var(--max)) / 2)); }
  .faq__list { grid-template-columns: 1fr 1fr; align-items: start; }
  .steps__list { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .steps__list li { grid-template-columns: 1fr; border-bottom: 1px solid var(--rule); }
  .rules__list { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .seat { grid-template-columns: 60px 1fr auto; padding: 12px 18px; }
  .final__copy { max-width: var(--max); margin: 0 auto; }
  .dock { display: none; }
  .foot { padding-bottom: 40px; }
}
@media (min-width: 980px) {
  .hero { grid-template-columns: 1.05fr 1fr; align-items: center; padding-top: 40px; padding-bottom: 64px; max-width: none; }
  .hero > * { margin: 0; }
  .hero { padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2)); padding-right: max(var(--gutter), calc((100vw - var(--max)) / 2)); }
  .hero::before { background: radial-gradient(42% 60% at 76% 55%, rgba(212, 175, 99, .22), transparent 70%); }
  .fan { height: 480px; max-width: 520px; }
  .lockup__mark { width: 96px; }
  .lockup__title { font-size: 44px; }
  .lockup__edition { font-size: 15px; letter-spacing: .16em; }
  .final { min-height: 520px; }
  .final__img { left: auto; width: 56%; }
  .final::after { background: linear-gradient(to right, var(--night) 46%, rgba(12, 10, 8, .2) 80%); }
  .final__copy { padding: 64px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .seat--in { animation: none; }
  .btn { transition: none; }
}
