:root {
  --bg: #020617;
  --bg-card: #020617;
  --bg-elevated: #020617;
  --accent: #f97316;
  --accent-soft: rgba(249, 115, 22, 0.12);
  --border-subtle: rgba(148, 163, 184, 0.35);
  --border-strong: rgba(148, 163, 184, 0.7);
  --text-main: #e5e7eb;
  --text-soft: #9ca3af;
  --text-muted: #6b7280;
  --text-strong: #f9fafb;
  --radius-xl: 1.75rem;
  --radius-lg: 1.25rem;
  --radius-md: 0.9rem;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.9);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.14), transparent 55%),
    radial-gradient(circle at bottom right, rgba(244, 114, 182, 0.14), transparent 60%),
    #020617;
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* SHELL */

.page-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

@media (min-width: 768px) {
  .page-shell {
    padding: 2.5rem 2rem;
  }
}

.app-frame {
  width: 100%;
  max-width: 1120px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(circle at top left, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.98)),
    radial-gradient(circle at bottom right, rgba(15, 23, 42, 1), #020617);
  box-shadow: var(--shadow-soft);
  padding: 1.4rem;
  position: relative;
  overflow: hidden;
}

@media (min-width: 900px) {
  .app-frame {
    padding: 1.7rem 1.8rem 1.9rem;
  }
}

.app-frame-inner {
  position: relative;
  z-index: 1;
}

/* TOP BAR */

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(31, 41, 55, 0.95);
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background:
    radial-gradient(circle at left, rgba(249, 115, 22, 0.14), transparent 55%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.98));
}

.brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.85);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.9), 0 0 16px rgba(248, 250, 252, 0.4);
  object-fit: cover;
  background: #020617;
}

.brand-text-main {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-strong);
}

.brand-text-sub {
  font-size: 0.74rem;
  color: var(--text-soft);
}

.pill-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Pill gabungan 18+ + pesan risiko */
.status-pill {
  border-radius: var(--radius-pill);
  padding: 0.32rem 0.9rem 0.34rem;
  font-size: 0.74rem;
  border: 1px dashed rgba(248, 113, 113, 0.75);
  background: rgba(15, 23, 42, 0.98);
  color: #fecaca;
  display: inline-block;
  line-height: 1.4;
  text-align: center;
}

.status-age {
  display: inline;
  font-weight: 700;
  color: #fecaca;
  margin-right: 0.3rem;
}

.status-text {
  display: inline;
  color: #fecaca;
}

/* NAV */

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.85rem;
  flex-wrap: wrap;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(31, 41, 55, 0.9);
}

/* grup menu jadi kapsul */
.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  font-size: 0.8rem;
  color: var(--text-soft);
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.96);
  padding: 0.18rem 0.2rem;
}

/* setiap item menu di dalam kapsul */
.nav-link {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  position: relative;
  transition: background 0.16s ease, color 0.16s ease;
}

/* titik pemisah antar menu */
.nav-links .nav-link + .nav-link {
  padding-left: 1.4rem;
}

.nav-links .nav-link + .nav-link::before {
  content: "•";
  position: absolute;
  left: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.82rem;
  color: rgba(148, 163, 184, 0.7);
  pointer-events: none;
}

/* garis bawah glowing saat hover */
.nav-link::after {
  content: "";
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, #f97316, #facc15);
  transform: scaleX(0);
  transform-origin: center;
  transition: 0.16s ease;
  opacity: 0;
}

.nav-link:hover {
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-strong);
}

.nav-link:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

/* nav active (dipakai di halaman artikel) */
.nav-link.active {
  background: rgba(15, 23, 42, 0.95);
  color: var(--text-strong);
}

.nav-link.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn-ghost {
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.75rem;
  font-size: 0.72rem;
  border: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.96);
  color: var(--text-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.btn-ghost:hover {
  border-color: var(--border-strong);
  color: var(--text-strong);
  background: rgba(15, 23, 42, 1);
}

.btn-ghost span.icon {
  font-size: 0.9rem;
}

.btn-primary {
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.95rem;
  font-size: 0.78rem;
  font-weight: 600;
  border: none;
  background: linear-gradient(135deg, #f97316, #facc15);
  color: #0b1120;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 16px 38px rgba(234, 88, 12, 0.6);
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.12s ease;
}

.btn-primary span.icon {
  font-size: 1rem;
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 18px 44px rgba(249, 115, 22, 0.7);
}

/* MAIN LAYOUT (beranda & artikel) */

.content-shell {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1.1fr);
  gap: 1.7rem;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .content-shell {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* HERO LEFT (beranda) */

.hero-main {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  color: var(--text-soft);
  flex-wrap: wrap;
}

.eyebrow-tag {
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
  border: 1px solid rgba(248, 250, 252, 0.16);
  background: rgba(15, 23, 42, 0.98);
  font-size: 0.74rem;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}

.hero-title {
  font-size: clamp(1.9rem, 2.1rem, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-strong);
}

.highlight {
  background: linear-gradient(120deg, #f97316, #facc15);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 0.92rem;
  color: var(--text-soft);
  max-width: 38rem;
}

.hero-subtitle strong {
  color: var(--text-strong);
  font-weight: 600;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.6rem;
}

.hero-cta-secondary {
  font-size: 0.8rem;
  color: var(--text-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 18rem;
}

.hero-cta-secondary span.dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.8);
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.8rem;
}

.metric {
  min-width: 140px;
}

.metric-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.metric-value {
  font-size: 0.9rem;
  color: var(--text-main);
}

.metric-value span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

/* HERO RIGHT (beranda) */

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-card {
  border-radius: var(--radius-lg);
  padding: 1.05rem 1rem;
  background:
    radial-gradient(circle at top left, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 1));
  border: 1px solid var(--border-strong);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.95);
}

.info-card-header {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.8rem;
}

.info-card-title {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text-strong);
}

.info-card-sub {
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-top: 0.15rem;
}

.info-card-pill {
  font-size: 0.7rem;
  border-radius: 999px;
  padding: 0.18rem 0.6rem;
  border: 1px solid rgba(248, 250, 252, 0.32);
  color: var(--text-soft);
}

.bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.bullet-item {
  display: flex;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-main);
}

.bullet-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #facc15);
  margin-top: 0.3rem;
  flex-shrink: 0;
}

.info-footnote {
  margin-top: 0.6rem;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.info-footnote strong {
  color: #fee2e2;
}

/* SECTION KATEGORI (beranda) */

.section-shell {
  margin-top: 1.7rem;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 1.4rem;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .section-shell {
    grid-template-columns: minmax(0, 1fr);
  }
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.section-eyebrow {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.section-title {
  font-size: 1.04rem;
  color: var(--text-strong);
}

.section-text {
  font-size: 0.86rem;
  color: var(--text-soft);
  max-width: 28rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

@media (max-width: 640px) {
  .category-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.category-card {
  border-radius: var(--radius-md);
  padding: 0.85rem 0.9rem;
  background:
    radial-gradient(circle at top left, rgba(15, 23, 42, 1), rgba(15, 23, 42, 0.96));
  border: 1px solid rgba(51, 65, 85, 0.95);
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.category-badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.category-name {
  font-size: 0.9rem;
  color: var(--text-strong);
  font-weight: 600;
}

.category-desc {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.category-link {
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: #fde68a;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.category-link span.icon {
  font-size: 0.9rem;
}

/* ABOUT (beranda) */

.about-section {
  margin-top: 1.8rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(31, 41, 55, 0.95);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 1.4rem;
}

@media (max-width: 900px) {
  .about-section {
    grid-template-columns: minmax(0, 1fr);
  }
}

.about-main-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: 0.4rem;
}

.about-text {
  font-size: 0.84rem;
  color: var(--text-soft);
  margin-bottom: 0.45rem;
}

.about-text strong {
  color: var(--text-main);
}

.warning-box {
  border-radius: var(--radius-md);
  padding: 0.8rem 0.9rem;
  background: rgba(127, 29, 29, 0.35);
  border: 1px solid rgba(248, 113, 113, 0.8);
  font-size: 0.8rem;
  color: #fee2e2;
}

.warning-box strong {
  color: #fecaca;
}

.about-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.83rem;
  color: var(--text-soft);
  margin: 0.45rem 0;
}

.about-list li span.bull {
  display: inline-block;
  width: 0.6rem;
}

/* FOOTER */

footer {
  margin-top: 1.6rem;
  border-top: 1px solid rgba(31, 41, 55, 0.95);
  padding-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  font-size: 0.78rem;
}

.footer-links a {
  color: var(--text-soft);
}

.footer-links a:hover {
  color: var(--text-strong);
}

/* =========================================================
   BAGIAN KHUSUS HALAMAN ARTIKEL
   ====================================================== */

/* breadcrumb artikel */
.breadcrumb {
  margin-top: 0.9rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
}

.breadcrumb a {
  color: #9ca3af;
}

.breadcrumb a:hover {
  color: var(--text-strong);
}

.breadcrumb-sep {
  opacity: 0.7;
}

/* layout artikel utama */
.article-main {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.article-eyebrow {
  font-size: 0.8rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.article-title {
  font-size: clamp(1.7rem, 1.9rem, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-strong);
}

.article-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.article-meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.9);
}

.article-intro {
  font-size: 0.9rem;
  color: var(--text-soft);
  max-width: 40rem;
}

.article-intro strong {
  color: var(--text-strong);
  font-weight: 600;
}

/* section isi artikel */

.article-section {
  margin-top: 0.8rem;
}

.article-section h2 {
  font-size: 1.05rem;
  color: var(--text-strong);
  margin-bottom: 0.3rem;
}

.article-section h3 {
  font-size: 0.95rem;
  color: var(--text-main);
  margin: 0.6rem 0 0.25rem;
}

.article-section p {
  font-size: 0.86rem;
  color: var(--text-soft);
  margin-bottom: 0.5rem;
}

.article-section ul {
  margin: 0.2rem 0 0.7rem 1.2rem;
  font-size: 0.86rem;
  color: var(--text-soft);
}

.article-section li + li {
  margin-top: 0.25rem;
}

/* callout kotak netral artikel */

.callout {
  border-radius: var(--radius-md);
  padding: 0.8rem 0.9rem;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: 0.84rem;
  color: var(--text-soft);
  margin: 0.7rem 0;
}

.callout strong {
  color: var(--text-main);
}

/* sidebar artikel */

.article-side {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.side-card {
  border-radius: var(--radius-lg);
  padding: 0.9rem;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(51, 65, 85, 0.95);
  font-size: 0.82rem;
  color: var(--text-soft);
}

.side-card-title {
  font-size: 0.9rem;
  color: var(--text-strong);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.side-list {
  list-style: none;
  padding-left: 0;
  margin: 0.3rem 0 0;
}

.side-list li + li {
  margin-top: 0.25rem;
}

.side-list a {
  font-size: 0.82rem;
  color: #e5e7eb;
}

.side-list a:hover {
  color: #facc15;
}

.side-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 0.25rem 0.6rem;
  font-size: 0.73rem;
  color: var(--text-soft);
  margin-bottom: 0.35rem;
}

.side-pill span.dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22c55e;
}

/* MOBILE */

@media (max-width: 720px) {
  .top-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .pill-row {
    justify-content: center;
  }

  .status-pill {
    text-align: center;
  }

  .nav-shell {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    text-align: center;
    margin-bottom: 0.5rem;
  }

  .nav-cta {
    width: 100%;
    justify-content: space-between;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }
}