/* ============================================================
   VisionLibra — Spatial AI Platform
   Global stylesheet
   ============================================================ */

:root {
  --bg: #06090f;
  --bg-soft: #0a101a;
  --panel: #0e1522;
  --panel-2: #121a2a;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.28);
  --text: #e7edf6;
  --muted: #93a1b5;
  --accent: #22d3ee;
  --accent-2: #3b82f6;
  --accent-soft: rgba(34, 211, 238, 0.12);
  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;
  --radius: 14px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  --font: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, SFMono-Regular, Menlo,
    Consolas, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: none; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 9, 15, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 66px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
}

.logo svg { flex: 0 0 auto; }

.logo b { color: var(--accent); font-weight: 800; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin-left: 8px;
}

.nav-links > li { position: relative; }

.nav-links a {
  display: block;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); background: rgba(148, 163, 184, 0.08); }

.dropdown .caret { font-size: 10px; margin-left: 4px; opacity: 0.7; }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.18s ease;
  list-style: none;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
}

.dropdown-menu a small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }

.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #04141a;
}
.btn-primary:hover { filter: brightness(1.12); transform: translateY(-1px); }

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

.btn-sm { padding: 8px 14px; font-size: 13.5px; border-radius: 8px; }
.btn-lg { padding: 14px 30px; font-size: 16px; }
.btn-block { width: 100%; }

.cart-btn { position: relative; }
.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--accent);
  color: #04141a;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 110px 0 90px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(6, 9, 15, 0.25) 0%, rgba(6, 9, 15, 0.85) 70%, var(--bg) 100%);
}

.hero-inner { max-width: 820px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

h1 {
  font-size: clamp(36px, 5.4vw, 60px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 22px;
}

.grad {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead {
  font-size: 18.5px;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 34px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 44px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.hero-stats div strong { display: block; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.hero-stats div span { color: var(--muted); font-size: 13.5px; }

/* ---------- Sections ---------- */

.section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { max-width: 700px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::before { display: none; }

h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 14px;
}

h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.015em; }

.section-head p { color: var(--muted); font-size: 16.5px; }

/* ---------- 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(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--border-strong); }

.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; }

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 18px;
}

/* Product cards */

.product-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.product-card:hover {
  border-color: rgba(34, 211, 238, 0.45);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-media {
  aspect-ratio: 4 / 3;
  background: radial-gradient(120% 120% at 50% 0%, #16233a 0%, #0a101a 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; }

.product-body { padding: 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }

.product-body .kicker {
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}

.product-body h3 a { color: var(--text); }
.product-body h3 a:hover { color: var(--accent); }

.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 999px;
  padding: 3px 11px;
}
.tag.neutral { color: var(--muted); background: rgba(148,163,184,.08); border-color: var(--border); }

.product-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.price { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.price small { font-size: 12.5px; color: var(--muted); font-weight: 500; }

/* ---------- Flow / pipeline diagrams ---------- */

.flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.flow-chip {
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.flow-chip.hot {
  border-color: rgba(34, 211, 238, 0.6);
  color: var(--accent);
  background: var(--accent-soft);
}
.flow-arrow { color: var(--accent); font-weight: 700; opacity: 0.8; }

.flow-vertical { flex-direction: column; }
.flow-vertical .flow-chip { min-width: 300px; text-align: center; }

/* Agent scenario steps */

.steps { display: grid; gap: 0; position: relative; }
.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding-bottom: 26px;
  position: relative;
}
.step::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 44px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--accent), rgba(34,211,238,0.08));
}
.step:last-child::before { display: none; }
.step-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid rgba(34, 211, 238, 0.5);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 1;
}
.step h4 { font-size: 16px; font-weight: 700; margin-bottom: 3px; }
.step p { color: var(--muted); font-size: 14px; }

/* ---------- Code blocks ---------- */

.code {
  background: #0a0f18;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.7;
  box-shadow: var(--shadow);
}
.code-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(148, 163, 184, 0.05);
  font-family: var(--font);
  font-size: 12.5px;
  color: var(--muted);
}
.code-bar .dot { width: 10px; height: 10px; border-radius: 50%; }
.code-bar .dot:nth-child(1) { background: #ff5f57; }
.code-bar .dot:nth-child(2) { background: #febc2e; }
.code-bar .dot:nth-child(3) { background: #28c840; }
.code-bar span { margin-left: 8px; }
.code pre { padding: 18px 20px; overflow-x: auto; color: #d7e2f0; }
.code .c { color: #64748b; }        /* comment */
.code .k { color: #c084fc; }        /* keyword */
.code .s { color: #86efac; }        /* string */
.code .f { color: #7dd3fc; }        /* function */
.code .n { color: #fbbf24; }        /* number */
.code .o { color: #22d3ee; }        /* output */

.copy-btn {
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--muted);
  border-radius: 6px;
  font-size: 11.5px;
  padding: 3px 10px;
  cursor: pointer;
  font-family: var(--font);
}
.copy-btn:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Dashboard mock ---------- */

.dash {
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.dash-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--muted);
}
.dash-bar strong { color: var(--text); }
.dash-live {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  font-weight: 600;
  font-size: 12.5px;
}
.dash-live::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.dash-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); }
.dash-tile { background: var(--panel); padding: 20px 22px; }
.dash-tile .label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.dash-tile .value { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin-top: 4px; }
.dash-tile .value.ok { color: var(--green); }
.dash-tile .value.warn { color: var(--amber); }
.dash-tile .sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }

.dash-body { display: grid; grid-template-columns: 1.35fr 1fr; gap: 1px; background: var(--border); border-top: 1px solid var(--border); }
.dash-panel { background: var(--panel); padding: 20px 22px; min-height: 230px; }
.dash-panel h4 { font-size: 13.5px; color: var(--muted); font-weight: 600; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.07em; }

.heatmap { display: grid; grid-template-columns: repeat(12, 1fr); gap: 5px; }
.heatmap i {
  aspect-ratio: 1;
  border-radius: 4px;
  background: var(--accent);
  display: block;
}

.log-line {
  font-family: var(--mono);
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.12);
  color: var(--muted);
  display: flex;
  gap: 10px;
  white-space: nowrap;
  overflow: hidden;
}
.log-line .t { color: #64748b; flex: 0 0 auto; }
.log-line .lvl-ok { color: var(--green); font-weight: 700; }
.log-line .lvl-warn { color: var(--amber); font-weight: 700; }
.log-line .lvl-info { color: var(--accent); font-weight: 700; }

/* ---------- Spec tables ---------- */

.spec-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.spec-table th, .spec-table td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
}
.spec-table th { color: var(--muted); font-weight: 600; width: 38%; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }

.compare-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
.compare-table th, .compare-table td { padding: 13px 16px; border-bottom: 1px solid var(--border); text-align: left; }
.compare-table thead th { color: var(--text); font-weight: 700; border-bottom: 1px solid var(--border-strong); }
.compare-table tbody th { color: var(--muted); font-weight: 600; white-space: nowrap; }
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }

/* ---------- Pricing ---------- */

.pricing-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.pricing-card.featured { border-color: rgba(34, 211, 238, 0.55); background: linear-gradient(180deg, rgba(34,211,238,0.06), var(--panel) 55%); }
.pricing-card .plan { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.pricing-card .amount { font-size: 38px; font-weight: 800; letter-spacing: -0.03em; }
.pricing-card .amount small { font-size: 14px; color: var(--muted); font-weight: 500; }
.pricing-card ul { list-style: none; display: grid; gap: 10px; font-size: 14px; color: var(--muted); }
.pricing-card ul li::before { content: "✓  "; color: var(--accent); font-weight: 700; }
.badge-pop {
  position: absolute;
  top: -12px;
  left: 24px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #04141a;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

/* ---------- Blog ---------- */

.post-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.post-card .post-media { aspect-ratio: 16/9; overflow: hidden; border-bottom: 1px solid var(--border); background: var(--panel-2); }
.post-card .post-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card .post-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-meta { font-size: 12.5px; color: var(--muted); }
article.post { max-width: 780px; margin: 0 auto; }
article.post h2 { margin-top: 40px; }
article.post h3 { margin: 28px 0 10px; }
article.post p { color: #c3cddb; margin: 14px 0; font-size: 16px; }
article.post ul, article.post ol { color: #c3cddb; margin: 14px 0 14px 22px; font-size: 16px; }

/* ---------- Cart drawer ---------- */

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 8, 0.6);
  backdrop-filter: blur(3px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s;
}
.cart-overlay.open { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(430px, 100vw);
  background: var(--panel);
  border-left: 1px solid var(--border-strong);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.cart-head h3 { font-size: 18px; }
.cart-close { background: none; border: none; color: var(--muted); font-size: 26px; cursor: pointer; line-height: 1; }
.cart-close:hover { color: var(--text); }

.cart-items { flex: 1; overflow-y: auto; padding: 12px 24px; }
.cart-empty { color: var(--muted); text-align: center; padding: 60px 0; font-size: 14.5px; }

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item .name { font-weight: 600; font-size: 14.5px; }
.cart-item .meta { color: var(--muted); font-size: 12.5px; }
.cart-item .line-price { font-weight: 700; font-size: 14.5px; text-align: right; }
.qty { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; }
.qty button {
  width: 24px; height: 24px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}
.qty button:hover { border-color: var(--accent); color: var(--accent); }
.qty .remove { width: auto; border: none; color: var(--muted); font-size: 12px; margin-left: 6px; }

.cart-foot { padding: 20px 24px; border-top: 1px solid var(--border); display: grid; gap: 12px; }
.cart-total { display: flex; justify-content: space-between; font-size: 16px; font-weight: 700; }
.cart-note { font-size: 12px; color: var(--muted); text-align: center; }

/* Checkout modal */

.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 4, 8, 0.7);
  backdrop-filter: blur(4px);
}
.modal.open { display: flex; }
.modal-box {
  width: min(560px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 30px;
}
.modal-box h3 { margin-bottom: 6px; }
.modal-box .sub { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.form-grid { display: grid; gap: 14px; }
.form-grid label { font-size: 13px; font-weight: 600; color: var(--muted); display: grid; gap: 6px; }
.form-grid input, .form-grid textarea, .form-grid select {
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  padding: 11px 13px;
  color: var(--text);
  font-family: var(--font);
  font-size: 14.5px;
}
.form-grid input:focus, .form-grid textarea:focus { outline: none; border-color: var(--accent); }
.order-summary { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; font-size: 13.5px; color: var(--muted); }
.order-summary div { display: flex; justify-content: space-between; padding: 3px 0; }
.order-summary .sum-total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 8px; color: var(--text); font-weight: 700; }

/* ---------- Page hero (interior pages) ---------- */

.page-hero {
  padding: 74px 0 54px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(60% 90% at 80% 0%, rgba(59, 130, 246, 0.10), transparent 60%),
    radial-gradient(50% 80% at 10% 10%, rgba(34, 211, 238, 0.08), transparent 60%);
}
.page-hero h1 { font-size: clamp(32px, 4.4vw, 48px); }
.page-hero .lead { margin-bottom: 0; }

/* ---------- Product detail ---------- */

.pd-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: start; }
.pd-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: radial-gradient(120% 120% at 50% 0%, #16233a 0%, #0a101a 70%);
}
.pd-info { display: grid; gap: 18px; }
.pd-info .price { font-size: 32px; }
.pd-buy { display: flex; gap: 12px; flex-wrap: wrap; }
.pd-highlights { list-style: none; display: grid; gap: 9px; color: var(--muted); font-size: 14.5px; }
.pd-highlights li::before { content: "✓  "; color: var(--accent); font-weight: 700; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding: 64px 0 34px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 34px; margin-bottom: 44px; }
.footer-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 14px; }
.footer-grid ul { list-style: none; display: grid; gap: 9px; }
.footer-grid ul a { color: var(--muted); font-size: 14px; }
.footer-grid ul a:hover { color: var(--accent); }
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 12px; max-width: 300px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--panel);
  border: 1px solid rgba(34, 211, 238, 0.5);
  color: var(--text);
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  z-index: 400;
  opacity: 0;
  transition: all 0.25s;
  pointer-events: none;
  box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Reveal animation ---------- */

/* Hidden-until-scroll only when JS is available (html.js set inline in <head>) */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
html.js .reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */

.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 24px; cursor: pointer; margin-left: auto; }

@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: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-body { grid-template-columns: 1fr; }
  .pd-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-cta { margin-left: 0; }
  .nav { flex-wrap: wrap; height: auto; padding: 12px 0; gap: 12px; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    order: 3;
    margin: 0;
    padding-bottom: 10px;
  }
  .nav-links.open { display: flex; }
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding-left: 16px;
  }
  .nav-cta { order: 2; margin-left: auto; }
  .hero { padding: 70px 0 60px; }
  .hero-stats { gap: 26px; }
}

@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .flow { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); }
}
