/* ==========================================================
   Syscom Data Interchange — Stylesheet
   Palet: putih / abu-abu terang + aksen merah-oranye logo
   ========================================================== */

:root {
  --brand-50: #fff4ed;
  --brand-100: #ffe1d0;
  --brand-500: #ef6b2f;
  --brand-600: #d9291f;
  --brand-700: #b91c1c;
  --brand-900: #7f1d1d;

  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --red: #ef4444;
  --green: #16a34a;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .06);
  --shadow-md: 0 10px 30px -12px rgba(15, 23, 42, .18);
  --shadow-lg: 0 24px 60px -20px rgba(185, 28, 28, .26);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --nav-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.02em; }
p { margin: 0; }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--brand-600); color: #fff; box-shadow: 0 8px 20px -8px rgba(217, 41, 31, .6); }
.btn-primary:hover { background: var(--brand-700); transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(217, 41, 31, .7); }
.btn-primary svg { transition: transform .25s var(--ease); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-shop svg { color: var(--green); }
.btn-white { background: #fff; color: var(--brand-700); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .35); }
.btn-outline-white { color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-outline-white:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn-block { width: 100%; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-700);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-500); box-shadow: 0 0 0 4px var(--brand-100); }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.navbar.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav-inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 42px; height: 42px; object-fit: contain; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; font-weight: 800; font-size: 1.1rem; line-height: 1.05; letter-spacing: -.02em; }
.logo-text small { font-weight: 500; font-size: .7rem; color: var(--muted); letter-spacing: .02em; }
.logo.light .logo-text small { color: #94a3b8; }

.nav-links { display: flex; gap: 6px; }
.nav-links a {
  position: relative; padding: 8px 16px; border-radius: 999px;
  font-weight: 500; font-size: .95rem; color: var(--ink-2);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-soft); }
.nav-links a.active { color: var(--brand-700); background: var(--brand-50); }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--ink); display: grid; place-items: center;
  transition: border-color .2s, background .2s, transform .2s;
}
.icon-btn:hover { border-color: var(--brand-500); color: var(--brand-700); }
.icon-btn.on { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }

.menu-btn { display: none; flex-direction: column; gap: 4px; place-items: unset; align-items: center; justify-content: center; }
.menu-btn span { width: 16px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.search-panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .35s var(--ease);
}
.search-panel > .container { overflow: hidden; }
.search-panel.open { grid-template-rows: 1fr; }
.search-field {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 16px; padding: 0 18px; height: 54px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px;
  color: var(--muted); transition: border-color .2s, box-shadow .2s;
}
.search-field:focus-within { border-color: var(--brand-500); box-shadow: 0 0 0 4px var(--brand-100); background: #fff; }
.search-field input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1rem; color: var(--ink); }
.search-field kbd { font-family: inherit; font-size: .72rem; padding: 3px 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 88px 0 96px;
  background:
    radial-gradient(800px 400px at 85% 10%, rgba(239, 107, 47, .12), transparent 60%),
    radial-gradient(600px 300px at 0% 100%, rgba(217, 41, 31, .06), transparent 60%),
    var(--bg);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; opacity: .35;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 65%);
  pointer-events: none;
}
/* Copy dan visual ditumpuk di satu sel grid: visual jadi latar belakang judul */
.hero-inner { position: relative; display: grid; grid-template-columns: 1fr; align-items: center; min-height: 460px; }
.hero-copy, .hero-visual { grid-area: 1 / 1; }
.hero-copy { position: relative; z-index: 2; max-width: 640px; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; margin: 18px 0 20px; }
.hero h1 .accent { color: var(--brand-600); position: relative; z-index: 0; white-space: nowrap; }
.hero h1 .accent::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .22em;
  background: var(--brand-100); z-index: -1; border-radius: 4px;
}
.hero-sub { font-size: 1.08rem; color: var(--muted); max-width: 540px; }
.hero-address {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px;
  padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-weight: 600; font-size: .92rem; color: var(--ink-2);
}
.hero-address svg { color: var(--brand-600); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-stats { list-style: none; padding: 0; margin: 44px 0 0; display: flex; gap: 36px; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.25rem; font-weight: 800; }
.hero-stats span { font-size: .85rem; color: var(--muted); }

.hero-visual {
  position: relative; z-index: 1; justify-self: end; width: min(560px, 52%);
  min-height: 420px; display: grid; place-items: center; pointer-events: none;
}
/* Lapisan pudar dari kiri agar teks yang menimpa visual tetap terbaca */
.hero-visual::after {
  content: ""; position: absolute; inset: -40px -40px -40px -120px; z-index: 3;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(255, 255, 255, .6) 30%, transparent 60%);
}
.visual-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); }
.visual-card.main { width: min(420px, 100%); padding: 36px 28px 22px; }
.visual-card .cam { animation: sway 6s ease-in-out infinite; transform-origin: 50% 10%; }
.live { margin-top: 18px; display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; color: var(--muted); }
.live span { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pulse 1.6s infinite; }
.visual-card.float { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; box-shadow: var(--shadow-md); }
.visual-card.float strong { display: block; font-size: .9rem; }
.visual-card.float small { color: var(--muted); font-size: .78rem; }
.visual-card.f1 { top: 6%; left: -2%; animation: float 5s ease-in-out infinite; }
.visual-card.f2 { bottom: 6%; right: -2%; animation: float 5s ease-in-out 1.2s infinite; }
.chip-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; }
.chip-icon.brand { background: var(--brand-50); color: var(--brand-700); }
.chip-icon.green { background: #dcfce7; color: var(--green); }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .5); } 100% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); } }

/* ---------- Features ---------- */
.features { padding: 0 0 24px; }
.features-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
}
.feature { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; padding: 24px; }
.feature + .feature { border-left: 1px solid var(--line); }
.f-icon { grid-row: span 2; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--brand-600); border: 1px solid var(--line); }
.feature h3 { font-size: 1rem; }
.feature p { font-size: .86rem; color: var(--muted); }

/* ---------- Products ---------- */
.products { padding: 96px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; margin: 8px 0 8px; }
.section-head p { color: var(--muted); }

.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-size: .88rem; font-weight: 600; color: var(--ink-2);
  transition: all .2s var(--ease);
}
.filter:hover { border-color: var(--ink-2); }
.filter.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.products .section-head { margin-bottom: 24px; }
.shop-link {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm);
  transition: border-color .25s, box-shadow .25s, transform .25s var(--ease);
}
.shop-link:hover { border-color: var(--brand-100); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.shop-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #dcfce7; color: var(--green); }
.shop-text { display: flex; flex-direction: column; line-height: 1.3; }
.shop-text strong { font-size: .92rem; }
.shop-text small { font-size: .8rem; color: var(--muted); }
.shop-text .star { color: #f59e0b; }
.shop-arrow { color: var(--muted); transition: transform .25s var(--ease); }
.shop-link:hover .shop-arrow { transform: translateX(3px); }
.price-note {
  display: flex; align-items: center; gap: 10px; margin: 20px 0 28px; padding: 12px 16px;
  border-radius: 12px; background: var(--brand-50); border: 1px solid var(--brand-100);
  font-size: .9rem; color: var(--ink-2);
}
.price-note svg { flex: none; color: var(--brand-600); }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }

.cat-card {
  display: flex; flex-direction: column; padding: 24px;
  background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  animation: cardIn .5s var(--ease) both;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-100); }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Deretan foto produk resmi di atas kartu kategori */
.cat-photos {
  display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 1px;
  margin: -24px -24px 20px; overflow: hidden; border-radius: 20px 20px 0 0;
  background: var(--line); border-bottom: 1px solid var(--line);
}
.cat-photos[data-count="1"] { --n: 1; }
.cat-photos[data-count="2"] { --n: 2; }
.cat-photos figure { position: relative; margin: 0; background: #fff; aspect-ratio: 1; overflow: hidden; }
/* Tinggi deretan foto sama di semua kartu, berapa pun jumlah fotonya */
.cat-photos[data-count="2"] figure { aspect-ratio: 3 / 2; }
.cat-photos[data-count="1"] figure { aspect-ratio: 3 / 1; }
.cat-photos img { width: 100%; height: 100%; object-fit: contain; padding: 6%; transition: transform .5s var(--ease); }
.cat-card:hover .cat-photos img { transform: scale(1.05); }
.cat-photos figcaption {
  position: absolute; left: 8px; bottom: 8px; padding: 2px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .9); border: 1px solid var(--line);
  font-size: .7rem; font-weight: 700; color: var(--ink-2);
}
.cat-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.cat-icon {
  flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand-600); border: 1px solid var(--brand-100);
}
.cat-head h3 { font-size: 1.1rem; font-weight: 800; }
.cat-head p { font-size: .82rem; color: var(--muted); }

.brand-list { display: flex; flex-wrap: wrap; gap: 8px; }
.brand-chip {
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-soft);
  font-size: .85rem; font-weight: 600; color: var(--ink-2);
  transition: background .2s, border-color .2s, color .2s;
}
.brand-chip:hover { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.brand-chip.match { background: var(--brand-50); border-color: var(--brand-500); color: var(--brand-700); }
.cat-card[hidden] { display: none; }

/* Daftar produk populer (bisa dibuka-tutup) */
.popular { margin-top: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-soft); }
.popular summary {
  display: flex; align-items: center; gap: 8px; padding: 11px 14px; cursor: pointer; list-style: none;
  font-size: .88rem; font-weight: 700; color: var(--ink-2);
}
.popular summary::-webkit-details-marker { display: none; }
.popular summary::after {
  content: ""; margin-left: auto; width: 8px; height: 8px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform .25s var(--ease);
}
.popular[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.popular .count { padding: 1px 8px; border-radius: 999px; background: var(--brand-50); color: var(--brand-700); font-size: .75rem; }
.product-list { list-style: none; margin: 0; padding: 0 6px 6px; display: grid; gap: 2px; }
.product-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 10px; border-radius: 10px; font-size: .86rem; color: var(--ink-2);
  transition: background .2s, color .2s;
}
.product-list a:hover { background: #fff; color: var(--ink); }
.product-list li.match a { background: var(--brand-50); color: var(--brand-700); font-weight: 600; }
.p-ask {
  flex: none; display: inline-flex; align-items: center; gap: 4px;
  font-size: .75rem; font-weight: 700; color: var(--green); opacity: .75; transition: opacity .2s;
}
.product-list a:hover .p-ask { opacity: 1; }

.cat-cta {
  display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 20px;
  font-weight: 600; font-size: .9rem; color: var(--brand-700);
}
.cat-cta svg { transition: transform .25s var(--ease); }
.cat-cta:hover svg { transform: translateX(3px); }

.empty-state { margin-top: 24px; padding: 40px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.empty-state a { color: var(--brand-700); font-weight: 600; }

/* ---------- Kontak ---------- */
.contact { padding: 0 0 96px; }
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.contact-card {
  display: flex; flex-direction: column; padding: 28px;
  background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s, opacity .7s var(--ease);
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-100); }
.contact-icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
  background: var(--brand-50); color: var(--brand-600); border: 1px solid var(--brand-100);
}
.contact-card h3 { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.contact-main { font-size: 1.15rem; font-weight: 700; color: var(--ink); line-height: 1.4; }
.contact-number { font-size: 1.5rem; font-weight: 800; letter-spacing: -.01em; }
.contact-sub { margin-top: 6px; font-size: .92rem; color: var(--muted); }
.contact-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 20px;
  font-weight: 600; font-size: .92rem; color: var(--brand-700);
}
.contact-link svg { transition: transform .25s var(--ease); }
.contact-link:hover svg { transform: translateX(3px); }
.contact-hours { list-style: none; padding: 0; margin: 0; }
.contact-hours li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; color: var(--ink-2); }
.contact-hours li:first-child { padding-top: 0; }
.contact-hours strong { color: var(--ink); }
.open-status { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 20px; font-size: .82rem; font-weight: 600; }
.open-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.open-status.is-open { color: var(--green); }
.open-status.is-closed { color: var(--brand-700); }
.contact-actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: auto; padding-top: 20px; }
.contact-actions .btn { padding: 11px 14px; font-size: .9rem; white-space: nowrap; }.contact-icon.shop { background: #dcfce7; color: var(--green); border-color: #bbf7d0; }
.contact-sub .star { color: #f59e0b; }

/* ---------- CTA band ---------- */
.cta-band { padding: 0 0 96px; }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: 48px; border-radius: 24px; color: #fff;
  background:
    radial-gradient(500px 200px at 90% 0%, rgba(255, 255, 255, .18), transparent 70%),
    linear-gradient(135deg, var(--brand-600), var(--brand-900));
}
.cta-inner h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; }
.cta-inner p { margin-top: 8px; color: rgba(255, 255, 255, .8); max-width: 520px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #cbd5e1; padding: 56px 0 28px; }
.footer-grid { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.footer .logo-text { color: #fff; }
.footer-brand p { margin-top: 14px; font-size: .92rem; color: #94a3b8; max-width: 340px; }
.footer-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-nav a { padding: 8px 14px; border-radius: 999px; font-size: .92rem; font-weight: 600; transition: background .2s, color .2s; }
.footer-nav a:hover { background: #1e293b; color: #fff; }

.footer-bottom {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid #1e293b;
  font-size: .85rem; color: #64748b;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 120;
  padding: 12px 20px; border-radius: 999px; background: var(--ink); color: #fff;
  font-size: .9rem; font-weight: 500; box-shadow: var(--shadow-md);
  opacity: 0; transform: translate(-50%, 20px); pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-copy { max-width: 560px; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature:nth-child(3) { border-left: 0; }
  .feature:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

@media (max-width: 820px) {
  .menu-btn { display: flex; }
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 4px; padding: 12px 24px 20px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform .3s var(--ease), opacity .3s, visibility .3s;
  }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links a { padding: 12px 16px; }

  .hero { padding: 56px 0 72px; }
  .hero-inner { min-height: 0; }
  .hero-copy { max-width: none; }
  .hero-visual { justify-self: center; align-self: start; width: 100%; min-height: 360px; margin-top: 40px; }
  .hero-visual::after { inset: -40px -16px; background: rgba(255, 255, 255, .78); }
  .product-grid { gap: 16px; }
  .contact-grid { grid-template-columns: 1fr; gap: 16px; }
  /* Filter jadi satu baris yang bisa digeser */
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: -24px; padding: 2px 24px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; }
  .cta-inner { padding: 36px 28px; }
}

@media (max-width: 520px) {
  .container { width: calc(100% - 32px); }
  .hero-stats { gap: 22px; }
  .hero-cta .btn { flex: 1; }
  .hero-cta .btn-primary { flex-basis: 100%; }
  .features-grid { grid-template-columns: 1fr; }
  .feature + .feature { border-left: 0; border-top: 1px solid var(--line); }
  .product-grid { grid-template-columns: 1fr; gap: 12px; }
  .cat-card { padding: 20px; }
  .cat-photos { margin: -20px -20px 18px; }
  .filters { margin-inline: -16px; padding-inline: 16px; }
  .footer-nav { margin-left: -14px; }
  .visual-card.f1 { left: 0; }
  .visual-card.f2 { right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
