/* =========================================================================
   wazabi.io — Design System v3 "Wasabi Noir"
   Premium dark studio aesthetic. Deep ink-green canvas, wasabi-lime accent,
   Space Grotesk display + Inter body + JetBrains Mono data labels.
   Glass nav, glow + grid textures, motion with restraint.
   Class & variable API is kept stable so every page re-themes from this file.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@500;600&display=swap');

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;

  /* Surfaces — deep ink-green stack */
  --bg:            #0a0e0b;
  --bg-2:          #0d120e;
  --bg-elev:       #10160f;
  --surface:       #10150f;
  --surface-2:     #151b14;
  --border:        rgba(226, 238, 220, 0.09);
  --border-strong: rgba(226, 238, 220, 0.16);

  /* Tiles (kept for API compat — both dark now) */
  --tile-dark:     #0d120e;
  --tile-dark-2:   #11170f;

  /* Ink / text */
  --text:          #f1f5ee;
  --text-soft:     #c9d4c4;
  --text-muted:    #92a18c;
  --on-dark:       #f1f5ee;
  --on-dark-muted: #c9d4c4;

  /* Accent — wasabi lime */
  --accent:         #a3e635;
  --accent-2:       #d9f99d;
  --accent-deep:    #bef264;
  --accent-on-dark: #a3e635;
  --accent-ink:     #0c1206;   /* text on lime */
  --accent-soft:    rgba(163, 230, 53, 0.10);
  --accent-glow:    rgba(163, 230, 53, 0.22);

  --danger: #f87171;
  --warn:   #fbbf24;
  --ok:     #4ade80;

  /* Type */
  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Radius */
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-pill: 9999px;

  /* Shadows */
  --shadow:      0 6px 22px rgba(0, 0, 0, 0.35);
  --shadow-lg:   0 18px 50px rgba(0, 0, 0, 0.5);
  --shadow-prod: 0 24px 70px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 0 1px rgba(163, 230, 53, 0.25), 0 10px 40px rgba(163, 230, 53, 0.12);

  --maxw: 1160px;
  --nav-h: 60px;

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --t: 220ms var(--ease);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }

/* Cross-document page transitions (progressive enhancement) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation-duration: 180ms; }
::view-transition-new(root) { animation-duration: 220ms; }

@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 {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16.5px;
  letter-spacing: -0.008em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient brand glow — fixed, ultra subtle */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 480px at 12% -8%, rgba(163, 230, 53, 0.07), transparent 60%),
    radial-gradient(800px 500px at 95% 8%, rgba(74, 222, 128, 0.045), transparent 60%),
    radial-gradient(900px 600px at 50% 115%, rgba(163, 230, 53, 0.05), transparent 55%);
}
/* Film grain */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }

/* The HTML `hidden` attribute must always win — author display rules
   (.pill/.badge/.btn use inline-flex etc.) would otherwise un-hide it. */
[hidden] { display: none !important; }

::selection { background: rgba(163, 230, 53, 0.32); color: #f4ffe1; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Slim brand scrollbar */
@media (pointer: fine) {
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-track { background: var(--bg); }
  ::-webkit-scrollbar-thumb { background: #232b21; border-radius: 8px; border: 2px solid var(--bg); }
  ::-webkit-scrollbar-thumb:hover { background: #39452f; }
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.06; letter-spacing: -0.025em; color: var(--text); }
h1 { font-size: clamp(2.5rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.22rem, 2vw, 1.5rem); letter-spacing: -0.015em; line-height: 1.2; }
h4 { font-size: 1.0625rem; letter-spacing: -0.01em; }
p  { color: var(--text-soft); }

.display { font-size: clamp(2.9rem, 6.4vw, 4.6rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.02; }
.lead { font-size: clamp(1.1rem, 1.7vw, 1.3rem); font-weight: 400; color: var(--text-soft); line-height: 1.55; letter-spacing: -0.005em; }
.muted { color: var(--text-muted); }
.small { font-size: 0.875rem; letter-spacing: -0.005em; }
.text-accent { color: var(--accent); }
.center { text-align: center; }
.balance { text-wrap: balance; }
.measure { max-width: 60ch; }
.measure-tight { max-width: 46ch; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Highlighted headline words — true wasabi gradient */
.gradient-text {
  background: linear-gradient(96deg, #a3e635 8%, #d9f99d 55%, #6ee7a0 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* Eyebrow — mono data label, the "systems" voice */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: linear-gradient(90deg, var(--accent), transparent); }
.eyebrow--center { justify-content: center; }
.eyebrow--center::after { content: ""; width: 22px; height: 1px; background: linear-gradient(270deg, var(--accent), transparent); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.container--wide { max-width: 1340px; }
.container--narrow { max-width: 840px; }

.section { padding-block: clamp(68px, 9vw, 112px); position: relative; }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }

.section-head { max-width: 740px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .lead { margin-top: 18px; }
.section-head h2 { margin-top: 16px; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 5vw, 76px); align-items: center; }
.split--reverse > :first-child { order: 2; }
@media (max-width: 880px) { .split, .split--reverse { grid-template-columns: 1fr; } .split--reverse > :first-child { order: 0; } }

.stack > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 1.6rem; }

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

/* Subtle blueprint grid for hero zones */
.grid-bg { position: relative; }
.grid-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(226, 238, 220, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226, 238, 220, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 0%, black 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 0%, black 25%, transparent 78%);
}

/* ---------- Pills / badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 7px 15px; border-radius: var(--r-pill);
  background: rgba(226, 238, 220, 0.05); border: 1px solid var(--border);
  font-size: 0.84rem; font-weight: 500; color: var(--text-soft);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.pill--accent { background: var(--accent-soft); border-color: rgba(163, 230, 53, 0.28); color: var(--accent-2); }
.pill--accent .dot { background: var(--accent); }

.badge {
  display: inline-block; padding: 4px 11px; border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(163, 230, 53, 0.3);
}
.badge--ok    { background: rgba(74, 222, 128, 0.12); color: var(--ok); border-color: rgba(74, 222, 128, 0.32); }
.badge--warn  { background: rgba(251, 191, 36, 0.1);  color: var(--warn); border-color: rgba(251, 191, 36, 0.3); }
.badge--muted { background: rgba(226, 238, 220, 0.06); color: var(--text-muted); border-color: var(--border-strong); }

/* Weakness / intel tags */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: var(--r-pill);
  background: rgba(248, 113, 113, 0.08); border: 1px solid rgba(248, 113, 113, 0.22);
  color: #fca5a5; font-size: 0.78rem; font-weight: 500;
}
.tag svg { width: 12px; height: 12px; }

.kbd {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
  padding: 2px 7px; border-radius: 6px;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  border-bottom-width: 2px; color: var(--text-soft);
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 12px 24px; border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: -0.01em;
  cursor: pointer; white-space: nowrap; line-height: 1.2;
  transition: background var(--t), color var(--t), border-color var(--t), box-shadow var(--t), transform 160ms var(--ease), opacity var(--t);
}
.btn svg { width: 18px; height: 18px; transition: transform var(--t); }
.btn:active { transform: scale(0.97); }
.btn--primary {
  background: linear-gradient(180deg, #b9ef55, #9bdc2c);
  color: var(--accent-ink);
  box-shadow: 0 1px 0 rgba(255,255,255,0.35) inset, 0 8px 24px rgba(163, 230, 53, 0.18);
}
.btn--primary:hover {
  background: linear-gradient(180deg, #c8f76d, #a8e93a);
  box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 10px 32px rgba(163, 230, 53, 0.3);
  transform: translateY(-1px);
}
.btn--primary:hover svg { transform: translateX(3px); }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--border-strong); }
.btn--ghost:hover { border-color: rgba(163, 230, 53, 0.5); color: var(--accent-2); background: var(--accent-soft); }
.btn--outline { background: transparent; color: var(--accent); border: 1px solid rgba(163, 230, 53, 0.4); }
.btn--outline:hover { background: var(--accent-soft); border-color: var(--accent); }
.btn--lg { padding: 15px 30px; font-size: 1.1rem; }
.btn--sm { padding: 8px 17px; font-size: 0.9rem; }
.btn--block { display: flex; width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn .spinner { width: 16px; height: 16px; border: 2px solid rgba(12, 18, 6, 0.3); border-top-color: currentColor; border-radius: 50%; animation: spin 0.7s linear infinite; }
.btn--ghost .spinner, .btn--outline .spinner { border-color: rgba(226, 238, 220, 0.25); border-top-color: currentColor; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Small icon-only action (copy, etc.) */
.icon-btn {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  background: rgba(226, 238, 220, 0.05); border: 1px solid var(--border);
  color: var(--text-muted); cursor: pointer;
  transition: color var(--t), border-color var(--t), background var(--t);
}
.icon-btn:hover { color: var(--accent); border-color: rgba(163, 230, 53, 0.4); background: var(--accent-soft); }
.icon-btn svg { width: 14px; height: 14px; }
.icon-btn.copied { color: var(--ok); border-color: rgba(74, 222, 128, 0.4); }

.link-arrow { display: inline-flex; align-items: center; gap: 0.35rem; font-family: var(--font-display); font-weight: 600; color: var(--accent); transition: gap var(--t), color var(--t); font-size: 1rem; }
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--t); flex: none; }
.link-arrow:hover { gap: 0.6rem; color: var(--accent-2); }

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(226, 238, 220, 0.03), rgba(226, 238, 220, 0.012));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t), background var(--t);
  overflow: hidden;
}
.card::before {  /* top inner highlight */
  content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(226, 238, 220, 0.14), transparent);
  pointer-events: none;
}
.card--hover:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: var(--shadow); }
.card--glow:hover { border-color: rgba(163, 230, 53, 0.45); box-shadow: var(--shadow-glow); transform: translateY(-3px); }
.card--feature { padding: 32px; background: linear-gradient(180deg, rgba(226, 238, 220, 0.045), rgba(226, 238, 220, 0.015)); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.97rem; }

.icon-badge {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px; border-radius: 13px;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid rgba(163, 230, 53, 0.22);
  box-shadow: 0 0 22px rgba(163, 230, 53, 0.1);
  margin-bottom: 18px;
}
.icon-badge svg { width: 23px; height: 23px; stroke-width: 1.8; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.bento .card { padding: 28px; }
.col-2 { grid-column: span 2; } .col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; } .col-6 { grid-column: span 6; }
.row-2 { grid-row: span 2; }
@media (max-width: 900px) { .bento { grid-template-columns: repeat(2, 1fr); } .col-2,.col-3,.col-4,.col-6 { grid-column: span 2; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .col-2,.col-3,.col-4,.col-6 { grid-column: span 1; } }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 60;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, #a3e635, #d9f99d);
  pointer-events: none;
}

/* ---------- Navbar — dark glass ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 50;
  background: rgba(10, 14, 11, 0.62);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: background var(--t), border-color var(--t);
}
.nav.scrolled { background: rgba(10, 14, 11, 0.85); border-bottom-color: var(--border); }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  max-width: var(--maxw); margin: 0 auto; height: var(--nav-h); padding: 0 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; color: var(--text); }
.brand__mark { width: 29px; height: 29px; border-radius: 8px; box-shadow: 0 0 18px rgba(163, 230, 53, 0.35); }
.brand .dotio { color: var(--accent); }
.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__links a, .nav__links .has-menu > button {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 13px; border-radius: var(--r-pill);
  font-size: 0.92rem; font-weight: 500; letter-spacing: -0.01em; color: var(--text-soft);
  transition: color var(--t), background var(--t);
}
.nav__links a:hover, .nav__links .has-menu > button:hover { color: var(--text); background: rgba(226, 238, 220, 0.07); }
.nav__links a.active { color: var(--accent); }
.nav__right { display: flex; align-items: center; gap: 10px; }
.nav__right .btn--sm { padding: 9px 18px; }

/* dropdown */
.has-menu { position: relative; }
.has-menu > button svg { width: 14px; height: 14px; transition: transform var(--t); }
.has-menu:hover > button svg, .has-menu:focus-within > button svg { transform: rotate(180deg); }
.menu-panel {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(6px);
  width: 340px; padding: 10px; border-radius: var(--r-lg);
  background: rgba(16, 21, 15, 0.92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transition: all var(--t);
}
.has-menu:hover .menu-panel, .has-menu:focus-within .menu-panel { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.menu-panel a { display: flex; gap: 12px; padding: 12px; border-radius: var(--r); align-items: flex-start; }
.menu-panel a:hover { background: rgba(226, 238, 220, 0.06); }
.menu-panel .mp-ico { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); border: 1px solid rgba(163, 230, 53, 0.2); color: var(--accent); }
.menu-panel .mp-ico svg { width: 19px; height: 19px; }
.menu-panel strong { display: block; font-size: 0.94rem; color: var(--text); font-family: var(--font-display); font-weight: 600; }
.menu-panel span { font-size: 0.83rem; color: var(--text-muted); }

.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; background: transparent; border: 0; align-items: center; justify-content: center; color: var(--text); }
.nav-toggle:hover { background: rgba(226, 238, 220, 0.08); }
.nav-toggle svg { width: 24px; height: 24px; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 49;
  background: rgba(10, 14, 11, 0.97);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  padding: 92px 26px 32px;
  transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all var(--t); overflow-y: auto;
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu a { display: block; padding: 16px 4px; font-size: 1.45rem; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; color: var(--text); border-bottom: 1px solid var(--border); }
.mobile-menu a:active { color: var(--accent); }
.mobile-menu .btn { margin-top: 24px; border-bottom: 0; }
@media (max-width: 900px) { .nav__links, .nav__right .btn { display: none; } .nav-toggle { display: inline-flex; } }

/* ---------- Hero ---------- */
.hero { padding-top: calc(var(--nav-h) + 72px); padding-bottom: clamp(56px, 7vw, 96px); position: relative; }
.hero__eyebrow { margin-bottom: 22px; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { max-width: 600px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__proof { margin-top: 42px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ---------- Logos / trust ---------- */
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(28px, 5vw, 56px); }
.logos span { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--text-muted); letter-spacing: -0.01em; transition: color var(--t); }
.logos span:hover { color: var(--text-soft); }
.trust-strip { border-block: 1px solid var(--border); background: rgba(226, 238, 220, 0.018); }

/* Marquee (auto-duplicated by JS) */
.marquee { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent); mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent); }
.marquee__track { display: flex; align-items: center; gap: clamp(40px, 6vw, 72px); width: max-content; animation: marquee 36s linear infinite; padding-block: 4px; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } }

/* ---------- Avatars / stars ---------- */
.avatar-row { display: flex; align-items: center; }
.avatar { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--bg); background: linear-gradient(160deg, #1d2618, #141a11); color: var(--accent-2); display: grid; place-items: center; font-size: 0.78rem; font-weight: 600; font-family: var(--font-mono); }
.avatar + .avatar { margin-left: -12px; }
.stars { display: inline-flex; gap: 2px; color: var(--accent); }
.stars svg { width: 15px; height: 15px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: 10px 0 10px 22px; text-align: left; border-left: 1px solid rgba(163, 230, 53, 0.3); }
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.1rem, 4vw, 3rem); line-height: 1; letter-spacing: -0.025em; color: var(--text); font-variant-numeric: tabular-nums; }
.stat__label { color: var(--text-muted); margin-top: 10px; font-size: 0.92rem; }

/* ---------- Steps / process ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step { position: relative; padding: 26px 26px 26px 86px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 26px; top: 26px;
  font-family: var(--font-mono); font-weight: 600; font-size: 0.92rem;
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(163, 230, 53, 0.25);
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 0.97rem; }

/* ---------- Checklist ---------- */
.checklist { display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-soft); }
.checklist .ck { flex: none; width: 23px; height: 23px; border-radius: 50%; background: var(--accent-soft); border: 1px solid rgba(163, 230, 53, 0.25); display: grid; place-items: center; margin-top: 2px; }
.checklist .ck svg { width: 13px; height: 13px; color: var(--accent); }

/* ---------- Testimonials ---------- */
.testimonial { display: flex; flex-direction: column; gap: 20px; height: 100%; }
.testimonial blockquote { font-size: 1.13rem; line-height: 1.45; color: var(--text); font-family: var(--font-body); font-weight: 500; letter-spacing: -0.012em; }
.testimonial .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testimonial .who strong { display: block; font-size: 0.94rem; color: var(--text); }
.testimonial .who span { font-size: 0.84rem; color: var(--text-muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--border); }
.faq__item { background: transparent; border-bottom: 1px solid var(--border); overflow: hidden; }
.faq__q { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 4px; cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; letter-spacing: -0.015em; list-style: none; color: var(--text); transition: color var(--t); }
.faq__q:hover { color: var(--accent-2); }
.faq__q::-webkit-details-marker { display: none; }
.faq__q .ic { flex: none; width: 28px; height: 28px; border-radius: 50%; background: rgba(226, 238, 220, 0.06); border: 1px solid var(--border); display: grid; place-items: center; transition: transform var(--t), background var(--t), color var(--t); color: var(--text); }
.faq__q .ic svg { width: 14px; height: 14px; }
.faq__item[open] .faq__q .ic { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.faq__a { padding: 0 44px 24px 4px; color: var(--text-muted); font-size: 1rem; line-height: 1.6; }
.faq__a p + p { margin-top: 12px; }

/* ---------- CTA band — the glow moment ---------- */
.cta-band {
  position: relative; overflow: hidden;
  border: 1px solid rgba(163, 230, 53, 0.22);
  border-radius: var(--r-xl);
  background:
    radial-gradient(620px 300px at 18% -30%, rgba(163, 230, 53, 0.16), transparent 60%),
    radial-gradient(620px 320px at 88% 130%, rgba(110, 231, 160, 0.1), transparent 60%),
    linear-gradient(180deg, #11170f, #0c110d);
  color: var(--text);
  padding: clamp(44px, 6vw, 84px);
  text-align: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(226, 238, 220, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226, 238, 220, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 50% 50%, black, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 90% at 50% 50%, black, transparent 75%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: var(--text); margin-bottom: 16px; font-size: clamp(1.9rem, 3.8vw, 2.8rem); }
.cta-band .lead { color: var(--text-soft); margin-inline: auto; margin-bottom: 30px; }
.cta-band .hero__actions { justify-content: center; margin-top: 0; }
.cta-band .pill, .cta-band .pill--accent { background: rgba(163, 230, 53, 0.1); border-color: rgba(163, 230, 53, 0.3); color: var(--accent-2); }
.cta-band .pill .dot { background: var(--accent); }
.cta-band .btn--ghost { color: var(--text); border-color: var(--border-strong); }
.cta-band .btn--ghost:hover { background: rgba(226, 238, 220, 0.07); border-color: rgba(163, 230, 53, 0.5); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; position: relative; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .field--row { grid-template-columns: 1fr; } }
.label { font-size: 0.9rem; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.label .req { color: var(--accent); }
.input, .textarea, .select {
  width: 100%; padding: 13px 16px; border-radius: var(--r);
  background: rgba(226, 238, 220, 0.04); border: 1px solid var(--border-strong);
  color: var(--text); font-size: 1rem; transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
.input::placeholder, .textarea::placeholder { color: #5d6b58; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(163, 230, 53, 0.14); background: rgba(226, 238, 220, 0.055); }
.input:-webkit-autofill, .input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 60px #161d14 inset; -webkit-text-fill-color: var(--text); caret-color: var(--text); }
.textarea { resize: vertical; min-height: 130px; line-height: 1.55; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2392a18c' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.select option { background: #131912; color: var(--text); }

/* Input affix (password toggle etc.) */
.field--affix { position: relative; }
.field--affix .input { padding-right: 52px; }
.affix-btn {
  position: absolute; right: 8px; bottom: 7px;
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center; color: var(--text-muted);
  transition: color var(--t), background var(--t);
}
.affix-btn:hover { color: var(--text); background: rgba(226, 238, 220, 0.07); }
.affix-btn svg { width: 18px; height: 18px; }

.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (max-width: 560px) { .choice-grid { grid-template-columns: 1fr; } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice label { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: var(--r); border: 1px solid var(--border-strong); background: rgba(226, 238, 220, 0.03); font-size: 0.94rem; color: var(--text-soft); cursor: pointer; transition: all var(--t); }
.choice label:hover { border-color: rgba(163, 230, 53, 0.35); }
.choice input:checked + label { border-color: var(--accent); background: var(--accent-soft); color: var(--text); box-shadow: 0 0 0 1px var(--accent), 0 0 20px rgba(163, 230, 53, 0.12); }
.choice input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-note { font-size: 0.86rem; color: var(--text-muted); display: flex; gap: 8px; align-items: center; }
.form-note svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }
.form-status { padding: 14px 16px; border-radius: var(--r); font-size: 0.94rem; margin-top: 4px; }
.form-status--ok { background: rgba(74, 222, 128, 0.1); border: 1px solid rgba(74, 222, 128, 0.3); color: var(--ok); }
.form-status--err { background: rgba(248, 113, 113, 0.09); border: 1px solid rgba(248, 113, 113, 0.28); color: var(--danger); }

/* ---------- Progress ---------- */
.progress { height: 8px; border-radius: var(--r-pill); background: rgba(226, 238, 220, 0.07); border: 1px solid var(--border); overflow: hidden; }
.progress__fill { height: 100%; border-radius: var(--r-pill); background: linear-gradient(90deg, #84cc16, #a3e635, #d9f99d); box-shadow: 0 0 14px rgba(163, 230, 53, 0.4); transition: width 0.8s var(--ease); width: 0; }

/* ---------- Segmented control ---------- */
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: rgba(226, 238, 220, 0.05); border: 1px solid var(--border); flex-wrap: wrap; }
.seg button {
  padding: 7px 15px; border-radius: var(--r-pill); font-size: 0.86rem; font-weight: 500; color: var(--text-muted);
  transition: color var(--t), background var(--t);
}
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); font-weight: 600; }

/* ---------- Skeleton ---------- */
.skeleton { position: relative; overflow: hidden; background: rgba(226, 238, 220, 0.05); border-radius: var(--r); }
.skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(226, 238, 220, 0.06), transparent);
  animation: shimmer 1.6s infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ---------- Toasts ---------- */
.toast-stack { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 90; display: grid; gap: 10px; width: min(420px, calc(100vw - 32px)); pointer-events: none; }
.toast {
  pointer-events: auto;
  display: flex; align-items: flex-start; gap: 11px;
  padding: 13px 16px; border-radius: var(--r-lg);
  background: rgba(18, 24, 17, 0.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  color: var(--text); font-size: 0.92rem; line-height: 1.45;
  animation: toast-in 0.32s var(--ease);
}
.toast.leaving { opacity: 0; transform: translateY(8px); transition: all 0.25s var(--ease); }
.toast svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.toast--ok svg { color: var(--ok); }
.toast--err svg { color: var(--danger); }
.toast--info svg { color: var(--accent); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(0.97); } }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(5, 8, 6, 0.7);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: grid; place-items: center; padding: 20px;
  opacity: 0; visibility: hidden; transition: opacity var(--t), visibility var(--t);
}
.modal-backdrop.open { opacity: 1; visibility: visible; }
.modal {
  width: min(620px, 100%); max-height: min(82vh, 760px); overflow: auto;
  background: linear-gradient(180deg, #131a12, #0e130e);
  border: 1px solid var(--border-strong); border-radius: var(--r-xl);
  box-shadow: var(--shadow-prod); padding: 28px;
  transform: translateY(14px) scale(0.98); transition: transform var(--t);
}
.modal-backdrop.open .modal { transform: none; }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.modal__head h3 { margin: 0; }
.modal pre {
  font-family: var(--font-body); font-size: 0.95rem; line-height: 1.65; color: var(--text-soft);
  white-space: pre-wrap; word-wrap: break-word;
  background: rgba(226, 238, 220, 0.04); border: 1px solid var(--border);
  border-radius: var(--r); padding: 18px; margin: 0;
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: #080b09; padding-top: clamp(48px, 6vw, 76px); padding-bottom: 36px; margin-top: clamp(40px, 6vw, 80px); position: relative; }
.footer__top { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; }
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 560px) { .footer__top { grid-template-columns: 1fr; } }
.footer .brand { color: var(--text); }
.footer__brand p { color: var(--text-muted); font-size: 0.92rem; margin-top: 16px; max-width: 34ch; }
.footer__col h4 { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); font-weight: 600; margin-bottom: 14px; }
.footer__col a { display: block; padding: 6px 0; color: var(--text-soft); font-size: 0.92rem; transition: color var(--t); }
.footer__col a:hover { color: var(--accent); }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 0.82rem; }
.socials { display: flex; gap: 10px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border-strong); display: grid; place-items: center; color: var(--text-soft); transition: all var(--t); background: rgba(226, 238, 220, 0.03); }
.socials a:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 16px rgba(163, 230, 53, 0.18); }
.socials svg { width: 17px; height: 17px; }

/* ---------- Page hero (interior) ---------- */
.page-hero { padding-top: calc(var(--nav-h) + 60px); padding-bottom: clamp(32px, 4vw, 48px); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-muted); margin-bottom: 24px; letter-spacing: 0.02em; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb svg { width: 13px; height: 13px; opacity: 0.5; }
.breadcrumb .sep { display: inline-flex; }

/* ---------- Article / prose ---------- */
.prose { max-width: 720px; }
.prose > * + * { margin-top: 1.3rem; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-top: 2.8rem; }
.prose h3 { margin-top: 2.1rem; }
.prose p, .prose li { color: var(--text-soft); font-size: 1.1rem; line-height: 1.75; }
.prose ul, .prose ol { padding-left: 1.3rem; display: grid; gap: 0.6rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: rgba(163, 230, 53, 0.45); }
.prose a:hover { color: var(--accent-2); }
.prose strong { color: var(--text); font-weight: 600; }
.prose blockquote { border-left: 3px solid var(--accent); padding: 6px 0 6px 22px; font-family: var(--font-display); font-size: 1.3rem; color: var(--text); font-weight: 600; letter-spacing: -0.015em; line-height: 1.4; }
.prose code { background: rgba(226, 238, 220, 0.07); padding: 2px 7px; border-radius: 6px; font-size: 0.86em; border: 1px solid var(--border); font-family: var(--font-mono); color: var(--accent-2); }
.tldr { background: var(--accent-soft); border: 1px solid rgba(163, 230, 53, 0.25); border-radius: var(--r-lg); padding: 22px 24px; }
.tldr strong { color: var(--accent); display: block; margin-bottom: 8px; font-family: var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.74rem; font-weight: 600; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.75s var(--ease), transform 0.75s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-6 { margin-top: 48px; }
.mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; } .gap-2 { gap: 16px; } .gap-3 { gap: 24px; } .wrap { flex-wrap: wrap; }
.full { width: 100%; }
.relative { position: relative; }
.mono { font-family: var(--font-mono); }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 12px 18px; border-radius: 0 0 10px 0; font-weight: 600; }
.skip-link:focus { left: 0; }
.glow-orb { display: none !important; }

/* Icon polish — rounded caps everywhere */
svg { stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Status pill (live availability) ---------- */
.pill--status {
  background: rgba(226, 238, 220, 0.05);
  border: 1px solid var(--border-strong);
  color: var(--text-soft);
  font-weight: 500; letter-spacing: -0.01em;
  padding: 7px 16px 7px 13px; gap: 0.6rem;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.pill--status .dot { width: 8px; height: 8px; background: var(--ok); position: relative; }
.pill--status .dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ok);
  animation: wz-ping 1.9s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes wz-ping { 0% { transform: scale(1); opacity: 0.7; } 75%, 100% { transform: scale(2.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pill--status .dot::after { animation: none; } }
.cta-band .pill--status { background: rgba(226, 238, 220, 0.06); border-color: var(--border-strong); color: var(--text-soft); }

/* ---------- Logo strip ---------- */
.logo-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(26px, 4vw, 48px); }
.logo-strip img { height: 24px; width: auto; opacity: 0.55; transition: opacity var(--t), filter var(--t); }
.logo-strip img:hover { opacity: 1; }

/* ---------- Video frames ---------- */
.video-hero { padding-top: calc(var(--nav-h) + 44px); padding-bottom: 8px; }
.video-frame { max-width: 980px; margin: 0 auto; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border-strong); box-shadow: var(--shadow-prod); background: #000; line-height: 0; }
.video-frame video { width: 100%; aspect-ratio: 16 / 9; height: auto; display: block; object-fit: cover; }
.video-portrait { width: 100%; max-width: 320px; aspect-ratio: 9 / 16; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--border-strong); box-shadow: var(--shadow-prod), 0 0 60px rgba(163, 230, 53, 0.08); background: #000; line-height: 0; }
.video-portrait video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Terminal / intel window (hero + dashboards) ---------- */
.term {
  border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(180deg, #0f1410, #0b0f0c);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-prod), 0 0 80px rgba(163, 230, 53, 0.07);
  font-family: var(--font-mono); font-size: 0.82rem;
}
.term__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: rgba(226, 238, 220, 0.025); }
.term__bar .dot-r, .term__bar .dot-y, .term__bar .dot-g { width: 11px; height: 11px; border-radius: 50%; }
.term__bar .dot-r { background: #ff5f57; } .term__bar .dot-y { background: #febc2e; } .term__bar .dot-g { background: #28c840; }
.term__title { margin-left: 8px; color: var(--text-muted); font-size: 0.75rem; letter-spacing: 0.04em; }
.term__body { padding: 20px; display: grid; gap: 10px; }
.term__body .ln { display: flex; gap: 10px; align-items: baseline; color: var(--text-soft); flex-wrap: wrap; }
.term__body .ln .p { color: var(--accent); flex: none; }
.term__body .ln .c { color: var(--text-muted); }
.term__body .ln .hl { color: var(--accent-2); }
.term__body .ln .ok { color: var(--ok); }
.caret { display: inline-block; width: 8px; height: 15px; background: var(--accent); vertical-align: -2px; animation: caret-blink 1.1s steps(1) infinite; }
@keyframes caret-blink { 50% { opacity: 0; } }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70;
  max-width: 540px; margin: 0 auto;
  background: rgba(16, 22, 15, 0.94);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-strong); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: 18px 20px;
  display: flex; flex-direction: column; gap: 12px;
}
.cookie-banner p { margin: 0; font-size: 0.89rem; color: var(--text-soft); }
.cookie-banner a { color: var(--accent); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; justify-content: flex-end; }
@media (min-width: 560px) { .cookie-banner { flex-direction: row; align-items: center; } .cookie-banner p { flex: 1; } }

/* ---------- Auth split layout ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side {
  position: relative; display: none;
  background:
    radial-gradient(640px 420px at 30% 18%, rgba(163, 230, 53, 0.12), transparent 60%),
    linear-gradient(160deg, #0e130e, #090c0a);
  border-right: 1px solid var(--border);
  padding: clamp(40px, 5vw, 72px);
  flex-direction: column; justify-content: space-between; overflow: hidden;
}
.auth-side::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(226, 238, 220, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226, 238, 220, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 30% 20%, black, transparent 80%);
  mask-image: radial-gradient(ellipse 90% 70% at 30% 20%, black, transparent 80%);
}
.auth-side > * { position: relative; }
.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: clamp(28px, 4vw, 56px) 24px; }
.auth-card { width: 100%; max-width: 440px; }
@media (min-width: 980px) { .auth-side { display: flex; } }

/* ---------- Dashboard lead cards ---------- */
.lead-card { display: flex; flex-direction: column; }
.lead-card[data-contacted="1"] { border-color: rgba(74, 222, 128, 0.25); }
.lead-card.is-won { border-color: rgba(74, 222, 128, 0.45); box-shadow: 0 0 28px rgba(74, 222, 128, 0.08); }
.lead-card .contact-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: var(--r); background: rgba(226, 238, 220, 0.03); border: 1px solid var(--border); }
.lead-card .contact-row .link-arrow { font-family: var(--font-body); font-weight: 500; font-size: 0.9rem; min-width: 0; }
.lead-card .contact-row .link-arrow > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Dashboard topbar */
.dash-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 22px; }
.dash-bar .avatar { width: 42px; height: 42px; background: linear-gradient(160deg, rgba(163,230,53,0.22), rgba(163,230,53,0.05)); border: 1px solid rgba(163, 230, 53, 0.3); color: var(--accent); }

/* ---------- AI chat widget ---------- */
.wz-chat-launcher {
  position: fixed; right: 20px; bottom: 20px; z-index: 72;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(180deg, #b9ef55, #9bdc2c);
  color: var(--accent-ink);
  box-shadow: 0 1px 0 rgba(255,255,255,0.35) inset, 0 10px 34px rgba(163, 230, 53, 0.35);
  cursor: pointer; transition: transform 180ms var(--ease), box-shadow var(--t);
}
.wz-chat-launcher:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 14px 44px rgba(163, 230, 53, 0.45); }
.wz-chat-launcher svg { width: 26px; height: 26px; }
.wz-chat-launcher .ic-close { display: none; }
.wz-chat-launcher[aria-expanded="true"] .ic-chat { display: none; }
.wz-chat-launcher[aria-expanded="true"] .ic-close { display: block; }

.wz-chat-teaser {
  position: fixed; right: 90px; bottom: 30px; z-index: 71;
  background: rgba(18, 24, 17, 0.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong); border-radius: 14px 14px 4px 14px;
  padding: 10px 15px; font-size: 0.88rem; color: var(--text-soft);
  box-shadow: var(--shadow-lg); cursor: pointer;
  animation: toast-in 0.4s var(--ease);
  max-width: 240px;
}
.wz-chat-teaser:hover { color: var(--text); border-color: rgba(163, 230, 53, 0.4); }

.wz-chat-panel {
  position: fixed; right: 20px; bottom: 90px; z-index: 72;
  width: min(400px, calc(100vw - 32px));
  height: min(600px, calc(100dvh - 120px));
  display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(180deg, #11170f, #0c110d);
  border: 1px solid var(--border-strong); border-radius: var(--r-xl);
  box-shadow: var(--shadow-prod), 0 0 80px rgba(163, 230, 53, 0.08);
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(0.98);
  transform-origin: 100% 100%;
  transition: opacity var(--t), visibility var(--t), transform var(--t);
}
.wz-chat-panel.open { opacity: 1; visibility: visible; transform: none; }
@media (max-width: 480px) {
  .wz-chat-panel { right: 8px; left: 8px; width: auto; bottom: 84px; height: min(640px, calc(100dvh - 100px)); }
}

.wz-chat-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  background: rgba(226, 238, 220, 0.025); flex: none;
}
.wz-chat-head .avatar { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(160deg, rgba(163,230,53,0.25), rgba(163,230,53,0.06)); border: 1px solid rgba(163, 230, 53, 0.35); }
.wz-chat-head .avatar img { width: 26px; height: 26px; }
.wz-chat-head strong { font-family: var(--font-display); font-size: 0.98rem; display: block; }
.wz-chat-head .small { display: flex; align-items: center; gap: 6px; }
.wz-chat-head .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; }

.wz-chat-log {
  flex: 1; overflow-y: auto; padding: 18px 16px;
  display: flex; flex-direction: column; gap: 12px;
  overscroll-behavior: contain;
}
.wz-msg {
  max-width: 86%; padding: 11px 14px; border-radius: 16px;
  font-size: 0.93rem; line-height: 1.55; white-space: pre-wrap; word-wrap: break-word;
}
.wz-msg a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.wz-msg--user {
  align-self: flex-end;
  background: linear-gradient(180deg, #b9ef55, #9bdc2c); color: var(--accent-ink);
  border-bottom-right-radius: 5px; font-weight: 500;
}
.wz-msg--user a { color: var(--accent-ink); }
.wz-msg--bot {
  align-self: flex-start;
  background: rgba(226, 238, 220, 0.05); border: 1px solid var(--border);
  color: var(--text-soft); border-bottom-left-radius: 5px;
}
.wz-msg--bot.streaming::after { content: ""; display: inline-block; width: 7px; height: 13px; background: var(--accent); margin-left: 3px; vertical-align: -2px; animation: caret-blink 1.1s steps(1) infinite; }

.wz-typing { display: inline-flex; gap: 5px; padding: 4px 2px; }
.wz-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--text-muted); animation: wz-bounce 1.2s infinite; }
.wz-typing span:nth-child(2) { animation-delay: 0.15s; }
.wz-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes wz-bounce { 0%, 60%, 100% { transform: none; opacity: 0.4; } 30% { transform: translateY(-5px); opacity: 1; } }

.wz-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 10px; flex: none; }
.wz-chips button {
  padding: 7px 13px; border-radius: var(--r-pill); font-size: 0.82rem;
  background: rgba(226, 238, 220, 0.04); border: 1px solid var(--border-strong); color: var(--text-soft);
  transition: all var(--t); cursor: pointer; text-align: left;
}
.wz-chips button:hover { border-color: rgba(163, 230, 53, 0.5); color: var(--accent-2); background: var(--accent-soft); }

.wz-chat-form { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--border); flex: none; align-items: flex-end; }
.wz-chat-form textarea {
  flex: 1; resize: none; max-height: 110px; min-height: 44px;
  padding: 11px 14px; border-radius: 14px; font-size: 0.93rem; line-height: 1.45;
  background: rgba(226, 238, 220, 0.04); border: 1px solid var(--border-strong); color: var(--text);
  transition: border-color var(--t), box-shadow var(--t);
}
.wz-chat-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(163, 230, 53, 0.14); }
.wz-chat-form button[type="submit"] {
  flex: none; width: 44px; height: 44px; border-radius: 13px;
  display: grid; place-items: center;
  background: linear-gradient(180deg, #b9ef55, #9bdc2c); color: var(--accent-ink);
  transition: opacity var(--t), transform 150ms var(--ease); cursor: pointer;
}
.wz-chat-form button[type="submit"]:hover { transform: translateY(-1px); }
.wz-chat-form button[type="submit"]:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.wz-chat-form button svg { width: 19px; height: 19px; }
.wz-chat-foot { padding: 0 16px 12px; flex: none; }
.wz-chat-foot p { font-size: 0.7rem; color: var(--text-muted); text-align: center; }

/* ---------- Print sanity ---------- */
@media print {
  body::before, body::after, .nav, .footer, .mobile-menu, .cookie-banner, .toast-stack, .wz-chat-launcher, .wz-chat-panel, .wz-chat-teaser { display: none !important; }
  body { background: #fff; color: #111; }
}
