/* =============================================================
   LombaKita — Custom Stylesheet (Tanpa Bootstrap)
   ============================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

:root {
  --bg:        #0d1020;
  --bg-2:      #121830;
  --surface:   #1a2138;
  --surface-2: #222b47;
  --border:    #2a3352;
  --text:      #e8ecf6;
  --muted:     #98a2bf;
  --primary:   #6366f1;
  --primary-2: #818cf8;
  --accent:    #f59e0b;
  --success:   #10b981;

  --radius:    14px;
  --radius-sm: 10px;
  --shadow:    0 8px 28px rgba(0, 0, 0, 0.35);

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 20px;
}

h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.02em; font-weight: 800; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-2);
  margin-bottom: 14px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.gradient-text {
  background: linear-gradient(120deg, var(--primary-2), var(--accent));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
  white-space: nowrap;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-2); }

.btn-outline { border: 1.5px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary-2); }

.btn-ghost { color: var(--muted); }
.btn-ghost:hover { color: var(--text); }

.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: #f1f5f9; }

.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(13, 16, 32, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
}
.brand-mark { width: 36px; height: 36px; flex-shrink: 0; }
.brand-mark svg { border-radius: 9px; }
.brand-text small {
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 700;
  margin-left: 2px;
}

.nav-links {
  display: flex;
  gap: 26px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}
.nav-links a { transition: color .15s; }
.nav-links a:hover { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 8px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 56px;
  overflow: hidden;
  margin-top: 64px; /* Agar tidak tertutup navbar */
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}
.hero-glow--1 {
  top: -180px; right: -120px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(99,102,241,.45), transparent 70%);
}
.hero-glow--2 {
  bottom: -260px; left: -140px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(245,158,11,.25), transparent 70%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.hero-lead {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.02rem;
  margin-bottom: 28px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
}
.hero-stats > div { display: flex; flex-direction: column; }
.hero-stats dt {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.hero-stats dd {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* Ilustrasi Kanan */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-visual svg {
  width: 100%;
  max-width: 500px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4));
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section--alt { background: var(--bg-2); }

.section-head {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 900;
  margin-bottom: 10px;
}
.section-head p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Lomba cards ---------- */
.lomba-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.lomba-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .15s, border-color .15s;
}
.lomba-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
}
.lomba-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.lomba-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.lomba-card p {
  color: var(--muted);
  font-size: 0.87rem;
  flex: 1;
  margin-bottom: 6px;
}
.lomba-card__fee {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.tag--individu { background: rgba(16,185,129,.14); color: var(--success); }
.tag--kelompok { background: rgba(245,158,11,.14); color: var(--accent); }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
}
.step-num {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
}
.step h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.step p { font-size: 0.84rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 18px;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.94rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--muted);
  font-weight: 400;
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  padding-bottom: 16px;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ---------- CTA ---------- */
.cta-section { padding: 40px 0 72px; }
.cta-box {
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  border-radius: 20px;
  padding: 48px 28px;
  text-align: center;
}
.cta-box h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  color: #fff;
  margin-bottom: 8px;
}
.cta-box p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 22px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 52px 0 22px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 14px;
}
.footer ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--muted);
}
.footer ul a:hover { color: var(--text); }
.footer-desc {
  color: var(--muted);
  font-size: 0.86rem;
  margin-top: 14px;
  max-width: 360px;
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

/* =============================================================
   MODAL (Popup Hadiah & Countdown)
   ============================================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.open { display: flex; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 16, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal__panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px 24px 24px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  animation: popIn .25s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes popIn {
  from { opacity: 0; transform: translateY(16px) scale(.96); }
  to   { opacity: 1; transform: none; }
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
  transition: background .15s, color .15s;
  font-size: 1rem;
  line-height: 1;
}
.modal__close:hover { background: rgba(255,255,255,0.1); color: var(--text); }

.modal__eyebrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 8px;
}
.modal__icon { font-size: 2.6rem; margin-bottom: 4px; }
.modal__label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 700;
}
.modal__amount {
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin: 6px 0 22px;
}

.modal__divider {
  height: 1px;
  background: var(--border);
  margin: 18px 0;
}

.modal__cd-label {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 10px;
}
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.countdown > div {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 4px;
}
.countdown strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.countdown small {
  font-size: 0.65rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.modal__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 22px;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-visual { display: none; } 
  
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-actions .btn-ghost { display: none; }
  .hamburger { display: flex; }

  .nav-links.open {
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
  }
  .nav-links.open li a {
    display: block;
    padding: 14px 20px;
    font-size: 0.95rem;
    color: var(--text);
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open li:last-child a { border-bottom: 0; }

  .hero { padding: 48px 0 40px; }
  .hero-lead { font-size: 0.95rem; }
  .hero-stats { justify-content: center; gap: 24px; }
  .hero-stats dt { font-size: 1.25rem; }

  .section { padding: 52px 0; }
  .section-head { margin-bottom: 32px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  .modal__panel { padding: 28px 20px 20px; }
  .modal__amount { font-size: 1.7rem; }
}

@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; }
  .hero-cta .btn { width: 100%; }
  .countdown { gap: 6px; }
  .countdown strong { font-size: 1rem; }
  .lomba-grid { grid-template-columns: 1fr; }
}

/* Variabel Warna Dasar (Jika belum ada di file Anda) */
:root {
  --bg:        #0d1020;
  --bg-2:      #121830;
  --surface:   #1a2138;
  --border:    #2a3352;
  --text:      #e8ecf6;
  --muted:     #98a2bf;
  --primary:   #6366f1;
  --primary-2: #818cf8;
  --font:      'Inter', system-ui, -apple-system, sans-serif;
}

/* Reset Dasar */
body { font-family: var(--font); background: var(--bg); color: var(--text); margin: 0; }
a { text-decoration: none; }

/* Tombol (Jika belum ada) */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 11px 20px; border-radius: 10px; font-weight: 600; font-size: 0.92rem; border: none; cursor: pointer; transition: 0.15s; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-2); }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-block { width: 100%; }