/* ==========================================================================
   DDEV DIGITAL STOREFRONT — MODERN COMMERCE EDITION
   Design System: Indigo (#4f46e5) + Royal Blue (#2563eb) + Emerald (#059669)
   ========================================================================== */

:root {
  --bg-main: #f6f7fb;
  --bg-surface: #ffffff;
  --bg-elevated: #eef1f7;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.88);
  --bg-invert: #0b0f19;
  --text-invert: #ffffff;

  --text-primary: #0b0f19;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --border-color: #e2e8f0;
  --border-strong: #cbd5e1;
  --border-hover: #4f46e5;

  --accent: #4f46e5;
  --accent-fg: #ffffff;
  --accent-soft: #eef2ff;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;

  --shadow-sm: 0 1px 3px rgba(11, 15, 25, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(11, 15, 25, 0.08);
  --shadow-lg: 0 20px 40px -12px rgba(11, 15, 25, 0.14);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

html[data-theme="dark"] {
  --bg-main: #070b14;
  --bg-surface: #0f1624;
  --bg-elevated: #182235;
  --bg-card: #0f1624;
  --bg-glass: rgba(11, 15, 25, 0.88);
  --bg-invert: #111827;
  --text-invert: #f8fafc;

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;

  --border-color: #1e293b;
  --border-strong: #334155;
  --border-hover: #6366f1;

  --accent: #6366f1;
  --accent-fg: #ffffff;
  --accent-soft: rgba(99, 102, 241, 0.16);

  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 12px 32px -8px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, 0.85);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.2s ease, color 0.2s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  max-width: 100%;
  display: block;
}

button, input, select {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 28px);
}

/* ================= TOP PROMO RIBBON ================= */
.promo-ribbon {
  background: linear-gradient(90deg, #0b0f19 0%, #1e1b4b 50%, #0f172a 100%);
  color: #f8fafc;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 9px 16px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.promo-ribbon-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.promo-pill {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #ffffff;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

/* ================= STICKY MONOCHROME NAVBAR ================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 800;
}

.brand-badge {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nav-search-wrap {
  flex: 0 1 280px;
  max-width: 280px;
  position: relative;
}

.nav-search-input {
  width: 100%;
  padding: 9px 16px 9px 38px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-size: 0.86rem;
  outline: none;
  transition: all 0.2s ease;
}

.nav-search-input:focus {
  border-color: var(--text-primary);
  background: var(--bg-surface);
}

.nav-search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--text-muted);
  pointer-events: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-left: auto;
}

.nav-menu a:hover {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  height: 38px;
  padding: 0 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all 0.18s ease;
}

.icon-btn:hover {
  border-color: var(--border-hover);
  background: var(--bg-elevated);
}

.theme-icon-sun,
.theme-icon-moon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-icon-sun {
  display: none;
}

.theme-icon-moon {
  display: block;
}

html[data-theme="dark"] .theme-icon-sun {
  display: block;
}

html[data-theme="dark"] .theme-icon-moon {
  display: none;
}

#themeBtn:hover .theme-icon-moon {
  transform: rotate(-15deg);
}

#themeBtn:hover .theme-icon-sun {
  transform: rotate(45deg);
}

.cart-btn {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-fg);
}

.cart-btn:hover {
  background: var(--accent);
  color: var(--accent-fg);
  opacity: 0.9;
}

.cart-count-pill {
  background: var(--accent-fg);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 999px;
  font-family: var(--font-mono);
}

/* ================= HERO SECTION ================= */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 6vw, 64px) 0 clamp(32px, 5vw, 52px);
  border-bottom: 1px solid var(--border-color);
  background:
    radial-gradient(ellipse 70% 60% at 10% 10%, rgba(79, 70, 229, 0.12), transparent 60%),
    radial-gradient(ellipse 60% 55% at 90% 20%, rgba(16, 185, 129, 0.11), transparent 55%),
    var(--bg-surface);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
  gap: clamp(24px, 4vw, 44px);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 8px;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

.status-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: var(--accent-fg);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.hero-title {
  font-size: clamp(2rem, 4.1vw, 3.15rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.gradient-text {
  background: linear-gradient(120deg, #4f46e5 0%, #2563eb 52%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: 24px;
  line-height: 1.65;
}

.hero-desc code {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  padding: 1px 6px;
  border-radius: 5px;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #4f46e5 0%, #2563eb 100%);
  color: #ffffff;
  border-color: #4f46e5;
  box-shadow: 0 8px 20px -6px rgba(79, 70, 229, 0.45);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4338ca 0%, #1d4ed8 100%);
  transform: translateY(-1px);
}

.btn-ghost,
.btn-surface,
.btn-amber {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover,
.btn-surface:hover,
.btn-amber:hover {
  border-color: var(--text-primary);
  background: var(--bg-elevated);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.metric-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.metric-val {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.metric-label {
  font-size: 0.74rem;
  color: var(--text-secondary);
}

/* Interactive Monochrome Studio Window in Hero */
.studio-card {
  background: #09090b;
  border: 1px solid #27272a;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  color: #fafafa;
}

.studio-header {
  background: #18181b;
  padding: 11px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #27272a;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.win-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #52525b;
}

.win-dot.r { background: #a1a1aa; }
.win-dot.y { background: #71717a; }
.win-dot.g { background: #3f3f46; }

.studio-tab-group {
  display: flex;
  gap: 4px;
  background: #09090b;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid #27272a;
}

.studio-tab {
  background: transparent;
  border: none;
  color: #a1a1aa;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.studio-tab.active {
  background: #ffffff;
  color: #09090b;
}

.studio-content {
  padding: 18px;
  min-height: 265px;
}

.studio-panel {
  display: none;
}

.studio-panel.active {
  display: block;
}

.zip-tree {
  list-style: none;
  display: grid;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.zip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  background: #18181b;
  border: 1px solid #27272a;
  color: #e4e4e7;
}

.zip-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ffffff;
  color: #09090b;
}

/* Interactive ROI Calculator Inside Studio */
.roi-calc-select {
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  background: #18181b;
  color: #ffffff;
  border: 1px solid #3f3f46;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
  outline: none;
}

.roi-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.roi-card {
  padding: 11px;
  border-radius: 10px;
  background: #18181b;
  border: 1px solid #27272a;
}

.roi-card.best {
  background: #ffffff;
  border-color: #ffffff;
  color: #09090b;
}

.roi-savings-banner {
  background: #18181b;
  border: 1px solid #3f3f46;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.78rem;
  color: #fafafa;
  font-weight: 700;
  text-align: center;
}

/* ================= VIP BUNDLE BANNER ================= */
.bundle-banner {
  margin-top: 28px;
  background: linear-gradient(135deg, #0b0f19 0%, #1e1b4b 55%, #064e3b 100%);
  color: #ffffff;
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3.5vw, 30px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  box-shadow: 0 20px 40px -12px rgba(11, 15, 25, 0.4);
}

.bundle-tag {
  display: inline-block;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #6ee7b7;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 8px;
  font-family: var(--font-mono);
}

.bundle-info h2 {
  font-size: clamp(1.1rem, 2.2vw, 1.38rem);
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.bundle-info p {
  font-size: 0.86rem;
  opacity: 0.8;
  max-width: 640px;
}

.bundle-action {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.bundle-price-num {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-invert);
  font-family: var(--font-mono);
}

.bundle-banner .btn-amber {
  background: var(--text-invert);
  color: var(--bg-invert);
  border-color: var(--text-invert);
}

.bundle-banner .btn-amber:hover {
  opacity: 0.9;
}

/* ================= CATALOG CONTROLS & PRODUCT CARDS ================= */
.catalog-section {
  padding-top: 28px;
  padding-bottom: 64px;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: none;
}

.filter-chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.filter-chip:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.filter-chip.active {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}

.toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0 22px;
}

.sync-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.sort-select {
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  outline: none;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 268px), 1fr));
  gap: 18px;
}

.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-hover);
}

.card-window-top {
  display: none;
}

.card-version-text {
  font-weight: 600;
}

.card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-elevated);
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.product-card:hover .card-thumb img {
  transform: scale(1.04);
}

.discount-pill {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #09090b;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.03em;
}

.thumb-tags {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.thumb-tag {
  background: rgba(9, 9, 11, 0.88);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.card-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(9, 9, 11, 0.72);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.2s ease;
  padding: 16px;
}

.product-card:hover .card-hover-overlay {
  opacity: 1;
}

.overlay-btn {
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(9, 9, 11, 0.85);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.overlay-btn.primary {
  background: #ffffff;
  color: #09090b;
  border-color: #ffffff;
}

.card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 8px;
  cursor: pointer;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.7em;
}

.card-title:hover {
  text-decoration: underline;
}

.card-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.9em;
}

.stack-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 14px;
}

.stack-chip {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

/* 2-Row Clean Card Footer (Never Wraps Price or Buttons) */
.card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.price-group {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: nowrap;
}

.price-current {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-mono);
  white-space: nowrap;
}

.price-old {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: line-through;
  font-family: var(--font-mono);
  white-space: nowrap;
}

.verified-pill {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  white-space: nowrap;
}

.card-actions {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr 1.2fr;
  gap: 6px;
}

.btn-card {
  padding: 9px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
  transition: all 0.16s ease;
}

.btn-card:hover {
  background: var(--bg-elevated);
  border-color: var(--text-primary);
}

.btn-card.buy {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}

.btn-card.buy:hover {
  opacity: 0.88;
}

/* ================= INTERACTIVE MODALS & DRAWERS ================= */
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.backdrop.open {
  display: flex;
}

.modal-window {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.modal-top {
  padding: 14px 20px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-top-title {
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.close-x {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 1.15rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.close-x:hover {
  border-color: var(--text-primary);
}

.modal-scroll {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

/* Live App Interactive Demo Simulator */
.demo-sim-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 18px;
  background: #09090b;
  border-bottom: 1px solid #27272a;
  color: #fafafa;
}

.viewport-btns {
  display: flex;
  gap: 6px;
}

.vp-btn {
  padding: 5px 11px;
  border-radius: 6px;
  border: 1px solid #27272a;
  background: #18181b;
  color: #a1a1aa;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}

.vp-btn.active {
  background: #ffffff;
  color: #09090b;
  border-color: #ffffff;
}

.demo-stage-wrap {
  background: #18181b;
  padding: 18px;
  display: flex;
  justify-content: center;
  overflow-y: auto;
  flex: 1;
}

.demo-viewport {
  width: 100%;
  background: #ffffff;
  color: #09090b;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transition: width 0.3s ease;
  min-height: 440px;
  border: 1px solid #27272a;
}

/* Slide-over Shopping Cart Drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 420px;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-strong);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  margin-left: auto;
  box-shadow: var(--shadow-lg);
}

.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
}

.cart-item-title {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.cart-item-price {
  font-size: 0.88rem;
  font-weight: 800;
  font-family: var(--font-mono);
}

.cart-footer {
  padding: 18px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-elevated);
}

/* Bento & Footer */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 18px;
  margin: 28px 0 56px;
}

.bento-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: border-color 0.2s ease;
}

.bento-box:hover {
  border-color: var(--text-primary);
}

.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 40px 0 32px;
  background: var(--bg-surface);
  font-size: 0.84rem;
  color: var(--text-secondary);
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .nav-menu {
    display: none;
  }
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

@media (max-width: 640px) {
  /* --- Navbar: baris 1 = logo + aksi, baris 2 = pencarian --- */
  .navbar-inner {
    flex-wrap: wrap;
    height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 10px;
  }
  .brand {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 1.1rem;
  }
  .brand-badge {
    display: none;
  }
  .nav-actions {
    order: 2;
    margin-left: auto;
    flex-shrink: 0;
  }
  .nav-search-wrap {
    order: 3;
    flex: 1 1 100%;
    max-width: 100%;
  }
  .nav-search-input {
    font-size: 16px; /* cegah auto-zoom iOS */
  }
  .icon-btn {
    height: 40px;
    min-width: 40px;
    padding: 0 11px;
  }
  .promo-ribbon {
    padding: 8px 12px;
    font-size: 0.72rem;
  }

  /* --- Hero --- */
  .hero {
    padding: 28px 0 28px;
  }
  .hero-title {
    font-size: 1.85rem;
  }
  .hero-desc {
    font-size: 0.94rem;
  }
  .status-pill {
    font-size: 0.72rem;
    max-width: 100%;
  }
  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-cta-row .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
  }
  .hero-metrics {
    grid-template-columns: 1fr;
  }

  /* --- Studio / kalkulator --- */
  .studio-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .studio-tab-group {
    width: 100%;
  }
  .studio-tab {
    flex: 1;
    padding: 7px 4px;
    font-size: 0.68rem;
    white-space: nowrap;
  }
  .studio-content {
    padding: 14px;
    min-height: 0;
  }
  .roi-compare-grid {
    grid-template-columns: 1fr;
  }
  .zip-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    word-break: break-all;
  }

  /* --- Bundle banner --- */
  .bundle-banner {
    flex-direction: column;
    align-items: stretch;
  }
  .bundle-action {
    justify-content: space-between;
  }
  .bundle-banner .btn-amber {
    width: 100%;
    white-space: normal;
  }

  /* --- Katalog --- */
  .filter-bar {
    margin-left: calc(-1 * clamp(16px, 4vw, 28px));
    margin-right: calc(-1 * clamp(16px, 4vw, 28px));
    padding-left: clamp(16px, 4vw, 28px);
    padding-right: clamp(16px, 4vw, 28px);
  }
  .toolbar-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .toolbar-row > div:last-child {
    justify-content: space-between;
  }
  .sort-select {
    flex: 1;
    font-size: 16px;
  }
  /* Sembunyikan terminal kalkulator di mobile agar katalog langsung terlihat (Above-The-Fold) */
  .studio-card,
  .hero-terminal {
    display: none !important;
  }

  .bundle-card {
    padding: 16px;
    margin: 24px 0 28px;
  }

  /* Katalog Mobile: 2 Kolom Kompak E-Commerce */
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .product-card {
    border-radius: 12px;
  }

  .card-window-top,
  .card-mac-header {
    display: none !important;
  }

  .thumb-tags {
    display: none !important;
  }

  .card-thumb {
    aspect-ratio: 16 / 10;
    border-radius: 11px 11px 0 0;
  }

  .discount-pill {
    top: 7px;
    right: 7px;
    padding: 3px 6px;
    font-size: 0.62rem;
  }

  .card-body {
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    flex: 1;
  }

  .card-title {
    font-size: 0.82rem;
    line-height: 1.32;
    height: 2.65em;
    margin-bottom: 6px;
    font-weight: 700;
  }

  .card-desc {
    display: none !important;
  }

  .stack-row {
    display: none !important;
  }

  .card-footer {
    padding-top: 8px;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    gap: 6px;
  }

  .price-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
  }

  .price-val {
    font-size: 0.95rem;
    line-height: 1.1;
    font-weight: 800;
  }

  .price-del {
    font-size: 0.68rem;
  }

  .price-badge {
    display: none !important;
  }

  .card-actions {
    display: flex !important;
    width: 100% !important;
    gap: 4px;
  }

  .card-actions .btn-card:not(.buy) {
    display: none !important;
  }

  .card-actions .btn-card.buy {
    width: 100% !important;
    padding: 7px 6px !important;
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    justify-content: center !important;
    text-align: center !important;
    display: flex !important;
  }
  .bento-grid {
    margin: 22px 0 40px;
  }

  /* --- Modal jadi bottom-sheet & drawer penuh --- */
  .backdrop {
    padding: 0;
    align-items: flex-end;
  }
  .modal-window {
    max-width: 100%;
    max-height: 94vh;
    max-height: 94dvh;
    border-radius: 18px 18px 0 0;
  }
  .modal-top {
    padding: 12px 14px;
  }
  .modal-scroll {
    padding: 16px;
  }
  .demo-sim-toolbar {
    padding: 10px 12px;
  }
  .demo-stage-wrap {
    padding: 10px;
  }
  .cart-drawer {
    max-width: 100%;
  }
}

@media (max-width: 380px) {
  .hero-title {
    font-size: 1.6rem;
  }
  .brand {
    font-size: 1rem;
  }
  .cart-btn span:not(.cart-count-pill) {
    display: none;
  }
}

/* ================= PRO SECTIONS: STEPS, TESTIMONIALS, FAQ, FOOTER & TOAST ================= */
.section-block {
  margin-top: 68px;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 28px;
}

.section-header h2 {
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 800;
  margin-top: 10px;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.section-header p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 8px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--bg-invert);
  color: var(--text-invert);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.step-card h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.step-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.testimonial-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.testimonial-stars {
  font-size: 0.82rem;
  letter-spacing: 2px;
  color: var(--text-primary);
  font-weight: 800;
}

.testimonial-quote {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.testimonial-author {
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
}

.testimonial-name {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--text-primary);
}

.testimonial-role {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item.open {
  border-color: var(--border-hover);
}

.faq-q {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-primary);
  padding: 16px 20px;
  text-align: left;
  font-size: 0.92rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.faq-icon {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--text-primary);
}

.faq-a {
  display: none;
  padding: 0 20px 18px;
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.65;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
}

.faq-item.open .faq-a {
  display: block;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 18px;
  text-align: left;
}

.footer-col h4 {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-col p,
.footer-links a {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-links a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.live-app-pill {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(9, 9, 11, 0.86);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  z-index: 2;
  backdrop-filter: blur(6px);
}

.toast-stack {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast-item {
  background: var(--bg-invert);
  color: var(--text-invert);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(10px);
  animation: toastIn 0.22s ease forwards;
}

@keyframes toastIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .steps-grid,
  .testimonial-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
