/* ---------- Reset Modern ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html:focus-within {
  scroll-behavior: smooth;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  line-height: 1.6;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  color: #0f172a;
  background: #ffffff;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

:root {
  --bg: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --primary: #0ea5e9;
  --primary-600: #0284c7;
  --surface: #f8fafc;
  --border: #e2e8f0;
  --ring: #bae6fd;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(2, 132, 199, 0.15);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --text: #f1f5f9;
    --muted: #cbd5e1;
    --primary: #38bdf8;
    --primary-600: #0ea5e9;
    --surface: #0f172a;
    --border: #1e293b;
    --ring: #0ea5e980;
  }
}

body {
  background: var(--bg);
  color: var(--text);
}

/* ---------- Utilities ---------- */
.container {
  max-width: 1120px;
  margin-inline: auto;
  padding: 0 1rem;
}

.section {
  padding: 4rem 0;
}

.section.alt {
  background: var(--surface);
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

.lead {
  font-size: 1.125rem;
  color: var(--muted);
}

.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;
}

.accent {
  background: linear-gradient(90deg, var(--primary), #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

@media (prefers-color-scheme: dark) {
  .site-header {
    background: rgba(15, 23, 42, 0.6);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
}

.logo img {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* Responsive header */
@media (max-width: 900px) {
  .menu {
    position: fixed;
    inset: 64px 0 auto 0;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem;
    transition: 0.2s ease;
    box-shadow: var(--shadow);
  }

  .menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: 6rem 0;
  background: radial-gradient(1200px 500px at 50% -20%,
      var(--ring),
      transparent 50%),
    linear-gradient(0deg, var(--surface), transparent);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.hero .lead {
  margin: 0 0 1rem;
  color: var(--muted);
}

.hero-media {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.cta-wrap {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1rem 0 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 0.7rem 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-lg {
  padding: 0.9rem 1.2rem;
  font-size: 1.05rem;
}

.btn-primary {
  background: var(--primary);
  color: #00243a;
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.25);
}

.btn-primary:hover {
  background: var(--primary-600);
  color: #e6f7ff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--muted);
}

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
}

/* ---------- Cards & Grids ---------- */
.grid {
  display: grid;
  gap: 1.25rem;
}

.produk {
  grid-template-columns: repeat(4, 1fr);
}

.promo {
  grid-template-columns: repeat(3, 1fr);
}

.card,
.promo-card,
.t-card {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow);
}

.card .icon {
  font-size: 1.5rem;
}

.promo-card .price {
  font-size: 1.6rem;
  font-weight: 700;
}

.promo-card .price span {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

.promo-card.popular {
  outline: 2px solid var(--primary);
  position: relative;
}

@media (max-width: 980px) {
  .produk {
    grid-template-columns: 1fr 1fr;
  }

  .promo {
    grid-template-columns: 1fr;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--text);
}