/* ═══════════════════════════════════════════════════════════════
   AUTHORITY FORGE — global.css
   Premium dark-mode design system for the marketing landing page.
   ═══════════════════════════════════════════════════════════════ */

/* ─── IMPORTS ──────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ─── CSS VARIABLES ────────────────────────────────────────── */
:root {
  /* Brand palette */
  --orange:    #FF6B1A;
  --orange-50: rgba(255, 107, 26, 0.50);
  --orange-20: rgba(255, 107, 26, 0.20);
  --orange-12: rgba(255, 107, 26, 0.12);
  --orange-08: rgba(255, 107, 26, 0.08);
  --orange-04: rgba(255, 107, 26, 0.04);
  --amber:     #FFAB40;
  --amber-20:  rgba(255, 171, 64, 0.20);
  --red:       #FF3B30;
  --red-15:    rgba(255, 59, 48, 0.15);
  --green:     #00E676;
  --green-15:  rgba(0, 230, 118, 0.15);
  --blue:      #29B6F6;
  --blue-15:   rgba(41, 182, 246, 0.15);

  /* Neutrals */
  --bg-deep:   #030303;
  --bg-body:   #050505;
  --bg-card:   rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --border:    rgba(255, 107, 26, 0.18);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --white:     #F0EDE8;
  --white-80:  rgba(240, 237, 232, 0.80);
  --muted:     #888880;
  --muted-50:  rgba(136, 136, 128, 0.50);

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  /* Spacing */
  --section-pad: clamp(4rem, 8vw, 8rem);
  --container-max: 1200px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* ─── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}

body {
  background: var(--bg-body);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: var(--orange); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--amber); }

::selection {
  background: var(--orange-50);
  color: #fff;
}

/* ─── NOISE / ATMOSPHERE ───────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* ─── SCANLINE ─────────────────────────────────────────────── */
.scanline {
  position: fixed;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--orange-20), transparent);
  z-index: 9998;
  pointer-events: none;
  animation: scanline-sweep 8s linear infinite;
}

@keyframes scanline-sweep {
  0%   { top: -2px; }
  100% { top: 100vh; }
}

/* ─── GRID BACKGROUND ──────────────────────────────────────── */
.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--orange-04) 1px, transparent 1px),
    linear-gradient(90deg, var(--orange-04) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: -1;
}

/* ─── LAYOUT ───────────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

section {
  padding: var(--section-pad) 0;
  position: relative;
}

/* ─── TYPOGRAPHY ───────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  background: linear-gradient(135deg, var(--white) 0%, var(--muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--white);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--white);
  font-weight: 700;
}

.accent { color: var(--orange); -webkit-text-fill-color: var(--orange); }
.subtle { color: var(--muted); }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--orange);
}

/* ─── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.btn-primary {
  background: var(--orange);
  color: #000;
  box-shadow: 0 0 0 0 var(--orange-50);
}

.btn-primary:hover {
  background: #FF8A3D;
  color: #000;
  box-shadow: 0 0 30px 4px var(--orange-50);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--orange-08);
  border-color: var(--orange);
  color: var(--orange);
}

/* ─── NAVBAR ───────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(5, 5, 5, 0.7);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(5, 5, 5, 0.92);
  border-bottom-color: var(--border);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo .mark {
  color: var(--orange);
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--white); }

.nav-cta {
  background: var(--orange);
  color: #000 !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
}

.nav-cta:hover {
  background: #FF8A3D;
  color: #000 !important;
}

/* ─── SERVICES DROPDOWN ──────────────────────────────────── */
.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
  background: none;
  border: none;
  font-family: inherit;
  padding: 0;
}

.dropdown-toggle:hover {
  color: var(--white);
}

.dropdown-toggle .chevron {
  font-size: 0.6rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
}

.nav-dropdown:hover .dropdown-toggle .chevron {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 240px;
  padding: 0.5rem;
  background: rgba(20, 20, 28, 0.92);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.25s;
  z-index: 1000;
  list-style: none;
}

/* Invisible bridge to prevent gap between toggle and menu */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -0.75rem;
  left: 0;
  right: 0;
  height: 0.75rem;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.5rem;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
  transition: all 0.2s;
  text-decoration: none;
}

.dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.dropdown-menu a .dd-icon {
  font-size: 1.1rem;
  width: 1.6rem;
  text-align: center;
  flex-shrink: 0;
}

.dropdown-menu a .dd-label {
  flex: 1;
}

/* Status badges */
.badge {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 100px;
  flex-shrink: 0;
}

.badge.live {
  background: rgba(0, 255, 136, 0.12);
  color: #00ff88;
  border: 1px solid rgba(0, 255, 136, 0.25);
}

.badge.q3 {
  background: rgba(0, 210, 255, 0.10);
  color: #00d2ff;
  border: 1px solid rgba(0, 210, 255, 0.25);
}

.badge.q4 {
  background: rgba(255, 190, 50, 0.10);
  color: #ffbe32;
  border: 1px solid rgba(255, 190, 50, 0.25);
}

.badge.q1 {
  background: rgba(180, 120, 255, 0.10);
  color: #b478ff;
  border: 1px solid rgba(180, 120, 255, 0.25);
}

/* Divider between dropdown items */
.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 0.35rem 0.5rem;
}

/* Disabled (upcoming) vertical items */
.dropdown-menu a.dd-disabled {
  cursor: default;
  opacity: 0.65;
}

.dropdown-menu a.dd-disabled:hover {
  background: rgba(255, 255, 255, 0.02);
  opacity: 0.8;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ─── HERO ─────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 6rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(ellipse, var(--orange-12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: var(--muted);
  max-width: 650px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

/* Integration badges below hero */
.integrations-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.integration-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0.4rem 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  transition: all 0.3s;
}

.integration-badge:hover {
  border-color: var(--orange);
  color: var(--white);
}

/* ─── AUDIT LOG TICKER ─────────────────────────────────────── */
.audit-ticker {
  width: 100%;
  overflow: hidden;
  margin: 3rem 0 0;
  position: relative;
}

.audit-ticker::before,
.audit-ticker::after {
  content: '';
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.audit-ticker::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-body), transparent);
}

.audit-ticker::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg-body), transparent);
}

.audit-track {
  display: flex;
  gap: 1.5rem;
  animation: ticker-scroll 30s linear infinite;
  width: max-content;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.audit-item {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  letter-spacing: 0.05em;
}

.audit-item .badge {
  font-size: 0.6rem;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.badge-ok    { background: var(--green-15); color: var(--green); border: 1px solid var(--green); }
.badge-alert { background: var(--red-15);   color: var(--red);   border: 1px solid var(--red); }
.badge-miss  { background: var(--amber-20); color: var(--amber); border: 1px solid var(--amber); }

.audit-item .text { color: var(--muted); }
.audit-item .status { color: var(--blue); }

/* ─── VERTICALS ────────────────────────────────────────────── */
.verticals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.vertical-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.vertical-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.vertical-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border);
  transform: translateY(-4px);
}

.vertical-card:hover::before { opacity: 1; }

.vertical-card .icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.vertical-card h3 { margin-bottom: 0.75rem; }

.vertical-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.vertical-card .status-pill {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
}

.status-live {
  background: var(--green-15);
  color: var(--green);
  border: 1px solid var(--green);
}

.status-coming {
  background: var(--orange-08);
  color: var(--orange);
  border: 1px solid var(--orange);
}

/* ─── THREE SYSTEMS ────────────────────────────────────────── */
.systems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.system-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.4s;
}

.system-card:hover {
  border-color: var(--border);
  transform: translateY(-2px);
}

.system-card .icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--orange);
}

.system-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.system-card .live-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--green);
  letter-spacing: 0.15em;
  margin-top: 1rem;
  display: block;
}

/* ─── BENTO GRID (Operations Control Room) ─────────────────── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(120px, auto);
  gap: 1rem;
  margin-top: 2.5rem;
}

.bento-card {
  background: rgba(5, 5, 5, 0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.4s;
}

.bento-card:hover {
  border-color: var(--orange);
  box-shadow: 0 0 20px var(--orange-08);
}

.bento-card .card-header {
  background: var(--orange-08);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--white);
}

.bento-card .card-header .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse-dot 1.5s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

.bento-card .card-body {
  padding: 1rem;
}

/* Transcript card - spans 7 cols */
.bento-transcript { grid-column: span 7; grid-row: span 2; }

/* Route card - spans 5 cols */
.bento-route { grid-column: span 5; grid-row: span 2; }

/* CRM card - spans 7 cols */
.bento-crm { grid-column: span 7; }

/* KPI card - spans 5 cols */
.bento-kpi { grid-column: span 5; }

/* Transcript lines */
.tx-line {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.85rem;
  opacity: 0;
  transform: translateY(6px);
  animation: tx-reveal 0.5s ease forwards;
}

.tx-line:nth-child(1) { animation-delay: 0.3s; }
.tx-line:nth-child(2) { animation-delay: 1.2s; }
.tx-line:nth-child(3) { animation-delay: 2.1s; }

@keyframes tx-reveal {
  to { opacity: 1; transform: translateY(0); }
}

.tx-time {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.tx-who {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  flex-shrink: 0;
  width: 65px;
  margin-top: 3px;
}

.tx-caller { color: var(--amber); }
.tx-agent  { color: var(--blue); }
.tx-text   { color: var(--white-80); line-height: 1.5; }

.tx-tag {
  display: inline-block;
  margin-top: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  letter-spacing: 0.1em;
  opacity: 0;
  animation: tx-reveal 0.3s ease forwards;
}

.tx-line:nth-child(1) .tx-tag { animation-delay: 0.8s; }
.tx-line:nth-child(2) .tx-tag { animation-delay: 1.7s; }
.tx-line:nth-child(3) .tx-tag { animation-delay: 2.6s; }

.tag-intent { background: var(--blue-15); color: var(--blue); border: 1px solid var(--blue); }
.tag-alert  { background: var(--red-15);  color: var(--red);  border: 1px solid var(--red); }
.tag-match  { background: var(--green-15); color: var(--green); border: 1px solid var(--green); }

/* Route rows */
.route-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.85rem;
}

.route-row .icon { font-size: 1.1rem; flex-shrink: 0; }
.route-row .name { color: var(--white); font-weight: 500; }
.route-row .cert { font-family: var(--font-mono); font-size: 0.65rem; color: var(--muted); }
.route-row .zone { color: var(--muted); font-size: 0.75rem; margin-left: auto; }
.route-row .dist { font-family: var(--font-mono); font-size: 0.75rem; }
.dist-near { color: var(--green); }
.dist-mid  { color: var(--amber); }
.dist-far  { color: var(--muted); }

.dispatch-pill {
  margin-top: 0.75rem;
  background: var(--green-15);
  border: 1px solid var(--green);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  animation: dispatch-glow 2s ease infinite;
}

@keyframes dispatch-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
  50%      { box-shadow: 0 0 16px 2px rgba(0, 230, 118, 0.3); }
}

.dispatch-pill .icon { font-size: 1rem; }
.dispatch-pill .text { color: var(--green); }
.dispatch-pill .eta  { margin-left: auto; color: var(--white); font-weight: 600; }

/* CRM payload */
.crm-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.crm-header .icon { font-size: 1rem; }

.crm-header .label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--blue);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.crm-header .ok {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--green);
}

.crm-body {
  font-size: 0.85rem;
  color: var(--white-80);
  line-height: 1.6;
}

.crm-body .hi { color: var(--amber); font-weight: 600; }

/* KPI mini cards */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.kpi-mini {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
}

.kpi-mini .label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.kpi-mini .value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
}

.kpi-mini .delta {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--green);
  margin-top: 0.15rem;
}

/* ─── CALCULATOR ───────────────────────────────────────────── */
.calc-section {
  background: linear-gradient(180deg, var(--bg-body) 0%, var(--bg-deep) 100%);
}

.calc-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2.5rem;
}

.calc-form { max-width: 480px; }

.calc-group {
  margin-bottom: 1.5rem;
}

.calc-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.calc-slider-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.calc-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: var(--border-subtle);
  border-radius: 2px;
  outline: none;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--orange);
  cursor: pointer;
  box-shadow: 0 0 12px var(--orange-50);
  transition: box-shadow 0.2s;
}

.calc-slider::-webkit-slider-thumb:hover {
  box-shadow: 0 0 24px var(--orange-50);
}

.calc-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--orange);
  cursor: pointer;
  border: none;
  box-shadow: 0 0 12px var(--orange-50);
}

.calc-value {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  min-width: 80px;
  text-align: right;
}

.calc-results {
  background: rgba(5, 5, 5, 0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.calc-results .header {
  background: var(--orange-08);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.calc-results .header .dot { width: 8px; height: 8px; border-radius: 50%; }
.calc-results .header .dot.r { background: var(--red); }
.calc-results .header .dot.y { background: #FFCA28; }
.calc-results .header .dot.g { background: var(--green); }

.calc-results .header .title {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.15em;
}

.calc-results .body {
  padding: 1.5rem;
}

.calc-result-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
}

.calc-result-row:last-child { border-bottom: none; }

.calc-result-row .label {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.calc-result-row .value {
  font-size: 1.5rem;
  font-weight: 700;
}

.calc-result-row .value.red    { color: var(--red); }
.calc-result-row .value.green  { color: var(--green); }
.calc-result-row .value.orange { color: var(--orange); }

.calc-recovery {
  margin-top: 1rem;
  background: var(--green-15);
  border: 1px solid var(--green);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--green);
  text-align: center;
  letter-spacing: 0.05em;
}

/* ─── LEAKS (Three Revenue Leaks) ──────────────────────────── */
.leaks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.leak-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.leak-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}

.leak-card .leak-number {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--red);
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
}

.leak-card h3 { margin-bottom: 0.5rem; }

.leak-card .sub {
  font-size: 0.8rem;
  color: var(--amber);
  margin-bottom: 1rem;
  font-weight: 500;
}

.leak-card .pain,
.leak-card .recovery {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.leak-card .recovery-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--green);
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}

.leak-card .recovery { color: var(--white-80); }

/* ─── WHY SECTION ──────────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all 0.3s;
}

.why-card:hover {
  border-color: var(--border);
  transform: translateY(-2px);
}

.why-card .icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.why-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 0.5rem;
}

/* ─── PRICING ──────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  text-align: center;
  transition: all 0.4s;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--orange);
  box-shadow: 0 0 40px var(--orange-08);
}

.pricing-card.featured::before {
  content: 'RECOMMENDED';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: #000;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  padding: 0.25rem 1rem;
  border-radius: 100px;
}

.pricing-card:hover {
  transform: translateY(-4px);
}

.pricing-card .plan-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.pricing-card .price {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.pricing-card .period {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.pricing-card .calls {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--amber);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.pricing-card .features {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
}

.pricing-card .features li {
  font-size: 0.85rem;
  color: var(--white-80);
  padding: 0.4rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pricing-card .features li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

/* ─── CRM INTEGRATION ─────────────────────────────────────── */
.crm-section {
  text-align: center;
}

.crm-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.crm-logo-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  color: var(--muted);
  transition: color 0.3s;
}

.crm-logo-item:hover { color: var(--white); }

.crm-log {
  max-width: 600px;
  margin: 2rem auto 0;
  background: rgba(5, 5, 5, 0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-align: left;
}

.crm-log .entry {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.crm-log .entry:last-child { border-bottom: none; }
.crm-log .entry .icon { flex-shrink: 0; }
.crm-log .entry .text { color: var(--white-80); line-height: 1.5; }

/* ─── FOOTER ───────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.footer-logo .mark { color: var(--orange); }

.footer-tagline {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-links a:hover { color: var(--orange); }

.footer-copy {
  font-size: 0.75rem;
  color: var(--muted-50);
}

/* ─── ANIMATIONS (scroll-triggered via IntersectionObserver) ─ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-transcript,
  .bento-route,
  .bento-crm,
  .bento-kpi {
    grid-column: span 1;
  }

  .calc-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; gap: 0.5rem; width: 100%; }
  .mobile-toggle { display: block; }

  /* Mobile dropdown: static accordion */
  .nav-dropdown { position: static; }
  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    min-width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0.25rem 0 0.25rem 1rem;
    margin-top: 0.25rem;
    display: none;
  }
  .nav-dropdown:hover .dropdown-menu,
  .nav-dropdown.open .dropdown-menu {
    display: block;
    transform: none;
  }

  .hero { min-height: 90vh; padding-top: 5rem; }

  h1 { font-size: clamp(2rem, 6vw, 3rem); }

  .verticals-grid {
    grid-template-columns: 1fr;
  }

  .systems-grid {
    grid-template-columns: 1fr;
  }

  .leaks-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .integrations-row {
    gap: 1rem;
  }
}

/* ─── TWO-COLUMN HERO LAYOUT & MOCKUP ────────────────────── */
.hero-wrapper {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
  max-width: 1450px;
  margin: 0 auto;
  padding: 0 2rem;
  z-index: 2;
  position: relative;
}

.hero-media {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.hero-text-content {
  text-align: left;
}

.hero-text-content h1 {
  font-size: clamp(2.5rem, 4vw, 3.75rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-text-content .hero-sub {
  margin-left: 0;
  text-align: left;
}

.hero-text-content .hero-actions {
  justify-content: flex-start;
}

.hero-text-content .integrations-row {
  justify-content: flex-start;
}

/* Mockup Frame */
.mockup-frame {
  background: #080808;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 40px var(--orange-08);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.mockup-frame:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: var(--border);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.9), 0 0 50px var(--orange-12);
}

.mockup-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mockup-header .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.mockup-header .dot.red { background: var(--red); }
.mockup-header .dot.yellow { background: #FFCA28; }
.mockup-header .dot.green { background: var(--green); }

.mockup-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.15em;
  margin-left: auto;
  text-transform: uppercase;
}

.hero-video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
}

@media (max-width: 1024px) {
  .hero-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
    padding-top: 2rem;
  }
  
  .hero-media {
    order: 2;
    margin-top: 1rem;
  }
  
  .hero-text-content {
    order: 1;
    text-align: center;
  }
  
  .hero-text-content h1 {
    font-size: clamp(2rem, 5vw, 2.75rem);
    text-align: center;
  }
  
  .hero-text-content .hero-sub {
    margin: 0 auto 2.5rem;
    text-align: center;
  }
  
  .hero-text-content .hero-actions {
    justify-content: center;
  }
  
  .hero-text-content .integrations-row {
    justify-content: center;
  }
}

/* ─── AUDIO TOGGLE & OVERHEAD INTEGRATIONS ─────────────────── */
.audio-control-overlay {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: rgba(5, 5, 5, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.audio-control-overlay:hover {
  background: rgba(255, 107, 26, 0.15);
  border-color: var(--orange);
  box-shadow: 0 4px 20px var(--orange-20);
  transform: translateY(-2px);
}

.audio-control-overlay:active {
  transform: translateY(0);
}

@keyframes audio-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 107, 26, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(255, 107, 26, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 107, 26, 0); }
}

.audio-control-overlay.pulsing {
  animation: audio-pulse 2s infinite;
}

.hero > .integrations-row {
  margin-top: 3.5rem;
  width: 100%;
  justify-content: center;
  z-index: 2;
  position: relative;
}

