:root,
html[data-theme="dark"] {
  --bg: #07080d;
  --bg-2: #0d0f18;
  --nav-bg: rgba(7, 8, 13, 0.72);
  --card: #111421;
  --card-hover: #161a2b;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.2);
  --text: #eef0f6;
  --text-dim: #9aa1b5;
  --text-faint: #646c82;
  --accent-1: #7c5cff;
  --accent-2: #22d3ee;
  --accent-3: #f472b6;
  --accent-4: #34d399;
  --accent-5: #fbbf24;
  --badge-bg: rgba(124, 92, 255, 0.12);
  --badge-border: rgba(124, 92, 255, 0.32);
  --badge-text: #c2b2ff;
  --price-text: #34d399;
  --price-bg: rgba(52, 211, 153, 0.08);
  --price-border: rgba(52, 211, 153, 0.2);
  --grad: linear-gradient(135deg, #7c5cff 0%, #22d3ee 100%);
  --grad-warm: linear-gradient(135deg, #f472b6 0%, #fbbf24 100%);
  --grad-green: linear-gradient(135deg, #34d399 0%, #22d3ee 100%);
  --radius: 18px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.8);
  --glow-1: rgba(124, 92, 255, 0.18);
  --glow-2: rgba(34, 211, 238, 0.12);
  --glow-3: rgba(244, 114, 182, 0.08);
  --input-bg: #0c0e17;
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #f6f8fc;
  --bg-2: #edf1f9;
  --nav-bg: rgba(246, 248, 252, 0.82);
  --card: #ffffff;
  --card-hover: #fcfdff;
  --surface: rgba(15, 23, 42, 0.04);
  --surface-hover: rgba(15, 23, 42, 0.08);
  --border: rgba(15, 23, 42, 0.09);
  --border-hover: rgba(99, 102, 241, 0.32);
  --text: #0f172a;
  --text-dim: #475569;
  --text-faint: #64748b;
  --accent-1: #6d4aff;
  --accent-2: #0891b2;
  --accent-3: #db2777;
  --accent-4: #059669;
  --accent-5: #d97706;
  --badge-bg: rgba(109, 74, 255, 0.1);
  --badge-border: rgba(109, 74, 255, 0.25);
  --badge-text: #5b36f5;
  --price-text: #047857;
  --price-bg: rgba(16, 185, 129, 0.09);
  --price-border: rgba(16, 185, 129, 0.25);
  --shadow: 0 20px 50px -20px rgba(15, 23, 42, 0.14);
  --glow-1: rgba(124, 92, 255, 0.1);
  --glow-2: rgba(34, 211, 238, 0.09);
  --glow-3: rgba(244, 114, 182, 0.06);
  --input-bg: #f8fafc;
  color-scheme: light;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(600px 400px at 10% -5%, var(--glow-1), transparent 60%),
    radial-gradient(700px 500px at 90% 0%, var(--glow-2), transparent 60%),
    radial-gradient(800px 600px at 50% 110%, var(--glow-3), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* NAVBAR */
nav.site-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--grad);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 8px 24px -6px rgba(124, 92, 255, 0.7);
  position: relative;
  overflow: hidden;
}

.logo-mark::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.35) 50%, transparent 60%);
  transform: translateX(-100%);
  animation: shine 4s infinite;
}

@keyframes shine {
  0%, 70% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 13px;
  border-radius: 10px;
  transition: 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-cta {
  background: var(--grad) !important;
  color: #fff !important;
  font-weight: 600 !important;
  padding: 9px 16px !important;
  border-radius: 11px !important;
  text-decoration: none;
  font-size: 0.86rem;
  box-shadow: 0 8px 24px -8px rgba(124, 92, 255, 0.6);
  transition: 0.2s;
  white-space: nowrap;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -8px rgba(124, 92, 255, 0.85);
}

/* DARK / LIGHT THEME TOGGLE BUTTON */
.theme-toggle,
.mobile-menu-btn {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: 0.2s;
  flex-shrink: 0;
}

.theme-toggle:hover,
.mobile-menu-btn:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
}

.theme-toggle svg,
.mobile-menu-btn svg {
  width: 19px;
  height: 19px;
}

html[data-theme="dark"] .icon-sun { display: block; }
html[data-theme="dark"] .icon-moon { display: none; }
html[data-theme="light"] .icon-sun { display: none; }
html[data-theme="light"] .icon-moon { display: block; }

.mobile-menu-btn {
  display: none;
}

/* MOBILE DRAWER */
.mobile-drawer {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--card);
  padding: 14px 20px 20px;
  flex-direction: column;
  gap: 6px;
}

.mobile-drawer.open {
  display: flex;
}

.mobile-drawer a {
  color: var(--text);
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 11px;
  font-weight: 500;
  font-size: 0.94rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: 0.18s;
}

.mobile-drawer a:hover {
  background: var(--surface-hover);
}

.mobile-drawer .drawer-cta {
  margin-top: 8px;
  background: var(--grad);
  color: #fff !important;
  justify-content: center;
  font-weight: 600;
}

@media (max-width: 880px) {
  .nav-links {
    display: none;
  }
  .nav-right .nav-cta.desktop-only {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-grid;
  }
}

/* HERO */
header.hero {
  padding: 84px 0 64px;
  text-align: center;
  position: relative;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 99px;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--badge-text);
  margin-bottom: 24px;
  animation: fadeUp 0.65s ease both;
}

.badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-4);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.2rem, 5.8vw, 4.1rem);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  animation: fadeUp 0.65s 0.08s ease both;
}

h1 .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  font-size: clamp(0.98rem, 2vw, 1.15rem);
  color: var(--text-dim);
  max-width: 690px;
  margin: 0 auto 34px;
  animation: fadeUp 0.65s 0.16s ease both;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.65s 0.24s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  min-height: 46px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.92rem;
  font-family: inherit;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.22s cubic-bezier(0.2, 0.7, 0.3, 1);
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(124, 92, 255, 0.7);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px rgba(124, 92, 255, 0.9);
}

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

.btn-ghost:hover {
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 170px));
  gap: 24px;
  justify-content: center;
  margin-top: 52px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
  animation: fadeUp 0.65s 0.32s ease both;
}

.stat {
  text-align: center;
}

.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-faint);
  margin-top: 2px;
}

/* SECTION */
section {
  padding: 68px 0;
}

.sec-head {
  text-align: center;
  margin-bottom: 44px;
}

.sec-eyebrow {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 12px;
  display: block;
}

.sec-head h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.65rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.sec-head p {
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto;
  font-size: 0.98rem;
}

/* FEATURED CARDS */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(295px, 1fr));
  gap: 22px;
}

.featured-card {
  background: linear-gradient(160deg, rgba(124, 92, 255, 0.11), rgba(34, 211, 238, 0.05));
  border: 1px solid rgba(124, 92, 255, 0.26);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: 0.3s cubic-bezier(0.2, 0.7, 0.3, 1);
  display: flex;
  flex-direction: column;
}

html[data-theme="light"] .featured-card {
  background: linear-gradient(160deg, rgba(124, 92, 255, 0.07), rgba(34, 211, 238, 0.05)), #ffffff;
}

.featured-card::before {
  content: '⭐ UNGGULAN';
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  color: #f59e0b;
  background: rgba(251, 191, 36, 0.16);
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid rgba(251, 191, 36, 0.34);
}

.featured-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 92, 255, 0.5);
  box-shadow: var(--shadow);
}

.featured-card .card-icon {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-size: 1.55rem;
  margin-bottom: 16px;
  background: var(--icon-bg, var(--grad));
  box-shadow: 0 10px 28px -12px rgba(124, 92, 255, 0.55);
}

.featured-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 9px;
}

.featured-card h3 a {
  color: inherit;
  text-decoration: none;
}

.featured-card .tagline {
  color: var(--text-dim);
  font-size: 0.91rem;
  margin-bottom: 16px;
  line-height: 1.55;
}

.featured-card .price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--price-text);
  margin-top: auto;
  margin-bottom: 16px;
}

.featured-card .feat-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

/* SEARCH + FILTER TOOLBAR */
.catalog-toolbar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 36px;
}

.search-box {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 13px 18px 13px 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
  transition: 0.2s;
}

.search-box input:focus {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.18);
}

.search-box svg {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-faint);
  pointer-events: none;
}

.filters {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.chip {
  padding: 9px 17px;
  min-height: 40px;
  border-radius: 99px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s;
  font-family: inherit;
  white-space: nowrap;
}

.chip:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: var(--surface-hover);
}

.chip.active {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 24px -8px rgba(124, 92, 255, 0.6);
}

/* PRODUCT GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 22px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 25px;
  position: relative;
  overflow: hidden;
  transition: 0.28s cubic-bezier(0.2, 0.7, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--card-accent, var(--grad));
  opacity: 0;
  transition: 0.28s;
}

.card:hover {
  transform: translateY(-5px);
  background: var(--card-hover);
  border-color: var(--border-hover);
  box-shadow: var(--shadow);
}

.card:hover::before {
  opacity: 1;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  background: var(--icon-bg, var(--grad));
  box-shadow: 0 10px 26px -12px rgba(124, 92, 255, 0.55);
  flex-shrink: 0;
}

.status-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cat-pill {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--surface);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.status {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(52, 211, 153, 0.14);
  color: #10b981;
  border: 1px solid rgba(52, 211, 153, 0.28);
  white-space: nowrap;
}

html[data-theme="dark"] .status { color: #6ee7b7; }
.status.beta { background: rgba(251, 191, 36, 0.15); color: #d97706; border-color: rgba(251, 191, 36, 0.3); }
html[data-theme="dark"] .status.beta { color: #fcd34d; }
.status.demo { background: rgba(34, 211, 238, 0.14); color: #0891b2; border-color: rgba(34, 211, 238, 0.28); }
html[data-theme="dark"] .status.demo { color: #67e8f9; }
.status.internal { background: rgba(239, 68, 68, 0.14); color: #dc2626; border-color: rgba(239, 68, 68, 0.28); }
html[data-theme="dark"] .status.internal { color: #fca5a5; }
.status.coming_soon { background: rgba(148, 163, 184, 0.16); color: var(--text-dim); border-color: var(--border); }

.card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.24rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.card h3 a {
  color: inherit;
  text-decoration: none;
  transition: 0.15s;
}

.card h3 a:hover {
  color: var(--accent-1);
}

.card .tagline {
  color: var(--text-dim);
  font-size: 0.89rem;
  margin-bottom: 15px;
  line-height: 1.55;
}

.feat-list {
  list-style: none;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.feat-list li {
  font-size: 0.82rem;
  color: var(--text-dim);
  display: flex;
  align-items: flex-start;
  gap: 9px;
  line-height: 1.48;
}

.feat-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-2);
  margin-top: 7px;
  flex-shrink: 0;
}

.card-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--price-text);
  margin-bottom: 16px;
  padding: 9px 13px;
  background: var(--price-bg);
  border: 1px solid var(--price-border);
  border-radius: 10px;
  text-align: center;
}

.card-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.action-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  min-height: 44px;
  border-radius: 11px;
  background: var(--grad);
  color: #fff;
  font-weight: 600;
  font-size: 0.86rem;
  text-decoration: none;
  transition: 0.2s;
  box-shadow: 0 8px 24px -12px rgba(124, 92, 255, 0.6);
}

.action-main:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -10px rgba(124, 92, 255, 0.85);
}

.action-sub {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.action-sub.two-cols {
  grid-template-columns: 1fr 1fr;
}

.action-sub a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 8px;
  min-height: 38px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.76rem;
  font-weight: 500;
  text-decoration: none;
  transition: 0.2s;
}

.action-sub a:hover {
  background: var(--surface-hover);
  color: var(--text);
  border-color: var(--border-hover);
}

.action-sub a svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.card.hide {
  display: none;
}

.empty {
  text-align: center;
  padding: 56px 20px;
  color: var(--text-faint);
  display: none;
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.empty.show {
  display: block;
}

/* REVEAL ANIMATION */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* BUNDLING */
.bundle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.bundle {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: 0.28s;
}

.bundle:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  background: var(--card-hover);
  box-shadow: var(--shadow);
}

.bundle h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.bundle .products {
  font-size: 0.82rem;
  color: var(--accent-2);
  font-weight: 600;
  margin-bottom: 9px;
}

.bundle p {
  font-size: 0.86rem;
  color: var(--text-dim);
  line-height: 1.55;
}

/* LEAD / CONSULTATION FORM SECTION */
.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.contact-panel {
  background: linear-gradient(140deg, rgba(124, 92, 255, 0.13), rgba(34, 211, 238, 0.08));
  border: 1px solid rgba(124, 92, 255, 0.26);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 42px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

html[data-theme="light"] .contact-panel {
  background: linear-gradient(140deg, rgba(124, 92, 255, 0.08), rgba(34, 211, 238, 0.06)), #ffffff;
}

.lead-form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 36px);
}

.form-row {
  margin-bottom: 14px;
}

.form-row label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: 0.2s;
}

.form-control:focus {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.16);
}

.form-alert {
  padding: 12px 14px;
  border-radius: 11px;
  font-size: 0.85rem;
  margin-bottom: 14px;
  display: none;
}

.form-alert.success {
  display: block;
  background: rgba(52, 211, 153, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.32);
  color: var(--price-text);
}

.form-alert.error {
  display: block;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.32);
  color: #ef4444;
}

/* PRODUCT DETAIL PAGE */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-faint);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-dim);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent-1);
}

.detail-hero {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: clamp(26px, 5vw, 46px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: start;
}

.detail-side {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

/* FLOATING AI CHATBOT WIDGET */
.chat-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 75;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 99px;
  background: var(--grad);
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 14px 34px -8px rgba(124, 92, 255, 0.8);
  transition: 0.25s;
}

.chat-fab:hover {
  transform: translateY(-3px);
}

.chat-panel {
  position: fixed;
  bottom: 86px;
  right: 24px;
  z-index: 80;
  width: min(390px, calc(100vw - 32px));
  height: min(540px, calc(100vh - 120px));
  background: var(--card);
  border: 1px solid var(--border-hover);
  border-radius: 20px;
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.chat-panel.open {
  display: flex;
  animation: fadeUp 0.22s ease both;
}

.chat-header {
  padding: 15px 18px;
  background: var(--grad);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chat-header h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
}

.chat-header p {
  font-size: 0.74rem;
  opacity: 0.9;
}

.chat-close {
  background: rgba(255, 255, 255, 0.18);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-2);
}

.chat-msg {
  max-width: 87%;
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 0.85rem;
  line-height: 1.52;
  word-wrap: break-word;
}

.chat-msg.bot {
  align-self: flex-start;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.chat-msg.user {
  align-self: flex-end;
  background: var(--grad);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-msg a {
  color: var(--accent-2);
  text-decoration: underline;
}

.chat-feedback-row {
  display: flex;
  gap: 6px;
  margin-top: 7px;
  padding-top: 6px;
  border-top: 1px solid var(--border);
}

.chat-fb-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-faint);
  border-radius: 7px;
  padding: 2px 8px;
  font-size: 0.72rem;
  cursor: pointer;
}

.chat-fb-btn:hover,
.chat-fb-btn.voted {
  border-color: var(--accent-1);
  color: var(--accent-1);
}

.chat-quick-prompts {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  overflow-x: auto;
  background: var(--card);
  border-top: 1px solid var(--border);
  scrollbar-width: none;
}

.chat-quick-prompts::-webkit-scrollbar {
  display: none;
}

.quick-chip {
  padding: 5px 11px;
  border-radius: 99px;
  font-size: 0.74rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
}

.quick-chip:hover {
  border-color: var(--accent-1);
  color: var(--text);
}

.chat-input-bar {
  padding: 10px 12px;
  background: var(--card);
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
}

.chat-input-bar input {
  flex: 1;
  padding: 10px 13px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  font-size: 0.86rem;
  font-family: inherit;
  outline: none;
}

.chat-input-bar button {
  padding: 0 15px;
  border-radius: 11px;
  background: var(--grad);
  color: #fff;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

/* BACK TO TOP */
.to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 65;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border-hover);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: 0.25s;
}

.to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* FOOTER */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 38px;
  margin-top: 40px;
}

.foot-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.foot-brand .logo-mark {
  width: 32px;
  height: 32px;
  font-size: 0.9rem;
  border-radius: 9px;
}

.foot-brand span {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
}

.foot-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.foot-links a {
  color: var(--text-faint);
  text-decoration: none;
  font-size: 0.85rem;
  transition: 0.2s;
}

.foot-links a:hover {
  color: var(--text);
}

.foot-copy {
  color: var(--text-faint);
  font-size: 0.8rem;
  width: 100%;
  text-align: center;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

/* MOBILE RESPONSIVE ENHANCEMENTS */
@media (max-width: 900px) {
  .contact-grid,
  .detail-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 16px;
  }
  .nav-inner {
    padding: 12px 16px;
  }
  header.hero {
    padding: 52px 0 38px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 38px;
    padding-top: 28px;
  }
  section {
    padding: 48px 0;
  }
  .filters {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
    scrollbar-width: none;
  }
  .filters::-webkit-scrollbar {
    display: none;
  }
  .grid,
  .featured-grid {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 20px;
  }
  .action-sub {
    grid-template-columns: 1fr 1fr;
  }
  .action-sub a:last-child:nth-child(3) {
    grid-column: 1 / -1;
  }
  .chat-fab span.fab-label {
    display: none;
  }
  .chat-fab {
    padding: 14px;
    bottom: 18px;
    right: 18px;
  }
  .chat-panel {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: 76px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
