/* ============================================================
   Swiss Agent Network — styles.css
   Light theme with dark accent sections
   ============================================================ */

/* === Variables ============================================= */
:root {
  --bg-page:       #F9FAFB;
  --bg-dark:       #111827;
  --bg-card:       #FFFFFF;
  --bg-muted:      #F3F4F6;
  --bg-dark-card:  #1F2937;
  --border:        #E5E7EB;
  --text-primary:  #111827;
  --text-secondary:#6B7280;
  --text-muted:    #9CA3AF;
  --red:           #D63F5E;
  --red-dark:      #C13455;
  --green:         #16A34A;
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:     0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg:     0 8px 32px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.06);
  --font-mono: 'Space Mono', monospace;
  --font-sans: 'DM Sans', sans-serif;
  --font-code: 'JetBrains Mono', monospace;
}

/* === Reset ================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
img { max-width: 100%; display: block; }

/* === Utility =============================================== */
.container { max-width: 1400px; margin: 0 auto; padding: 0 80px; }
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  display: block;
  margin-bottom: 16px;
}
.fade-in { animation: fadeIn 0.3s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* === Custom Cursor ========================================= */
.cursor-ring {
  position: fixed;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: white;
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s;
  will-change: transform;
}
.cursor-dot {
  position: fixed;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: white;
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: transform;
}
body.cursor-active .cursor-ring { width: 32px; height: 32px; }

/* === Grain overlay ========================================= */
.grain-overlay {
  position: fixed;
  inset: -200%;
  width: 400%; height: 400%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 50;
  animation: grainMove 0.5s steps(1) infinite;
}
@keyframes grainMove {
  0%  { transform: translate(0,0); }
  25% { transform: translate(-5%,-5%); }
  50% { transform: translate(5%,0); }
  75% { transform: translate(-5%,5%); }
}

/* === Scroll Progress ======================================= */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--red);
  z-index: 200;
  width: 0%;
  transition: width 0.1s;
}

/* === Navbar ================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 80px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}
.navbar.menu-open {
  background: rgba(255,255,255,0.97);
  border-bottom-color: var(--border);
}
.navbar-logo {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.navbar-logo-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); flex-shrink: 0; }
.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.navbar-links a {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.navbar-links a:hover, .navbar-links a.active { color: var(--text-primary); font-weight: 500; }
.navbar-actions { display: flex; align-items: center; gap: 10px; }
.nav-login {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav-login:hover { color: var(--text-primary); }
.nav-cta {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: white;
  background: var(--text-primary);
  padding: 8px 18px;
  border-radius: 6px;
  transition: background 0.2s;
}
.nav-cta:hover { background: #374151; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: #374151; transition: all 0.25s; }
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--border);
  padding: 24px 24px 32px;
  z-index: 99;
  flex-direction: column;
  gap: 8px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--text-secondary);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  display: block;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-cta-wrap { display: flex; gap: 12px; margin-top: 12px; }
.mobile-cta-btn {
  flex: 1;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: white;
  background: var(--text-primary);
  padding: 12px;
  border-radius: 6px;
}

/* === Hero ================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #E5E7EB 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.6;
  z-index: 0;
}
.hero-bg-glow {
  position: absolute;
  top: -200px; right: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(214,63,94,0.08) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 160px 80px 100px;
  max-width: 1400px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 12px;
  margin-bottom: 32px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-title {
  font-family: var(--font-mono);
  font-size: clamp(42px, 7vw, 96px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.05;
  margin-bottom: 40px;
  max-width: 55%;
}
.hero-title-red { color: var(--red); }
.hero-subtitle {
  font-family: var(--font-sans);
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 440px;
  line-height: 1.7;
  margin-bottom: 32px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.cta-primary {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: white;
  background: var(--red);
  padding: 14px 28px;
  border-radius: 8px;
  transition: background 0.2s, transform 0.15s;
}
.cta-primary:hover { background: var(--red-dark); transform: translateY(-1px); }
.cta-secondary {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s;
}
.cta-secondary:hover { color: var(--text-primary); }
.hero-disclaimer {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 64px;
}
.hero-proof {
  display: inline-flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.proof-item { padding: 20px 28px; text-align: center; }
.proof-number {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}
.proof-label {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-muted);
}
.proof-divider { width: 1px; background: var(--border); }

/* === Ticker ================================================ */
.ticker-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 14px 0;
  background: var(--bg-page);
}
.ticker-track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: tickerScroll 35s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.ticker-item::after {
  content: '·';
  color: var(--red);
  font-size: 16px;
}
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* === Stats Section ========================================= */
.stats-section {
  background: var(--bg-dark);
  padding: 120px 80px;
  position: relative;
}
.stats-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  align-items: center;
}
.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-mono);
  font-size: clamp(60px, 8vw, 100px);
  font-weight: 700;
  color: #F9FAFB;
  line-height: 1;
  margin-bottom: 12px;
}
.stat-number span { color: var(--red); }
.stat-label {
  font-family: var(--font-sans);
  font-size: 15px;
  color: #9CA3AF;
  max-width: 200px;
  margin: 0 auto;
}
.stat-divider { width: 1px; height: 80px; background: rgba(255,255,255,0.08); margin: 0 auto; }

/* === Social Proof ========================================== */
.social-proof-section {
  padding: 60px 80px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-page);
}
.social-proof-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  margin-bottom: 32px;
}
.logos-track {
  display: flex;
  align-items: center;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
}
.logo-item {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: #D1D5DB;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.logo-item:hover { color: var(--text-secondary); }

/* === Features Scroll ======================================= */
.features-section {
  padding: 120px 80px;
  background: var(--bg-page);
  border-top: 1px solid var(--border);
}
.features-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.features-nav { position: sticky; top: 120px; }
.features-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 16px;
}
.features-title {
  font-family: var(--font-mono);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 40px;
}
.feature-tab {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
}
.feature-tab:last-child { border-bottom: 1px solid var(--border); }
.feature-tab.active .feature-tab-num { color: var(--red); }
.feature-tab.active .feature-tab-title { color: var(--text-primary); }
.feature-tab-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 700;
  min-width: 24px;
  padding-top: 2px;
  transition: color 0.2s;
}
.feature-tab-title {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.feature-tab-desc {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-muted);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s;
  opacity: 0;
  margin-top: 0;
}
.feature-tab.active .feature-tab-desc {
  max-height: 100px;
  opacity: 1;
  margin-top: 6px;
}
.features-chat-panel { display: flex; flex-direction: column; gap: 20px; }
.chat-bubble-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: none;
}
.chat-bubble-card.active { display: block; }
.chat-msg { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.chat-msg.agent { justify-content: flex-start; }
.chat-bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px 14px 4px 14px;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
}
.chat-bubble.user { background: var(--bg-dark); color: white; border-radius: 14px 14px 4px 14px; }
.chat-bubble.agent-bubble {
  background: var(--bg-muted);
  border: 1px solid var(--border);
  color: #374151;
  border-radius: 4px 14px 14px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
}
.chat-line-red { color: var(--red); }
.chat-line-muted { color: var(--text-muted); }
.stat-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.stat-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  background: rgba(22,163,74,0.08);
  border: 1px solid rgba(22,163,74,0.15);
  border-radius: 100px;
  padding: 4px 10px;
}
.features-progress {
  display: flex;
  gap: 6px;
  margin-top: 16px;
  justify-content: flex-end;
}
.prog-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.2s;
}
.prog-dot.active { background: var(--red); }

/* === Demo Chat ============================================= */
.demo-section {
  padding: 120px 80px;
  background: var(--bg-muted);
  border-top: 1px solid var(--border);
}
.demo-header { margin-bottom: 56px; }
.demo-title {
  font-family: var(--font-mono);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.15;
}
.demo-subtitle {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.6;
}
.chat-window {
  max-width: 680px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.chat-chrome {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-page);
}
.chrome-dots { display: flex; gap: 6px; }
.chrome-dot { width: 10px; height: 10px; border-radius: 50%; display: block; }
.chrome-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 12px;
}
.chrome-badge {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  background: rgba(251,188,46,0.12);
  color: #FEBC2E;
  border: 1px solid rgba(251,188,46,0.2);
  border-radius: 4px;
  padding: 2px 7px;
}
.chat-messages {
  height: 360px;
  overflow-y: auto;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overscroll-behavior: contain;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.msg-row { display: flex; gap: 10px; align-items: flex-start; }
.msg-row.user { justify-content: flex-end; }
.msg-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.msg-avatar span { font-family: var(--font-mono); font-size: 11px; color: white; font-weight: 700; }
.msg-bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 4px 14px 14px 14px;
}
.msg-bubble.agent { background: var(--bg-muted); border: 1px solid var(--border); }
.msg-bubble.user { background: var(--bg-dark); border: 1px solid transparent; border-radius: 14px 14px 4px 14px; }
.msg-line {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}
.msg-line + .msg-line { margin-top: 6px; }
.msg-line.mono { font-family: var(--font-mono); font-size: 12px; }
.msg-line.red { color: var(--red); }
.msg-line.gray { color: var(--text-muted); }
.msg-line.white { color: white; }
.msg-line.dark { color: #374151; }
.typing-dots { display: flex; gap: 4px; margin-top: 8px; }
.typing-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typingBounce 1s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.15s; }
.typing-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.chat-suggestions {
  display: flex;
  gap: 8px;
  padding: 0 20px 12px;
  flex-wrap: wrap;
}
.suggestion-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  background: rgba(0,0,0,0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 12px;
  transition: border-color 0.15s, color 0.15s;
}
.suggestion-btn:hover { border-color: var(--text-secondary); }
.suggestion-btn:disabled { opacity: 0.5; cursor: default; }
.chat-input-row {
  display: flex;
  border-top: 1px solid var(--border);
}
.chat-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 14px 20px;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--text-primary);
}
.chat-input::placeholder { color: var(--text-muted); }
.chat-send {
  background: transparent;
  border: none;
  border-left: 1px solid var(--border);
  padding: 14px 20px;
  border-radius: 0 0 16px 0;
  transition: background 0.2s;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}
.chat-send.active { background: var(--red); color: white; }
.chat-disclaimer {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 16px;
  max-width: 680px;
}

/* === Demo Agent ============================================ */
.demo-agent-section {
  padding: 120px 80px;
  border-top: 1px solid var(--border);
  background: var(--bg-muted);
}
.demo-agent-tabs {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  width: fit-content;
  margin-bottom: 48px;
  background: var(--bg-card);
}
.demo-tab-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  background: transparent;
  border: none;
  padding: 10px 20px;
  border-right: 1px solid var(--border);
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.demo-tab-btn:last-child { border-right: none; }
.demo-tab-btn.active { background: var(--text-primary); color: white; }
.demo-agent-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}
.demo-user-bubble {
  background: var(--bg-dark);
  color: white;
  font-family: var(--font-sans);
  font-size: 15px;
  padding: 18px 22px;
  border-radius: 16px 16px 4px 16px;
  max-width: 380px;
  margin-left: auto;
  line-height: 1.6;
}
.demo-agent-bubble {
  position: relative;
  padding-left: 52px;
}
.demo-agent-avatar {
  position: absolute;
  left: 0; top: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: white;
  font-weight: 700;
}
.demo-agent-text {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px 16px 16px 16px;
  padding: 18px 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.8;
  white-space: pre-line;
  box-shadow: var(--shadow-sm);
}

/* === Integrations ========================================== */
.integrations-section {
  padding: 120px 80px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}
.integration-nodes {
  position: relative;
  height: 480px;
  margin-top: 40px;
}
.integration-node {
  position: absolute;
  transform: translate(-50%, -50%);
}
.node-card {
  display: flex;
  align-items: center;
  gap: 7px;
  background: white;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 7px 12px;
  border-radius: 8px;
  white-space: nowrap;
  cursor: default;
  transition: box-shadow 0.2s, transform 0.2s;
}
.node-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.node-card.hub { padding: 10px 15px; border-width: 2px; }
.node-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.node-label { font-family: var(--font-mono); font-size: 10px; color: var(--text-secondary); letter-spacing: 0.04em; }
.node-card.hub .node-label { font-size: 12px; font-weight: 700; }
.integration-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }

/* === Testimonials ========================================== */
.testimonials-section {
  padding: 120px 80px;
  background: var(--bg-page);
  border-top: 1px solid var(--border);
}
.testimonials-header { text-align: center; margin-bottom: 64px; }
.testimonials-h2 {
  font-family: var(--font-mono);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: var(--text-primary);
  margin: 12px 0;
  line-height: 1.15;
}
.testimonials-sub {
  font-family: var(--font-sans);
  font-size: 17px;
  color: var(--text-secondary);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
}
.t-col { display: flex; flex-direction: column; gap: 20px; }
.t-col:nth-child(2) { margin-top: 40px; }
.t-col:nth-child(3) { margin-top: -20px; }
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s, transform 0.3s;
}
.testimonial-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.testimonial-quote-mark {
  position: absolute;
  top: -10px; left: 20px;
  font-size: 120px;
  line-height: 1;
  color: rgba(214,63,94,0.06);
  font-family: Georgia, serif;
  pointer-events: none;
  user-select: none;
}
.testimonial-quote {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  color: #374151;
  margin: 0 0 20px;
  position: relative;
  z-index: 1;
}
.testimonial-result {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  background: rgba(214,63,94,0.06);
  border: 1px solid rgba(214,63,94,0.15);
  border-radius: 8px;
  padding: 8px 14px;
  margin-bottom: 20px;
}
.result-value { font-family: var(--font-mono); font-size: 22px; font-weight: 700; color: var(--red); }
.result-label { font-family: var(--font-sans); font-size: 13px; color: var(--text-secondary); }
.testimonial-author-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(214,63,94,0.1);
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.author-info { display: flex; flex-direction: column; gap: 2px; }
.author-name { font-family: var(--font-sans); font-size: 14px; font-weight: 600; color: var(--text-primary); }
.author-role { font-family: var(--font-sans); font-size: 12px; color: var(--text-secondary); }
.author-location { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }

/* === Pricing =============================================== */
.pricing-section {
  background: var(--bg-dark);
  padding: 120px 80px;
  border-top: 1px solid var(--border);
}
.pricing-eyebrow { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--red); margin-bottom: 16px; display: block; }
.pricing-title { font-family: var(--font-mono); font-size: clamp(28px, 3.5vw, 44px); font-weight: 700; color: #F9FAFB; margin-bottom: 32px; max-width: 480px; line-height: 1.2; }
.pricing-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 48px;
}
.toggle-btn {
  font-family: var(--font-sans);
  font-size: 14px;
  color: #6B7280;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}
.toggle-btn.active { color: #F9FAFB; }
.toggle-track {
  width: 40px; height: 22px;
  background: #E5E7EB;
  border-radius: 100px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
  border: none;
}
.toggle-track.annual { background: var(--red); }
.toggle-thumb {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: white;
  position: absolute;
  top: 3px; left: 3px;
  transition: transform 0.2s;
}
.toggle-track.annual .toggle-thumb { transform: translateX(18px); }
.toggle-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--red);
  letter-spacing: 0.05em;
}
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  max-width: 1400px;
  margin: 0 auto;
}
.pricing-card {
  background: #1F2937;
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.pricing-card.highlight {
  background: white;
  border-top: 2px solid var(--red);
}
.pricing-card-popular {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
  margin-bottom: 16px;
}
.pricing-card-name {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.pricing-card.highlight .pricing-card-name { color: var(--text-primary); }
.pricing-card:not(.highlight) .pricing-card-name { color: #F9FAFB; }
.pricing-price {
  font-family: var(--font-mono);
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.pricing-price-unit { font-size: 16px; font-weight: 400; }
.pricing-card.highlight .pricing-price { color: var(--text-primary); }
.pricing-card.highlight .pricing-price-unit { color: var(--text-secondary); }
.pricing-card:not(.highlight) .pricing-price { color: #F9FAFB; }
.pricing-card:not(.highlight) .pricing-price-unit { color: #9CA3AF; }
.pricing-annual-note { font-family: var(--font-sans); font-size: 12px; color: var(--red); margin-bottom: 4px; }
.pricing-tagline { font-family: var(--font-sans); font-size: 12px; margin-bottom: 16px; }
.pricing-card.highlight .pricing-tagline { color: var(--text-secondary); }
.pricing-card:not(.highlight) .pricing-tagline { color: #9CA3AF; }
.pricing-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 24px; }
.pricing-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 8px;
  border: 1px solid;
}
.pricing-card.highlight .pricing-tag { border-color: var(--border); color: var(--text-secondary); }
.pricing-card:not(.highlight) .pricing-tag { border-color: rgba(255,255,255,0.12); color: #9CA3AF; }
.pricing-features { list-style: none; margin-bottom: 32px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.pricing-features li {
  font-family: var(--font-sans);
  font-size: 14px;
  display: flex;
  gap: 8px;
}
.pricing-features li::before { content: '—'; color: var(--red); flex-shrink: 0; }
.pricing-card.highlight .pricing-features li { color: #374151; }
.pricing-card:not(.highlight) .pricing-features li { color: #E0E0E0; }
.pricing-cta-btn {
  display: block;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  padding: 12px;
  border-radius: 6px;
  transition: all 0.2s;
}
.pricing-cta-btn.primary { background: var(--red); color: white; }
.pricing-cta-btn.primary:hover { background: var(--red-dark); }
.pricing-cta-btn.outline-light { border: 1px solid rgba(255,255,255,0.2); color: #F9FAFB; }
.pricing-cta-btn.outline-light:hover { background: rgba(255,255,255,0.08); }
.pricing-cta-btn.outline-dark { border: 1px solid var(--border); color: var(--text-primary); }
.pricing-cta-btn.outline-dark:hover { background: var(--bg-muted); }

/* === CTA Section =========================================== */
.cta-section {
  background: var(--red);
  padding: 100px 80px;
}
.cta-inner {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}
.cta-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
}
.cta-h2 {
  font-family: var(--font-mono);
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
  line-height: 1.1;
}
.cta-sub {
  font-family: var(--font-sans);
  font-size: 17px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-btn-primary {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--red);
  background: white;
  padding: 14px 28px;
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.cta-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.cta-btn-secondary {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 15px;
  color: white;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 14px 28px;
  border-radius: 8px;
  transition: background 0.2s;
}
.cta-btn-secondary:hover { background: rgba(255,255,255,0.1); }
.cta-disclaimer {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  margin-top: 24px;
}

/* === Leads Form =========================================== */
.leads-section {
  padding: 100px 80px;
  background: var(--bg-page);
  border-top: 1px solid var(--border);
}
.leads-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.leads-title { font-family: var(--font-mono); font-size: clamp(24px, 3vw, 36px); font-weight: 700; color: var(--text-primary); margin-bottom: 16px; line-height: 1.2; }
.leads-sub { font-family: var(--font-sans); font-size: 16px; color: var(--text-secondary); max-width: 380px; line-height: 1.65; }
.leads-form { display: flex; flex-direction: column; gap: 16px; }
.lead-field {
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s;
}
.lead-field:focus { border-color: var(--text-secondary); }
.lead-field::placeholder { color: var(--text-muted); }
.lead-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lead-submit {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: white;
  background: var(--red);
  border: none;
  padding: 14px 24px;
  border-radius: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  align-self: flex-start;
  transition: background 0.2s;
}
.lead-submit:hover { background: var(--red-dark); }

/* === Footer =============================================== */
.footer {
  background: var(--bg-dark);
  padding: 80px 80px 40px;
}
.footer-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 60px;
}
.footer-logo {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: #F9FAFB;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-logo-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); flex-shrink: 0; }
.footer-tagline { font-family: var(--font-sans); font-size: 13px; color: #9CA3AF; line-height: 1.6; max-width: 220px; margin-bottom: 20px; }
.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.footer-status-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.footer-col-title { font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: #F9FAFB; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 20px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-link { font-family: var(--font-sans); font-size: 14px; color: #9CA3AF; transition: color 0.2s; }
.footer-link:hover { color: #F9FAFB; }
.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy { font-family: var(--font-mono); font-size: 11px; color: #9CA3AF; }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { font-family: var(--font-mono); font-size: 11px; color: #9CA3AF; transition: color 0.2s; }
.footer-legal a:hover { color: #F9FAFB; }

/* === Page Hero (inner pages) =============================== */
.page-hero {
  padding: 120px 80px 60px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-page);
}
.page-hero-label {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 16px;
  display: block;
}
.page-hero-h1 {
  font-family: var(--font-mono);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.1;
  max-width: 640px;
}
.page-hero-sub {
  font-family: var(--font-sans);
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.6;
}

/* === Animations =========================================== */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim-slide-up { animation: slideUp 0.6s ease both; }

/* === Sticky Mobile CTA ==================================== */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--bg-dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 12px 20px;
  z-index: 80;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sticky-cta-text { font-family: var(--font-sans); font-size: 13px; color: #9CA3AF; }
.sticky-cta-btn {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: white;
  background: var(--red);
  padding: 10px 20px;
  border-radius: 6px;
  white-space: nowrap;
}

/* === Responsive =========================================== */
@media (max-width: 1024px) {
  .container { padding: 0 40px; }
  .navbar { padding: 0 40px; }
  .hero-inner { padding: 140px 40px 80px; }
  .hero-title { max-width: 80%; }
  .stats-grid { gap: 32px; }
  .features-inner { gap: 40px; }
  .demo-agent-cols { gap: 40px; }
  .testimonials-section, .demo-section, .demo-agent-section,
  .integrations-section, .pricing-section, .cta-section,
  .leads-section, .stats-section, .social-proof-section { padding: 80px 40px; }
  .footer { padding: 60px 40px 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .page-hero { padding: 100px 40px 48px; }
}

@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  .navbar-links, .navbar-actions { display: none; }
  .hamburger { display: flex; }
  .hero-inner { padding: 100px 24px 60px; }
  .hero-title { max-width: 100%; font-size: clamp(26px, 8vw, 50px); }
  .hero-subtitle { font-size: 16px; }
  .hero-proof { flex-direction: column; }
  .proof-divider { width: 100%; height: 1px; }
  .stats-grid { grid-template-columns: 1fr; gap: 0; }
  .stat-divider { display: none; }
  .stat-item { padding: 40px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .stat-item:last-child { border-bottom: none; }
  .features-inner { grid-template-columns: 1fr; gap: 40px; }
  .features-nav { position: relative; top: auto; }
  .demo-agent-cols { grid-template-columns: 1fr; gap: 32px; }
  .demo-user-bubble { margin-left: 0; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .t-col { display: flex; }
  .t-col:nth-child(2), .t-col:nth-child(3) { margin-top: 0; }
  .pricing-cards { grid-template-columns: 1fr; }
  .leads-grid { grid-template-columns: 1fr; gap: 40px; }
  .lead-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .testimonials-section, .demo-section, .demo-agent-section,
  .integrations-section, .pricing-section, .cta-section,
  .leads-section, .stats-section, .social-proof-section { padding: 60px 24px; }
  .footer { padding: 48px 24px 28px; }
  .page-hero { padding: 90px 24px 40px; }
  .sticky-cta { display: flex; }
  body { padding-bottom: 56px; }
  .integration-nodes { height: 340px; }
}

/* ============================================================
   MODERN SCROLL EFFECTS  (scroll-effects.js)
   ============================================================ */

/* — Word-mask heading reveal — */
.reveal-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  line-height: inherit;
  padding-bottom: 0.04em;      /* room for descenders inside the mask */
  margin-bottom: -0.04em;
}
.reveal-word > .reveal-word-i {
  display: inline-block;
  will-change: transform;
}
/* keep coloured inline spans (e.g. red accents) intact when wrapped */
.reveal-word-i > span { display: inline-block; }

/* — Magnetic buttons — */
[data-magnetic] {
  will-change: transform;
  position: relative;
}
[data-magnetic] > * { position: relative; pointer-events: none; }

/* — 3D interactive tilt — */
.tilt-3d {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .4s cubic-bezier(.22,.61,.36,1);
}
.tilt-3d.is-tilting { transition: none; }

/* — Parallax / float helpers — */
.parallax-depth { will-change: transform; }

/* — Velocity-reactive marquee skew (applied to the section, not the track) — */
.ticker-section { will-change: transform; }

/* — Respect reduced motion — */
@media (prefers-reduced-motion: reduce) {
  .reveal-word > .reveal-word-i { transform: none !important; }
  .tilt-3d { transform: none !important; }
}

/* ============================================================
   CINEMATIC SCROLL  (cinematic.js — Three.js particle field)
   ============================================================ */

/* shared canvas element injected by Three.js */
.cine-canvas { display: block; }

/* ── Homepage pinned particle stage ─────────────────────── */
.cine-stage { position: relative; background: #07070c; }
.cine-stage-inner {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 40%, #12121e 0%, #07070c 60%, #050509 100%);
}
.cine-stage-canvas { position: absolute; inset: 0; z-index: 1; }
.cine-chapters {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center;
  pointer-events: none; padding: 0 24px;
}
.cine-chapter {
  grid-area: 1 / 1;
  text-align: center;
  opacity: 0;                 /* JS reveals one at a time — avoids stacked headlines before scroll */
  will-change: opacity, transform, filter;
}
.cine-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
}
.cine-h {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(40px, 8.5vw, 124px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: #f4f6fb;
  text-shadow: 0 8px 60px rgba(0,0,0,0.5);
}
.cine-scroll-hint {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.3em;
  text-transform: uppercase; color: rgba(255,255,255,0.4);
}
.cine-scroll-bar {
  width: 1px; height: 46px;
  background: linear-gradient(to bottom, var(--red), transparent);
  animation: cineScroll 1.8s ease-in-out infinite;
}
@keyframes cineScroll {
  0%   { transform: scaleY(0); transform-origin: top; }
  40%  { transform: scaleY(1); transform-origin: top; }
  60%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── Horizontal pinned capabilities scroll ──────────────── */
.h-section { position: relative; background: #07070c; }
.h-pin { position: relative; height: 100vh; overflow: hidden; }
.h-track {
  display: flex; height: 100vh; align-items: center;
  will-change: transform;
  padding: 0 8vw;
}
.h-panel {
  flex: 0 0 auto;
  width: 64vw; max-width: 720px;
  height: 100%;
  display: flex; align-items: center;
  padding-right: 4vw;
}
.h-panel.h-intro, .h-panel.h-outro { width: 80vw; max-width: 860px; }
.h-panel-inner {
  position: relative;
  width: 100%;
  padding: 56px 56px 60px;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(4px);
  will-change: transform, opacity;
}
.h-index, .h-num {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em;
  color: var(--red); display: block; margin-bottom: 24px;
}
.h-title {
  font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(36px, 5.5vw, 72px); line-height: 1.0; color: #f4f6fb;
  letter-spacing: -0.02em;
}
.h-lead { font-family: var(--font-mono); font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 24px; letter-spacing: 0.1em; }
.h-panel-title {
  font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(40px, 6vw, 84px); line-height: 1; color: #f4f6fb;
  margin-bottom: 20px; letter-spacing: -0.02em;
}
.h-panel-text {
  font-family: var(--font-sans); font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.6; color: rgba(231,237,245,0.72); max-width: 460px;
}
.h-stat {
  display: inline-block; margin-top: 28px;
  font-family: var(--font-mono); font-size: 13px;
  color: #fff; background: var(--red);
  padding: 8px 16px; border-radius: 100px;
}
.h-outro .cta-primary { margin-top: 28px; pointer-events: auto; }

/* ── Inner-page cinematic hero band ─────────────────────── */
.cine-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 20% 0%, #14141f 0%, #08080e 55%, #06060b 100%) !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  min-height: 56vh;
  display: flex; align-items: center;
}
.cine-ambient-canvas { position: absolute; inset: 0; z-index: 0; }
.cine-hero-content { position: relative; z-index: 1; width: 100%; }
.cine-hero .page-hero-h1 { color: #f4f6fb; }
.cine-hero .page-hero-sub { color: rgba(231,237,245,0.72); }
.cine-hero .page-hero-label { color: var(--red); }

/* navbar legibility over dark cine heroes (before scroll) */
body:has(.cine-hero) .navbar:not(.scrolled) .navbar-logo,
body:has(.cine-hero) .navbar:not(.scrolled) .navbar-links a,
body:has(.cine-hero) .navbar:not(.scrolled) .nav-login {
  color: rgba(255,255,255,0.82);
}
body:has(.cine-hero) .navbar:not(.scrolled) .nav-cta {
  background: #fff; color: #111827;
}

/* ── Reduced motion / no-JS fallback ────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .cine-stage-inner { height: auto; padding: 100px 24px; }
  .cine-chapters { position: static; display: block; }
  .cine-chapter { opacity: 1 !important; transform: none !important; filter: none !important; margin-bottom: 56px; }
  .h-pin { height: auto; overflow: visible; }
  .h-track { flex-wrap: wrap; height: auto; padding: 80px 24px; gap: 24px; }
  .h-panel, .h-panel.h-intro, .h-panel.h-outro { width: 100%; height: auto; }
  .cine-scroll-hint { display: none; }
}

@media (max-width: 768px) {
  .h-panel { width: 84vw; }
  .h-panel-inner { padding: 36px 28px 40px; }
  .cine-hero { min-height: 46vh; }
}

/* ============================================================
   CINEMATIC — experience polish (rail, progress, depth, seams)
   ============================================================ */

/* particle canvas sits behind horizontal track */
.h-section .cine-ambient-canvas { z-index: 0; }
.h-track { position: relative; z-index: 1; }

/* chapters are driven frame-by-frame from JS — no CSS transition (would fight scrub) */
.cine-chapter { will-change: opacity, transform, filter; }

/* smooth seams: light sections melt into the dark cinematic sections.
   Placed on the OUTER (non-pinned) element so they scroll away during the pin. */
.cine-stage::before, .h-section::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 180px;
  background: linear-gradient(to bottom, var(--bg-page) 0%, rgba(249,250,251,0) 100%);
  z-index: 6; pointer-events: none;
}
.cine-stage::after, .h-section::after {
  content: "";
  position: absolute; bottom: 0; left: 0; right: 0; height: 180px;
  background: linear-gradient(to top, var(--bg-page) 0%, rgba(249,250,251,0) 100%);
  z-index: 6; pointer-events: none;
}

/* vertical progress rail for the pinned stage */
.cine-rail {
  position: absolute; right: 38px; top: 50%; transform: translateY(-50%);
  z-index: 3; display: flex; flex-direction: column; gap: 14px;
}
.cine-rail-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
  transition: background .35s, transform .35s, box-shadow .35s;
}
.cine-rail-dot.on {
  background: var(--red);
  transform: scale(1.5);
  box-shadow: 0 0 16px rgba(214,63,94,0.7);
}

/* horizontal scroll progress bar */
.h-progress {
  position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  background: rgba(255,255,255,0.08); z-index: 3;
}
.h-progress > span {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--red), #ff7b94);
  transform-origin: left center; transform: scaleX(0);
}

@media (max-width: 768px) {
  .cine-rail { right: 16px; gap: 10px; }
}

/* ============================================================
   RESPONSIVE — full-site pass
   ============================================================ */

/* ── Tablet (769–1024): break dense grids to 2 columns ──── */
@media (min-width: 769px) and (max-width: 1024px) {
  .testimonials-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  /* pricing: 3 cols are too cramped here — stack & centre them */
  .pricing-cards { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .pricing-card.highlight { transform: none; }
  /* inner-page grids (defined in page <style> — override only in this range) */
  .values-grid, .team-grid, .steps-grid { grid-template-columns: 1fr 1fr !important; }
  .stat-row { grid-template-columns: 1fr 1fr !important; }
  .about-grid, .contact-grid { gap: 48px !important; }
  .cine-h { font-size: clamp(38px, 6.5vw, 84px); }
  .h-panel { width: 72vw; }
}

/* ── Cinematic sections on phones ───────────────────────── */
@media (max-width: 768px) {
  .cine-stage-inner { background: radial-gradient(130% 100% at 50% 38%, #16121f 0%, #08080f 60%, #050509 100%); }
  .cine-h { font-size: clamp(30px, 8.2vw, 52px); line-height: 1.02; }
  .cine-kicker { font-size: 10px; letter-spacing: 0.18em; margin-bottom: 14px; }
  .cine-chapters { padding: 0 20px; }
  .cine-rail { right: 14px; gap: 9px; }
  .cine-rail-dot { width: 6px; height: 6px; }

  .h-track { padding: 0 6vw; }
  .h-panel { width: 86vw; padding-right: 14px; }
  .h-panel.h-intro, .h-panel.h-outro { width: 92vw; max-width: none; }
  .h-panel-inner { padding: 32px 26px 36px; border-radius: 18px; }
  .h-title { font-size: clamp(30px, 8.4vw, 54px); }
  .h-panel-title { font-size: clamp(34px, 9.2vw, 56px); }
  .h-panel-text { font-size: 15px; }

  .cine-stage::before, .h-section::before,
  .cine-stage::after, .h-section::after { height: 110px; }

  /* better viewport fit on mobile browsers (URL bar) */
  .hero { min-height: 100svh; }
}

/* ── Small phones (≤480) ────────────────────────────────── */
@media (max-width: 480px) {
  .navbar { padding: 0 16px; height: 58px; }
  .mobile-menu { top: 58px; }
  .hero-inner { padding: 92px 18px 48px; }
  .hero-title { font-size: clamp(26px, 8.4vw, 38px); max-width: 100%; }
  .hero-subtitle { font-size: 15px; }
  .hero-badge { font-size: 10px; }
  .cta-primary, .cta-btn-primary, .lead-submit { width: 100%; text-align: center; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .cta-secondary { text-align: center; }

  .section-eyebrow, .page-hero-label { font-size: 11px; }
  .page-hero-h1 { font-size: clamp(28px, 8.5vw, 40px); }
  .demo-title, .testimonials-h2, .pricing-title, .leads-title { font-size: clamp(28px, 8.5vw, 42px) !important; }

  .testimonials-section, .demo-section, .demo-agent-section,
  .integrations-section, .pricing-section, .cta-section,
  .leads-section, .stats-section, .social-proof-section { padding: 48px 18px; }
  .footer { padding: 40px 18px 24px; }

  .cine-h { font-size: clamp(23px, 7.4vw, 36px); }
  .h-panel { width: 90vw; }
  .h-panel-inner { padding: 28px 22px 30px; }
  .h-title, .h-panel-title { font-size: clamp(30px, 10vw, 46px); }

  .chat-window { border-radius: 14px; }
  .chat-input { font-size: 16px; }              /* avoid iOS zoom-on-focus */
  .lead-field { font-size: 16px; }
}

/* ── Touch devices: disable hover-only flourishes ───────── */
@media (hover: none) {
  .cursor-ring, .cursor-dot { display: none; }
}

/* ============================================================
   BRAND LOGO IMAGES (navbar / footer / login)
   ============================================================ */
.navbar-logo { gap: 0; }
.navbar-logo img { height: 32px; width: auto; display: block; }
.footer-logo { gap: 0; }
.footer-logo img { height: 40px; width: auto; display: block; margin-bottom: 4px; }
.login-logo img { height: 38px; width: auto; display: block; }

@media (max-width: 768px) {
  .navbar-logo img { height: 26px; }
  .footer-logo img { height: 36px; }
}
@media (max-width: 480px) {
  .navbar-logo img { height: 23px; }
}

/* ============================================================
   HERO — animated terminal (right column)
   ============================================================ */
@media (min-width: 981px) {
  .hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 64px;
    align-items: center;
    min-height: 100vh;
    padding-top: 84px;
    padding-bottom: 60px;
  }
  /* smaller than the 96px default so the headline keeps its line breaks
     (no extra wrapping) and the terminal stays balanced beside it */
  .hero-content .hero-title { max-width: 100%; font-size: clamp(40px, 4.4vw, 64px); }
  .hero-content { min-width: 0; }
}
.hero-visual { min-width: 0; display: flex; justify-content: flex-end; align-self: center; }

.hero-terminal {
  width: 100%;
  max-width: 560px;
  background: #0c0c14;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(17,24,39,0.22), 0 8px 24px rgba(17,24,39,0.12);
  overflow: hidden;
  font-family: var(--font-code), monospace;
  will-change: transform;
}
.hero-terminal-chrome {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: #15151f;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ht-dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.ht-title {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ht-live {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.12em; color: #28C840; flex-shrink: 0;
}
.ht-live-dot { width: 6px; height: 6px; border-radius: 50%; background: #28C840; animation: livePulse 2s ease-in-out infinite; }
.hero-terminal-body {
  padding: 22px 22px 26px;
  min-height: 372px;
  font-size: 13.5px;
  line-height: 1.85;
  color: #cdd3df;
}
.term-line { white-space: pre-wrap; word-break: break-word; }
.term-line.cmd    { color: #e8edf5; }
.term-line.ok     { color: #3fd35b; }
.term-line.accent { color: #ff7a93; }
.term-line.sub    { color: #8b93a7; }
.term-line.done   { color: #fff; font-weight: 700; }
.term-caret {
  display: inline-block; width: 0.6em; margin-left: 1px;
  color: var(--red);
  animation: termBlink 1.05s steps(1) infinite;
}
@keyframes termBlink { 0%,50% { opacity: 1; } 51%,100% { opacity: 0; } }

@media (max-width: 980px) {
  .hero-visual { margin-top: 44px; justify-content: flex-start; }
  .hero-terminal { max-width: 100%; }
}
@media (max-width: 480px) {
  .hero-terminal-body { min-height: 264px; font-size: 12.5px; padding: 16px 16px 20px; }
  .ht-title { font-size: 11px; }
}

/* ============================================================
   PUBLIC COUNTER — live "actions traitées" pill in the navbar
   ============================================================ */
.nav-stat {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text-secondary);
  background: var(--bg-muted); border: 1px solid var(--border);
  padding: 6px 13px; border-radius: 100px; white-space: nowrap;
}
.nav-stat[hidden] { display: none; }
.nav-stat-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  flex-shrink: 0; animation: livePulse 2s ease-in-out infinite; }
.nav-stat b { color: var(--text-primary); font-weight: 700; }

@media (max-width: 1024px) { .nav-stat { display: none; } }
