
/* ============================================================
   MASTERMIND BCI — design system (light shop theme)
   ============================================================ */
:root {
  --bg: #ffffff;
  --bg-2: #f8fafc;
  --panel: #ffffff;
  --panel-2: #f1f5f9;
  --line: #e2e8f0;
  --line-soft: #f1f5f9;
  --text: #0f172a;
  --muted: #475569;
  --muted-2: #64748b;
  --navy: #0f172a;
  --navy-2: #1e1b4b;
  --navy-3: #161a35;
  --orange: #0d9488;
  --orange-dark: #0f766e;
  --cyan: #06b6d4;
  --cyan-glow: rgba(6, 182, 212, 0.35);
  --violet: #7c3aed;
  --violet-glow: rgba(124, 58, 237, 0.35);
  --lime: #16a34a;
  --amber: #d97706;
  --good: #10b981;
  --bad: #ef4444;
  --grad: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%);
  --grad-btn: linear-gradient(135deg, #0ea5b7 0%, #0d9488 100%);
  --grad-soft: linear-gradient(92deg, rgba(13, 148, 136, 0.08), rgba(6, 182, 212, 0.08));
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow: 0 16px 40px -10px rgba(15, 23, 42, 0.08), 0 0 1px 1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 24px 50px -12px rgba(15, 23, 42, 0.16);
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

::selection {
  background: rgba(6, 182, 212, 0.25);
  color: #0f172a;
}

/* Custom scrollbars */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; border: 2px solid #f1f5f9; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: radial-gradient(900px 480px at 85% -10%, rgba(6, 182, 212, 0.06), transparent 60%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, #000 0%, transparent 70%);
}

img, svg { display: block; max-width: 100%; }
a { color: var(--orange-dark); text-decoration: none; transition: color 0.15s ease; }
a:hover { text-decoration: underline; }

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

/* ---------------- typography ---------------- */
h1, h2, h3, h4 { line-height: 1.18; letter-spacing: -0.025em; font-weight: 800; color: var(--text); }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.7rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.24rem; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead { color: var(--muted); font-size: 1.13rem; max-width: 62ch; line-height: 1.7; }
.small { font-size: 0.86rem; color: var(--muted-2); }
.mono { font-family: var(--mono); }

.section { padding: 90px 0; }
.section-head { margin-bottom: 46px; }
.section-head .kicker { margin-bottom: 14px; }
.section-head h2 { margin-bottom: 12px; }
.section-head p { color: var(--muted); max-width: 68ch; font-size: 1.05rem; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-dark);
}
.kicker::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--grad);
  border-radius: 2px;
}

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.98rem;
  font-family: var(--font);
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.18s ease, background 0.18s ease;
  text-decoration: none !important;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary {
  background: var(--grad-btn);
  color: #fff;
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.32);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #0891b2 0%, #0f766e 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(13, 148, 136, 0.45);
  text-decoration: none !important;
}
.btn-ghost {
  background: #ffffff;
  border-color: #cbd5e1;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
  transform: translateY(-1px);
}
.btn-sm { padding: 9px 16px; font-size: 0.86rem; border-radius: 10px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ---------------- nav: announce + header + subnav ---------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
}
.announce {
  background: linear-gradient(90deg, #090d16 0%, #151336 40%, #092f33 75%, #090d16 100%);
  border-bottom: 1px solid rgba(34, 211, 238, 0.18);
  color: #e2e8f0;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 8px 16px;
  letter-spacing: 0.01em;
}
.announce-tag {
  background: linear-gradient(135deg, #06b6d4, #8b5cf6);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.06em;
  margin-right: 6px;
  display: inline-block;
}
.announce a {
  color: #38bdf8;
  text-decoration: underline;
  font-weight: 700;
  margin-left: 4px;
}
.announce a:hover { color: #67e8f9; }

.nav-main {
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  height: 66px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  color: #fff;
  text-decoration: none !important;
  margin: 0 auto;
}
.nav-main .brand {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.brand svg.brand-brain-svg {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.45));
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease;
}
.brand:hover svg.brand-brain-svg {
  transform: scale(1.08) rotate(-2deg);
  filter: drop-shadow(0 0 16px rgba(192, 132, 252, 0.7));
}
.subnav {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  list-style: none;
  padding: 3px 0;
}
.nav-links a {
  display: block;
  color: #334155;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none !important;
  transition: all 0.16s ease;
}
.nav-links a:hover {
  color: var(--navy);
  background: rgba(14, 165, 183, 0.08);
}
.nav-links a.active {
  color: #0f766e;
  font-weight: 700;
  background: rgba(13, 148, 136, 0.1);
  box-shadow: inset 0 -2px 0 #0d9488;
}

.cart-btn {
  position: relative;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  transition: all 0.2s ease;
}
.cart-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(34, 211, 238, 0.6);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.25);
}
.cart-count {
  background: linear-gradient(135deg, #06b6d4, #0d9488);
  color: #fff;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0 5px;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #fff;
  width: 42px; height: 38px;
  cursor: pointer;
  font-size: 1.15rem;
  transition: all 0.15s ease;
}
.nav-toggle:hover { border-color: #fff; background: rgba(255, 255, 255, 0.15); }

/* ---------------- hero ---------------- */
.hero { position: relative; padding: 200px 0 90px; overflow: hidden; }
.hero-waves {
  position: absolute;
  inset: auto 0 55% 0;
  height: 340px;
  opacity: 0.35;
  pointer-events: none;
  z-index: -1;
}
.hero-waves svg { width: 200%; height: 100%; animation: waveSlide 14s linear infinite; }
@keyframes waveSlide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { margin: 18px 0 20px; }
.hero .lead { margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 38px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.stat b { display: block; font-size: 1.55rem; letter-spacing: -0.02em; }
.stat span { font-size: 0.82rem; color: var(--muted-2); font-weight: 600; }

.hero-art {
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(420px 260px at 70% 20%, rgba(13, 148, 136, 0.15), transparent 65%),
    linear-gradient(160deg, #26235c, #171538);
  padding: 20px;
  box-shadow: var(--shadow);
}
.hero-art .art-caption {
  position: absolute;
  left: 20px; bottom: 14px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: #93a6c2;
  letter-spacing: 0.08em;
}
.pulse-dot { animation: pulseDot 1.6s ease-in-out infinite; }
@keyframes pulseDot { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ---------------- cards / grids ---------------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); border-color: #7cc7bb; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.95rem; }

.card-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-soft);
  border: 1px solid #a7d8d0;
  margin-bottom: 18px;
}
.card-icon svg { width: 24px; height: 24px; }

/* ---------------- badges & tags ---------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.badge-cyan {
  background: rgba(6, 182, 212, 0.14);
  color: #0e7490;
  border: 1px solid rgba(6, 182, 212, 0.35);
}
.badge-violet {
  background: rgba(124, 58, 237, 0.12);
  color: #7c3aed;
  border: 1px solid rgba(124, 58, 237, 0.35);
}
.badge-lime {
  background: rgba(22, 163, 74, 0.12);
  color: #166534;
  border: 1px solid rgba(22, 163, 74, 0.35);
}
.badge-amber {
  background: rgba(217, 119, 6, 0.12);
  color: #b45309;
  border: 1px solid rgba(217, 119, 6, 0.35);
}
.badge-muted {
  background: var(--panel-2);
  color: var(--muted);
  border: 1px solid var(--line);
}

/* ---------------- product cards ---------------- */
.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.chip {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}
.chip:hover {
  color: var(--navy);
  border-color: #0d9488;
  transform: translateY(-1px);
}
.chip.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
}

.product-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}
.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(6, 182, 212, 0.45);
  box-shadow: 0 20px 45px -12px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(6, 182, 212, 0.2);
}

.product-media {
  position: relative;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(320px 180px at 50% 30%, #1e293b 0%, #0a0f1d 100%);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.product-media svg {
  width: 68px;
  height: 68px;
  color: #38bdf8;
  filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.35));
}
.product-media .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.product-media img.product-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover .product-media img.product-img {
  transform: scale(1.06);
}

.product-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.product-body h3 {
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--text);
}
.product-body .desc {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
  flex: 1;
}
.product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}
.price {
  font-family: var(--mono);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.price small {
  color: var(--muted-2);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.78rem;
}
.price .strike {
  color: var(--muted-2);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: line-through;
  margin-right: 8px;
}
.ship-note {
  font-size: 0.78rem;
  color: var(--muted-2);
  padding-top: 10px;
  margin-top: 4px;
  border-top: 1px dashed var(--line);
  line-height: 1.4;
}

/* ---------------- tables ---------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: 0.93rem; min-width: 560px; }
thead th {
  text-align: left;
  padding: 14px 18px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
  white-space: nowrap;
}
tbody td { padding: 13px 18px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(13, 148, 136, 0.045); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.total-row td {
  background: #ecf7f4;
  font-weight: 800;
  border-top: 1px solid #a7d8d0;
}
.good { color: var(--good); font-weight: 700; }
.badc { color: var(--bad); font-weight: 700; }

/* ---------------- forms ---------------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--muted);
  margin-bottom: 7px;
}
.field label .hint { color: var(--muted-2); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%;
  background: #fff;
  border: 1px solid #c9cede;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.96rem;
  padding: 12px 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.16);
}
.field .err { color: var(--bad); font-size: 0.78rem; margin-top: 5px; display: none; }
.field.invalid input { border-color: rgba(214, 69, 69, 0.7); }
.field.invalid .err { display: block; }
.field .note { font-size: 0.78rem; color: var(--muted-2); margin-top: 5px; }

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 11px 4px;
  cursor: pointer;
}
.check-row input { width: 18px; height: 18px; accent-color: var(--orange); margin-top: 3px; cursor: pointer; }
.check-row span { font-size: 0.92rem; color: var(--muted); }
.check-row b { color: var(--text); font-weight: 600; }

input[type="range"] {
  width: 100%;
  accent-color: var(--orange);
  cursor: pointer;
  height: 28px;
}

/* ---------------- cart drawer ---------------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 95;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.overlay.show { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(440px, 94vw);
  max-height: 100vh;
  max-height: 100dvh;
  background: #ffffff;
  border-left: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: -15px 0 50px rgba(15, 23, 42, 0.22);
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.drawer.show { transform: translateX(0); }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: #0f172a;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.drawer-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.drawer-head h3 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
}
.cart-pill-count {
  background: rgba(6, 182, 212, 0.16);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: #38bdf8;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  letter-spacing: 0.03em;
}
.drawer-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.15s ease;
}
.drawer-close:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  transform: rotate(90deg);
}

.drawer-items {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.cart-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}
.ci-thumb {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  display: block;
  overflow: hidden;
  flex-shrink: 0;
}
.ci-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.ci-thumb .ci-fallback-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
}
.ci-thumb svg {
  width: 24px;
  height: 24px;
  color: #38bdf8;
}
.ci-body { flex: 1; min-width: 0; }
.ci-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.3;
}
.ci-cfg {
  font-size: 0.76rem;
  color: #0d9488;
  font-family: var(--mono);
  margin-top: 3px;
  font-weight: 600;
}
.ci-price {
  font-family: var(--mono);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--muted);
  margin-top: 2px;
}
.qty-ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
}
.qty-ctrl button {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  cursor: pointer;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.qty-ctrl button:hover {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}
.qty-ctrl b {
  font-family: var(--mono);
  font-size: 0.92rem;
  min-width: 18px;
  text-align: center;
}
.ci-remove {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 1rem;
  padding: 4px;
  line-height: 1;
  transition: color 0.15s, transform 0.15s;
}
.ci-remove:hover {
  color: var(--bad);
  transform: scale(1.15);
}

.drawer-empty {
  text-align: center;
  color: var(--muted-2);
  padding: 60px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.drawer-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: #94a3b8;
}
.drawer-empty-icon svg { width: 28px; height: 28px; }
.drawer-empty-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}

.drawer-foot {
  border-top: 1px solid var(--line);
  padding: 14px 20px 16px;
  background: #ffffff;
  flex-shrink: 0;
}
.drawer-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--text);
}
.drawer-total #cartTotal {
  font-family: var(--mono);
  font-size: 1.35rem;
  color: #0f766e;
}
.btn-checkout {
  font-size: 0.96rem;
  padding: 12px 18px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.cart-trust-badge {
  margin-top: 10px;
  padding: 6px 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #0f766e;
}
.cart-trust-badge svg {
  color: #0d9488;
  flex-shrink: 0;
}
.drawer-disclaimer {
  margin-top: 8px;
  text-align: center;
  font-size: 0.72rem;
  line-height: 1.35;
  color: #94a3b8;
}

@media (max-height: 680px) {
  .drawer-head { padding: 12px 18px; }
  .drawer-items { padding: 10px 16px; gap: 8px; }
  .cart-item { padding: 9px 12px; gap: 10px; }
  .ci-thumb { width: 42px; height: 42px; }
  .drawer-foot { padding: 10px 16px 12px; }
  .drawer-total { margin-bottom: 8px; font-size: 0.98rem; }
  .drawer-total #cartTotal { font-size: 1.2rem; }
  .btn-checkout { padding: 10px 16px; font-size: 0.9rem; }
  .cart-trust-badge { margin-top: 8px; padding: 4px 8px; font-size: 0.7rem; }
  .drawer-disclaimer { display: none; }
}

/* ---------------- toast ---------------- */
.toast-zone {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(34, 211, 238, 0.3);
  color: #ffffff;
  padding: 13px 24px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  animation: toastIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* ---------------- misc blocks ---------------- */
.callout {
  border: 1px solid #a7d8d0;
  background: linear-gradient(160deg, #f2faf8, #fbfefd);
  border-radius: var(--radius);
  padding: 24px 28px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.callout svg { width: 26px; height: 26px; flex-shrink: 0; margin-top: 2px; }
.callout p { color: var(--muted); font-size: 0.94rem; }
.callout b { color: var(--text); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }

.feature-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.feature-list li { display: flex; gap: 13px; align-items: flex-start; color: var(--muted); font-size: 0.96rem; }
.feature-list li b { color: var(--text); }
.feature-list .tick {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 158, 90, 0.12);
  color: var(--good);
  font-size: 0.72rem;
  font-weight: 900;
  margin-top: 2px;
}

.step { position: relative; padding-left: 58px; padding-bottom: 30px; }
.step::before {
  content: attr(data-n);
  position: absolute;
  left: 0; top: 0;
  width: 38px; height: 38px;
  border-radius: 12px;
  background: #ecf7f4;
  border: 1px solid #a7d8d0;
  color: var(--orange-dark);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 19px; top: 44px; bottom: 6px;
  width: 1px;
  background: var(--line);
}
.step h3 { margin-bottom: 7px; font-size: 1.06rem; }
.step p { color: var(--muted); font-size: 0.93rem; }

.divider { height: 1px; background: var(--line-soft); border: none; margin: 0; }

/* sticky quote side panel */
.sticky-panel { position: sticky; top: 170px; }.quote-card {
  border: 1px solid #a7d8d0;
  background: var(--panel);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.quote-line { display: flex; justify-content: space-between; gap: 12px; font-size: 0.92rem; padding: 7px 0; color: var(--muted); }
.quote-line b { color: var(--text); font-variant-numeric: tabular-nums; }
.quote-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 14px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
}

/* checkout success */
.success-icon {
  width: 68px; height: 68px;
  border-radius: 999px;
  background: rgba(30, 158, 90, 0.12);
  color: var(--good);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  font-weight: 900;
  margin: 0 auto 20px;
}

/* footer */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 68px 0 44px;
  background: linear-gradient(180deg, #0f172a 0%, #090d16 100%);
  color: #94a3b8;
}
.footer .brand { margin: 0; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer h4 { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: #38bdf8; margin-bottom: 16px; font-weight: 800; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: #cbd5e1; font-size: 0.92rem; text-decoration: none; transition: all 0.15s ease; display: inline-block; }
.footer ul a:hover { color: #38bdf8; transform: translateX(3px); }
.footer p { color: #94a3b8; font-size: 0.92rem; line-height: 1.65; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  color: #64748b;
  font-size: 0.82rem;
}

/* big number tiles */
.metric-tile {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--panel);
  text-align: center;
}
.metric-tile b { display: block; font-size: 2rem; letter-spacing: -0.03em; margin-bottom: 4px; }
.metric-tile span { color: var(--muted-2); font-size: 0.83rem; font-weight: 600; }

/* guide figure */
.figure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 20px;
  text-align: center;
}
.figure svg { margin: 0 auto 14px; }
.figure figcaption { color: var(--muted); font-size: 0.88rem; }
.figure figcaption b { color: var(--text); }
/* svg guide labels drawn for dark bg — darken the neutral ones on light figures */
.figure svg text[fill="#93a6c2"] { fill: #5c6470; }
.figure svg text[fill="#6b7f9e"] { fill: #8a919f; }

/* compare bar */
.vs-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.vs-card { border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); background: var(--panel); }
.vs-card.us { border-color: #bfe3cd; background: linear-gradient(165deg, #f2faf5, #ffffff 60%); }
.vs-card.them { border-color: #f0c9c0; background: linear-gradient(165deg, #fdf4f1, #ffffff 60%); }
.vs-card .vs-name { font-size: 0.85rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
.vs-card .vs-price { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; color: var(--text); }
.vs-card ul { list-style: none; margin-top: 16px; display: flex; flex-direction: column; gap: 8px; font-size: 0.9rem; color: var(--muted); }

/* ---------------- product render slots ---------------- */
.render-slot { border-radius: 14px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.12); background: var(--panel-2); }
.render-slot img { width: 100%; height: auto; display: block; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------------- responsive ---------------- */
@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
  .subnav { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav.menu-open .subnav { display: block; box-shadow: var(--shadow); }
  .nav.menu-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 24px 16px;
    gap: 2px;
  }
  .nav.menu-open .nav-links a { border-bottom: none; border-radius: 8px; }
  .hero { padding-top: 150px; }
  .hero-grid, .split, .grid-2, .vs-bar { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}
@media (max-width: 560px) {
  .brand { font-size: 1rem; letter-spacing: 0.04em; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- legal pages (terms) ---------- */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.35rem; margin: 44px 0 12px; scroll-margin-top: 100px; }
.legal p, .legal li { color: var(--muted); font-size: 0.98rem; line-height: 1.75; }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 10px 0 0 20px; display: grid; gap: 6px; }
.legal b { color: var(--text); }
.legal-toc { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 20px; margin: 0; padding: 18px 22px; list-style: none; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-2); }
.legal-toc a { font-size: 0.92rem; }
.legal-warning { border: 1px solid #fcd34d; background: #fffbeb; border-radius: var(--radius-sm); padding: 18px 22px; margin-bottom: 8px; }
.legal-warning p { color: #78350f; }
.legal-warning b { color: #78350f; }
.cart-terms { font-size: 0.78rem; color: var(--muted-2); text-align: center; margin-top: 10px; line-height: 1.5; }

/* links inside running text need more than color to stand out */
p a:not(.btn), li a:not(.btn) { text-decoration: underline; text-underline-offset: 2px; }
.nav li a, .footer li a, .legal-toc a, .drawer a { text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* long button labels wrap on phones instead of widening the page;
   the header drops the "Cart" word so logo and cart never overlap */
@media (max-width: 560px) {
  .btn { white-space: normal; text-align: center; max-width: 100%; }
  .cart-btn { padding: 8px 12px; }
  .cart-btn-label { display: none; }
}
@media (max-width: 380px) {
  .brand { font-size: 0.88rem; letter-spacing: 0.02em; gap: 8px; }
  .brand svg.brand-brain-svg { width: 26px; height: 26px; }
}
@media (max-width: 340px) {
  .nav-main .brand svg.brand-brain-svg { display: none; }
  .container { width: calc(100% - 32px); }
}
