/* =================================================================
   Warrior Quest Chapter 1: Ramadan Mode: ON
   Token warna sesuai brand guideline Ngaji Warrior
   ================================================================= */
:root {
  --pine: #103B28;       /* dominan */
  --pine-deep: #0B2D1E;
  --pine-soft: #174A33;
  --paper: #F4F6F1;      /* sekunder */
  --lime: #93FE60;       /* aksen */
  --lime-shadow: #57B82C;
  --muted: rgba(244, 246, 241, .78);
  --ink-soft: #33574A;
  --hair: rgba(244, 246, 241, .16);
  --hair-dark: rgba(16, 59, 40, .18);
  --acc: var(--lime);

  --f-display: 'Excon', 'Montserrat', system-ui, sans-serif;
  --f-body: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1040px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--pine); color: var(--paper); font: 400 16px/1.6 var(--f-body); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 900; line-height: 1.06; letter-spacing: -.01em; }
p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
section { padding: 88px 0; }
.light { background: var(--paper); color: var(--pine); }
.title { font-size: clamp(32px, 8.4vw, 54px); max-width: 15ch; margin-bottom: 18px; }
.body { font-size: 18px; max-width: 56ch; }
.muted { color: var(--muted); }
.light .muted { color: var(--ink-soft); }
.small { font-size: 15px; }
[data-venue] { white-space: nowrap; }

a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; border-radius: 8px; }
.light a:focus-visible, .light summary:focus-visible, .final a:focus-visible, .ticket-hot a:focus-visible { outline-color: var(--pine); }

/* ---------- Tombol: terasa "ditekan" ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 16px 30px; border-radius: 14px; border: 2px solid transparent;
  font: 900 17px/1 var(--f-display); text-decoration: none; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background-color .2s;
}
.btn-lime { background: var(--lime); color: var(--pine); box-shadow: 0 5px 0 var(--lime-shadow); }
.btn-lime:hover { background: #A9FF80; }
.btn-lime:active { transform: translateY(5px); box-shadow: 0 0 0 var(--lime-shadow); }
.btn-pine { background: var(--pine); color: var(--paper); box-shadow: 0 5px 0 var(--pine-deep); }
.btn-pine:active { transform: translateY(5px); box-shadow: 0 0 0 var(--pine-deep); }
.btn-outline { border-color: var(--lime); color: var(--lime); }
.btn-outline:hover { background: rgba(147, 254, 96, .1); }

/* =================================================================
   HERO
   ================================================================= */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: 20px 0 72px; }
/* Lampu sorot tipis, menyala bareng mode ON */
.hero::before {
  content: ""; position: absolute; z-index: -1; top: -30%; right: -30%; width: 120%; height: 130%;
  background: radial-gradient(closest-side, rgba(147, 254, 96, .16), transparent 70%);
  transition: opacity .8s ease;
}
.js .hero, .mode-off .hero { --acc: rgba(244, 246, 241, .28); }
.js .hero::before, .mode-off .hero::before { opacity: 0; }

.topbar { display: flex; align-items: center; justify-content: space-between; }
.topbar img { width: 44px; }
.pill { font-size: 13px; font-weight: 700; padding: 7px 13px; border: 1px solid var(--hair); border-radius: 999px; }

.hero-body { padding-top: 56px; }
.lockup { display: flex; align-items: center; gap: clamp(12px, 3.4vw, 24px); }
.lockup img { width: clamp(64px, 18vw, 116px); flex: none; }
.lk-small { display: block; margin-bottom: 10px; font: 700 clamp(12px, 3.3vw, 17px)/1 var(--f-display); letter-spacing: .34em; }
.lk-big { display: block; font: 900 clamp(31px, 9.6vw, 76px)/.9 var(--f-display); letter-spacing: -.015em; }
.lk-on { color: var(--acc); transition: color .25s ease; }
.mode-on-flash .lk-on { animation: flicker .8s linear; }

/* Saklar ON/OFF */
.switch {
  --w: 116px; --h: 54px;
  position: relative; display: block; width: var(--w); height: var(--h); margin: 30px 0 44px;
  padding: 0; border-radius: 999px; border: 2px solid var(--acc); background: transparent;
  color: var(--paper); cursor: pointer; transition: background-color .3s, border-color .3s;
}
.sw-label { position: absolute; top: 50%; transform: translateY(-50%); font: 900 15px/1 var(--f-display); letter-spacing: .06em; transition: opacity .25s; }
.sw-on { left: 18px; color: var(--pine); opacity: 0; }
.sw-off { right: 16px; opacity: .6; }
.sw-knob {
  position: absolute; top: 5px; left: 5px; width: calc(var(--h) - 14px); height: calc(var(--h) - 14px);
  border-radius: 50%; background: var(--paper);
  transition: transform .45s cubic-bezier(.7, -.4, .3, 1.5), background-color .3s;
}
.switch[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); }
.switch[aria-pressed="true"] .sw-knob { transform: translateX(calc(var(--w) - var(--h))); background: var(--pine); }
.switch[aria-pressed="true"] .sw-on { opacity: 1; }
.switch[aria-pressed="true"] .sw-off { opacity: 0; }

.hero h1 { font-size: clamp(30px, 7.6vw, 58px); max-width: 16ch; }
.lead { margin-top: 18px; font-size: clamp(17px, 4.4vw, 20px); color: var(--muted); max-width: 44ch; }
.info { margin: 26px 0 34px; font-weight: 700; }
.hero .btn { width: 100%; }

@keyframes flicker {
  0% { opacity: .2; } 10% { opacity: 1; } 18% { opacity: .3; } 30% { opacity: 1; } 40% { opacity: .5; } 55%, 100% { opacity: 1; }
}

/* =================================================================
   HITUNG MUNDUR
   ================================================================= */
.countdown { background: var(--pine-deep); text-align: center; padding: 64px 0; }
.cd-title { font-size: clamp(22px, 6vw, 30px); margin-bottom: 22px; }
.timer { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 560px; margin: 0 auto; }
.timer div { padding: 18px 4px 12px; border-radius: 14px; border: 1px solid var(--hair); overflow: hidden; }
.timer span { display: block; font: 900 clamp(34px, 10.5vw, 60px)/1 var(--f-display); font-variant-numeric: tabular-nums; color: var(--lime); }
.timer span.tick { animation: tick .35s cubic-bezier(.2, .8, .3, 1); }
.timer small { display: block; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.cd-done { margin-top: 18px; font-weight: 700; color: var(--lime); }
.badge { display: inline-block; margin: 30px 0 20px; padding: 10px 18px; border-radius: 999px; border: 1.5px dashed var(--lime); }
.badge strong { color: var(--lime); }
.countdown .btn { width: min(100%, 320px); }
@keyframes tick { from { transform: translateY(-55%); opacity: 0; } }

/* =================================================================
   APA ITU
   ================================================================= */
.points { margin-top: 44px; display: grid; border-top: 2px solid var(--pine); }
.points li { padding: 22px 0; border-bottom: 1px solid var(--hair-dark); }
.points h3 { font-size: 22px; margin-bottom: 4px; }
.points p { color: var(--ink-soft); }

/* =================================================================
   ADA APA AJA
   ================================================================= */
.vibes { margin: 36px 0 32px; border-top: 1px solid var(--hair); }
.vibes li {
  display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--hair);
  font: 900 clamp(26px, 7.4vw, 46px)/1.1 var(--f-display);
  transition: color .2s, padding-left .25s ease;
}
.vibes li::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 3px; background: var(--hair); transition: background-color .2s; }
.vibes li:hover { color: var(--lime); padding-left: 8px; }
.vibes li:hover::before { background: var(--lime); }
.surprise { font-size: 19px; margin-bottom: 10px; }
.surprise strong { color: var(--lime); }
.small a { font-weight: 700; color: var(--paper); }

/* =================================================================
   YANG KAMU DAPAT
   ================================================================= */
.loot { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--pine); }
.loot li { padding: 20px 12px 20px 0; border-bottom: 1px solid var(--hair-dark); font: 900 18px/1.25 var(--f-display); }
.pass {
  margin-top: 28px; padding: 26px 22px; border-radius: 22px; background: var(--pine); color: var(--paper);
  display: flex; flex-direction: column; gap: 22px;
}
.pass h3 { font-size: 26px; margin-bottom: 8px; color: var(--lime); }
.pass p { color: var(--muted); max-width: 40ch; }
.stamps { display: flex; gap: 14px; }
.stamp {
  width: 88px; height: 88px; border-radius: 50%; border: 3px double var(--lime); color: var(--lime);
  display: grid; place-items: center; font: 900 14px/1 var(--f-display); transform: rotate(-12deg);
}
.stamp + .stamp { transform: rotate(9deg); }
/* Stempel "dicap" saat masuk layar (browser yang mendukung scroll-driven animation) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .stamp { animation: slam linear both; animation-timeline: view(); animation-range: entry 40% cover 35%; }
    .stamp + .stamp { animation-range: entry 70% cover 45%; }
  }
}
@keyframes slam { 0% { scale: 2.4; opacity: 0; } 70% { scale: .92; opacity: 1; } 100% { scale: 1; opacity: 1; } }

/* =================================================================
   TIKET
   ================================================================= */
.tickets { margin-top: 36px; display: grid; gap: 18px; }
.ticket { position: relative; padding: 28px 24px; border-radius: 22px; border: 1px solid var(--hair); display: flex; flex-direction: column; }
.ticket-hot { background: var(--lime); color: var(--pine); border-color: var(--lime); }
.t-name { font-weight: 700; }
.t-price { font: 900 clamp(44px, 12.5vw, 60px)/1 var(--f-display); margin: 10px 0 22px; padding-bottom: 22px; border-bottom: 2px dashed var(--hair); }
.ticket-hot .t-price { border-color: rgba(16, 59, 40, .3); }
.ticket dl { display: grid; gap: 12px; margin-bottom: 26px; }
.ticket dt { font-size: 13px; font-weight: 700; color: var(--lime); }
.ticket-hot dt { color: var(--pine); }
.ticket dd { color: var(--muted); }
.ticket-hot dd { color: var(--ink-soft); }
.ticket .btn { margin-top: auto; }

/* =================================================================
   FAQ
   ================================================================= */
.faq { margin-top: 30px; max-width: 780px; border-top: 2px solid var(--pine); }
.faq details { border-bottom: 1px solid var(--hair-dark); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font: 900 18px/1.3 var(--f-display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 8px;
  background: var(--pine) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393FE60' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .3s cubic-bezier(.3, 1.4, .5, 1);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details p { padding: 0 44px 22px 0; color: var(--ink-soft); font-size: 17px; }

/* =================================================================
   TENTANG NGAJI WARRIOR
   ================================================================= */
.about-nw { text-align: center; }
.about-nw img { width: 120px; margin: 0 auto 26px; }
.about-nw .title { max-width: none; font-size: clamp(26px, 7vw, 40px); }
.about-nw .body { margin: 0 auto; }
.socials { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; }
.socials a { font-weight: 700; color: var(--lime); text-underline-offset: 5px; }

/* =================================================================
   CTA AKHIR
   ================================================================= */
.final { background: var(--lime); color: var(--pine); text-align: center; padding: 96px 0; }
.final h2 { font-size: clamp(38px, 10.5vw, 76px); max-width: 12ch; margin: 0 auto 18px; }
.final p { font-size: 19px; font-weight: 500; }
.btn-big { margin-top: 32px; width: min(100%, 380px); min-height: 66px; font-size: 20px; }
.final .final-info { margin-top: 28px; font-size: 15px; font-weight: 700; }

/* =================================================================
   FOOTER + STICKY
   ================================================================= */
footer { background: var(--pine-deep); padding: 36px 0 120px; font-size: 14px; color: var(--muted); }
.foot { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.foot img { width: 50px; }
.foot nav { display: flex; gap: 20px; }
.foot nav a { font-weight: 700; color: var(--paper); text-decoration: none; }
.foot nav a:hover { color: var(--lime); }

.sticky {
  position: fixed; inset: auto 0 0; z-index: 50;
  padding: 14px 16px calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, rgba(11, 45, 30, .95) 40%);
  transform: translateY(120%); visibility: hidden;
  transition: transform .35s cubic-bezier(.3, 1.3, .5, 1), visibility .35s;
}
.sticky.show { transform: none; visibility: visible; }
.sticky .btn { width: 100%; }

/* =================================================================
   DESKTOP
   ================================================================= */
@media (min-width: 768px) {
  section { padding: 120px 0; }
  .hero { padding-bottom: 110px; }
  .hero .btn { width: auto; }
  .points { grid-template-columns: repeat(3, 1fr); gap: 32px; border-top: 0; }
  .points li { border-bottom: 0; border-top: 2px solid var(--pine); }
  .loot { grid-template-columns: repeat(4, 1fr); }
  .pass { flex-direction: row; align-items: center; justify-content: space-between; padding: 34px 40px; }
  .tickets { grid-template-columns: 1fr 1fr; max-width: 860px; }
  .sticky { display: none; }
  footer { padding-bottom: 40px; }
  .foot { flex-direction: row; justify-content: space-between; text-align: left; }
}

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