/* ==========================================================================
   LUCIO SERVICES — Design System
   Signature element: "The Cut" — a 12° diagonal blade motif derived from the
   LS mark, used as section dividers, card corner-clips and hover sweeps.
   ========================================================================== */

/* Shared colour / type / motif tokens — see tokens.css */
@import "tokens.css";

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 18% -4%, var(--accent-soft), transparent 60%),
    radial-gradient(ellipse 55% 34% at 100% 12%, rgba(37,99,235,0.10), transparent 62%);
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--white);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 14px;
  height: 2px;
  background: var(--grad-mono);
  transform: skewX(calc(-1 * var(--cut-angle)));
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------------------------------- Header --------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  background: rgba(10, 10, 10, 0.72);
  border-bottom: 1px solid var(--border-subtle);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--white);
  white-space: nowrap;
  flex-shrink: 0;
}
.brand img { height: 26px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-2);
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  color: var(--white);
  background: var(--surface-1);
}

.header-actions { display: flex; align-items: center; gap: 10px; }

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-1);
  color: var(--gray-1);
  transition: border-color 0.25s var(--ease), transform 0.2s var(--ease);
}
.cart-btn:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.cart-count {
  position: absolute;
  top: -6px; right: -6px;
  background: var(--white);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  min-width: 17px; height: 17px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-1);
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 16px; height: 1.5px;
  background: var(--white);
  position: relative;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle span::before { position: absolute; top: -5px; }
.nav-toggle span::after { position: absolute; top: 5px; }

/* --------------------------------- Buttons --------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--white);
  color: var(--bg);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255,255,255,0.15); }
.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--white);
}
.btn-ghost:hover { background: var(--surface-1); transform: translateY(-2px); }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; transform: none !important; }

/* relative + overflow hidden sweep, echoing the logo's blade */
.btn-sweep { position: relative; overflow: hidden; }
.btn-sweep::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: rgba(255,255,255,0.35);
  transform: skewX(calc(-1 * var(--cut-angle)));
  transition: left 0.5s var(--ease);
}
.btn-primary.btn-sweep::after { background: rgba(10,10,10,0.15); }
.btn-sweep:hover::after { left: 130%; }

/* ---------------------------------- Hero ----------------------------------- */
.hero {
  position: relative;
  padding: 96px 0 120px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.04;
  margin: 18px 0 20px;
}
.hero h1 em {
  font-style: normal;
  background: var(--grad-mono);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 17px;
  color: var(--gray-2);
  max-width: 480px;
  margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--surface-1), var(--bg));
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 92%, 88% 100%, 0 100%);
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: repeating-linear-gradient(var(--cut-angle), transparent 0 26px, rgba(255,255,255,0.045) 26px 27px);
  animation: driftGrid 16s linear infinite;
}
@keyframes driftGrid { from { transform: translateY(0); } to { transform: translateY(-27px); } }
.hero-visual .glyph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual .glyph img { width: 46%; opacity: 0.92; filter: drop-shadow(0 20px 60px rgba(255,255,255,0.08)); }

.hero-badges {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gray-2);
  border: 1px solid var(--border-subtle);
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--success); box-shadow: 0 0 8px var(--success); }

/* ------------------------------- Section shell ------------------------------ */
.section { padding: 88px 0; position: relative; z-index: 1; }
.section-tight { padding: 56px 0; }
.section-head { max-width: 620px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); margin-top: 14px; }
.section-head p { color: var(--gray-2); margin-top: 12px; font-size: 15.5px; }

.cut-divider {
  height: 64px;
  background: var(--surface-1);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  margin-top: -1px;
}

/* ---------------------------------- Cards ----------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative;
  background: rgba(28, 28, 30, 0.55);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: rgba(44, 44, 46, 0.6);
}
.card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--white);
}
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--gray-2); }
.card ul { margin-top: 14px; display: grid; gap: 8px; }
.card ul li { font-size: 13.5px; color: var(--gray-1); display: flex; gap: 8px; align-items: flex-start; }
.card ul li::before { content: "—"; color: var(--gray-3); flex-shrink: 0; }

/* --------------------------------- Stats ------------------------------------ */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-1);
}
.stat {
  padding: 32px 24px;
  border-right: 1px solid var(--border-subtle);
  text-align: left;
}
.stat:last-child { border-right: none; }
.stat .num {
  font-family: var(--font-mono);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 600;
  color: var(--white);
  display: block;
}
.stat .label { font-size: 12.5px; color: var(--gray-2); margin-top: 6px; letter-spacing: 0.02em; }

/* -------------------------------- Footer ------------------------------------ */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 56px 0 32px;
  margin-top: 60px;
  position: relative; z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
}
.footer-brand p { color: var(--gray-2); font-size: 13.5px; margin-top: 12px; max-width: 260px; }
.footer-col h4 { font-size: 13px; color: var(--gray-2); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; font-weight: 600; }
.footer-col a, .footer-col li { display: block; font-size: 14px; color: var(--gray-1); padding: 6px 0; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--gray-3);
  flex-wrap: wrap;
  gap: 12px;
}

/* -------------------------------- Reveal on scroll --------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ------------------------------- Pricing table -------------------------------- */
.pricing-toggle {
  display: inline-flex;
  border: 1px solid var(--border-subtle);
  background: var(--surface-1);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}
.pricing-toggle button {
  border: none;
  background: transparent;
  color: var(--gray-2);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.25s var(--ease);
}
.pricing-toggle button.active { background: var(--white); color: var(--bg); }

.price-card { display: flex; flex-direction: column; }
.price-card.featured {
  border-color: var(--border-strong);
  background: linear-gradient(160deg, rgba(44,44,46,0.7), rgba(28,28,30,0.5));
}
.price-card .tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--white);
  color: var(--bg);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.price-card .price { font-family: var(--font-mono); font-size: 40px; color: var(--white); margin: 6px 0 2px; }
.price-card .price span { font-size: 14px; color: var(--gray-2); font-family: var(--font-body); }
.price-card .period { font-size: 13px; color: var(--gray-3); margin-bottom: 20px; }
.price-card ul { flex: 1; margin: 18px 0; display: grid; gap: 10px; }
.price-card ul li { font-size: 14px; display: flex; gap: 10px; align-items: flex-start; color: var(--gray-1); }
.price-card ul li svg { flex-shrink: 0; margin-top: 2px; color: var(--success); }
.price-card ul li.off { color: var(--gray-3); }
.price-card ul li.off svg { color: var(--gray-3); }

/* -------------------------------- Status page --------------------------------- */
.status-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-1);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin-bottom: 36px;
}
.status-banner .pulse {
  width: 12px; height: 12px; border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(48,209,88,0.6);
  animation: pulseRing 2s infinite;
  flex-shrink: 0;
}
@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(48,209,88,0.5); }
  70% { box-shadow: 0 0 0 10px rgba(48,209,88,0); }
  100% { box-shadow: 0 0 0 0 rgba(48,209,88,0); }
}
.status-banner.degraded .pulse { background: var(--warning); animation: none; box-shadow: 0 0 10px var(--warning); }
.status-banner.maintenance .pulse { background: var(--gray-2); animation: none; box-shadow: none; }
.status-banner.outage .pulse { background: var(--danger); animation: none; box-shadow: 0 0 10px var(--danger); }
.status-banner strong { color: var(--white); display: block; font-size: 15px; }
.status-banner span { color: var(--gray-2); font-size: 13px; }

.status-list { display: grid; gap: 12px; }
.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--border-subtle);
  background: rgba(28,28,30,0.5);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  flex-wrap: wrap;
}
.status-row .left { display: flex; align-items: center; gap: 14px; }
.status-row .badge-dot { width: 9px; height: 9px; border-radius: 999px; }
.status-row h4 { font-size: 15px; font-weight: 600; color: var(--white); }
.status-row .sub { font-size: 12.5px; color: var(--gray-3); font-family: var(--font-mono); }
.status-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
}
.status-pill.operational { color: var(--success); border-color: rgba(48,209,88,0.3); background: rgba(48,209,88,0.08); }
.status-pill.degraded { color: var(--warning); border-color: rgba(255,159,10,0.3); background: rgba(255,159,10,0.08); }
.status-pill.maintenance { color: var(--gray-2); border-color: var(--border-strong); background: var(--surface-2); }
.status-pill.outage { color: var(--danger); border-color: rgba(255,69,58,0.3); background: rgba(255,69,58,0.08); }

.uptime-bars { display: flex; gap: 3px; margin-top: 10px; }
.uptime-bars .bar { flex: 1; height: 26px; border-radius: 3px; background: var(--success); transition: transform .1s var(--ease); }
.uptime-bars .bar:hover { transform: scaleY(1.12); }
.uptime-bars .bar.degraded { background: var(--warning); }
.uptime-bars .bar.outage { background: var(--danger); }
.uptime-bars .bar.maintenance { background: var(--gray-3); }
.uptime-bars .bar.empty,
.uptime-bars .bar.nodata { background: var(--surface-3); opacity: .5; }

/* --- Incidents (staff-written status updates) --- */
.incident-card {
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--gray-3);
  border-radius: var(--radius-sm);
  background: var(--surface-1);
  padding: 16px 18px;
  margin-bottom: 12px;
}
.incident-card.outage { border-left-color: var(--danger); }
.incident-card.degraded { border-left-color: var(--warning); }
.incident-card.maintenance { border-left-color: var(--gray-2); }
.incident-card.resolved { border-left-color: var(--success); opacity: .78; }
.incident-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.incident-head strong { color: var(--white); font-size: 14.5px; }
.incident-state { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--gray-2); }
.sev-pill {
  font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .05em;
  padding: 3px 8px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--gray-2);
}
.sev-pill.outage { color: var(--danger); border-color: rgba(255,69,58,.4); background: rgba(255,69,58,.08); }
.sev-pill.degraded { color: var(--warning); border-color: rgba(255,159,10,.4); background: rgba(255,159,10,.08); }
.sev-pill.maintenance { color: var(--gray-2); }
.sev-pill.info { color: var(--accent-text); border-color: var(--accent-line); background: var(--accent-soft); }
.incident-comps { font-size: 12px; color: var(--gray-3); margin-top: 8px; }
.incident-timeline { margin-top: 12px; display: grid; gap: 8px; }
.tl-row { display: grid; grid-template-columns: 130px 1fr auto; gap: 12px; font-size: 12.5px; align-items: baseline; }
.tl-state { font-weight: 600; color: var(--gray-1); }
.tl-body { color: var(--gray-2); }
.tl-time { font-family: var(--font-mono); font-size: 11px; color: var(--gray-3); white-space: nowrap; }
@media (max-width: 620px) {
  .tl-row { grid-template-columns: 1fr; gap: 2px; }
  .tl-time { order: -1; }
}

/* -------------------------------- Cart page ------------------------------------ */
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
.cart-item {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 18px;
  background: rgba(28,28,30,0.5);
}
.cart-item .thumb {
  width: 48px; height: 48px; border-radius: 10px;
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
}
.cart-item h4 { font-size: 14.5px; color: var(--white); }
.cart-item .meta { font-size: 12.5px; color: var(--gray-3); font-family: var(--font-mono); margin-top: 2px; }
.qty-control { display: flex; align-items: center; border: 1px solid var(--border-subtle); border-radius: 8px; overflow: hidden; }
.qty-control button { width: 28px; height: 28px; background: var(--surface-2); color: var(--white); border: none; }
.qty-control span { width: 30px; text-align: center; font-family: var(--font-mono); font-size: 13px; }
.item-price { font-family: var(--font-mono); font-size: 14.5px; color: var(--white); min-width: 70px; text-align: right; }
.remove-btn { color: var(--gray-3); font-size: 12px; margin-top: 6px; }
.remove-btn:hover { color: var(--danger); }

.summary-box {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  background: var(--surface-1);
  position: sticky;
  top: 92px;
}
.summary-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--gray-2); padding: 8px 0; }
.summary-row.total { color: var(--white); font-weight: 600; font-size: 16px; border-top: 1px solid var(--border-subtle); margin-top: 8px; padding-top: 16px; }
.summary-row.total .val { font-family: var(--font-mono); }

.empty-state { text-align: center; padding: 80px 20px; border: 1px dashed var(--border-subtle); border-radius: var(--radius-md); }
.empty-state .icon { width: 56px; height: 56px; margin: 0 auto 18px; opacity: 0.5; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--gray-2); font-size: 14px; margin-bottom: 24px; }

/* -------------------------------- FAQ / support -------------------------------- */
.faq-item { border-bottom: 1px solid var(--border-subtle); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 4px;
  background: none; border: none; text-align: left;
  color: var(--white); font-size: 15px; font-weight: 500;
}
.faq-q .plus { transition: transform 0.3s var(--ease); color: var(--gray-2); font-size: 18px; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); }
.faq-a p { padding: 0 4px 20px; color: var(--gray-2); font-size: 14px; max-width: 640px; }
.faq-item.open .faq-a { max-height: 240px; }

/* -------------------------------- Forms -------------------------------------- */
.form-field { display: grid; gap: 8px; margin-bottom: 18px; }
.form-field label { font-size: 13px; color: var(--gray-2); }
.form-field input, .form-field select, .form-field textarea {
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--white);
  font-size: 14px;
  font-family: var(--font-body);
  transition: border-color 0.2s var(--ease);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--border-strong);
  outline: none;
}
.form-field textarea { resize: vertical; min-height: 110px; }

/* -------------------------------- Partner cards -------------------------------- */
.partner-card { text-align: left; }
.partner-card .avatar {
  width: 52px; height: 52px; border-radius: 999px;
  background: var(--grad-mono);
  color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  margin-bottom: 16px;
}
.platform-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray-2);
  border: 1px solid var(--border-subtle);
  padding: 3px 9px;
  border-radius: 999px;
  display: inline-block;
  margin-top: 10px;
}

/* -------------------------------- Utility -------------------------------------- */
.center { text-align: center; margin-left: auto; margin-right: auto; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; }
.flex { display: flex; } .items-center { align-items: center; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; }
.text-muted { color: var(--gray-2); }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px;
  border: 1px solid var(--border-subtle);
  padding: 4px 10px; border-radius: 999px;
  color: var(--gray-2);
}
.toast {
  position: fixed;
  bottom: 26px; left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--white);
  color: var(--bg);
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }

/* -------------------------------- Page hero (inner pages) ---------------------- */
.page-hero { padding: 64px 0 40px; }
.page-hero .eyebrow { margin-bottom: 14px; }
.page-hero h1 { font-size: clamp(32px, 4.4vw, 48px); }
.page-hero p { color: var(--gray-2); max-width: 560px; margin-top: 14px; font-size: 15.5px; }

/* ------------------------------------ Responsive -------------------------------- */
@media (max-width: 980px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
  .cart-layout { grid-template-columns: 1fr; }
}
/* Collapse the primary nav into the drawer before the header can get crowded */
@media (max-width: 860px) {
  .nav-links, .header-actions .btn { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav { display: block; }
}
@media (max-width: 680px) {
  .nav-links, .header-actions .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
  .card-grid, .card-grid.cols-3, .card-grid.cols-2 { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--border-subtle); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .cart-item { grid-template-columns: auto 1fr; row-gap: 10px; }
  .cart-item .qty-control { grid-column: 1 / 2; }
  .cart-item .item-price { grid-column: 2 / 3; text-align: right; }
  .summary-box { position: static; }
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed; inset: 68px 0 0 0;
  background: rgba(10,10,10,0.98);
  backdrop-filter: blur(20px);
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  z-index: 90;
  padding: 24px;
  display: none;
}
.mobile-nav.open { transform: translateX(0); }
@media (max-width: 680px) { .mobile-nav { display: block; } }
.mobile-nav a {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--white);
}

/* Live status tag on the Status page (dynamic bot components) */
.live-tag{
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  padding: 2px 6px;
  margin-left: 8px;
  border-radius: 999px;
  border: 1px solid rgba(48,209,88,0.35);
  color: var(--success);
  background: rgba(48,209,88,0.08);
  vertical-align: middle;
}

/* ==========================================================================
   Phase 12 — blue accents + theme toggle + light-mode fine-tuning
   ========================================================================== */
.btn-primary{
  background: var(--grad-accent);
  color: #fff;
  box-shadow: 0 6px 24px var(--accent-glow);
}
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 12px 34px var(--accent-glow); filter: brightness(1.06); }
.nav-links a:hover, .nav-links a[aria-current="page"]{ color: var(--accent-text); }
.eyebrow{ color: var(--accent-text); }
.card:hover, .feature-card:hover, .pricing-card:hover{ border-color: var(--accent-line); }

/* keep page content above the ambient .sky layer */
.page-hero, .site-footer, .hero-content, main > section { position: relative; z-index: 1; }

.theme-toggle{
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--accent-soft); color: var(--accent-text);
  transition: box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.theme-toggle:hover{ border-color: var(--accent-line); box-shadow: 0 0 0 4px var(--accent-soft); }
.theme-toggle svg{ width: 17px; height: 17px; }

/* Light theme — the marketing CSS is token-driven, only a few nudges needed */
[data-theme="light"] body{ color: var(--gray-1); }
[data-theme="light"] .btn-ghost{ background: #fff; }
[data-theme="light"] .btn-ghost:hover{ background: var(--surface-2); }
[data-theme="light"] .site-header{ background: var(--glass-nav-bg); }
[data-theme="light"] .live-tag{ background: rgba(48,209,88,0.12); }
[data-theme="light"] .mobile-nav{ background: var(--surface-1); }
/* white-silhouette brand assets → dark on light backgrounds */
[data-theme="light"] .brand-logo,
[data-theme="light"] .hero-visual .glyph img,
[data-theme="light"] .site-footer img{ filter: brightness(0) saturate(0) opacity(0.7); }
