/* =========================================
   CoreStack Systems — Stylesheet
   Theme: Deep Purple brand system (Hostinger-inspired)
   Fonts: Poppins 800 (display) / DM Sans (body)
   ========================================= */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          rgba(12,20,40,0.50);
  --bg-card:     rgba(18,26,48,0.50);
  --bg-card-alt: rgba(24,34,58,0.50);
  --bg-dark:     rgba(14,22,38,0.50);
  --text:        #E8EAF0;
  --text-mid:    rgba(232,234,240,0.70);
  --text-soft:   rgba(232,234,240,0.45);
  --border:      rgba(13,197,180,0.12);
  --border-mid:  rgba(13,197,180,0.18);
  --teal:        #0DC5B4;
  --teal-mint:   #3DD9CA;
  --teal-deep:   #099B8E;
  --teal-glow:   rgba(13, 197, 180, 0.12);
  --radius-pill: 999px;
  --radius-card: 16px;
  --max-w:       1200px;
  --section-pad: 80px 24px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0E1628;
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Ensure all content sits above the fixed background canvas */
nav, section, div.stack-ticker-wrap, footer, .faq-section, .chat-wrapper {
  position: relative;
  z-index: 1;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* --- Typography --- */
.label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
}

h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(46px, 6.5vw, 76px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--text);
}

h2 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text);
}

h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

p { color: var(--text-mid); }

/* --- Buttons --- */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--teal);
  color: #1C2B3A;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
}
.btn-pill:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-pill-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  color: rgba(232,234,240,0.75);
  border: 1.5px solid rgba(232,234,240,0.22);
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  width: 100%;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.btn-pill-outline:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-1px); }

.btn-lg { padding: 16px 36px; font-size: 15px; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-cta .btn-pill,
.hero-cta .btn-pill-outline {
  width: auto;
  height: 54px;
  padding: 0 36px;
  font-size: 15px;
}

/* --- Layout Helpers --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section-pad { padding: var(--section-pad); }

/* =========================================
   NAV
   ========================================= */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7,13,28,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.logo-rule {
  width: 1px;
  height: 32px;
  background: rgba(28,43,58,0.08);
}

.logo-wordmark .wordmark-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
  line-height: 1;
}
.logo-wordmark .core  { color: var(--text); }
.logo-wordmark .stack { color: var(--teal); }
.logo-wordmark .wordmark-sub {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--teal);
  opacity: 1;
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a:not(.btn-pill) {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  transition: color 0.15s;
}
.nav-links a:not(.btn-pill):hover { color: var(--text); }

/* =========================================
   HERO — Full-bleed 3D Interactive
   ========================================= */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  perspective: 1200px;
  perspective-origin: 50% 50%;
  background: rgba(7,13,28,0.85);
}

/* Interactive canvas background — full-page */
#bgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* Hero outline button override for dark background */
.hero .btn-pill-outline {
  color: rgba(255,255,255,0.75);
  border-color: rgba(255,255,255,0.22);
}
.hero .btn-pill-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* Industry strip pill override for dark background */
.industry-strip span:not(.strip-label) {
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
}

/* 3D background image */

.hero-bg {
  position: absolute;
  inset: -8%;
  transform-origin: center center;
  will-change: transform;
  z-index: 0;
  overflow: hidden;
}

spline-viewer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform-origin: center center;
  will-change: transform;
  z-index: 0;
}

.hero-bg canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* Dark gradient overlay for text readability */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,  rgba(22,11,46,0.92) 0%, rgba(22,11,46,0.40) 55%, rgba(22,11,46,0.10) 100%),
    linear-gradient(to bottom, rgba(22,11,46,0.60) 0%, transparent 25%, transparent 70%, rgba(22,11,46,0.85) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Cursor glow */
.hero-cursor-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13,197,180,0.10) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.3s;
}

/* Floating particles */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.hero-particle {
  position: absolute;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0;
  animation: heroFloat var(--dur) var(--delay) infinite ease-in-out;
}

@keyframes heroFloat {
  0%   { opacity: 0;       transform: translateY(0)     scale(1); }
  20%  { opacity: var(--op); }
  80%  { opacity: var(--op); }
  100% { opacity: 0;       transform: translateY(-60px) scale(0.6); }
}

/* Content layer */
.hero-inner {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 24px 48px;
  will-change: transform;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}

.hero-text { display: flex; flex-direction: column; gap: 28px; }

.hero-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.40);
}

.htb-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0DC5B4;
  flex-shrink: 0;
  animation: dPulse 2.5s ease-out infinite;
}

/* ===================== HERO VISUAL — 3D DASHBOARD ===================== */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 28px 40px 12px; /* breathing room for overflowing float cards */
}

.dash-scene {
  position: relative;
  width: 100%;
  max-width: 400px;
  transform: perspective(900px) rotateY(-10deg) rotateX(4deg);
  animation: dashFloat 7s ease-in-out infinite;
  filter: drop-shadow(0 28px 56px rgba(13,197,180,0.10));
}

@keyframes dashFloat {
  0%,100% { transform: perspective(900px) rotateY(-10deg) rotateX(4deg) translateY(0px); }
  50%      { transform: perspective(900px) rotateY(-10deg) rotateX(4deg) translateY(-13px); }
}

.dash-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse at 55% 55%, rgba(13,197,180,0.16) 0%, transparent 65%);
  filter: blur(28px);
  pointer-events: none;
}

/* Main panel */
.dash-main {
  position: relative;
  z-index: 1;
  background: rgba(6, 13, 28, 0.94);
  border: 1px solid rgba(13,197,180,0.18);
  border-top: 2px solid #0DC5B4;
  border-radius: 10px;
  padding: 18px 18px 16px;
  backdrop-filter: blur(12px);
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.dash-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  color: rgba(255,255,255,0.50);
  text-transform: uppercase;
}

.dash-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0DC5B4;
  flex-shrink: 0;
  animation: dPulse 2.2s ease-out infinite;
}

@keyframes dPulse {
  0%   { box-shadow: 0 0 0 0 rgba(13,197,180,0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(13,197,180,0); }
  100% { box-shadow: 0 0 0 0 rgba(13,197,180,0); }
}

.dash-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #0DC5B4;
  background: rgba(13,197,180,0.10);
  border: 1px solid rgba(13,197,180,0.28);
  border-radius: 4px;
  padding: 2px 7px;
}

.dash-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.dash-metric {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 7px;
  padding: 9px 9px 8px;
}

.dm-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1;
  margin-bottom: 4px;
}

.dm-label {
  font-size: 9px;
  color: rgba(255,255,255,0.38);
  letter-spacing: 0.03em;
  margin-bottom: 5px;
}

.dm-delta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px;
  color: #0DC5B4;
}

.dm-local { color: rgba(255,255,255,0.28); }

.dash-chart { margin-bottom: 13px; }

.dc-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px;
  color: rgba(255,255,255,0.28);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.dc-svg {
  width: 100%;
  height: 50px;
  display: block;
}

.dc-tip { animation: dcTip 2s ease-in-out infinite; }

@keyframes dcTip {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

.dash-layers { display: flex; flex-direction: column; gap: 7px; }

.dl-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9.5px;
}

.dl-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #0DC5B4;
  flex-shrink: 0;
}

.dl-name {
  flex: 1;
  font-family: 'JetBrains Mono', monospace;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.03em;
}

.dl-ok {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px;
  color: #0DC5B4;
}

/* Floating cards */
.dash-float {
  position: absolute;
  background: rgba(6, 13, 28, 0.96);
  border: 1px solid rgba(13,197,180,0.22);
  border-radius: 9px;
  padding: 11px 14px;
  backdrop-filter: blur(16px);
  z-index: 2;
  box-shadow: 0 8px 28px rgba(0,0,0,0.45), 0 0 0 1px rgba(13,197,180,0.06);
}

.df-top {
  top: -40px;
  right: -18px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: dfloat1 5.2s 0.8s ease-in-out infinite;
}

@keyframes dfloat1 {
  0%,100% { transform: translateY(0px); }
  50%      { transform: translateY(-7px); }
}

.df-count-col { line-height: 1; }

.df-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 24px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1;
}

.df-label {
  font-size: 8.5px;
  color: rgba(255,255,255,0.38);
  margin-top: 3px;
}

.df-pills { display: flex; flex-direction: column; gap: 3px; }

.df-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 7.5px;
  color: #0DC5B4;
  background: rgba(13,197,180,0.09);
  border: 1px solid rgba(13,197,180,0.20);
  border-radius: 3px;
  padding: 2px 6px;
  white-space: nowrap;
}

.df-bottom {
  bottom: -32px;
  left: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: dfloat2 5.8s 0.3s ease-in-out infinite;
}

@keyframes dfloat2 {
  0%,100% { transform: translateY(0px); }
  50%      { transform: translateY(-5px); }
}

.df-ring-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.df-ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.df-ring-pct {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  color: #0DC5B4;
  position: relative;
  z-index: 1;
}

.df-ring-info { line-height: 1; }

.df-value-sm {
  font-family: 'JetBrains Mono', monospace;
  font-size: 17px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1;
}

.df-value-sm em {
  font-style: normal;
  font-size: 10px;
  color: rgba(255,255,255,0.38);
}

.hero-text h1 { color: #FFFFFF; }
.hero-accent { color: var(--teal); }

.hero-sub {
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255,255,255,0.72);
  max-width: 480px;
}

.hero-meta p {
  font-size: 14px;
  color: rgba(255,255,255,0.38);
  line-height: 1.8;
}

/* Industry strip */
.industry-strip {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px 24px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.industry-strip .strip-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  margin-right: 8px;
}

.industry-strip span:not(.strip-label) {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  padding: 5px 14px;
  border: 1px solid rgba(15,17,23,0.12);
  border-radius: var(--radius-pill);
  background: rgba(15,17,23,0.04);
}

/* =========================================
   EVIDENCE — WHY AIOS
   ========================================= */
.evidence {
  background: rgba(9,15,34,0.88);
  background-image:
    radial-gradient(ellipse 50% 60% at 100% 30%, rgba(13,197,180,0.07) 0%, transparent 65%),
    radial-gradient(ellipse 40% 50% at 0%   70%, rgba(9,155,142,0.05)  0%, transparent 60%);
  border-bottom: 1px solid rgba(13,197,180,0.10);
  padding: var(--section-pad);
}

.evidence-inner { max-width: var(--max-w); margin: 0 auto; }

.evidence-header { max-width: 620px; margin-bottom: 56px; }
.evidence-header h2 { color: #fff; }
.evidence-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.52);
  margin-top: 16px;
  line-height: 1.65;
}

/* ── 4 big stats ── */
.ev-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(13,197,180,0.14);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.ev-stat {
  padding: 36px 28px;
  border-right: 1px solid rgba(13,197,180,0.10);
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(13,197,180,0.02);
  transition: background 0.2s;
}
.ev-stat:last-child { border-right: none; }
.ev-stat:hover { background: rgba(13,197,180,0.055); }

.ev-val {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--teal);
  line-height: 1;
}

.ev-desc {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255,255,255,0.50);
  flex: 1;
}

.ev-source {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(13,197,180,0.40);
  margin-top: 2px;
}

/* ── 3 insight cards ── */
.ev-insights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ev-insight {
  background: rgba(7,13,28,0.55);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.22s;
}
.ev-insight:hover { border-color: rgba(13,197,180,0.28); }

.ev-insight-head { display: flex; align-items: center; gap: 12px; }

.ev-insight-val {
  font-family: 'Poppins', sans-serif;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--teal);
  line-height: 1;
}

.ev-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.ev-tag--teal {
  background: rgba(13,197,180,0.12);
  color: var(--teal);
  border: 1px solid rgba(13,197,180,0.22);
}
.ev-tag--red {
  background: rgba(239,68,68,0.10);
  color: #f87171;
  border: 1px solid rgba(239,68,68,0.22);
}

.ev-insight h3 { font-size: 16px; color: rgba(255,255,255,0.88); line-height: 1.4; }
.ev-insight p  { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.48); flex: 1; }
.ev-insight .ev-source { margin-top: 0; }

@media (max-width: 960px) {
  .ev-stats { grid-template-columns: 1fr 1fr; }
  .ev-stat { border-right: none; border-bottom: 1px solid rgba(13,197,180,0.10); }
  .ev-stat:nth-child(odd) { border-right: 1px solid rgba(13,197,180,0.10); }
  .ev-stat:last-child, .ev-stat:nth-last-child(2):nth-child(odd) { border-bottom: none; }
  .ev-insights { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .ev-stats { grid-template-columns: 1fr; }
  .ev-stat { border-right: none !important; border-bottom: 1px solid rgba(13,197,180,0.10); }
  .ev-stat:last-child { border-bottom: none; }
  .ev-insights { grid-template-columns: 1fr; }
}

/* =========================================
   INSIGHT CARDS (after How We Work)
   ========================================= */
.insight-cards {
  padding: 80px 24px;
  background: rgba(9,15,34,0.88);
  background-image:
    radial-gradient(ellipse 55% 50% at 0% 50%, rgba(13,197,180,0.06) 0%, transparent 65%),
    radial-gradient(ellipse 40% 50% at 100% 50%, rgba(9,155,142,0.05) 0%, transparent 65%);
  border-bottom: 1px solid rgba(13,197,180,0.10);
}

.insight-cards-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ic-card {
  background: rgba(7,13,28,0.60);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.22s, transform 0.22s;
}
.ic-card:hover {
  border-color: rgba(13,197,180,0.28);
  transform: translateY(-3px);
}
.ic-card--risk { border-color: rgba(239,68,68,0.12); }
.ic-card--risk:hover { border-color: rgba(239,68,68,0.32); }

.ic-visual {
  padding: 28px 28px 0;
  background: rgba(13,197,180,0.02);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.ic-card--risk .ic-visual { background: rgba(239,68,68,0.02); }

.ic-content {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.ic-content h3 { font-size: 16px; color: rgba(255,255,255,0.88); line-height: 1.4; }
.ic-content p  { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.48); flex: 1; }
.ic-content .ev-source { margin-top: 4px; }

@media (max-width: 860px) {
  .insight-cards-inner { grid-template-columns: 1fr; }
}

/* =========================================
   STACK TICKER
   ========================================= */
.stack-ticker-wrap {
  position: relative;
  overflow: hidden;
  padding: 24px 0;
  border-top: 1px solid rgba(13,197,180,0.18);
  border-bottom: 1px solid rgba(13,197,180,0.12);
  background: rgba(6,12,26,0.88);
}

.stack-ticker-track {
  display: flex;
  width: max-content;
  gap: 56px;
  align-items: center;
  animation: stackTicker 28s linear infinite;
}

.stack-ticker-track:hover {
  animation-play-state: paused;
}

@keyframes stackTicker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.stack-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  opacity: 0.72;
  transition: opacity 0.25s;
}

.stack-logo:hover { opacity: 1; }

.stack-logo img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.stack-logo span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.88);
}

/* Edge fade */
.stack-ticker-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.stack-ticker-fade--left {
  left: 0;
  background: linear-gradient(to right, #060C1A 0%, transparent 100%);
}

.stack-ticker-fade--right {
  right: 0;
  background: linear-gradient(to left, #060C1A 0%, transparent 100%);
}

/* =========================================
   PROBLEM
   ========================================= */
.problem {
  padding: var(--section-pad);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.problem-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.problem-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 8px;
}

.problem-body p { font-size: 18px; line-height: 1.7; }

.problem-punch {
  font-size: 22px !important;
  font-weight: 700;
  color: var(--teal) !important;
  margin-top: 8px;
  font-family: 'Poppins', sans-serif;
}

/* =========================================
   SOLUTION
   ========================================= */
.solution {
  padding: var(--section-pad);
  padding-top: 80px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.solution-inner { max-width: var(--max-w); margin: 0 auto; }

.solution-top {
  max-width: 640px;
  margin-bottom: 56px;
}

.solution-text { display: flex; flex-direction: column; gap: 24px; }
.solution-desc { padding-top: 0; }
.solution-desc p { font-size: 18px; line-height: 1.7; }

.solution-tagline {
  font-size: 16px !important;
  font-weight: 600;
  color: var(--teal) !important;
  margin-top: 16px;
  font-family: 'Poppins', sans-serif;
}

.deliverables {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.deliverable-card {
  background: var(--bg-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.2s;
}
.deliverable-card:hover { background: var(--bg-card-alt); }

.deliverable-card .d-num {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--teal);
}

.deliverable-card h3 { font-size: 15px; }

/* =========================================
   PROCESS VISUALISER
   ========================================= */
#processViz {
  width: 100%;
  height: 480px;
  margin-bottom: 56px;
  position: relative;
}

#processViz canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* =========================================
   PROCESS FLOW
   ========================================= */
.process-flow {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.process-phase {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.phase-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  opacity: 0.75;
}

.process-steps-row {
  display: grid;
  grid-template-columns: 1fr 40px 1fr 40px 1fr;
  align-items: center;
  gap: 0;
}

.process-step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  align-self: stretch;
  transition: border-color 0.2s, background 0.2s;
}
.process-step-card:hover {
  border-color: var(--border-mid);
  background: var(--bg-card-alt);
}
.process-step-card.ps-highlight {
  border-color: rgba(13,197,180,0.25);
  background-image: radial-gradient(ellipse at 100% 0%, rgba(13,197,180,0.07) 0%, transparent 60%);
}

.ps-icon {
  width: 42px;
  height: 42px;
  background: var(--teal-glow);
  border: 1px solid rgba(13,197,180,0.18);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  flex-shrink: 0;
}

.ps-num {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-soft);
  margin-top: 4px;
}

.process-step-card h3 { font-size: 16px; margin-top: 2px; }
.process-step-card p  { font-size: 14px; line-height: 1.65; }

.ps-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  opacity: 0.3;
}

/* =========================================
   HOW WE WORK
   ========================================= */
.how {
  padding: var(--section-pad);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.how-inner { max-width: var(--max-w); margin: 0 auto; }

.how-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 56px;
  align-items: end;
}

.how-header p { font-size: 18px; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.step {
  background: var(--bg-card);
  padding: 28px;
  transition: background 0.2s;
}
.step:hover { background: var(--bg-card-alt); }

.step-num {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 16px;
}

.step h3 { margin-bottom: 8px; }
.step p { font-size: 14px; line-height: 1.65; }

/* =========================================
   CASE STUDIES
   ========================================= */
#case-studies {
  padding: var(--section-pad);
  border-bottom: 1px solid var(--border);
}

.cases-inner { max-width: var(--max-w); margin: 0 auto; }

.cases-header {
  margin-bottom: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
}
.cases-header p { font-size: 18px; }

.cases-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background-image: radial-gradient(ellipse at 100% 0%, rgba(13,197,180,0.06) 0%, transparent 50%);
}

.case-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

.case-card h3 { font-size: 20px; line-height: 1.3; }

.case-block { display: flex; flex-direction: column; gap: 6px; }
.case-block-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.case-block p { font-size: 14px; line-height: 1.65; }

.case-outcomes { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.case-outcome {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-mid);
}
.case-outcome::before {
  content: '↗';
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
  flex-shrink: 0;
  margin-top: 1px;
}

.case-footer {
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-soft);
}

/* =========================================
   TECH STACK
   ========================================= */
.tech {
  padding: var(--section-pad);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.tech-inner { max-width: var(--max-w); margin: 0 auto; }

.tech-header { margin-bottom: 56px; }
.tech-header p { font-size: 18px; max-width: 540px; margin-top: 12px; }

.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.tech-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
}

.tech-category h3 {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
  font-family: 'DM Sans', sans-serif;
}

.tech-list { display: flex; flex-direction: column; gap: 0; }
.tech-item {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.tech-item:last-child { border-bottom: none; }
a.tech-item { display: block; transition: color 0.2s, padding-left 0.2s; }
a.tech-item:hover { color: var(--teal); padding-left: 6px; }
.tech-item--highlight {
  color: var(--teal);
  font-weight: 600;
}

/* =========================================
   PRICING
   ========================================= */
.pricing {
  padding: var(--section-pad);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.pricing-inner { max-width: var(--max-w); margin: 0 auto; }

.pricing-header { margin-bottom: 56px; }
.pricing-header p { font-size: 18px; max-width: 540px; margin-top: 12px; }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pricing-card.featured {
  background: var(--teal);
  border-color: var(--teal);
}

.pricing-card.featured h3 { color: #ffffff; }
.pricing-card.featured p { color: rgba(255,255,255,0.72); }
.pricing-card.featured .pricing-price { color: #ffffff; }
.pricing-card.featured .pricing-feat { color: rgba(255,255,255,0.80); }
.pricing-card.featured .pricing-feat::before { color: #ffffff; }
.pricing-card.featured .feat-divider { border-color: rgba(255,255,255,0.18); }

.pricing-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(15,17,23,0.18);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  width: fit-content;
}

.pricing-top { display: flex; flex-direction: column; gap: 8px; }

.pricing-price {
  font-family: 'Poppins', sans-serif;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}

.pricing-price span {
  font-size: 16px;
  font-weight: 400;
  opacity: 0.5;
}

.pricing-desc { font-size: 14px; line-height: 1.55; }

.feat-divider {
  border: none;
  border-top: 1px solid var(--border);
}

.pricing-feats { display: flex; flex-direction: column; gap: 10px; }

.pricing-feat {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.4;
}
.pricing-feat::before {
  content: '✓';
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
  flex-shrink: 0;
}

.pricing-cta { margin-top: auto; }

.btn-pill-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 6px;
  background: #0F1117;
  color: var(--teal);
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  transition: opacity 0.2s;
}
.btn-pill-dark:hover { opacity: 0.85; }

.pricing-addon {
  margin-top: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.addon-text h3 { font-size: 16px; margin-bottom: 4px; }
.addon-text p { font-size: 13px; }

.addon-price {
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--teal);
  white-space: nowrap;
}

/* =========================================
   FAQ
   ========================================= */
.faq {
  padding: var(--section-pad);
  border-bottom: 1px solid rgba(13,197,180,0.12);
  background: rgba(7,13,28,0.88);
  background-image:
    radial-gradient(ellipse 55% 45% at 0% 0%,   rgba(13,197,180,0.09) 0%, transparent 68%),
    radial-gradient(ellipse 45% 55% at 100% 100%, rgba(9,155,142,0.07) 0%, transparent 68%);
}

.faq-inner { max-width: var(--max-w); margin: 0 auto; }

.faq-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 56px;
}

.faq-header h2 { color: #ffffff; }
.faq-header p  { font-size: 18px; color: rgba(255,255,255,0.5); }

.faq-list {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.faq-item:last-child { border-bottom: none; }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: transparent;
  border: none;
  padding: 26px 32px;
  cursor: pointer;
  text-align: left;
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: rgba(255,255,255,0.88);
  line-height: 1.4;
  transition: color 0.2s, background 0.2s;
}
.faq-q:hover { background: rgba(13,197,180,0.04); color: rgba(255,255,255,0.95); }
.faq-item.open .faq-q { color: var(--teal); background: rgba(13,197,180,0.06); }

.faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.2);
  position: relative;
  transition: border-color 0.2s, transform 0.3s;
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: rgba(232,234,240,0.40);
  transform: translate(-50%, -50%);
  transition: opacity 0.2s, background 0.2s;
}
.faq-icon::before { width: 10px; height: 1.5px; }
.faq-icon::after  { width: 1.5px; height: 10px; }

.faq-item.open .faq-icon {
  border-color: var(--teal);
  transform: rotate(45deg);
}
.faq-item.open .faq-icon::before,
.faq-item.open .faq-icon::after { background: var(--teal); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s ease, padding 0.2s ease;
  padding: 0 32px;
}
.faq-item.open .faq-a {
  max-height: 300px;
  padding: 0 32px 26px;
}

.faq-a p {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255,255,255,0.52);
  border-left: 2px solid var(--teal);
  padding-left: 20px;
}

/* =========================================
   ABOUT
   ========================================= */
#about {
  padding: var(--section-pad);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.about-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-left p { font-size: 18px; line-height: 1.7; margin-top: 24px; }

.about-beliefs { display: flex; flex-direction: column; gap: 16px; padding-top: 8px; }

.belief {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  transition: border-color 0.2s;
}
.belief:hover { border-color: var(--border-mid); }

.belief-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

.belief p { font-size: 15px; color: var(--text-mid); }

/* =========================================
   CLIENTS
   ========================================= */
.clients {
  padding: var(--section-pad);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.clients-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.clients-left { display: flex; flex-direction: column; gap: 32px; }

.fit-list { display: flex; flex-direction: column; gap: 14px; }
.fit-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.5;
}
.fit-item::before {
  content: '→';
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.clients-right { padding-top: 8px; }
.clients-right h3 {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
  font-family: 'DM Sans', sans-serif;
}

.industry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.industry-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
}

/* =========================================
   REQUIREMENTS SNAPSHOT
   ========================================= */
.snapshot {
  padding: var(--section-pad);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  background-image: radial-gradient(ellipse at 30% 50%, rgba(13,197,180,0.06) 0%, transparent 60%);
}

.snapshot-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.snapshot-left p { font-size: 18px; color: var(--text-mid); margin: 16px 0 32px; }

.review-list { display: flex; flex-direction: column; gap: 12px; }
.review-item {
  font-size: 14px;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}
.review-item::before {
  content: '';
  width: 4px; height: 4px;
  background: var(--teal);
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0.6;
}

.snapshot-form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  text-transform: uppercase;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg-dark);
  border: 1px solid var(--border-mid);
  border-radius: 10px;
  padding: 12px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-soft); }

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--teal); }

.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select option { background: #0F1428; color: #E8EAF0; }

.form-submit {
  margin-top: 8px;
  background: var(--teal);
  color: #ffffff;
  padding: 16px 28px;
  border-radius: var(--radius-pill);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  width: 100%;
}
.form-submit:hover { opacity: 0.88; }

/* =========================================
   CONTACT CTA
   ========================================= */
#contact {
  padding: var(--section-pad);
  border-bottom: 1px solid var(--border);
  text-align: center;
  background: var(--bg);
  background-image: radial-gradient(ellipse at 50% 100%, rgba(13,197,180,0.10) 0%, transparent 60%);
}

.contact-inner { max-width: 660px; margin: 0 auto; }
.contact-inner p { font-size: 18px; margin-bottom: 36px; }

.contact-sub {
  font-size: 13px !important;
  color: var(--text-soft) !important;
  margin-top: 20px;
  margin-bottom: 0 !important;
  line-height: 1.8;
}

/* =========================================
   INNER PAGE HERO (case studies, policy, etc.)
   ========================================= */
.page-hero {
  padding: 80px 24px 64px;
  border-bottom: 1px solid var(--border);
  background-image: radial-gradient(ellipse at 60% 0%, rgba(13,197,180,0.07) 0%, transparent 55%);
}

.page-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 680px;
}

.page-hero-inner h1 { font-size: clamp(38px, 5vw, 60px); }
.page-hero-inner p  { font-size: 18px; line-height: 1.7; max-width: 520px; }

.cases-page {
  padding: var(--section-pad);
  border-bottom: 1px solid var(--border);
}

.cases-page .cases-inner { max-width: var(--max-w); margin: 0 auto; }
.cases-page .cases-grid  { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

@media (max-width: 900px) {
  .page-hero { padding: 64px 20px 48px; }
  .cases-page .cases-grid { grid-template-columns: 1fr; }
}

/* =========================================
   PRIVACY POLICY PAGE
   ========================================= */
.policy-body {
  padding: var(--section-pad);
  border-bottom: 1px solid var(--border);
}

.policy-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.policy-section h2 {
  font-size: 22px;
  margin-bottom: 14px;
  color: var(--text);
}

.policy-section p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-mid);
  margin-bottom: 12px;
}

.policy-section ul {
  margin: 12px 0 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.policy-section ul li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-mid);
}

/* =========================================
   FOOTER
   ========================================= */
footer {
  padding: 36px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links { display: flex; gap: 28px; }
.footer-links a { font-size: 13px; color: var(--text-soft); transition: color 0.15s; }
.footer-links a:hover { color: var(--teal); }

.footer-copy { font-size: 13px; color: var(--text-soft); }

/* =========================================
   CHATBOT WIDGET
   ========================================= */
#css-chat {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
}

/* Floating button */
.chat-bubble {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--teal);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1C2B3A;
  box-shadow: 0 4px 24px rgba(13,197,180,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}
.chat-bubble:hover { transform: scale(1.07); box-shadow: 0 6px 30px rgba(13,197,180,0.45); }
.chat-bubble-close { display: none; }
#css-chat.chat-open .chat-bubble-icon  { display: none; }
#css-chat.chat-open .chat-bubble-close { display: block; }

/* Panel */
.chat-panel {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  width: 340px;
  max-height: 520px;
  background: #0F1428;
  border: 1px solid var(--border-mid);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
  transform: translateY(12px) scale(0.97);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
#css-chat.chat-open .chat-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* Header */
.chat-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(13,197,180,0.05);
  flex-shrink: 0;
}
.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-avatar {
  width: 36px;
  height: 36px;
  background: var(--teal-glow);
  border: 1px solid rgba(13,197,180,0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-header-name {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.chat-header-status {
  font-size: 11px;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}
.chat-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
}

/* Messages */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.08) transparent;
}

.chat-msg {
  display: flex;
  max-width: 88%;
}
.chat-msg--user {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.chat-msg--bot { align-self: flex-start; }

.chat-bubble-msg {
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.6;
}
.chat-msg--bot .chat-bubble-msg {
  background: rgba(13,197,180,0.08);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.chat-msg--user .chat-bubble-msg {
  background: var(--teal);
  color: #1C2B3A;
  font-weight: 500;
  border-bottom-right-radius: 4px;
}
.chat-bubble-msg p { color: inherit; font-size: 13.5px; margin-bottom: 4px; }
.chat-bubble-msg p:last-child { margin-bottom: 0; }

/* Typing indicator */
.chat-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 14px 16px;
}
.chat-typing span {
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
  opacity: 0.4;
  animation: typingPulse 1.2s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingPulse {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1); }
}

/* Suggestions */
.chat-suggestions {
  padding: 8px 12px 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex-shrink: 0;
}
.chat-suggestion {
  background: transparent;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-pill);
  color: var(--text-mid);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.chat-suggestion:hover { border-color: var(--teal); color: var(--teal); }

/* Input */
.chat-input-wrap {
  padding: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}
#chatInput {
  flex: 1;
  background: rgba(13,197,180,0.06);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
#chatInput:focus { border-color: var(--teal); }
#chatInput::placeholder { color: var(--text-soft); }
#chatSend {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--teal);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1C2B3A;
  flex-shrink: 0;
  transition: opacity 0.15s;
}
#chatSend:hover { opacity: 0.85; }

@media (max-width: 600px) {
  #css-chat { bottom: 16px; right: 16px; }
  .chat-panel { width: calc(100vw - 32px); }
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
  :root { --section-pad: 52px 20px; }
  h1 { font-size: clamp(38px, 10vw, 60px); }
  h2 { font-size: clamp(28px, 7vw, 44px); }

  .problem-inner,
  .how-header,
  .cases-header,
  .faq-header,
  .about-inner,
  .clients-inner,
  .snapshot-inner { grid-template-columns: 1fr; gap: 40px; }

  .hero-inner { padding: 100px 20px 48px; grid-template-columns: 1fr; }
  .hero-visual { display: none; }

  .deliverables,
  .steps { grid-template-columns: 1fr 1fr; }

  .tech-grid { grid-template-columns: 1fr 1fr; }
  .insight-cards-inner { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; }
  .cases-grid { grid-template-columns: 1fr; }
  .industry-grid { grid-template-columns: 1fr 1fr; }
  .pricing-addon { flex-direction: column; align-items: flex-start; }
  .nav-links a:not(.btn-pill) { display: none; }
}

@media (max-width: 600px) {
  .deliverables,
  .steps,
  .tech-grid,
  .industry-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .faq-q { padding: 20px; font-size: 15px; }
  .faq-a { padding: 0 20px; }
  .faq-item.open .faq-a { padding: 0 20px 20px; }
  .contact-steps { flex-direction: column; gap: 16px; }
  .cs-arrow { transform: rotate(90deg); }
}

/* ===================== SCROLL CUE ===================== */
.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scroll-cue-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(13,197,180,0.7), rgba(13,197,180,0));
  animation: scrollCueDrop 1.8s ease-in-out infinite;
  transform-origin: top center;
}

@keyframes scrollCueDrop {
  0%   { transform: scaleY(0); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ===================== DELIVERABLE DESCRIPTIONS ===================== */
.deliverable-card p {
  font-size: 13.5px;
  color: var(--text-mid);
  line-height: 1.55;
  margin-top: 6px;
}

/* ===================== PRICING GST ===================== */
.pricing-gst {
  font-size: 11px;
  color: rgba(255,255,255,0.38);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.06em;
  margin-top: -6px;
  margin-bottom: 10px;
}

/* ===================== COMPARISON TABLE ===================== */
.compare {
  padding: 80px 24px;
  background: rgba(7,13,28,0.88);
  border-bottom: 1px solid var(--border);
}

.compare-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.compare-header {
  margin-bottom: 56px;
}

.compare-header h2 { margin-bottom: 8px; }

.compare-header p {
  font-size: 16px;
  color: var(--text-mid);
}

.compare-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.compare-table th,
.compare-table td {
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare-table thead th {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mid);
  padding-bottom: 16px;
}

.compare-table thead th.col-aios {
  color: var(--teal);
}

.compare-table td:first-child {
  color: var(--text);
  font-weight: 500;
}

.compare-table .col-aios {
  background: rgba(13,197,180,0.04);
  border-left: 1px solid rgba(13,197,180,0.15);
  border-right: 1px solid rgba(13,197,180,0.15);
}

.compare-table thead th.col-aios {
  border-top: 2px solid var(--teal);
}

.c-good {
  color: var(--teal);
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
}

.c-bad {
  color: rgba(220, 80, 80, 0.75);
  font-weight: 500;
}

.c-mid {
  color: var(--text-mid);
}

/* ===================== ABOUT — FOUNDER ===================== */
.about-founder {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.founder-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--teal-glow);
  border: 1px solid rgba(13,197,180,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
  flex-shrink: 0;
}

.founder-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.founder-info strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.founder-info span {
  font-size: 13px;
  color: var(--text-mid);
}

.founder-bio {
  font-size: 13px !important;
  color: var(--text-mid);
  line-height: 1.5;
  margin-top: 4px;
}

.founder-linkedin {
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
  margin-top: 6px;
  display: inline-block;
}

.founder-linkedin:hover { text-decoration: underline; }

/* ===================== CONTACT STEPS ===================== */
.contact-steps {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 36px;
  padding: 28px 32px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.contact-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
  text-align: left;
}

.cs-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(13,197,180,0.15);
  border: 1px solid rgba(13,197,180,0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--teal);
  flex-shrink: 0;
}

.contact-step strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  margin-bottom: 3px;
}

.contact-step p {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  margin: 0;
  line-height: 1.4;
}

.cs-arrow {
  font-size: 18px;
  color: rgba(13,197,180,0.40);
  flex-shrink: 0;
}

/* ===================== FORM SUCCESS STATE ===================== */
.form-success {
  display: none;
  padding: 16px 20px;
  background: rgba(13,197,180,0.10);
  border: 1px solid rgba(13,197,180,0.25);
  border-radius: 8px;
  font-size: 14px;
  color: var(--teal);
  text-align: center;
}

.form-success.visible { display: block; }
