/* ═══════════════════════════════════════════════════════════════════
   ETHNIKON — Safety Signal Design System
   Kuning Safety · Navy Otoritas · Krem Hangat
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* ── Palet Utama Safety Signal ── */
  --bg-main:           #FFFDE0;
  --bg-card:           #FFC300;
  --text-primary:      #1A1400;
  --text-secondary:    #7A6000;
  --color-accent:      #E6A800;
  --color-highlight:   #1D3557;

  /* ── Turunan & Utilitas ── */
  --bg-section-alt:    #FFF8B8;
  --bg-card-light:     #FFD54F;
  --bg-card-hover:     #FFAB00;
  --border-card:       #E6A800;
  --border-card-hover: #1D3557;
  --bg-badge:          #FFF3CD;
  --border-badge:      #E6A800;
  --bg-navbar-glass:   rgba(255, 195, 0, 0.92);
  --bg-modal-overlay:  rgba(26, 20, 0, 0.78);
  --bg-footer:         #1A1400;
  --text-footer:       #FFC300;
  --text-footer-muted: #7A6000;
  --glow-safety:       rgba(230, 168, 0, 0.35);
  --glow-navy:         rgba(29, 53, 87, 0.25);
  --text-on-navy:      #FFFFFF;
  --text-on-accent:    #FFFDE0;
  --text-on-card:      #1A1400;

  --nav-h: 72px;
  --ease-lux: cubic-bezier(0.4, 0, 0.2, 1);
  --ff-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --ff-head: 'Rajdhani', 'Segoe UI', sans-serif;
  --ff-body: 'Space Grotesk', 'Segoe UI', sans-serif;
  --ff-ui: 'Inter', 'Segoe UI', sans-serif;
  --ff-cap: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  --ff-mono: 'JetBrains Mono', 'Consolas', monospace;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-body);
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-primary);
  background: var(--bg-main);
  overflow-x: hidden;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-highlight); text-decoration: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; }
ul, ol { list-style: none; }
strong { font-weight: 700; }
.hidden { display: none !important; }

::selection { background: var(--color-highlight); color: #FFFFFF; }

:focus-visible { outline: 3px solid var(--color-highlight); outline-offset: 3px; border-radius: 4px; }

/* ── Skip link ── */
.skip-link {
  position: fixed; top: -80px; left: 16px; z-index: 9995;
  background: var(--color-highlight); color: #FFFFFF;
  font-family: var(--ff-ui); font-weight: 700; font-size: 0.9rem;
  padding: 12px 22px; border-radius: 12px;
  transition: top 0.25s var(--ease-lux);
}
.skip-link:focus { top: 12px; }

/* ── Custom cursor (desktop only) ── */
#cursor-dot { display: none; }
.cursor-trail { display: none; }
@media (pointer: fine) and (min-width: 1024px) {
  body.cursor-on, body.cursor-on * { cursor: none !important; }
  #cursor-dot {
    display: block; position: fixed; top: 0; left: 0; z-index: 10000;
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--color-highlight); mix-blend-mode: difference;
    pointer-events: none; transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s, border 0.2s;
  }
  #cursor-dot.cur-link { width: 40px; height: 40px; background: var(--color-accent); }
  #cursor-dot.cur-card { width: 28px; height: 28px; background: var(--color-accent); border: 2px solid var(--text-primary); }
  .cursor-trail {
    display: block; position: fixed; top: 0; left: 0; z-index: 9999;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--color-highlight); pointer-events: none;
    transform: translate(-50%, -50%);
  }
}

/* ═══════════ NAVBAR ═══════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 9996;
  background: var(--bg-navbar-glass);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border-bottom: 2px solid rgba(230, 168, 0, 0.5);
  box-shadow: 0 2px 20px rgba(26, 20, 0, 0.12);
}
.nav-inner {
  max-width: 1400px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
}
.nav-brand { display: flex; align-items: center; gap: 14px; }
.nav-logo-wrap { position: relative; width: 42px; height: 42px; flex: 0 0 42px; }
.nav-logo, .logo-fallback {
  width: 42px; height: 42px; border-radius: 12px;
  border: 2px solid var(--color-accent);
  box-shadow: 0 2px 8px rgba(230, 168, 0, 0.3);
  object-fit: cover;
}
.logo-fallback {
  display: flex; align-items: center; justify-content: center;
  background: var(--color-accent); color: var(--text-primary);
  font-family: var(--ff-display); font-size: 1.15rem; letter-spacing: 1px;
}
.nav-title {
  font-family: var(--ff-display); font-size: 1.4rem;
  color: var(--text-primary); letter-spacing: 3px;
}
.hamburger {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  transition: background 0.3s var(--ease-lux);
}
.hamburger:hover { background: rgba(29, 53, 87, 0.1); }
.ham-line {
  width: 28px; height: 3px; background: var(--text-primary);
  border-radius: 2px; transition: transform 0.3s var(--ease-lux), opacity 0.3s var(--ease-lux);
  display: block;
}
.hamburger.open .ham-line:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.open .ham-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open .ham-line:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ═══════════ DRAWER ═══════════ */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 9997;
  background: rgba(26, 20, 0, 0.45);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity 0.35s var(--ease-lux);
}
.drawer-backdrop.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 9998;
  width: 380px; max-width: 85vw;
  background: var(--bg-main);
  border-left: 3px solid var(--color-accent);
  transform: translateX(100%);
  transition: transform 0.38s ease;
  padding: 90px 28px 40px;
  overflow-y: auto; overscroll-behavior: contain;
  box-shadow: none;
}
.drawer.open { transform: translateX(0); box-shadow: -12px 0 48px rgba(26, 20, 0, 0.2); }
.drawer-head {
  font-family: var(--ff-head); font-size: 0.72rem; font-weight: 700;
  color: var(--text-secondary); text-transform: uppercase; letter-spacing: 4px;
  margin-bottom: 16px;
}
.drawer-list { display: flex; flex-direction: column; gap: 2px; }
.drawer-link {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 12px;
  font-family: var(--ff-ui); font-size: 0.95rem; font-weight: 600;
  color: var(--text-primary); border-left: 3px solid transparent;
  transition: background 0.25s, color 0.25s, transform 0.25s, border-color 0.25s;
}
.drawer-link i { width: 20px; text-align: center; font-size: 0.95rem; color: var(--text-secondary); transition: color 0.25s; }
.drawer-link:hover { background: rgba(29, 53, 87, 0.08); color: var(--color-highlight); transform: translateX(6px); }
.drawer-link:hover i { color: var(--color-highlight); }
.drawer-link.active { border-left-color: var(--color-highlight); background: rgba(29, 53, 87, 0.05); color: var(--color-highlight); }
.drawer-link.active i { color: var(--color-highlight); }
.drawer-divider { height: 2px; background: repeating-linear-gradient(45deg, var(--color-accent) 0 6px, transparent 6px 12px); opacity: 0.35; margin: 12px 8px; }
.drawer-foot {
  margin-top: 28px; padding-top: 20px;
  border-top: 1px solid rgba(230, 168, 0, 0.3);
  font-family: var(--ff-head); font-size: 0.85rem; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-secondary); text-align: center;
}

/* ═══════════ HERO ═══════════ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: calc(var(--nav-h) + 40px) 24px 90px;
  background: linear-gradient(135deg, #FFFDE0 0%, #FFF8B8 40%, #FFD54F 100%);
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: repeating-linear-gradient(45deg, var(--color-accent) 0 10px, transparent 10px 20px, transparent 20px 30px, var(--color-accent) 30px 40px);
  opacity: 0.04;
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: 1280px; width: 100%;
  display: grid; grid-template-columns: 55fr 45fr; gap: 48px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-cap); font-size: 0.78rem; font-weight: 700;
  background: var(--bg-badge); border: 1px solid var(--color-accent);
  color: var(--text-primary); border-radius: 100px; padding: 8px 20px;
  box-shadow: 0 2px 12px rgba(230, 168, 0, 0.2);
  margin-bottom: 26px;
}
.hero-badge i { color: var(--color-highlight); }
.hero-title {
  font-family: var(--ff-display);
  font-size: clamp(2.4rem, 6.2vw, 4.2rem);
  line-height: 1.02; letter-spacing: 3px; text-transform: uppercase;
  color: var(--text-primary);
  text-shadow: 0 2px 20px rgba(230, 168, 0, 0.2);
  margin-bottom: 10px;
}
.hero-sub {
  font-family: var(--ff-head); font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 700;
  color: var(--color-highlight); text-transform: uppercase; letter-spacing: 4px;
  margin-bottom: 22px;
}
.hero-desc {
  font-family: var(--ff-body); font-size: 1.1rem; line-height: 1.85;
  color: var(--text-secondary); max-width: 520px; margin-bottom: 32px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 26px; }
.hero-stats {
  font-family: var(--ff-mono); font-size: 0.9rem; font-weight: 700;
  color: var(--text-secondary); letter-spacing: 0.5px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--ff-ui); font-size: 0.95rem; font-weight: 700; letter-spacing: 0.5px;
  padding: 16px 36px; border-radius: 14px;
  transition: all 0.3s var(--ease-lux);
  text-align: center;
}
.btn-primary {
  background: linear-gradient(135deg, #E6A800 0%, #FFAB00 100%);
  color: var(--text-primary);
  box-shadow: 0 4px 24px rgba(230, 168, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 2px solid transparent;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #1D3557 0%, #2A4A7F 100%);
  color: #FFFFFF; transform: scale(1.05);
}
.btn-outline {
  background: transparent; border: 2px solid var(--color-highlight);
  color: var(--color-highlight);
}
.btn-outline:hover { background: var(--color-highlight); color: #FFFFFF; }

/* Hero right — floating shield card */
.hero-right { display: flex; justify-content: center; position: relative; }
.hero-card {
  position: relative; z-index: 3;
  background: linear-gradient(145deg, #FFC300 0%, #FFD54F 100%);
  border: 3px solid var(--color-accent); border-radius: 24px;
  box-shadow: 0 0 80px rgba(230, 168, 0, 0.25), 0 20px 60px rgba(26, 20, 0, 0.12);
  padding: 40px; max-width: 380px; width: 100%;
  text-align: center;
  animation: heroGlow 3s ease-in-out infinite;
  transform-style: preserve-3d; will-change: transform;
}
@keyframes heroGlow {
  0%, 100% { box-shadow: 0 0 80px rgba(230, 168, 0, 0.25), 0 20px 60px rgba(26, 20, 0, 0.12); }
  50% { box-shadow: 0 0 110px rgba(230, 168, 0, 0.42), 0 20px 60px rgba(26, 20, 0, 0.15); }
}
.hero-logo-wrap { display: inline-block; margin-bottom: 18px; }
.hero-logo, .hero-logo-wrap .logo-fallback {
  width: 140px; height: 140px; border-radius: 20px;
  border: 3px solid var(--color-accent);
  box-shadow: 0 8px 32px rgba(230, 168, 0, 0.3);
  object-fit: cover;
}
.hero-logo-wrap .logo-fallback { font-size: 3rem; display: flex; align-items: center; justify-content: center; background: var(--color-accent); color: var(--text-primary); font-family: var(--ff-display); }
.hero-card-title { font-family: var(--ff-display); font-size: 1.8rem; color: var(--text-primary); letter-spacing: 3px; }
.hero-card-sub { font-family: var(--ff-head); font-size: 1.1rem; font-weight: 700; color: var(--color-highlight); margin: 4px 0 14px; }
.hero-card-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-cap); font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  background: var(--bg-badge); border: 1px solid var(--color-accent);
  color: var(--text-primary); padding: 6px 16px; border-radius: 100px;
}
.hero-card-chip i { color: var(--color-highlight); }

/* Orbiting icons */
.orbit-ring {
  position: absolute; top: 50%; left: 50%;
  width: 320px; height: 320px; margin: -160px 0 0 -160px;
  animation: spin 25s linear infinite; z-index: 1; pointer-events: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
.orbit-icon {
  position: absolute; top: 50%; left: 50%;
  width: 48px; height: 48px; margin: -24px 0 0 -24px;
  border-radius: 50%; background: var(--bg-badge);
  border: 2px solid var(--color-accent);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-highlight); font-size: 1.05rem;
  box-shadow: 0 4px 14px rgba(230, 168, 0, 0.3);
}
.orbit-icon i { display: inline-block; animation: spinRev 25s linear infinite; }
@keyframes spinRev { to { transform: rotate(-360deg); } }
.oi-1 { transform: rotate(0deg) translateX(160px) rotate(0deg); }
.oi-2 { transform: rotate(90deg) translateX(160px) rotate(-90deg); }
.oi-3 { transform: rotate(180deg) translateX(160px) rotate(-180deg); }
.oi-4 { transform: rotate(270deg) translateX(160px) rotate(-270deg); }

/* Particles */
.hp { position: absolute; opacity: 0.3; pointer-events: none; animation: hpFloat 7s ease-in-out infinite; }
.hp.p1  { width: 6px; height: 6px; background: var(--color-accent); top: 8%;  left: 6%;  animation-duration: 6s; }
.hp.p2  { width: 4px; height: 4px; background: var(--color-highlight); top: 18%; right: 10%; animation-duration: 8s; opacity: 0.22; }
.hp.p3  { width: 8px; height: 8px; background: var(--bg-card); top: 32%; left: 12%; transform: rotate(45deg); animation-duration: 5.5s; opacity: 0.35; }
.hp.p4  { width: 5px; height: 5px; background: var(--color-accent); top: 45%; right: 6%; animation-duration: 9s; opacity: 0.18; }
.hp.p5  { width: 7px; height: 7px; background: var(--color-highlight); bottom: 30%; left: 8%; transform: rotate(45deg); animation-duration: 7.5s; opacity: 0.28; }
.hp.p6  { width: 4px; height: 4px; background: var(--color-accent); bottom: 22%; right: 14%; animation-duration: 6.5s; opacity: 0.4; }
.hp.p7  { width: 6px; height: 6px; background: var(--bg-card); top: 12%; left: 45%; animation-duration: 8.5s; opacity: 0.3; }
.hp.p8  { width: 5px; height: 5px; background: var(--color-highlight); bottom: 14%; left: 38%; transform: rotate(45deg); animation-duration: 5.8s; opacity: 0.2; }
.hp.p9  { width: 8px; height: 8px; background: var(--color-accent); bottom: 8%; right: 32%; animation-duration: 7.2s; opacity: 0.15; }
.hp.p10 { width: 4px; height: 4px; background: var(--bg-card); top: 60%; left: 3%; animation-duration: 6.8s; opacity: 0.35; }
.hp.p11 { width: 6px; height: 6px; background: var(--color-highlight); top: 70%; right: 4%; transform: rotate(45deg); animation-duration: 8.2s; opacity: 0.25; }
.hp.p12 { width: 5px; height: 5px; background: var(--color-accent); top: 26%; left: 52%; animation-duration: 9s; opacity: 0.32; }
@keyframes hpFloat { 0%, 100% { translate: 0 -25px; } 50% { translate: 0 25px; } }

.hero-hazard {
  position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: repeating-linear-gradient(45deg, var(--color-highlight) 0 10px, var(--color-accent) 10px 20px);
}

/* Hero entrance animations */
.anim-1, .anim-2, .anim-3, .anim-4, .anim-5, .anim-6, .anim-7 {
  opacity: 0; animation: heroUp 0.6s var(--ease-lux) forwards;
}
.anim-1 { animation-delay: 0.3s; }
.anim-2 { animation-delay: 0.5s; }
.anim-3 { animation-delay: 0.7s; }
.anim-4 { animation-delay: 0.9s; }
.anim-5 { animation-delay: 1.05s; }
.anim-6 { animation-delay: 1.2s; }
.anim-7 { animation-delay: 0.8s; }
@keyframes heroUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }

/* ═══════════ SECTIONS ═══════════ */
.section {
  position: relative;
  padding: 80px 24px;
  scroll-margin-top: 80px;
  background: var(--bg-main);
  overflow: hidden;
}
.section-alt { background: linear-gradient(180deg, #FFFDE0 0%, #FFF8B8 100%); }
.container { max-width: 1280px; margin: 0 auto; position: relative; z-index: 2; }
.container-narrow { max-width: 860px; }

.sec-head { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 22px; }
.sec-icon {
  width: 58px; height: 58px; border-radius: 16px; flex: 0 0 58px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  background: var(--bg-card); border: 2px solid var(--color-accent);
  box-shadow: 0 4px 16px rgba(230, 168, 0, 0.25);
}
.sec-icon.navy { color: var(--color-highlight); }
.sec-icon.gold { color: var(--text-primary); }
.sec-title {
  font-family: var(--ff-display);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  letter-spacing: 2px; text-transform: uppercase; line-height: 1.1;
  color: var(--text-primary);
}
.sec-badge {
  font-family: var(--ff-cap); font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
  background: var(--bg-badge); border: 1px solid var(--border-badge);
  color: var(--text-primary); padding: 5px 14px; border-radius: 100px;
}
.sec-lead {
  font-family: var(--ff-body); font-size: 1.05rem; line-height: 1.85;
  color: var(--text-secondary); max-width: 780px; margin-bottom: 40px;
}
.sec-lead strong { color: var(--text-primary); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease-lux), transform 0.7s var(--ease-lux); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Section divider (JS-injected) */
.divider { position: relative; height: 56px; overflow: hidden; background: var(--bg-main); }
.divider::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: repeating-linear-gradient(45deg, var(--color-accent) 0 8px, var(--color-highlight) 8px 16px);
  opacity: 0.15;
}
.divider svg { position: absolute; bottom: 0; left: 0; width: 100%; height: 48px; color: var(--color-accent); opacity: 0.12; }

/* ═══════════ BACKGROUND PATTERNS (≤0.06 opacity) ═══════════ */
[class^="pat-"]::after, [class*=" pat-"]::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
.pat-tentang::after {
  background:
    linear-gradient(135deg, transparent 46%, rgba(29,53,87,0.03) 46%, rgba(29,53,87,0.03) 54%, transparent 54%) 0 0 / 90px 90px,
    linear-gradient(45deg, transparent 46%, rgba(29,53,87,0.03) 46%, rgba(29,53,87,0.03) 54%, transparent 54%) 45px 45px / 90px 90px;
}
.pat-statistik::after { background: radial-gradient(circle, rgba(230,168,0,0.5) 1px, transparent 1.6px) 0 0 / 24px 24px; opacity: 0.1; }
.pat-timeline::after {
  background: repeating-linear-gradient(0deg, rgba(122,96,0,0.04) 0 2px, transparent 2px 34px),
              repeating-linear-gradient(90deg, rgba(122,96,0,0.04) 0 2px, transparent 2px 34px);
  -webkit-mask-image: repeating-linear-gradient(90deg, #000 0 14px, transparent 14px 30px);
  mask-image: repeating-linear-gradient(90deg, #000 0 14px, transparent 14px 30px);
  opacity: 0.5;
}
.pat-dasar::after { background: linear-gradient(rgba(230,168,0,0.03) 1.5px, transparent 1.5px) 0 0 / 44px 44px, linear-gradient(90deg, rgba(230,168,0,0.03) 1.5px, transparent 1.5px) 0 0 / 44px 44px; }
.pat-password::after { background: radial-gradient(circle at 50% 50%, rgba(29,53,87,0.04) 3px, transparent 3.5px) 0 0 / 56px 56px, radial-gradient(circle at 50% 50%, rgba(29,53,87,0.04) 1.5px, transparent 2px) 28px 28px / 56px 56px; }
.pat-privasi::after { background: repeating-linear-gradient(135deg, rgba(122,96,0,0.03) 0 3px, transparent 3px 26px); }
.pat-email::after { background: linear-gradient(rgba(230,168,0,0.04) 1px, transparent 1px) 0 0 / 100% 22px, linear-gradient(90deg, rgba(230,168,0,0.04) 1px, transparent 1px) 0 0 / 22px 100%; }
.pat-mobile::after { background: radial-gradient(ellipse 7px 11px at 50% 50%, transparent 5px, rgba(29,53,87,0.03) 5px, rgba(29,53,87,0.03) 6.5px, transparent 7px) 0 0 / 64px 64px; }
.pat-malware::after { background: radial-gradient(circle, rgba(230,168,0,0.5) 2px, transparent 2.6px) 0 0 / 40px 40px, radial-gradient(circle, rgba(230,168,0,0.5) 1.2px, transparent 1.8px) 20px 20px / 40px 40px; opacity: 0.08; }
.pat-finansial::after { background: repeating-linear-gradient(90deg, rgba(29,53,87,0.03) 0 2px, transparent 2px 18px), repeating-linear-gradient(0deg, rgba(29,53,87,0.03) 0 2px, transparent 2px 42px); }
.pat-organisasi::after { background: linear-gradient(rgba(122,96,0,0.04) 2px, transparent 2px) 0 0 / 34px 34px, linear-gradient(90deg, rgba(122,96,0,0.04) 2px, transparent 2px) 0 0 / 34px 34px; }
.pat-cloud::after { background: radial-gradient(circle at 60% 40%, rgba(230,168,0,0.5) 6px, transparent 7px) 0 0 / 74px 74px, radial-gradient(circle at 35% 55%, rgba(230,168,0,0.5) 4.5px, transparent 5.5px) 37px 37px / 74px 74px; opacity: 0.07; }
.pat-hukum::after { background: repeating-conic-gradient(rgba(29,53,87,0.04) 0 12deg, transparent 12deg 45deg) 0 0 / 84px 84px; }
.pat-quiz::after { background: radial-gradient(circle, rgba(230,168,0,0.5) 1.5px, transparent 2.2px) 0 0 / 30px 30px; opacity: 0.08; }
.pat-artikel::after { background: repeating-linear-gradient(0deg, rgba(122,96,0,0.04) 0 2.5px, transparent 2.5px 15px); }
.pat-faq::after { background: radial-gradient(circle at 50% 30%, transparent 7px, rgba(230,168,0,0.05) 7px, rgba(230,168,0,0.05) 8.5px, transparent 9.5px) 0 0 / 60px 52px; }

/* ═══════════ TENTANG ═══════════ */
.tentang-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: stretch; }
.info-card {
  background: var(--bg-card); border: 2px solid var(--border-card);
  border-radius: 18px; padding: 30px 24px; min-height: 0;
  box-shadow: 0 6px 20px rgba(26, 20, 0, 0.07);
  transition: transform 0.4s var(--ease-lux), box-shadow 0.4s var(--ease-lux), border-color 0.4s;
}
.info-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-card-hover);
  box-shadow: 0 20px 44px rgba(26, 20, 0, 0.14), 0 0 34px rgba(230, 168, 0, 0.2);
}
.info-ico {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 16px;
  border: 2px solid var(--color-accent); background: var(--bg-badge);
}
.info-ico.navy { color: var(--color-highlight); }
.info-ico.gold { color: var(--text-primary); }
.info-card h3 { font-family: var(--ff-head); font-size: 1.15rem; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.info-card p { font-size: 0.92rem; line-height: 1.7; color: var(--text-secondary); }

/* ═══════════ STATISTIK ═══════════ */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: stretch; }
.stat-card {
  background: var(--bg-card); border: 2px solid var(--border-card);
  border-radius: 20px; padding: 40px 24px; text-align: center;
  transition: transform 0.35s var(--ease-lux), box-shadow 0.35s var(--ease-lux), border-color 0.35s;
}
.stat-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(230, 168, 0, 0.2); border-color: var(--border-card-hover); }
.stat-ico { font-size: 2.5rem; color: var(--color-highlight); display: block; margin-bottom: 12px; text-shadow: 0 2px 10px rgba(29, 53, 87, 0.15); }
.stat-num { font-family: var(--ff-mono); font-size: 3.5rem; font-weight: 700; color: var(--color-highlight); line-height: 1.1; display: block; }
.stat-num .plus { color: var(--color-accent); }
.stat-label { font-family: var(--ff-head); font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-secondary); display: block; margin-top: 8px; }

/* ═══════════ TIMELINE ═══════════ */
.timeline-track {
  position: relative;
  display: flex; gap: 26px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 30px 6px 26px;
  scrollbar-width: thin; scrollbar-color: var(--color-accent) var(--bg-badge);
}
.timeline-track::-webkit-scrollbar { height: 8px; }
.timeline-track::-webkit-scrollbar-track { background: var(--bg-badge); border-radius: 8px; }
.timeline-track::-webkit-scrollbar-thumb { background: linear-gradient(90deg, var(--color-accent), var(--bg-card)); border-radius: 8px; }
.timeline-track::before {
  content: ''; position: absolute; top: 56px; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--bg-card));
}
.tl-item { position: relative; flex: 0 0 290px; scroll-snap-align: start; padding-top: 40px; }
.tl-node {
  position: absolute; top: 18px; left: 24px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--color-highlight); border: 3px solid var(--color-accent);
  box-shadow: 0 0 0 6px rgba(230, 168, 0, 0.18);
}
.tl-card {
  background: var(--bg-card); border: 2px solid var(--border-card);
  border-radius: 16px; padding: 22px 20px; max-width: 280px;
  transition: transform 0.35s var(--ease-lux), box-shadow 0.35s var(--ease-lux), border-color 0.35s;
}
.tl-card:hover { transform: translateY(-6px); border-color: var(--border-card-hover); box-shadow: 0 16px 36px rgba(26, 20, 0, 0.14); }
.tl-year { font-family: var(--ff-mono); font-size: 1.3rem; font-weight: 700; color: var(--color-highlight); display: block; margin-bottom: 4px; }
.tl-card h3 { font-family: var(--ff-head); font-size: 1.1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.tl-card p { font-size: 0.85rem; line-height: 1.7; color: var(--text-secondary); }

/* ═══════════ KATEGORI & MODULE CARDS ═══════════ */
.cat-progress {
  font-family: var(--ff-mono); font-size: 0.8rem; font-weight: 700;
  color: var(--color-highlight);
  background: rgba(29, 53, 87, 0.07); border: 1px solid rgba(29, 53, 87, 0.25);
  padding: 5px 14px; border-radius: 100px;
}
.module-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; align-items: stretch; }

.module-card {
  background: var(--bg-card);
  border: 2px solid var(--border-card);
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s var(--ease-lux);
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
  min-height: 0;
  text-align: left;
  display: block;
  width: 100%;
  padding: 0;
}
.card-inner { padding: 28px 22px 26px; position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; }
.card-glow {
  position: absolute; inset: 0;
  background: radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 50%), rgba(29, 53, 87, 0.15) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.3s; z-index: 1; pointer-events: none;
}
.card-shine {
  position: absolute; top: -60%; left: -60%; width: 220%; height: 220%;
  background: linear-gradient(45deg, transparent 35%, rgba(255, 255, 255, 0.15) 50%, transparent 65%);
  transform: rotate(0deg); transition: transform 0.7s;
  z-index: 1; pointer-events: none;
}
.card-hazard-stripe {
  position: absolute; bottom: 0; left: 0; right: 0; height: 4px;
  background: repeating-linear-gradient(45deg, var(--color-highlight) 0 4px, var(--color-accent) 4px 8px);
  opacity: 0.3; transition: opacity 0.3s; z-index: 3;
}
.card-badge {
  position: absolute; top: 14px; right: 14px;
  background: var(--bg-badge); border: 1px solid var(--border-badge);
  color: var(--text-primary); font-family: var(--ff-cap);
  font-size: 0.68rem; font-weight: 600;
  padding: 4px 12px; border-radius: 100px;
  text-transform: uppercase; letter-spacing: 0.5px; z-index: 3;
  max-width: 55%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-read {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--color-highlight); color: #FFFFFF;
  display: none; align-items: center; justify-content: center; font-size: 0.7rem;
  box-shadow: 0 2px 8px rgba(29, 53, 87, 0.35);
}
.module-card.read .card-read { display: flex; }
.card-number { font-family: var(--ff-mono); font-size: 0.78rem; color: var(--text-secondary); opacity: 0.65; margin-bottom: 8px; display: block; transition: color 0.3s, opacity 0.3s; }
.card-icon { font-size: 2.2rem; color: var(--color-highlight); margin-bottom: 14px; transition: color 0.3s, transform 0.3s, text-shadow 0.3s; text-shadow: 0 2px 8px rgba(29, 53, 87, 0.15); }
.card-icon.gold { color: var(--color-accent); }
.card-title {
  font-family: var(--ff-head); font-size: 1.05rem; font-weight: 700;
  color: var(--text-primary); line-height: 1.4; margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; text-overflow: ellipsis; word-break: break-word;
}
.card-desc {
  font-family: var(--ff-body); font-size: 0.82rem; color: var(--text-secondary);
  line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 14px; flex: 1 1 auto;
}
.card-cta {
  font-family: var(--ff-ui); font-size: 0.82rem; font-weight: 600;
  color: var(--color-highlight); transition: color 0.25s, gap 0.25s;
  display: inline-flex; align-items: center; gap: 6px;
}
.module-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--border-card-hover);
  background: linear-gradient(145deg, #FFC300 0%, #FFD54F 100%);
  box-shadow: 0 24px 48px rgba(26, 20, 0, 0.15), 0 0 40px rgba(230, 168, 0, 0.2), 0 0 0 1px rgba(29, 53, 87, 0.2);
}
.module-card:hover .card-glow { opacity: 1; }
.module-card:hover .card-shine { transform: rotate(180deg); }
.module-card:hover .card-hazard-stripe { opacity: 0.7; }
.module-card:hover .card-icon { color: var(--color-accent); transform: scale(1.18) rotate(-5deg); text-shadow: 0 0 20px rgba(230, 168, 0, 0.4); }
.module-card:hover .card-cta { color: var(--color-accent); gap: 10px; }
.module-card:hover .card-number { color: var(--color-highlight); opacity: 1; }
.module-card:focus-visible { outline: 3px solid var(--color-highlight); outline-offset: 3px; transform: translateY(-6px); }

/* ═══════════ ARTIKEL ═══════════ */
.article-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; align-items: stretch; }
.article-card {
  background: var(--bg-card); border: 2px solid var(--border-card);
  border-radius: 18px; padding: 30px 26px; position: relative; overflow: hidden;
  cursor: pointer; text-align: left; width: 100%; display: flex; gap: 20px;
  transition: all 0.4s var(--ease-lux); min-height: 0;
}
.article-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 4px;
  background: repeating-linear-gradient(45deg, var(--color-highlight) 0 6px, var(--color-accent) 6px 12px);
  opacity: 0.3; transition: opacity 0.3s;
}
.article-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-card-hover);
  background: linear-gradient(145deg, #FFC300 0%, #FFD54F 100%);
  box-shadow: 0 22px 46px rgba(26, 20, 0, 0.15), 0 0 36px rgba(230, 168, 0, 0.2);
}
.article-card:hover::after { opacity: 0.75; }
.article-card:focus-visible { outline: 3px solid var(--color-highlight); outline-offset: 3px; }
.article-ico {
  flex: 0 0 62px; width: 62px; height: 62px; border-radius: 16px;
  border: 2px solid var(--color-accent); background: var(--bg-badge);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; color: var(--color-highlight);
  transition: transform 0.35s, color 0.35s;
}
.article-card:hover .article-ico { transform: scale(1.1) rotate(-4deg); color: var(--color-accent); }
.article-body { flex: 1 1 auto; min-width: 0; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.article-cat { font-family: var(--ff-cap); font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; background: var(--bg-badge); border: 1px solid var(--border-badge); color: var(--text-primary); padding: 3px 11px; border-radius: 100px; }
.article-rt { font-family: var(--ff-mono); font-size: 0.72rem; color: var(--text-secondary); align-self: center; }
.article-title {
  font-family: var(--ff-head); font-size: 1.2rem; font-weight: 700; line-height: 1.35;
  color: var(--text-primary); margin-bottom: 8px; word-break: break-word;
}
.article-ex {
  font-size: 0.88rem; line-height: 1.65; color: var(--text-secondary); margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-link { font-family: var(--ff-ui); font-size: 0.85rem; font-weight: 700; color: var(--color-highlight); display: inline-flex; align-items: center; gap: 7px; transition: gap 0.25s, color 0.25s; }
.article-card:hover .article-link { gap: 12px; color: var(--color-accent); }
.article-card.read .article-ico { background: var(--color-highlight); color: #FFFFFF; border-color: var(--color-highlight); }

/* ═══════════ FAQ ═══════════ */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--bg-card); border: 2px solid var(--border-card);
  border-left: 4px solid var(--border-card);
  border-radius: 14px; overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.faq-item.open { border-left-color: var(--color-highlight); box-shadow: 0 10px 28px rgba(26, 20, 0, 0.1); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; text-align: left;
  font-family: var(--ff-head); font-size: 1.05rem; font-weight: 700; color: var(--text-primary);
  transition: color 0.25s;
}
.faq-q:hover { color: var(--color-highlight); }
.faq-q .faq-chev {
  flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--color-accent); background: var(--bg-badge);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-primary); font-size: 0.8rem;
  transition: transform 0.35s var(--ease-lux), background 0.3s, color 0.3s;
}
.faq-item.open .faq-chev { transform: rotate(180deg); background: var(--color-highlight); border-color: var(--color-highlight); color: #FFFFFF; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease-lux); }
.faq-a-inner { padding: 0 22px 22px; font-size: 0.94rem; line-height: 1.8; color: var(--text-secondary); }
.faq-a-inner strong { color: var(--text-primary); }

/* ═══════════ QUIZ ═══════════ */
.quiz-shell { max-width: 860px; margin: 0 auto; }
.quiz-card {
  background: var(--bg-card); border: 2px solid var(--border-card);
  border-radius: 24px; padding: 44px 38px; text-align: center;
  box-shadow: 0 18px 48px rgba(26, 20, 0, 0.1), 0 0 44px rgba(230, 168, 0, 0.12);
  position: relative; overflow: hidden;
}
.quiz-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: repeating-linear-gradient(45deg, var(--color-highlight) 0 10px, var(--color-accent) 10px 20px);
  opacity: 0.5;
}
.quiz-hero-ico { font-size: 3rem; color: var(--color-highlight); display: block; margin-bottom: 14px; text-shadow: 0 3px 14px rgba(29, 53, 87, 0.2); }
.quiz-h { font-family: var(--ff-display); font-size: 2rem; letter-spacing: 2px; color: var(--text-primary); margin-bottom: 10px; text-transform: uppercase; }
.quiz-p { font-size: 0.98rem; color: var(--text-secondary); max-width: 520px; margin: 0 auto 22px; }
.quiz-label { display: block; font-family: var(--ff-ui); font-size: 0.85rem; font-weight: 700; color: var(--text-primary); text-align: left; max-width: 380px; margin: 0 auto 8px; }
.quiz-input {
  width: 100%; max-width: 380px; padding: 14px 18px; margin-bottom: 18px;
  border: 2px solid var(--border-card); border-radius: 12px;
  background: var(--bg-main); color: var(--text-primary);
  font-family: var(--ff-ui); font-size: 1rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.quiz-input:focus { outline: none; border-color: var(--color-highlight); box-shadow: 0 0 0 4px rgba(29, 53, 87, 0.12); }
.quiz-meta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 24px; }
.quiz-chip { font-family: var(--ff-mono); font-size: 0.78rem; font-weight: 700; color: var(--text-secondary); background: var(--bg-badge); border: 1px solid var(--border-badge); padding: 6px 14px; border-radius: 100px; display: inline-flex; align-items: center; gap: 7px; }
.quiz-chip b { color: var(--color-highlight); }
.quiz-start { width: 100%; max-width: 380px; }
.quiz-history { margin-top: 24px; text-align: left; }
.quiz-history h4 { font-family: var(--ff-head); font-size: 0.95rem; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; }
.qh-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--bg-badge); border: 1px solid rgba(230, 168, 0, 0.45); border-radius: 10px; padding: 9px 14px; margin-bottom: 7px; font-family: var(--ff-mono); font-size: 0.78rem; color: var(--text-secondary); }
.qh-row b { color: var(--color-highlight); }
.qh-grade { flex: 0 0 30px; height: 30px; border-radius: 8px; background: var(--color-highlight); color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }

.quiz-topbar { margin-bottom: 18px; }
.quiz-progress { height: 6px; background: var(--bg-badge); border-radius: 100px; overflow: hidden; margin-bottom: 14px; border: 1px solid rgba(230, 168, 0, 0.4); }
.quiz-progress span { display: block; height: 100%; width: 2%; background: linear-gradient(90deg, var(--color-accent), var(--color-highlight)); border-radius: 100px; transition: width 0.4s var(--ease-lux); }
.quiz-hud { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.quiz-qcount { font-family: var(--ff-mono); font-size: 0.9rem; font-weight: 700; color: var(--text-secondary); }
.quiz-score { font-family: var(--ff-mono); font-size: 0.9rem; font-weight: 700; color: var(--color-highlight); display: inline-flex; align-items: center; gap: 7px; }
.quiz-score i { color: var(--color-accent); }
.quiz-timer { position: relative; width: 52px; height: 52px; flex: 0 0 52px; }
.quiz-timer svg { display: block; }
#timerRing { transition: stroke-dashoffset 1s linear, stroke 0.3s; }
.quiz-timer b {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-mono); font-size: 1.05rem; font-weight: 700; color: var(--text-primary);
}
.quiz-timer.warn #timerRing { stroke: var(--bg-card); }
.quiz-timer.danger #timerRing { stroke: #EF4444; }
.quiz-timer.danger b { color: #EF4444; animation: pulse-danger 0.9s ease-in-out infinite; }
@keyframes pulse-danger { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

.quiz-card-play { text-align: left; padding-top: 34px; }
.quiz-cat { font-family: var(--ff-cap); font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--text-secondary); margin-bottom: 8px; }
.quiz-q { font-family: var(--ff-head); font-size: 1.35rem; font-weight: 700; line-height: 1.4; color: var(--text-primary); margin-bottom: 22px; }
.quiz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.quiz-opt {
  display: flex; align-items: center; gap: 13px; text-align: left;
  background: var(--bg-badge); border: 2px solid var(--border-card);
  border-radius: 14px; padding: 16px 18px;
  font-family: var(--ff-body); font-size: 0.95rem; font-weight: 500; color: var(--text-primary);
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.2s;
}
.quiz-opt .opt-key {
  flex: 0 0 32px; width: 32px; height: 32px; border-radius: 10px;
  background: var(--bg-card); color: var(--text-primary);
  border: 1px solid var(--color-accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-mono); font-size: 0.85rem; font-weight: 700;
  transition: background 0.25s, color 0.25s;
}
.quiz-opt:hover:not(:disabled) { background: var(--bg-card-light); transform: translateY(-2px); }
.quiz-opt.selected { background: var(--color-highlight); border-color: var(--color-highlight); color: #FFFFFF; }
.quiz-opt.selected .opt-key { background: rgba(255, 255, 255, 0.15); color: #FFFFFF; border-color: transparent; }
.quiz-opt.correct { background: #22C55E; border-color: #16A34A; color: #FFFFFF; }
.quiz-opt.correct .opt-key { background: rgba(255, 255, 255, 0.2); color: #FFFFFF; border-color: transparent; }
.quiz-opt.wrong { background: #EF4444; border-color: #DC2626; color: #FFFFFF; }
.quiz-opt.wrong .opt-key { background: rgba(255, 255, 255, 0.2); color: #FFFFFF; border-color: transparent; }
.quiz-opt:disabled { cursor: default; opacity: 0.92; }

.quiz-card-result { padding-top: 40px; }
.grade-badge {
  width: 110px; height: 110px; margin: 0 auto 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-display); font-size: 4rem; color: var(--text-primary);
  background: linear-gradient(145deg, #FFFDE0, #FFF3CD);
  border: 4px solid var(--color-accent);
  box-shadow: 0 0 0 8px rgba(230, 168, 0, 0.18), 0 12px 34px rgba(26, 20, 0, 0.15);
}
.grade-title { font-family: var(--ff-head); font-size: 1.6rem; font-weight: 700; color: var(--color-highlight); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 6px; }
.result-stats { display: flex; justify-content: center; gap: 18px; margin: 26px 0 30px; }
.rs-item { background: var(--bg-badge); border: 1px solid var(--border-badge); border-radius: 14px; padding: 16px 22px; min-width: 108px; }
.rs-num { font-family: var(--ff-mono); font-size: 1.7rem; font-weight: 700; color: var(--color-highlight); display: block; }
.rs-lb { font-family: var(--ff-cap); font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-secondary); }
.result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.result-actions .btn { padding: 14px 26px; }

/* ═══════════ MODAL ═══════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg-modal-overlay);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease-lux);
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--bg-main);
  border: 2px solid var(--color-accent);
  border-radius: 20px;
  max-width: 720px; width: 100%;
  max-height: min(88vh, 920px);
  box-shadow: 0 24px 64px rgba(26, 20, 0, 0.2), 0 0 60px rgba(230, 168, 0, 0.1);
  position: relative; overflow: hidden;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.3s var(--ease-lux);
  display: flex; flex-direction: column;
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-overlay.closing .modal { transform: scale(0.95); transition-duration: 0.2s; }
.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 5;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-badge); border: 2px solid var(--color-accent);
  color: var(--text-primary); font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.modal-close:hover { background: var(--color-highlight); border-color: var(--color-highlight); color: #FFFFFF; transform: rotate(90deg); }
.modal-scroll { overflow-y: auto; overscroll-behavior: contain; padding: 40px; }
.modal-head { margin-bottom: 22px; padding-right: 44px; }
.modal-badges { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin-bottom: 14px; }
.modal-badge { font-family: var(--ff-cap); font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; background: var(--bg-badge); border: 1px solid var(--border-badge); color: var(--text-primary); padding: 4px 13px; border-radius: 100px; }
.modal-num { font-family: var(--ff-mono); font-size: 0.78rem; font-weight: 700; color: var(--text-secondary); opacity: 0.75; }
.modal-title { font-family: var(--ff-display); font-size: 1.6rem; line-height: 1.15; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-primary); }
.modal-cta-strip { height: 5px; margin: 16px -40px 0; background: repeating-linear-gradient(45deg, var(--color-highlight) 0 8px, var(--color-accent) 8px 16px); opacity: 0.35; }
.modal-body h4 {
  font-family: var(--ff-head); font-size: 1.1rem; font-weight: 700; color: var(--color-highlight);
  margin: 26px 0 10px; display: flex; align-items: center; gap: 10px;
}
.modal-body h4 i { font-size: 0.95rem; }
.modal-body h4:first-child { margin-top: 0; }
.modal-body p { font-family: var(--ff-body); font-size: 1.05rem; line-height: 1.85; color: var(--text-primary); margin-bottom: 14px; }
.modal-body ul { margin: 0 0 16px; display: flex; flex-direction: column; gap: 10px; }
.modal-body li {
  position: relative; padding-left: 30px;
  font-family: var(--ff-body); font-size: 0.98rem; line-height: 1.75; color: var(--text-primary);
}
.modal-body li::before {
  content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  position: absolute; left: 0; top: 4px;
  width: 20px; height: 20px; border-radius: 6px;
  background: var(--color-highlight); color: #FFFFFF;
  font-size: 0.6rem; display: flex; align-items: center; justify-content: center;
}
.modal-body .fact-list li::before { content: '\f05b'; background: var(--color-accent); color: var(--text-primary); }
.modal-highlight {
  background: var(--bg-badge); border: 1px solid var(--border-badge);
  border-left: 4px solid var(--color-accent); border-radius: 12px;
  padding: 16px 20px; margin: 18px 0;
  font-family: var(--ff-body); font-size: 0.98rem; line-height: 1.8; color: var(--text-primary);
}
.modal-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin-top: 30px; padding-top: 22px; border-top: 2px dashed rgba(230, 168, 0, 0.4);
}
.modal-read-badge { font-family: var(--ff-ui); font-size: 0.85rem; font-weight: 600; color: var(--color-highlight); display: inline-flex; align-items: center; gap: 8px; }
.modal-read-badge i { color: var(--color-accent); }

/* ═══════════ FOOTER ═══════════ */
.footer { background: linear-gradient(180deg, #1A1400 0%, #0F0A00 100%); color: var(--text-footer); position: relative; }
.footer::before { content: ''; display: block; height: 6px; background: repeating-linear-gradient(45deg, var(--color-highlight) 0 10px, var(--color-accent) 10px 20px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 64px 0 48px; }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.footer-logo-wrap { width: 48px; height: 48px; flex: 0 0 48px; }
.footer-logo, .footer-logo-wrap .logo-fallback { width: 48px; height: 48px; border-radius: 12px; border: 2px solid var(--color-accent); object-fit: cover; }
.footer-logo-wrap .logo-fallback { font-size: 1.3rem; display: flex; align-items: center; justify-content: center; background: var(--color-accent); color: var(--text-primary); font-family: var(--ff-display); }
.footer-title { font-family: var(--ff-display); font-size: 1.6rem; letter-spacing: 3px; color: var(--text-footer); }
.footer-tag { font-family: var(--ff-head); font-size: 1rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--color-accent); margin-bottom: 12px; line-height: 1.5; }
.footer-desc { font-family: var(--ff-cap); font-size: 0.85rem; line-height: 1.7; color: var(--text-footer-muted); }
.footer-h { font-family: var(--ff-head); font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--text-footer); margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-family: var(--ff-cap); font-size: 0.85rem; color: var(--text-footer-muted); transition: color 0.2s, padding-left 0.2s; }
.footer-links a:hover { color: var(--color-accent); padding-left: 6px; }
.footer-social { display: flex; gap: 12px; margin-bottom: 18px; }
.footer-social a {
  width: 44px; height: 44px; border-radius: 12px;
  border: 2px solid rgba(230, 168, 0, 0.4); color: var(--color-accent);
  display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
  transition: background 0.25s, color 0.25s, transform 0.25s, border-color 0.25s;
}
.footer-social a:hover { background: var(--color-accent); color: var(--text-primary); transform: translateY(-4px); border-color: var(--color-accent); }
.footer-bottom {
  text-align: center; padding: 24px 20px; font-size: 0.85rem;
  font-family: var(--ff-cap); background: rgba(15, 10, 0, 0.6);
  color: var(--text-footer-muted); border-top: 1px solid #2A2000;
}
.creator-link { color: var(--color-accent); font-weight: 700; text-decoration: none; transition: color 0.2s; }
.creator-link:hover { color: var(--bg-card); text-decoration: underline; text-underline-offset: 4px; }

/* ═══════════ RESPONSIVE ═══════════ */
@media (min-width: 1441px) {
  .container { max-width: 1400px; }
  .section { padding: 96px 24px; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .module-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .tentang-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .drawer { width: 360px; }
}
@media (min-width: 481px) and (max-width: 768px) {
  .module-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .tentang-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: 1fr; }
  .drawer { width: 340px; }
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-right { order: 2; }
  .quiz-opts { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-right { order: 2; }
  .quiz-opts { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .modal-scroll { padding: 30px 22px; }
  .modal-cta-strip { margin: 16px -22px 0; }
  .timeline-track { padding-bottom: 18px; }
}
@media (max-width: 480px) {
  .module-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-inner { padding: 22px 14px 20px; }
  .card-badge { max-width: 60%; font-size: 0.6rem; padding: 3px 9px; }
  .card-icon { font-size: 1.7rem; margin-bottom: 10px; }
  .card-title { font-size: 0.92rem; }
  .card-desc { font-size: 0.76rem; }
  .tentang-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .stat-card { padding: 28px 14px; }
  .stat-num { font-size: 2.4rem; }
  .stat-ico { font-size: 1.9rem; }
  .drawer { width: 300px; }
  .hero { padding: calc(var(--nav-h) + 24px) 18px 70px; }
  .hero-card { padding: 30px 22px; max-width: 320px; }
  .hero-logo, .hero-logo-wrap .logo-fallback { width: 110px; height: 110px; }
  .orbit-ring { width: 260px; height: 260px; margin: -130px 0 0 -130px; }
  .oi-1 { transform: rotate(0deg) translateX(130px) rotate(0deg); }
  .oi-2 { transform: rotate(90deg) translateX(130px) rotate(-90deg); }
  .oi-3 { transform: rotate(180deg) translateX(130px) rotate(-180deg); }
  .oi-4 { transform: rotate(270deg) translateX(130px) rotate(-270deg); }
  .btn { padding: 14px 24px; font-size: 0.9rem; }
  .quiz-card { padding: 34px 20px; }
  .quiz-q { font-size: 1.15rem; }
  .result-stats { flex-direction: column; align-items: center; gap: 10px; }
  .rs-item { width: 100%; max-width: 280px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; padding: 48px 0 36px; }
  .sec-icon { width: 48px; height: 48px; flex-basis: 48px; font-size: 1.6rem; }
  .article-card { flex-direction: column; gap: 14px; }
  .article-ico { flex-basis: 54px; width: 54px; height: 54px; }
}

/* ═══════════ REDUCED MOTION ═══════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .card-glow, .card-shine, .card-hazard-stripe,
  .cursor-trail, #cursor-dot, .hp { display: none !important; }
  .reveal { opacity: 1; transform: none; }
  .anim-1, .anim-2, .anim-3, .anim-4, .anim-5, .anim-6, .anim-7 { opacity: 1; }
}
