/* =========================================================
   AWS EDUTIC — LANDING PAGE (STATIC CLONE)
   Vanilla CSS + Bootstrap 5 utility classes
   Palet warna disamakan dengan versi Laravel + React aslinya
   ========================================================= */

/* 1. Definisi untuk Light Mode (Spesifik ke tag HTML) */
html[data-theme="light"] {
  --bg: #f8fafc;
  --bg-alt: #ffffff;
  --bg-card: #f8fafc;
  --border: #e2e8f0;
  --text: #1e293b;
  --text-soft: #475569;
  --text-mute: #64748b;
  --brand: #10b981;
  --brand-strong: #059669;
  --brand-soft: rgba(16, 185, 129, 0.1);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.08);
  --radius-lg: 1.5rem;
  --radius-md: 1rem;
}

/* 2. Definisi untuk Dark Mode (Spesifik ke tag HTML) */
html[data-theme="dark"] {
  --bg: #0d1410;
  --bg-alt: #0b120f;
  --bg-card: #111a14;
  --border: #25402b;
  --text: #d4f0d4;
  --text-soft: #86efac;
  --text-mute: #5f7a66;
  --brand: #4ade80;
  --brand-strong: #22c55e;
  --brand-soft: rgba(74, 222, 128, 0.12);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.4);
  --radius-lg: 1.5rem;
  --radius-md: 1rem;
}

/* Fallback default ke Dark Mode jika atribut hilang */
:root {
  --bg: #0d1410;
  --bg-alt: #0b120f;
  --bg-card: #111a14;
  --border: #25402b;
  --text: #d4f0d4;
  --text-soft: #86efac;
  --text-mute: #5f7a66;
  --brand: #4ade80;
  --brand-strong: #22c55e;
  --brand-soft: rgba(74, 222, 128, 0.12);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.4);
  --radius-lg: 1.5rem;
  --radius-md: 1rem;
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

a {
  text-decoration: none;
}

.section-eyebrow {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brand);
}

.section-title {
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text);
}

.text-soft {
  color: var(--text-soft);
}
.text-mute {
  color: var(--text-mute);
}

/* ---------- NAVBAR ---------- */
.navbar-custom {
  background-color: color-mix(in srgb, var(--bg-alt) 90%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 999;
}

.brand-icon {
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #fff;
  border-radius: 1rem;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px -6px var(--brand-soft);
}

.nav-link-custom {
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.9rem;
}
.nav-link-custom:hover {
  color: var(--text);
}

.btn-theme-toggle {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 0.75rem;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-brand {
  background-color: var(--brand);
  border: 1px solid var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.65rem 1.5rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}
.btn-brand:hover {
  background-color: var(--brand-strong);
  color: #fff;
}

/* ---------- HERO ---------- */
.hero {
  background-color: var(--bg);
  padding: 5rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: var(--bg-card);
  color: var(--brand);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: 999px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 var(--brand-soft);
  }
  70% {
    box-shadow: 0 0 0 8px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #10b981, #14b8a6, #16a34a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}

/* Kartu payload JSON di hero */
.payload-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 20px 40px -10px rgb(0 0 0 / 0.15);
}
.payload-terminal {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.74rem;
  color: var(--brand);
  min-height: 420px;
}
.payload-terminal .term-key {
  color: var(--text-soft);
}
.payload-terminal .term-val {
  color: #fbbf24;
  font-weight: 700;
}
.payload-terminal .term-ts {
  color: #38bdf8;
  font-weight: 700;
}
.payload-terminal .term-head {
  display: flex;
  justify-content: space-between;
  color: var(--text-mute);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.6rem;
  margin-bottom: 0.9rem;
}

/* ---------- CARD / FEATURE GENERIC ---------- */
.card-custom {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}
.card-custom:hover {
  border-color: var(--brand);
}

.icon-box {
  background: var(--brand-soft);
  color: var(--brand);
  width: 46px;
  height: 46px;
  border-radius: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- MEDIA / VIDEO ---------- */
.media-frame {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow);
}
.media-video-wrap {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}
.media-video-wrap video,
.media-video-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  border: none;
}
.play-overlay .play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- PARAMETER GRID ---------- */
.param-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  height: 100%;
  transition: border-color 0.2s ease;
}
.param-card:hover {
  border-color: var(--brand);
}
.param-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.param-card p {
  font-size: 0.78rem;
  color: var(--text-mute);
  line-height: 1.6;
}

/* ---------- DASHBOARD METRICS ---------- */
.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.metric-label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-mute);
}
.metric-value {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text);
  margin-top: 0.25rem;
}
.metric-value .unit {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-mute);
}
.metric-trend {
  font-size: 0.65rem;
  font-weight: 700;
  margin-top: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}
.trend-up {
  color: #f59e0b;
}
.trend-down {
  color: #06b6d4;
}
.trend-flat {
  color: var(--brand);
}

.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

/* ---------- HARDWARE OFFER ---------- */
.offer-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px -10px rgb(0 0 0 / 0.15);
}
.offer-media {
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.offer-media img {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}
.price-tag {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 900;
  color: var(--brand);
}

/* ---------- PRICING PACKAGES ---------- */
.plan-card {
  background: #0f172a;
  color: #fff;
  border: 1px solid #1e293b;
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.plan-card.featured {
  background: #1e293b;
  border: 2px solid var(--brand);
  position: relative;
}
.plan-featured-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: #0f172a;
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
}
.plan-name {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
}
.plan-card.featured .plan-name {
  color: var(--brand);
}
.plan-value {
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--brand);
}
.plan-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  flex-grow: 1;
  font-size: 0.88rem;
}
.plan-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}
.plan-list li.disabled {
  color: #475569;
}
.plan-check {
  color: var(--brand);
  font-weight: 800;
}
.btn-whatsapp {
  background: #22c55e;
  color: #fff;
  border: none;
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  font-weight: 700;
  width: 100%;
  text-align: center;
}
.btn-whatsapp:hover {
  background: #16a34a;
  color: #fff;
}

/* ---------- FOOTER ---------- */
.footer-custom {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2.5rem;
}
