*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-midnight);
  color: var(--text-primary);
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font-family: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(7, 13, 25, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 0.75rem;
}

.brand-logo {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: #ffffff;
  white-space: nowrap;
}

.brand-text span {
  color: var(--accent-blue-bright);
}

.header-nav {
  display: none;
  gap: 1.75rem;
  color: #cbd5e1;
  font-size: 0.92rem;
  font-weight: 500;
}

.header-nav a:hover {
  color: #ffffff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Hero (Responsif Mobile-First -> Desktop 2 Kolom) */
.hero {
  padding-block: 2.25rem 2.75rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 42%, rgba(37, 99, 235, 0.22), transparent 48%),
    radial-gradient(circle at 85% 25%, rgba(56, 189, 248, 0.1), transparent 40%),
    var(--bg-midnight);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: center;
}

.hero-kicker {
  margin: 0 0 0.65rem;
  color: var(--accent-blue-bright);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0 0 0.9rem;
  font-size: clamp(1.9rem, 7vw, 3.35rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.hero-title span {
  color: var(--accent-blue-bright);
}

.hero-subtitle {
  margin: 0 0 1.35rem;
  color: var(--text-secondary);
  max-width: 50ch;
  font-size: 0.95rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

/* 3 Trust Items di bawah tombol Hero */
.hero-trust {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  padding-top: 0.25rem;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.trust-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background-color: rgba(37, 99, 235, 0.18);
  color: var(--accent-blue-bright);
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.trust-item strong {
  display: block;
  font-size: 0.84rem;
  color: #f1f5f9;
  line-height: 1.25;
}

.trust-item span {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* Hero Visual: Tanpa Box, Mobil Utuh & Responsif */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-frame {
  width: 100%;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}

.hero-image-frame img {
  width: 100%;
  height: auto;
  max-height: 280px;
  margin-inline: auto;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.55));
}

/* Sections */
.section {
  padding-block: 2.75rem;
}

/* Section Kategori Warna Putih Bersih */
.section-light {
  background-color: var(--bg-light);
  color: var(--text-dark-primary);
}

.section-header {
  margin-bottom: 1.35rem;
}

.section-eyebrow {
  display: inline-block;
  margin-bottom: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-blue);
}

.section-header h2 {
  margin: 0 0 0.3rem;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  letter-spacing: -0.02em;
}

.section-header p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.section-header-light h2 {
  color: var(--text-dark-primary);
}

.section-header-light p {
  color: var(--text-dark-secondary);
}

/* Section Katalog Dark */
.catalog-section {
  background-color: var(--bg-navy);
  border-top: 1px solid var(--border-subtle);
}

.catalog-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.85rem;
}

/* 4 Kategori Simetris: 1 kolom di HP, 2x2 di Tablet/Desktop */
.category-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding-block: 1.5rem;
  background-color: var(--bg-midnight);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.footer-inner p {
  margin: 0;
  font-size: 0.86rem;
}

.footer-muted {
  color: var(--text-muted);
}

/* Tablet Kecil ke Atas (>= 480px) */
@media (min-width: 480px) {
  .container {
    padding-inline: 1.25rem;
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-image-frame img {
    max-height: 340px;
  }
}

/* Tablet / Phablet (>= 640px) */
@media (min-width: 640px) {
  .hero {
    padding-block: 3rem 3.5rem;
  }

  .hero-trust {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.15rem;
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Tablet Landscape / Desktop (>= 768px) */
@media (min-width: 768px) {
  .header-inner {
    min-height: 72px;
  }

  .brand-logo {
    font-size: 1.3rem;
  }

  .header-nav {
    display: flex;
  }

  .section {
    padding-block: 3.5rem;
  }

  .category-grid-2x2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

/* Desktop Hero Split (>= 960px) */
@media (min-width: 960px) {
  .hero {
    padding-block: 3.5rem 4rem;
  }

  .hero-grid {
    grid-template-columns: 0.95fr 1.15fr;
    gap: 2.25rem;
  }

  .hero-actions {
    margin-bottom: 2.25rem;
  }

  .hero-image-frame img {
    max-height: 440px;
  }
}

/* Desktop Katalog 3 Kolom (>= 1024px) */
@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.35rem;
  }
}