/* ============================================================
   HYPEFORGE — Design Tokens
   ============================================================ */
:root {
  --ink-0: #07080a;
  --ink-1: #0c0d10;
  --ink-2: #14161b;
  --ink-3: #1c1f26;
  --ink-4: #262a33;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);

  --fg: #f6f7f4;
  --fg-2: #c8cad0;
  --fg-3: #8a8d96;
  --fg-4: #5b5e67;

  --lime: #c4ff3e;
  --lime-soft: #d6ff7a;
  --lime-deep: #8fcf1e;
  --lime-glow: rgba(196, 255, 62, 0.35);

  --plum: #8b6dff;
  --coral: #ff6f5e;
  --sky: #5ad6ff;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-glide: cubic-bezier(0.4, 0, 0.2, 1);

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

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

html, body {
  background: var(--ink-0);
  color: var(--fg);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01', 'ss02', 'cv11';
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  cursor: none;
}

button { font: inherit; color: inherit; background: none; border: none; cursor: none; }
a { color: inherit; text-decoration: none; cursor: none; }
input, textarea, select { font: inherit; color: inherit; cursor: none; }

::selection { background: var(--lime); color: var(--ink-0); }

/* ============================================================
   Custom cursor
   ============================================================ */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  will-change: transform;
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--fg);
  transform: translate(-50%, -50%);
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(246, 247, 244, 0.6);
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease-spring),
              height 0.25s var(--ease-spring),
              border-color 0.2s var(--ease-glide),
              background 0.2s var(--ease-glide);
}
.cursor-ring.hover {
  width: 56px; height: 56px;
  border-color: var(--lime);
  background: rgba(196, 255, 62, 0.06);
}
.cursor-ring.click {
  width: 20px; height: 20px;
}

/* ============================================================
   Background field — animated orbs + grid
   ============================================================ */
.bg-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bg-grid {
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 0%, transparent 80%);
  opacity: 0.55;
}
.bg-orb {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.55;
  will-change: transform;
}
.bg-orb-1 { background: radial-gradient(circle, var(--lime) 0%, transparent 60%); top: -200px; left: -150px; }
.bg-orb-2 { background: radial-gradient(circle, var(--plum) 0%, transparent 60%); top: 30%; right: -200px; opacity: 0.4; }
.bg-orb-3 { background: radial-gradient(circle, var(--coral) 0%, transparent 60%); bottom: -200px; left: 30%; opacity: 0.3; }

/* Noise grain */
.bg-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.4 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.04;
  mix-blend-mode: overlay;
}

#root { position: relative; z-index: 1; }

/* ============================================================
   Typography helpers
   ============================================================ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: '';
  width: 18px; height: 1px;
  background: var(--lime);
}
.h-display {
  font-size: clamp(48px, 9vw, 132px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.92;
}
.h-display em {
  font-style: normal;
  font-family: 'Space Grotesk', serif;
  font-weight: 400;
  background: linear-gradient(120deg, var(--lime) 0%, var(--lime-soft) 60%, var(--sky) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-feature-settings: 'ss01';
}
.h-display .ital {
  font-style: italic;
  font-weight: 300;
  color: var(--fg-2);
}
.h-1 {
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}
.h-2 {
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.body-lg {
  font-size: 19px;
  line-height: 1.5;
  color: var(--fg-2);
  letter-spacing: -0.005em;
}
.body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-2);
}
.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}

/* ============================================================
   Layout
   ============================================================ */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================================
   Buttons — magnetic
   ============================================================ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.005em;
  transition: transform 0.4s var(--ease-spring),
              background 0.3s var(--ease-glide),
              color 0.3s var(--ease-glide);
  white-space: nowrap;
  user-select: none;
}
.btn-primary {
  background: var(--lime);
  color: var(--ink-0);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04),
              0 8px 32px var(--lime-glow);
}
.btn-primary:hover {
  background: var(--lime-soft);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}
.btn .arrow {
  display: inline-block;
  transition: transform 0.4s var(--ease-spring);
}
.btn:hover .arrow {
  transform: translateX(4px);
}

/* ============================================================
   Reveal animations (intersection-observer driven)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease-out-expo),
              transform 0.9s var(--ease-out-expo);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease-out-expo),
              transform 0.8s var(--ease-out-expo);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.stagger.in > * {
  opacity: 1;
  transform: translateY(0);
}

/* word-by-word stagger */
.split-words .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.split-words .word > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.9s var(--ease-out-expo);
  transition-delay: calc(var(--i) * 40ms);
}
.split-words.in .word > span {
  transform: translateY(0);
}

/* ============================================================
   Marquee
   ============================================================ */
.marquee {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marquee 38s linear infinite;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============================================================
   Cards & panels
   ============================================================ */
.panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(800px circle at var(--mx, 50%) var(--my, 0%), rgba(196, 255, 62, 0.08), transparent 40%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-glide);
  pointer-events: none;
}
.panel:hover::before { opacity: 1; }

/* ============================================================
   Tag / chip
   ============================================================ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-2);
  letter-spacing: 0.02em;
}
.chip .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* ============================================================
   Top nav
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: backdrop-filter 0.3s, background 0.3s;
}
.nav.scrolled {
  backdrop-filter: blur(18px);
  background: rgba(7, 8, 10, 0.6);
  border-bottom: 1px solid var(--line);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 18px;
}
.nav-logo .mark {
  width: 28px; height: 28px;
  position: relative;
}
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--fg-2);
}
.nav-links a {
  position: relative;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--fg); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 1px;
  background: var(--lime);
  transition: width 0.4s var(--ease-spring);
}
.nav-links a:hover::after { width: 100%; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  min-height: 100vh;
  padding: 140px 0 80px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-top: 64px;
  gap: 32px;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: 64px;
}
.stat-num {
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-top: 8px;
}

/* ============================================================
   Modules section
   ============================================================ */
.modules-strip {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 80px;
  margin-top: 80px;
}
.module-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.module-item {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: none;
  transition: opacity 0.3s;
  opacity: 0.4;
  position: relative;
}
.module-item:last-child { border-bottom: 1px solid var(--line); }
.module-item.active { opacity: 1; }
.module-item .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
}
.module-item .title {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.module-item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 50%;
  width: 0;
  height: 2px;
  background: var(--lime);
  transition: width 0.5s var(--ease-spring);
  transform: translateY(-50%);
}
.module-item.active::before { width: 24px; }

.module-stage {
  position: relative;
  min-height: 480px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--ink-2), var(--ink-1));
  border: 1px solid var(--line);
  overflow: hidden;
}
.module-slide {
  position: absolute;
  inset: 0;
  padding: 36px 44px;
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition: opacity 0.6s var(--ease-out-expo),
              transform 0.6s var(--ease-out-expo);
  pointer-events: none;
}
.module-slide.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* ============================================================
   Feature grid
   ============================================================ */
.features {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 40px;
}
.feature {
  padding: 36px 32px;
  background: var(--ink-1);
  position: relative;
  transition: background 0.4s;
}
.feature:hover { background: var(--ink-2); }
.feature.col-6 { grid-column: span 6; }
.feature.col-4 { grid-column: span 4; }
.feature.col-8 { grid-column: span 8; }
.feature.col-12 { grid-column: span 12; }
.feature .icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(196, 255, 62, 0.1);
  border: 1px solid rgba(196, 255, 62, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.feature p { color: var(--fg-3); font-size: 14px; line-height: 1.5; }

/* ============================================================
   Pricing
   ============================================================ */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.price-card {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--ink-1);
  position: relative;
  transition: transform 0.5s var(--ease-spring), border-color 0.3s;
}
.price-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-2);
}
.price-card.featured {
  background: linear-gradient(180deg, rgba(196, 255, 62, 0.08), transparent 50%), var(--ink-1);
  border-color: rgba(196, 255, 62, 0.3);
}
.price-card .tier {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 24px;
}
.price-card .amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}
.price-card .amount .num {
  font-size: 56px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}
.price-card .amount .per {
  color: var(--fg-3);
  font-size: 14px;
}
.price-card .desc {
  color: var(--fg-3);
  font-size: 13px;
  margin-bottom: 28px;
}
.price-card ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.price-card li {
  font-size: 13px;
  color: var(--fg-2);
  display: flex;
  align-items: center;
  gap: 10px;
}
.price-card li::before {
  content: '';
  width: 14px; height: 14px;
  border-radius: 50%;
  background: rgba(196, 255, 62, 0.12);
  border: 1px solid var(--lime);
  flex-shrink: 0;
  position: relative;
}

/* ============================================================
   Footer / final CTA
   ============================================================ */
.cta-final {
  padding: 120px 0 80px;
  position: relative;
  text-align: center;
}
.cta-final h2 {
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

/* ============================================================
   ===== DASHBOARD =====
   ============================================================ */
.app-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
  position: relative;
  z-index: 2;
}
.sidebar {
  background: rgba(10, 11, 13, 0.85);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--line);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar-logo {
  padding: 6px 10px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
}
.sidebar-section {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-4);
  padding: 16px 10px 8px;
}
.nav-item {
  padding: 10px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: var(--fg-2);
  transition: background 0.2s, color 0.2s;
  position: relative;
}
.nav-item:hover { background: rgba(255, 255, 255, 0.04); color: var(--fg); }
.nav-item.active {
  background: rgba(196, 255, 62, 0.08);
  color: var(--lime);
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 50%;
  width: 3px; height: 18px;
  background: var(--lime);
  border-radius: 0 2px 2px 0;
  transform: translateY(-50%);
}
.nav-item .badge {
  margin-left: auto;
  font-size: 10px;
  padding: 2px 6px;
  background: var(--ink-3);
  border-radius: 4px;
  font-family: var(--font-mono);
  color: var(--fg-2);
}

.workspace-card {
  margin-top: auto;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--coral), var(--plum));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: white;
  flex-shrink: 0;
}
.workspace-card .info { font-size: 12px; line-height: 1.3; }
.workspace-card .info b { display: block; font-weight: 500; color: var(--fg); }
.workspace-card .info span { color: var(--fg-3); font-family: var(--font-mono); font-size: 10px; }

.main {
  padding: 0;
  overflow-x: hidden;
}
.topbar {
  padding: 18px 32px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(7, 8, 10, 0.6);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 5;
}
.crumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--fg-3);
}
.crumb b { color: var(--fg); font-weight: 500; }
.topbar-actions { display: flex; gap: 10px; align-items: center; }

.content { padding: 32px; }

.dash-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.card {
  background: var(--ink-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.4s var(--ease-spring);
}
.card:hover { border-color: var(--line-2); }
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.card-title {
  font-size: 13px;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-3);
}

/* Big stat */
.stat-card .big {
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 8px 0 4px;
}
.stat-card .delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(196, 255, 62, 0.12);
  color: var(--lime);
}
.stat-card .delta.down { background: rgba(255, 111, 94, 0.12); color: var(--coral); }

/* Sparkline */
.spark {
  height: 36px;
  margin-top: 12px;
  position: relative;
}
.spark svg { width: 100%; height: 100%; }
.spark path { stroke: var(--lime); stroke-width: 1.5; fill: none; stroke-linecap: round; }
.spark .area { fill: url(#sparkGrad); stroke: none; }

/* Pipeline list */
.pipeline-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr 90px 90px 80px;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  transition: background 0.2s;
}
.pipeline-row:hover { background: rgba(255,255,255,0.02); }
.pipeline-row:last-child { border-bottom: none; }
.pipeline-row .name { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.pipeline-row .name .av {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ink-3);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--fg-2);
}
.pipeline-row .ch { color: var(--fg-3); font-size: 12px; }
.status-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  display: inline-block;
}
.status-pill.draft { background: var(--ink-3); color: var(--fg-2); }
.status-pill.sent { background: rgba(90, 214, 255, 0.12); color: var(--sky); }
.status-pill.opened { background: rgba(139, 109, 255, 0.12); color: var(--plum); }
.status-pill.replied { background: rgba(196, 255, 62, 0.12); color: var(--lime); }

/* Calendar */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: 14px;
}
.cal-day {
  aspect-ratio: 1;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-3);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background 0.2s, transform 0.3s var(--ease-spring);
}
.cal-day:hover { background: var(--ink-3); transform: translateY(-2px); }
.cal-day .num { color: var(--fg-2); font-weight: 600; font-size: 11px; }
.cal-day .dots {
  margin-top: auto;
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
}
.cal-day .dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
}
.cal-day.today { border-color: var(--lime); background: rgba(196, 255, 62, 0.06); }
.cal-day.today .num { color: var(--lime); }

/* Synergy */
.synergy-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.synergy-row:last-child { border-bottom: none; }
.synergy-cover {
  width: 48px; height: 48px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--plum), var(--sky));
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.synergy-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.1) 0 4px, transparent 4px 8px);
}
.synergy-row .body { flex: 1; }
.synergy-row .body b { font-size: 14px; font-weight: 500; }
.synergy-row .body span { display: block; font-size: 11px; color: var(--fg-3); font-family: var(--font-mono); margin-top: 2px; }
.synergy-row .match {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--lime);
  font-weight: 600;
}

/* Live activity stream */
.activity-row {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  animation: slideIn 0.5s var(--ease-out-expo);
}
.activity-row:last-child { border-bottom: none; }
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}
.activity-row .time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-4);
  width: 50px;
  flex-shrink: 0;
}
.activity-row .icon-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}
.activity-row .icon-dot.lime { background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.activity-row .icon-dot.plum { background: var(--plum); box-shadow: 0 0 8px var(--plum); }
.activity-row .icon-dot.sky { background: var(--sky); }
.activity-row .icon-dot.coral { background: var(--coral); }
.activity-row .text { color: var(--fg-2); line-height: 1.4; }
.activity-row .text b { color: var(--fg); font-weight: 500; }

/* AI agent panel */
.agent {
  background: linear-gradient(180deg, rgba(196, 255, 62, 0.04), transparent 40%), var(--ink-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.agent-pulse {
  position: absolute;
  top: 22px; right: 22px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 var(--lime-glow);
  animation: ringPulse 2s ease-out infinite;
}
@keyframes ringPulse {
  0% { box-shadow: 0 0 0 0 rgba(196, 255, 62, 0.5); }
  100% { box-shadow: 0 0 0 18px rgba(196, 255, 62, 0); }
}
.agent-thought {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.4;
}
.agent-thought .step {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-4);
  width: 24px;
  flex-shrink: 0;
}
.agent-thought.active .text { color: var(--fg); }
.agent-thought .typing::after {
  content: '▋';
  color: var(--lime);
  animation: blink 1s infinite;
  margin-left: 2px;
}
@keyframes blink {
  50% { opacity: 0; }
}

/* Bar chart */
.bars {
  display: flex;
  gap: 6px;
  align-items: end;
  height: 120px;
  margin-top: 10px;
}
.bar {
  flex: 1;
  background: linear-gradient(180deg, var(--lime), rgba(196, 255, 62, 0.3));
  border-radius: 3px 3px 0 0;
  min-height: 4px;
  transition: transform 0.4s var(--ease-spring), background 0.2s;
  transform-origin: bottom;
}
.bar:hover { background: linear-gradient(180deg, var(--lime-soft), var(--lime)); transform: scaleY(1.05); }
.bar.dim { background: var(--ink-3); }

/* AI compose box */
.compose {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  margin-top: 14px;
}
.compose-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  font-size: 14px;
  color: var(--fg);
  min-height: 60px;
  font-family: var(--font-display);
}
.compose-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.compose-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.compose-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 8px;
  background: var(--ink-3);
  border-radius: 4px;
  color: var(--fg-2);
}

/* ============================================================
   Launch countdown banner
   ============================================================ */
.countdown {
  background: linear-gradient(90deg, rgba(196,255,62,0.06), rgba(139,109,255,0.04) 60%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.countdown::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at 0% 50%, rgba(196,255,62,0.12), transparent 50%);
  pointer-events: none;
}
.countdown-title { font-size: 13px; color: var(--fg-3); font-family: var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; }
.countdown-game { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; margin-top: 2px; }
.countdown-clock { display: flex; gap: 18px; position: relative; z-index: 1; }
.countdown-cell { text-align: center; }
.countdown-num {
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
}
.countdown-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 4px;
}
.countdown-sep { color: var(--fg-4); font-size: 28px; align-self: center; line-height: 1; }
.countdown-milestones {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
  position: relative;
  z-index: 1;
}
.countdown-milestones .ms { display: inline-flex; gap: 6px; align-items: center; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); }
.countdown-milestones .ms.done { color: var(--lime); border-color: rgba(196,255,62,0.3); }
.countdown-milestones .ms.next { color: var(--fg); background: rgba(255,255,255,0.04); border-color: var(--line-2); }

/* ============================================================
   Next Best Action card
   ============================================================ */
.nba {
  background: linear-gradient(135deg, rgba(196,255,62,0.1), rgba(90,214,255,0.05) 60%, transparent), var(--ink-1);
  border: 1px solid rgba(196,255,62,0.25);
  border-radius: var(--radius-md);
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.nba::after {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196,255,62,0.15), transparent 60%);
  pointer-events: none;
}
.nba .label { font-family: var(--font-mono); font-size: 10px; color: var(--lime); letter-spacing: 0.16em; text-transform: uppercase; }
.nba h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 10px 0 8px;
  line-height: 1.15;
}
.nba .reasoning { font-size: 13px; color: var(--fg-2); line-height: 1.5; margin-bottom: 16px; }
.nba .impact {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
}
.nba .impact b { color: var(--lime); display: block; font-size: 18px; font-weight: 500; margin-bottom: 2px; }
.nba .impact span { color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.08em; }

/* ============================================================
   Sentiment radar
   ============================================================ */
.radar-wrap {
  position: relative;
  margin: 8px 0 14px;
  height: 90px;
}
.radar-line {
  position: absolute;
  inset: 0;
}
.radar-line svg { width: 100%; height: 100%; }
.sentiment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.sent-cell {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--ink-2);
}
.sent-cell .ch { font-family: var(--font-mono); font-size: 10px; color: var(--fg-3); letter-spacing: 0.06em; text-transform: uppercase; }
.sent-cell .score { font-size: 18px; font-weight: 500; margin: 4px 0 0; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.sent-bar {
  height: 3px;
  background: var(--ink-3);
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
  position: relative;
}
.sent-bar > div { height: 100%; border-radius: 2px; transition: width 0.8s var(--ease-out-expo); }

/* ============================================================
   Forecast chart
   ============================================================ */
.forecast {
  position: relative;
  height: 200px;
  margin-top: 8px;
}
.forecast svg { width: 100%; height: 100%; overflow: visible; }
.forecast-marker {
  position: absolute;
  bottom: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.forecast-marker .v { color: var(--fg); font-size: 14px; font-weight: 500; display: block; margin-bottom: 2px; letter-spacing: -0.01em; text-transform: none; }
.forecast-legend {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.forecast-legend .key { display: inline-flex; align-items: center; gap: 6px; }
.forecast-legend .swatch { width: 16px; height: 2px; border-radius: 1px; }

/* ============================================================
   Localization grid
   ============================================================ */
.loc-row {
  display: grid;
  grid-template-columns: 56px 1fr 80px 80px;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.loc-row:last-child { border-bottom: none; }
.loc-flag {
  width: 36px; height: 24px;
  border-radius: 4px;
  background: var(--ink-3);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--fg);
  border: 1px solid var(--line-2);
}
.loc-row .name { font-weight: 500; }
.loc-row .name span { display: block; font-size: 11px; color: var(--fg-3); font-family: var(--font-mono); margin-top: 2px; }
.loc-progress {
  height: 4px;
  background: var(--ink-3);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.loc-progress > div { height: 100%; background: linear-gradient(90deg, var(--lime), var(--lime-soft)); border-radius: 2px; }
.loc-pct { font-family: var(--font-mono); font-size: 12px; color: var(--fg-2); text-align: right; font-variant-numeric: tabular-nums; }
.loc-status { font-family: var(--font-mono); font-size: 10px; padding: 3px 8px; border-radius: 999px; text-align: center; letter-spacing: 0.04em; text-transform: uppercase; }
.loc-status.live { background: rgba(196,255,62,0.12); color: var(--lime); }
.loc-status.review { background: rgba(90,214,255,0.12); color: var(--sky); }
.loc-status.draft { background: var(--ink-3); color: var(--fg-3); }

/* ============================================================
   Capsule A/B test
   ============================================================ */
.capsule-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.capsule {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: var(--ink-2);
  position: relative;
  transition: border-color 0.3s, transform 0.4s var(--ease-spring);
}
.capsule:hover { transform: translateY(-2px); }
.capsule.winning { border-color: rgba(196,255,62,0.4); background: linear-gradient(180deg, rgba(196,255,62,0.04), transparent), var(--ink-2); }
.capsule .art {
  aspect-ratio: 460 / 215;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  margin-bottom: 10px;
}
.capsule .art-stripes {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.06) 0 4px, transparent 4px 10px);
}
.capsule .label-row { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 10px; color: var(--fg-3); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
.capsule .ctr { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.capsule .ctr-delta { font-family: var(--font-mono); font-size: 11px; color: var(--lime); margin-left: 6px; }
.capsule .ctr-delta.down { color: var(--coral); }
.capsule .impressions { font-family: var(--font-mono); font-size: 10px; color: var(--fg-4); margin-top: 4px; }
.capsule.winning::before {
  content: 'WINNING';
  position: absolute;
  top: 8px; right: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  background: var(--lime);
  color: var(--ink-0);
  padding: 3px 7px;
  border-radius: 4px;
  font-weight: 600;
  z-index: 2;
}

/* ============================================================
   "Beyond the basics" landing tiles
   ============================================================ */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 40px;
}
.tile {
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--ink-1);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.5s var(--ease-spring);
  min-height: 260px;
  display: flex;
  flex-direction: column;
}
.tile:hover { border-color: var(--line-2); transform: translateY(-4px); }
.tile .badge-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-4);
  letter-spacing: 0.12em;
}
.tile h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 14px 0 8px;
  line-height: 1.15;
}
.tile p { color: var(--fg-3); font-size: 13px; line-height: 1.55; }
.tile .viz {
  margin-top: auto;
  padding-top: 20px;
  height: 90px;
  position: relative;
}

@media (max-width: 1100px) {
  .tiles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .tiles { grid-template-columns: 1fr; }
  .countdown { flex-direction: column; align-items: flex-start; }
  .sentiment-grid { grid-template-columns: 1fr 1fr; }
}

/* Page transition */
.view {
  animation: viewIn 0.6s var(--ease-out-expo);
}
@keyframes viewIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Section spacing */
.section { padding: 120px 0; position: relative; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 40px;
  gap: 32px;
  flex-wrap: wrap;
}
.section-head .lead { max-width: 480px; }

/* ============================================================
   Logo mark
   ============================================================ */
.mark-svg {
  width: 100%; height: 100%;
}
.mark-svg .ring {
  transform-origin: center;
  animation: spin 12s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
  .modules-strip { grid-template-columns: 1fr; gap: 32px; }
  .pricing { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .feature.col-6, .feature.col-4, .feature.col-8 { grid-column: span 1; }
  .hero-stats { gap: 32px; flex-wrap: wrap; }
  .nav-links { display: none; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}


/* ========== Auto-Accept Mode ========== */
.aa-toggle {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 6px 8px 6px 14px; border-radius: 999px;
  background: var(--ink-2); border: 1px solid var(--line);
  font-family: var(--font-display); cursor: none;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.4s;
}
.aa-toggle:hover { border-color: var(--line-2); }
.aa-toggle.on {
  background: linear-gradient(135deg, rgba(196,255,62,0.12), rgba(196,255,62,0.04));
  border-color: rgba(196,255,62,0.4);
  box-shadow: 0 0 0 1px rgba(196,255,62,0.15), 0 0 24px rgba(196,255,62,0.18);
}
.aa-pulse { position: relative; display: inline-flex; width: 14px; height: 14px; align-items: center; justify-content: center; flex-shrink: 0; }
.aa-pulse.big { width: 22px; height: 22px; }
.aa-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fg-4); transition: background 0.3s; }
.aa-toggle.on .aa-dot, .aa-banner .aa-dot, .aa-modal .aa-dot { background: var(--lime); box-shadow: 0 0 12px var(--lime); }
.aa-pulse.big .aa-dot { width: 12px; height: 12px; }
.aa-ring {
  position: absolute; inset: 0; margin: auto; width: 10px; height: 10px;
  border-radius: 50%; border: 1.5px solid var(--lime);
  animation: aa-ping 1.8s cubic-bezier(0.2, 0.6, 0.4, 1) infinite;
}
.aa-ring.r2 { animation-delay: 0.6s; }
.aa-ring.r3 { animation-delay: 1.2s; }
.aa-pulse.big .aa-ring { width: 14px; height: 14px; }
@keyframes aa-ping {
  0% { transform: scale(0.8); opacity: 0.9; }
  100% { transform: scale(3.6); opacity: 0; }
}
.aa-label { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.aa-mode { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; color: var(--fg-3); }
.aa-toggle.on .aa-mode { color: var(--lime); }
.aa-meta { font-size: 10px; color: var(--fg-4); margin-top: 2px; font-family: var(--font-mono); }
.aa-toggle.on .aa-meta { color: var(--fg-3); }
.aa-switch {
  width: 36px; height: 20px; border-radius: 999px; background: var(--ink-3);
  position: relative; transition: background 0.3s;
}
.aa-toggle.on .aa-switch { background: var(--lime); }
.aa-knob {
  position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%; background: var(--fg-3);
  transition: left 0.3s var(--ease-spring), background 0.3s;
}
.aa-toggle.on .aa-knob { left: 18px; background: var(--ink-0); }

/* Modal */
.aa-overlay {
  position: fixed; inset: 0; background: rgba(8,8,10,0.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  z-index: 1000; display: flex; align-items: center; justify-content: center;
  padding: 24px; animation: aa-fade 0.3s;
}
@keyframes aa-fade { from { opacity: 0; } to { opacity: 1; } }
.aa-modal {
  width: min(640px, 100%); background: var(--ink-1); border: 1px solid var(--line-2);
  border-radius: 20px; padding: 32px; box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  animation: aa-rise 0.45s var(--ease-spring);
}
@keyframes aa-rise { from { opacity: 0; transform: translateY(24px) scale(0.97); } to { opacity: 1; transform: none; } }
.aa-modal-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 24px; }
.aa-rules-preview { background: var(--ink-2); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.aa-rule-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.aa-rule-row:last-child { border-bottom: none; }
.aa-rule-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.aa-modal-foot { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 22px; flex-wrap: wrap; }

/* Banner */
.aa-banner {
  position: relative; margin-bottom: 18px; border: 1px solid rgba(196,255,62,0.3);
  border-radius: 16px; overflow: hidden;
  background: linear-gradient(120deg, rgba(196,255,62,0.08), rgba(196,255,62,0.02));
  animation: aa-rise 0.5s var(--ease-spring);
}
.aa-banner-stripe {
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
  background-size: 50% 100%; background-repeat: no-repeat;
  animation: aa-slide 3s linear infinite;
}
@keyframes aa-slide {
  0% { background-position: -50% 0; }
  100% { background-position: 150% 0; }
}
.aa-banner-content { display: flex; align-items: center; gap: 32px; padding: 20px 24px; }
.aa-marquee { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); }
.aa-marquee-track { display: inline-flex; gap: 28px; animation: aa-scroll 40s linear infinite; white-space: nowrap; }
.aa-marquee-item { font-size: 12px; color: var(--fg-2); font-family: var(--font-mono); }
@keyframes aa-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Big toggle in settings */
.aa-big-toggle {
  display: inline-flex; align-items: center; gap: 12px;
  width: 120px; height: 56px; padding: 0 8px; border-radius: 999px;
  background: var(--ink-2); border: 1px solid var(--line);
  position: relative; cursor: none;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.aa-big-toggle.on {
  background: linear-gradient(135deg, var(--lime), var(--lime-2, #b8f02e));
  border-color: var(--lime);
  box-shadow: 0 0 0 4px rgba(196,255,62,0.15), 0 0 32px rgba(196,255,62,0.3);
}
.aa-big-knob {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink-3); transition: transform 0.4s var(--ease-spring), background 0.3s;
  position: absolute; left: 8px; top: 7px;
}
.aa-big-toggle.on .aa-big-knob { transform: translateX(56px); background: var(--ink-0); }
.aa-big-text {
  font-family: var(--font-mono); font-size: 14px; font-weight: 600;
  letter-spacing: 0.12em; color: var(--fg-3);
  position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  transition: color 0.3s, right 0.4s var(--ease-spring);
}
.aa-big-toggle.on .aa-big-text { color: var(--ink-0); right: auto; left: 22px; }

/* ============================================================
   NEW SURFACES — onboarding, audit, assets, press, newsletter, roadmap, festivals, loc, crisis, postmortem, profile
   ============================================================ */

/* Onboarding */
.ob-shell { padding: 40px 56px 24px; }
.ob-progress { display: flex; gap: 8px; margin-bottom: 40px; }
.ob-step { flex: 1; opacity: 0.4; transition: opacity 0.3s; }
.ob-step.active, .ob-step.done { opacity: 1; }
.ob-step-num { font-family: var(--font-mono); font-size: 10px; color: var(--fg-3); letter-spacing: 0.1em; margin-bottom: 6px; }
.ob-step.active .ob-step-num { color: var(--lime); }
.ob-step.done .ob-step-num { color: var(--lime); }
.ob-step-line { height: 2px; background: var(--line); border-radius: 1px; }
.ob-step.active .ob-step-line { background: var(--lime); box-shadow: 0 0 8px var(--lime-glow); }
.ob-step.done .ob-step-line { background: var(--lime); }
.ob-stage { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.ob-card { background: var(--ink-1); border: 1px solid var(--line); border-radius: 16px; padding: 28px; min-height: 460px; }
.ob-form { display: flex; flex-direction: column; gap: 6px; }
.ob-label { font-family: var(--font-mono); font-size: 10px; color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 14px; }
.ob-label:first-child { margin-top: 0; }
.ob-input { padding: 12px 14px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 8px; color: var(--fg); font-family: var(--font-mono); font-size: 13px; outline: none; transition: border-color 0.2s; }
.ob-input:focus { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(196,255,62,0.1); }
.ob-input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ob-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ob-chip { padding: 7px 12px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; font-size: 12px; color: var(--fg-2); transition: all 0.15s; cursor: none; }
.ob-chip.on { background: rgba(196,255,62,0.12); border-color: rgba(196,255,62,0.4); color: var(--lime); }
.ob-drop { padding: 56px 24px; border: 2px dashed var(--line-2); border-radius: 14px; text-align: center; background: linear-gradient(135deg, transparent, rgba(196,255,62,0.02)); }
.ob-drop-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--ink-2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--lime); margin: 24px auto 0; }
.ob-ingest { margin-top: 22px; padding: 16px; background: var(--ink-2); border-radius: 10px; border: 1px solid var(--line); }
.ob-conns { display: flex; flex-direction: column; gap: 8px; }
.ob-conn-row { display: flex; align-items: center; gap: 14px; padding: 14px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 10px; }
.ob-conn-icon { width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0; }
.ob-tone-preview { margin-top: 18px; padding: 18px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 10px; }
.ob-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }

/* Audit log */
.audit-tabs { display: flex; gap: 4px; }
.audit-tab { padding: 8px 14px; background: transparent; border: 1px solid var(--line); border-radius: 999px; font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); display: inline-flex; align-items: center; gap: 6px; cursor: none; transition: all 0.15s; }
.audit-tab .ct { background: var(--ink-3); padding: 1px 6px; border-radius: 999px; font-size: 10px; }
.audit-tab.on { background: var(--ink-3); color: var(--fg); border-color: var(--line-2); }
.audit-row { display: grid; grid-template-columns: 160px 140px 1.6fr 180px 60px 200px; gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--line); align-items: center; }
.audit-row:last-child { border-bottom: none; }
.audit-row.audit-head { background: var(--ink-2); border-radius: 14px 14px 0 0; font-family: var(--font-mono); font-size: 10px; color: var(--fg-4); text-transform: uppercase; letter-spacing: 0.1em; padding: 12px 16px; }
.audit-row.reverted { opacity: 0.55; }
.audit-dot { width: 6px; height: 6px; border-radius: 50%; }
.audit-dot.pitch { background: var(--lime); }
.audit-dot.social { background: var(--sky); }
.audit-dot.reply { background: var(--plum); }
.audit-dot.synergy { background: var(--coral); }
.audit-dot.system { background: var(--fg-3); }

/* Asset library */
.asset-side { width: 100%; padding: 9px 12px; background: transparent; border: none; border-radius: 8px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--fg-2); cursor: none; transition: background 0.15s; margin-bottom: 2px; }
.asset-side:hover { background: var(--ink-2); }
.asset-side.on { background: var(--ink-3); color: var(--fg); }
.asset-tag { padding: 4px 9px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; font-family: var(--font-mono); font-size: 10px; color: var(--fg-3); cursor: none; }
.asset-tag.on { background: rgba(196,255,62,0.12); border-color: rgba(196,255,62,0.3); color: var(--lime); }
.asset-card { background: var(--ink-2); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; transition: transform 0.2s, border-color 0.2s; }
.asset-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.asset-thumb { aspect-ratio: 16/10; position: relative; overflow: hidden; }
.asset-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.3); color: white; font-size: 28px; }
.asset-ext { position: absolute; top: 8px; right: 8px; padding: 2px 7px; background: rgba(0,0,0,0.5); border-radius: 4px; font-family: var(--font-mono); font-size: 9px; color: white; letter-spacing: 0.05em; text-transform: uppercase; backdrop-filter: blur(4px); }
.asset-game { position: absolute; bottom: 8px; left: 8px; padding: 2px 7px; background: rgba(0,0,0,0.5); border-radius: 4px; font-family: var(--font-mono); font-size: 9px; color: white; backdrop-filter: blur(4px); }
.asset-info { padding: 10px 12px; }
.asset-name { font-family: var(--font-mono); font-size: 11px; color: var(--fg-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-mini-tag { font-family: var(--font-mono); font-size: 9px; color: var(--fg-3); background: var(--ink-3); padding: 2px 5px; border-radius: 3px; }

/* Press release embargo clock */
.embargo-clock { display: flex; gap: 8px; margin-top: 16px; }
.embargo-clock > div { flex: 1; padding: 14px 8px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 10px; text-align: center; font-family: var(--font-display); font-size: 28px; font-weight: 500; letter-spacing: -0.02em; color: var(--coral); }
.embargo-clock span { display: block; font-family: var(--font-mono); font-size: 9px; color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 4px; font-weight: 400; }

/* Festival */
.fest-timeline { margin-top: 12px; }
.fest-axis { display: flex; padding-left: 220px; border-bottom: 1px solid var(--line); }
.fest-row { display: grid; grid-template-columns: 220px 1fr; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); cursor: none; transition: background 0.15s; }
.fest-row:hover, .fest-row.on { background: var(--ink-1); }
.fest-row-name { font-size: 13px; color: var(--fg-2); padding: 8px 0; }
.fest-row.on .fest-row-name { color: var(--fg); font-weight: 500; }
.fest-row-track { position: relative; height: 32px; }
.fest-bar { position: absolute; top: 6px; height: 20px; border-radius: 6px; opacity: 0.7; display: flex; align-items: center; padding: 0 8px; font-family: var(--font-mono); font-size: 9px; color: var(--ink-0); font-weight: 600; letter-spacing: 0.05em; }
.fest-row.on .fest-bar { opacity: 1; box-shadow: 0 0 16px currentColor; }

/* Localization */
.loc-q-row { padding: 12px 16px; border-bottom: 1px solid var(--line); cursor: none; transition: background 0.15s; }
.loc-q-row:hover { background: var(--ink-2); }
.loc-q-row.on { background: var(--ink-2); border-left: 2px solid var(--lime); padding-left: 14px; }
.loc-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.loc-side { background: var(--ink-2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.loc-side-head { padding: 10px 14px; background: var(--ink-3); font-family: var(--font-mono); font-size: 10px; color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.1em; border-bottom: 1px solid var(--line); }
.loc-side-body { padding: 18px 14px; font-family: var(--font-display); font-size: 18px; line-height: 1.5; color: var(--fg); min-height: 80px; }
.loc-side-body.lang-target { font-feature-settings: "palt"; }

/* Crisis */
.crisis-view.on { background: radial-gradient(ellipse at top, rgba(255,111,94,0.08), transparent 60%); }
.crisis-flash { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(255,111,94,0.05), transparent 200px); z-index: 0; animation: crisis-pulse 2.4s ease-in-out infinite; }
@keyframes crisis-pulse { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }
.crisis-banner { position: relative; margin-top: 18px; background: linear-gradient(135deg, rgba(255,111,94,0.12), rgba(255,111,94,0.04)); border: 1px solid rgba(255,111,94,0.4); border-radius: 16px; overflow: hidden; }
.crisis-stripe { position: absolute; inset: 0; background-image: repeating-linear-gradient(45deg, rgba(255,111,94,0.06) 0 12px, transparent 12px 24px); }
.crisis-dot-big { width: 48px; height: 48px; position: relative; flex-shrink: 0; }
.crisis-dot-big .d { position: absolute; inset: 18px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 16px var(--coral); }
.crisis-dot-big .r { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--coral); animation: crisis-ring 2.4s ease-out infinite; }
.crisis-dot-big .r1 { animation-delay: 0s; }
.crisis-dot-big .r2 { animation-delay: 0.8s; }
.crisis-dot-big .r3 { animation-delay: 1.6s; }
@keyframes crisis-ring { 0% { transform: scale(0.5); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }

/* ---------- Toast stack ---------- */
.toast-stack {
  position: fixed; bottom: 28px; right: 28px;
  display: flex; flex-direction: column; gap: 8px;
  z-index: 99999; pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: rgba(20, 22, 26, 0.96);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  font-size: 13px; color: var(--fg);
  font-family: var(--font-sans);
  box-shadow: 0 12px 36px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset;
  backdrop-filter: blur(18px) saturate(140%);
  min-width: 240px; max-width: 380px;
  animation: toast-in 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: auto;
}
@keyframes toast-in { from { transform: translate(20px, 8px); opacity: 0; } to { transform: translate(0, 0); opacity: 1; } }
.toast-glyph {
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; flex-shrink: 0;
}
.toast-ok .toast-glyph { background: rgba(196,255,62,0.16); color: var(--lime); }
.toast-err .toast-glyph { background: rgba(255,111,94,0.16); color: var(--coral); }
.toast-warn .toast-glyph { background: rgba(255,196,90,0.18); color: #ffc45a; }
.toast-info .toast-glyph { background: rgba(90,214,255,0.16); color: var(--sky); }

/* ---------- Modal ---------- */
.modal-scrim {
  position: fixed; inset: 0; z-index: 99998;
  background: rgba(7, 8, 10, 0.7);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  animation: modal-fade 0.18s ease;
}
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  background: var(--ink-1);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  padding: 26px 28px 22px;
  min-width: 420px; max-width: var(--modal-w, 560px);
  width: var(--modal-w, auto);
  max-height: 86vh; overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7);
  animation: modal-pop 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-card.danger { border-color: rgba(255,111,94,0.4); }
@keyframes modal-pop { from { transform: scale(0.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-eyebrow { font-family: var(--font-mono); font-size: 10px; color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 8px; }
.modal-card.danger .modal-eyebrow { color: var(--coral); }
.modal-title { font-family: var(--font-display); font-size: 22px; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 12px; }
.modal-body { font-size: 13px; color: var(--fg-2); line-height: 1.55; margin-bottom: 18px; }
.modal-body code { font-family: var(--font-mono); font-size: 11px; background: var(--ink-2); padding: 2px 6px; border-radius: 4px; color: var(--fg); }
.modal-body .kv { display: grid; grid-template-columns: 120px 1fr; gap: 8px 14px; margin: 10px 0; font-family: var(--font-mono); font-size: 11px; }
.modal-body .kv > div:nth-child(odd) { color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.06em; }
.modal-body .kv > div:nth-child(even) { color: var(--fg); }
.modal-foot { display: flex; gap: 8px; justify-content: flex-end; }
.btn-danger {
  background: var(--coral); color: white;
  border: 1px solid var(--coral);
  font-weight: 500; cursor: none;
  border-radius: 999px;
  transition: all 0.2s;
}
.btn-danger:hover { background: #ff5544; }

