/* ─── Design System — SinteX ─────────────────────────────── */
/* Mewarisi palet warna & gaya dari DESIGN_SYSTEM.md         */

:root {
  --primary: #1d4ed8;
  --primary-dark: #1e3a8a;
  --accent: #6B7280;
  --accent-hover: #4B5563;
  --dark-bg: #0e1a2b;
  --dark-soft: #14233a;
  --footer-start: #0d1b33;
  --footer-mid: #0a1628;
  --footer-end: #081222;
  --stats-from: #0f4ca0;
  --stats-to: #0d3e85;
  --light-bg: #f8fafc;
  --light-bg-2: #f1f5f9;
  --surface: #ffffff;
  --text-primary: #0f172a;
  --text-muted: #334155;
  --text-light: #e5e7eb;
  --text-white: #ffffff;
  --border: #e5e7eb;
  --border-slate: #e2e8f0;
  --layout-max: 1240px;
  --layout-gutter: 5%;
  --layout-width: min(var(--layout-max), calc(100% - (var(--layout-gutter) * 2)));
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text-primary);
  background: var(--light-bg);
  line-height: 1.7;
  font-size: 18px;
}

body.subpage {
  padding-top: 92px;
}

.container {
  width: var(--layout-width);
  margin: 0 auto;
}

/* ─── Reusable Components ────────────────────────────────── */
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 18px;
  border-radius: 30px;
  margin-bottom: 16px;
}

.section-heading {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.section-lead {
  color: var(--text-muted);
  max-width: 70ch;
  font-size: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border-slate);
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.14);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--text-white);
  padding: 14px 32px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(228, 10, 11, 0.3);
  transition: all 0.3s ease;
}

.btn-cta:hover {
  background: #000;
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.25);
}

.product-placeholder {
  background: var(--light-bg-2);
  border: 2px dashed var(--border-slate);
  border-radius: 16px;
  padding: 48px 24px;
  text-align: center;
  color: var(--text-muted);
}

.section-wrapper {
  padding: 80px 0;
}

.hover-lift {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.22);
}

/* ─── Line clamp for product descriptions ───────────────── */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── Product image gradient overlay ────────────────────── */
.product-img-gradient {
  position: relative;
}

.product-img-gradient::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.15) 0%, transparent 40%);
  pointer-events: none;
}

/* ─── Cart badge bounce animation ───────────────────────── */
@keyframes badge-bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.cart-badge {
  animation: badge-bounce 0.3s ease;
}

/* ─── Hero circuit board pattern ────────────────────────── */
.hero-circuit-pattern {
  background-image:
    radial-gradient(circle at 25px 25px, rgba(255,255,255,0.03) 1px, transparent 0);
  background-size: 50px 50px;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .section-wrapper {
    padding: 48px 0;
  }

  body {
    font-size: 17px;
  }
}
