:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --bg-color: #f8fafc;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.8);
  --danger: #ef4444; /* Merah untuk warning */
  --warning: #f59e0b; /* Kuning untuk alert */
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg-color);
  color: var(--text-main);
  overflow-x: hidden;
  min-height: 100vh;
}

/* --- ANTIGRAVITY BG (Tidak berubah, tetap sama) --- */
#antigravity-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.floater {
  position: absolute;
  font-weight: 800;
  font-size: 3rem;
  color: rgba(37, 99, 235, 0.05);
  user-select: none;
  white-space: nowrap;
  animation: floatAnim 10s infinite ease-in-out alternate;
}
.floater.outline {
  color: transparent;
  -webkit-text-stroke: 2px rgba(37, 99, 235, 0.08);
}
@keyframes floatAnim {
  0% {
    transform: translateY(0) rotate(-5deg);
  }
  100% {
    transform: translateY(-30px) rotate(5deg);
  }
}
.floater:nth-child(2n) {
  animation-duration: 15s;
}

/* --- CONTENT WRAPPER --- */
.content-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(
    circle at center,
    transparent 0%,
    var(--bg-color) 100%
  );
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
}
.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -1px;
}
.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  margin-right: 1.5rem;
  font-weight: 600;
}

.btn-primary,
.btn-hero {
  background: var(--primary);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
  display: inline-block;
}
.btn-primary:hover,
.btn-hero:hover {
  transform: translateY(-2px);
  background: var(--primary-dark);
}

/* --- HERO SECTION (Updated Spacing) --- */
.hero-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 5%;
  text-align: center;
  /* Tambahan gap agar hero tidak mepet feature grid */
  gap: 3rem;
}

.badge {
  background: #dbeafe;
  color: var(--primary);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: inline-block;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin: 0 0 1.5rem 0;
  letter-spacing: -2px;
  color: var(--text-main);
}

.hero-text p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2rem auto;
  line-height: 1.6;
}

/* Fix Jarak Tombol Bertabrakan */
.cta-group {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.small-note {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0; /* Reset default margin p */
}

/* --- FEATURE GRID & ICONS --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 1000px;
}

.card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  padding: 1.5rem;
  border-radius: 16px;
  text-align: left;
  transition: transform 0.3s;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.9);
}

/* Styling SVG Icon di dalam Card */
.icon-box {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eff6ff;
  border-radius: 10px;
  margin-bottom: 1rem;
  color: var(--primary);
}
.feature-icon {
  width: 24px;
  height: 24px;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}
.card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.card.highlight {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9),
    rgba(219, 234, 254, 0.6)
  );
  border-color: #bfdbfe;
}

/* --- CROSS PROMOTION SECTION --- */
.cross-promo-container {
  width: 100%;
  padding: 3rem 5%;
  display: flex;
  justify-content: center;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.5));
}

.promo-content {
  max-width: 800px;
  width: 100%;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
}

.promo-badge {
  display: inline-block;
  background: #fee2e2;
  color: var(--danger);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.promo-content h2 {
  margin: 0 0 2rem 0;
  font-size: 1.5rem;
}

.promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  text-align: left;
}

.promo-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.promo-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.promo-item strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--text-main);
}
.promo-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

footer {
  padding: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-top: 1px solid #e2e8f0;
}
footer a {
  color: var(--primary);
  text-decoration: none;
}

/* --- TAMBAHAN STYLE UNTUK HALAMAN LEGAL/ABOUT --- */

/* Container khusus teks */
.legal-wrapper {
  max-width: 800px;
  margin: 100px auto 4rem auto; /* Margin top tinggi karena ada fixed header */
  padding: 2rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 2;
}

.legal-header {
  text-align: center;
  margin-bottom: 3rem;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 2rem;
}

.legal-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}
.legal-date {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Typography untuk konten */
.legal-content h2 {
  margin-top: 2.5rem;
  color: var(--primary-dark);
  font-size: 1.5rem;
}
.legal-content h3 {
  margin-top: 1.5rem;
  color: var(--text-main);
  font-size: 1.2rem;
}
.legal-content p,
.legal-content li {
  line-height: 1.8;
  color: #334155;
  margin-bottom: 1rem;
  font-size: 1rem;
}
.legal-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.legal-content li {
  margin-bottom: 0.5rem;
}

/* Highlight Box untuk UU */
.uu-box {
  background: #eff6ff;
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
}
.uu-box strong {
  color: var(--primary-dark);
  display: block;
  margin-bottom: 0.5rem;
}

/* --- LAW SECTION (UU PDP) --- */
.law-section {
  width: 100%;
  padding: 2rem 5%;
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.law-container {
  max-width: 900px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 2.5rem;
  border-radius: 24px;
  /* Efek Glassmorphism + Border Merah Putih Halus */
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.9),
    rgba(255, 245, 245, 0.8)
  );
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 10px 40px -10px rgba(220, 38, 38, 0.05); /* Bayangan merah tipis */
  position: relative;
  overflow: hidden;
}

/* Dekorasi Garis Merah di Kiri (Aksen Patriotik) */
.law-container::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(to bottom, #ef4444, #b91c1c);
}

.law-icon-wrapper {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #fee2e2;
}

.law-icon {
  width: 40px;
  height: 40px;
  color: #b91c1c; /* Merah Tua */
}

.law-content {
  text-align: left;
}

.law-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #b91c1c;
  background: #fef2f2;
  padding: 6px 12px;
  border-radius: 50px;
  margin-bottom: 1rem;
  border: 1px solid #fecaca;
}

.law-content h2 {
  margin: 0 0 1rem 0;
  font-size: 1.8rem;
  color: var(--text-main);
}

.law-content p {
  margin: 0 0 1.5rem 0;
  line-height: 1.6;
  color: var(--text-muted);
}

.law-content strong {
  color: var(--text-main);
}

.law-link {
  font-weight: 600;
  color: #b91c1c;
  text-decoration: none;
  font-size: 0.95rem;
  transition: margin-left 0.2s;
}

.law-link:hover {
  margin-left: 5px;
  text-decoration: underline;
}

/* Responsive Mobile */
@media (max-width: 768px) {
  .law-container {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
  }

  /* Pindahkan garis merah ke atas di mobile */
  .law-container::before {
    width: 100%;
    height: 6px;
    bottom: auto;
  }

  .law-content {
    text-align: center;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .legal-wrapper {
    margin-top: 80px;
    padding: 1.5rem;
    width: 90%;
  }
  .legal-header h1 {
    font-size: 2rem;
  }
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
  .promo-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .hero-section {
    padding: 3rem 1.5rem;
    gap: 2.5rem;
  }
  h1 {
    font-size: 2.5rem;
  }
  .icon-box {
    margin-bottom: 0.8rem;
  }
}
