/* ═══════════════════════════════════════════════════════════
   main.css — TaalumaFlow website styles
   All colours are CSS custom properties so dark/light toggle
   is a single attribute swap on <html>.
═══════════════════════════════════════════════════════════ */

/* ── Theme tokens ─────────────────────────────────────────── */
:root {
  --tr: 0.35s cubic-bezier(.4,0,.2,1);
}

[data-theme="dark"] {
  --bg:       #06080F;
  --bg2:      #0F1628;
  --bg3:      #161E35;
  --surface:  rgba(255,255,255,0.04);
  --surface2: rgba(255,255,255,0.07);
  --border:   rgba(255,255,255,0.08);
  --border2:  rgba(79,142,247,0.3);
  --text:     #F0F4FF;
  --text2:    #A8B8D8;
  --text3:    #5A7080;
  --blue:     #4F8EF7;
  --blue2:    #2563EB;
  --purple:   #9B5DE5;
  --cyan:     #06C8FF;
  --green:    #22C55E;
  --shadow:   rgba(0,0,0,0.5);
}

[data-theme="light"] {
  --bg:       #F4F7FF;
  --bg2:      #FFFFFF;
  --bg3:      #EBF0FF;
  --surface:  rgba(255,255,255,0.8);
  --surface2: rgba(255,255,255,0.95);
  --border:   rgba(0,0,0,0.08);
  --border2:  rgba(37,99,235,0.3);
  --text:     #0A1628;
  --text2:    #3D5470;
  --text3:    #8A9BB5;
  --blue:     #2563EB;
  --blue2:    #1D4ED8;
  --purple:   #7C3AED;
  --cyan:     #0284C7;
  --green:    #16A34A;
  --shadow:   rgba(0,0,0,0.1);
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  transition: background var(--tr), color var(--tr);
}

/* ── Utility ──────────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ── Canvas ───────────────────────────────────────────────── */
#bg-canvas {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none; opacity: 0.5;
  transition: opacity var(--tr);
}
[data-theme="light"] #bg-canvas { opacity: 0.2; }

/* ── Nav ──────────────────────────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 48px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background var(--tr), border var(--tr), backdrop-filter var(--tr);
}
#nav.scrolled {
  background: rgba(6,8,15,0.85);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
}
[data-theme="light"] #nav.scrolled { background: rgba(244,247,255,0.92); }

.nav-logo { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.nav-logo-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--blue2), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px; font-weight: 800; color: #fff; letter-spacing: -0.03em;
}
.nav-wordmark {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px; font-weight: 700; color: var(--text);
  letter-spacing: -0.025em; transition: color var(--tr);
}
.nav-wordmark span { color: var(--blue); }

.nav-center { display: flex; align-items: center; gap: 4px; }
.nav-center a {
  padding: 6px 14px; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: var(--text2);
  text-decoration: none; transition: all 0.2s;
}
.nav-center a:hover { color: var(--text); background: var(--surface2); }

.nav-right { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
  width: 44px; height: 24px; border-radius: 99px;
  background: var(--surface2); border: 1px solid var(--border);
  cursor: pointer; position: relative;
  display: flex; align-items: center; padding: 2px;
  transition: all 0.3s;
}
.theme-knob {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue); font-size: 10px;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
}
[data-theme="light"] .theme-knob { transform: translateX(20px); }

.nav-cta {
  padding: 8px 20px; border-radius: 8px;
  background: var(--blue); color: #fff;
  font-size: 13px; font-weight: 600;
  text-decoration: none; letter-spacing: 0.02em;
  transition: all 0.2s; white-space: nowrap;
}
.nav-cta:hover { opacity: 0.88; transform: translateY(-1px); }
.nav-hamburger {
  display: none; background: none; border: none;
  cursor: pointer; color: var(--text); font-size: 22px; padding: 4px;
}

/* ── Mobile nav ───────────────────────────────────────────── */
.mobile-nav-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.5); z-index: 199;
}
.mobile-nav-overlay.vis { display: block; }
.mobile-nav-drawer {
  display: flex; flex-direction: column;
  position: fixed; top: 0; right: 0; bottom: 0; width: 260px;
  background: var(--bg2); border-left: 1px solid var(--border);
  z-index: 200; padding: 70px 28px 40px; gap: 4px;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(.4,0,.2,1), background var(--tr), border var(--tr);
}
.mobile-nav-drawer.open { transform: translateX(0); }
.mobile-nav-drawer a {
  padding: 13px 0; border-bottom: 1px solid var(--border);
  color: var(--text2); font-size: 15px; text-decoration: none;
  transition: color 0.2s, border var(--tr);
}
.mobile-nav-drawer a:hover { color: var(--text); }

/* ── Hero ─────────────────────────────────────────────────── */
#hero {
  position: relative; z-index: 1; min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 140px 40px 100px; text-align: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 16px; border-radius: 99px;
  border: 1px solid var(--border2); background: rgba(79,142,247,0.06);
  font-size: 11px; font-weight: 600; color: var(--blue);
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 32px;
}
.hero-badge-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--blue); animation: blink 2s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

.hero-h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(44px, 7.5vw, 92px);
  font-weight: 700; letter-spacing: -0.035em; line-height: 0.98;
  margin-bottom: 28px; max-width: 920px;
}
.hero-h1 .l1 { display: block; color: var(--text); }
.hero-h1 .l2 {
  display: block;
  background: linear-gradient(120deg, var(--blue) 0%, var(--cyan) 45%, var(--purple) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(16px, 2vw, 19px); color: var(--text2);
  max-width: 580px; margin: 0 auto 48px;
  line-height: 1.75; font-weight: 300;
}
.hero-btns {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; flex-wrap: wrap; margin-bottom: 72px;
}
.btn-primary {
  padding: 14px 30px; border-radius: 10px;
  background: linear-gradient(135deg, var(--blue2), var(--blue));
  color: #fff; font-size: 14px; font-weight: 600;
  text-decoration: none; letter-spacing: 0.02em;
  box-shadow: 0 0 40px rgba(79,142,247,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 50px rgba(79,142,247,0.45); }
.btn-outline {
  padding: 13px 28px; border-radius: 10px;
  background: var(--surface2); border: 1.5px solid var(--border);
  color: var(--text); font-size: 14px; font-weight: 500;
  text-decoration: none; transition: all 0.2s;
}
.btn-outline:hover { border-color: var(--border2); color: var(--blue); }

.hero-metrics {
  display: flex; align-items: center;
  border: 1px solid var(--border); border-radius: 16px;
  background: var(--surface); backdrop-filter: blur(20px); overflow: hidden;
}
.hm { padding: 18px 32px; text-align: center; border-right: 1px solid var(--border); }
.hm:last-child { border-right: none; }
.hm-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(20px, 2.5vw, 28px); font-weight: 700;
  color: var(--text); letter-spacing: -0.03em;
  line-height: 1; margin-bottom: 4px; transition: color var(--tr);
}
.hm-num span { color: var(--blue); }
.hm-sub { font-size: 16px; color: var(--text2); }
.hm-lbl { font-size: 10px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.1em; }

/* ── Section base ─────────────────────────────────────────── */
section { position: relative; z-index: 1; }
.si { max-width: 1160px; margin: 0 auto; padding: 96px 40px; }
.sl { font-size: 10px; font-weight: 700; color: var(--blue); letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 14px; }
.sh {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(30px, 4vw, 50px); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.1; color: var(--text);
  margin-bottom: 18px; transition: color var(--tr);
}
.ss { font-size: 16px; color: var(--text2); max-width: 540px; line-height: 1.75; font-weight: 300; transition: color var(--tr); }

/* ── Products ─────────────────────────────────────────────── */
#products { background: var(--bg); transition: background var(--tr); }
.products-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 56px; flex-wrap: wrap; gap: 20px; }
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.pc {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 32px; position: relative; overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s, background var(--tr);
}
.pc:hover { transform: translateY(-5px); border-color: rgba(79,142,247,0.25); box-shadow: 0 24px 64px var(--shadow); }
.pc.featured {
  grid-column: span 2;
  background: linear-gradient(145deg, rgba(37,99,235,0.07), rgba(155,93,229,0.05));
  border-color: rgba(79,142,247,0.2);
}
.pc.featured .pc-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }

.pc-status { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 20px; }
.s-live { background: rgba(34,197,94,0.1); color: var(--green); border: 1px solid rgba(34,197,94,0.2); }
.s-beta { background: rgba(6,200,255,0.1); color: var(--cyan); border: 1px solid rgba(6,200,255,0.2); }
.s-soon { background: rgba(155,93,229,0.1); color: var(--purple); border: 1px solid rgba(155,93,229,0.2); }
.s-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

.pc-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 18px; background: var(--surface2); transition: background var(--tr); }
.pc-name { font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; margin-bottom: 10px; transition: color var(--tr); }
.pc-desc { font-size: 13px; color: var(--text2); line-height: 1.75; margin-bottom: 22px; transition: color var(--tr); }
.pc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.pc-tag { padding: 3px 10px; border-radius: 6px; font-size: 10px; font-weight: 600; letter-spacing: 0.04em; background: var(--surface2); color: var(--text3); border: 1px solid var(--border); transition: all var(--tr); }
.pc-link { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--blue); text-decoration: none; letter-spacing: 0.03em; transition: gap 0.2s; }
.pc-link:hover { gap: 10px; }

/* Demo panel inside featured card */
.pc-demo-panel { background: var(--bg2); border: 1px solid var(--border); border-radius: 14px; padding: 20px; font-family: 'Space Grotesk', monospace; font-size: 11px; line-height: 2; transition: background var(--tr), border var(--tr); }
.dp-row { display: flex; justify-content: space-between; align-items: center; }
.dp-k { color: var(--text3); font-size: 10px; }
.dp-v { color: var(--text); font-weight: 600; }
.dp-g { padding: 1px 8px; background: rgba(34,197,94,0.15); border-radius: 4px; color: var(--green); font-size: 9px; font-weight: 700; }
.dp-b { padding: 1px 8px; background: rgba(79,142,247,0.15); border-radius: 4px; color: var(--blue); font-size: 9px; font-weight: 700; }
.dp-hr { height: 1px; background: var(--border); margin: 8px 0; }

/* ── Chat demo section ────────────────────────────────────── */
#chatdemo { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); transition: background var(--tr), border var(--tr); }
.chatdemo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.chatdemo-feature { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.cdf-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--surface2); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; margin-top: 2px; transition: background var(--tr); }
.cdf-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 2px; transition: color var(--tr); }
.cdf-desc { font-size: 12px; color: var(--text2); line-height: 1.6; transition: color var(--tr); }

/* Chat widget */
.chat-widget { border: 1px solid var(--border2); border-radius: 20px; background: var(--surface); overflow: hidden; box-shadow: 0 24px 80px var(--shadow); transition: background var(--tr), border var(--tr); }
.chat-header { background: linear-gradient(135deg, var(--blue2), var(--purple)); padding: 16px 20px; display: flex; align-items: center; gap: 12px; }
.chat-avatar { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.chat-hname { font-size: 14px; font-weight: 700; color: #fff; }
.chat-online { display: flex; align-items: center; gap: 5px; }
.chat-online-dot { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; animation: blink 2s infinite; }
.chat-hstatus { font-size: 11px; color: rgba(255,255,255,0.7); }
.chat-messages { height: 300px; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; scroll-behavior: smooth; }
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }
.msg { max-width: 80%; display: flex; flex-direction: column; gap: 3px; animation: msgIn 0.3s ease; }
@keyframes msgIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }
.msg.bot { align-self: flex-start; }
.msg.user { align-self: flex-end; }
.msg-bubble { padding: 10px 14px; border-radius: 16px; font-size: 13px; line-height: 1.5; }
.msg.bot .msg-bubble { background: var(--surface2); color: var(--text); border-bottom-left-radius: 4px; transition: background var(--tr), color var(--tr); }
.msg.user .msg-bubble { background: linear-gradient(135deg, var(--blue2), var(--blue)); color: #fff; border-bottom-right-radius: 4px; }
.msg-time { font-size: 10px; color: var(--text3); }
.msg.user .msg-time { text-align: right; }
.chat-typing { padding: 4px 20px; display: none; align-items: center; gap: 4px; }
.chat-typing-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text3); animation: typeDot 1.2s infinite; }
.chat-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.chat-typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typeDot { 0%,60%,100%{transform:translateY(0);opacity:0.4} 30%{transform:translateY(-5px);opacity:1} }
.chat-input-row { padding: 14px 16px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 10px; transition: border var(--tr); }
.chat-input { flex: 1; background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; font-size: 13px; color: var(--text); font-family: 'Inter', sans-serif; outline: none; transition: all var(--tr); }
.chat-input:focus { border-color: var(--border2); }
.chat-input::placeholder { color: var(--text3); }
.chat-send { width: 38px; height: 38px; border-radius: 10px; background: var(--blue); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 16px; transition: opacity 0.2s, transform 0.2s; flex-shrink: 0; }
.chat-send:hover { opacity: 0.85; transform: scale(1.05); }
.chat-send:disabled { opacity: 0.4; cursor: not-allowed; }
.chat-disclaimer { text-align: center; font-size: 10px; color: var(--text3); padding: 0 16px 12px; transition: color var(--tr); }

/* ── Analytics ────────────────────────────────────────────── */
#analytics { background: var(--bg); transition: background var(--tr); }
.analytics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
.kpi-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; transition: all var(--tr); }
.kpi-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.kpi-icon { font-size: 22px; margin-bottom: 14px; }
.kpi-val { font-family: 'Space Grotesk', sans-serif; font-size: 32px; font-weight: 700; color: var(--text); letter-spacing: -0.04em; line-height: 1; margin-bottom: 4px; transition: color var(--tr); }
.kpi-val span { font-size: 18px; font-weight: 400; color: var(--text3); }
.kpi-lbl { font-size: 12px; color: var(--text2); margin-bottom: 10px; transition: color var(--tr); }
.kpi-trend { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; }
.trend-up { color: var(--green); }
.mini-chart { display: flex; align-items: flex-end; gap: 3px; height: 32px; margin-top: 10px; }
.mc-bar { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(to top, var(--blue2), var(--blue)); opacity: 0.6; transition: opacity 0.2s; min-width: 4px; }
.kpi-card:hover .mc-bar { opacity: 1; }

.chart-area { grid-column: span 2; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; transition: all var(--tr); }
.chart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.chart-title { font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 600; color: var(--text); transition: color var(--tr); }
.chart-period { display: flex; gap: 4px; }
.cp-btn { padding: 3px 10px; border-radius: 6px; font-size: 10px; font-weight: 600; color: var(--text3); background: none; border: 1px solid var(--border); cursor: pointer; transition: all 0.2s; }
.cp-btn.active { background: var(--surface2); color: var(--text); border-color: var(--border2); }
.svg-chart { width: 100%; height: 120px; }

.analytics-services { grid-column: span 4; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; transition: all var(--tr); }
.as-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.service-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.service-row:last-child { margin-bottom: 0; }
.sr-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.sr-name { font-size: 13px; font-weight: 500; color: var(--text); flex: 1; min-width: 120px; transition: color var(--tr); }
.sr-bar-wrap { flex: 3; height: 8px; background: var(--bg3); border-radius: 99px; overflow: hidden; transition: background var(--tr); }
.sr-bar { height: 8px; border-radius: 99px; }
.sr-pct { font-size: 12px; font-weight: 600; color: var(--text2); min-width: 36px; text-align: right; transition: color var(--tr); }

/* ── Process ──────────────────────────────────────────────── */
#process { background: var(--bg2); transition: background var(--tr); }
.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 60px; position: relative; }
.process-grid::before { content: ''; position: absolute; top: 28px; left: 10%; right: 10%; height: 1px; background: linear-gradient(90deg, transparent, var(--border2), var(--border2), transparent); }
.pg-step { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 12px; }
.pg-num { width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid var(--border2); background: var(--bg2); display: flex; align-items: center; justify-content: center; font-family: 'Space Grotesk', sans-serif; font-size: 18px; font-weight: 700; color: var(--blue); margin-bottom: 20px; position: relative; z-index: 1; transition: all 0.3s, background var(--tr); }
.pg-step:hover .pg-num { background: rgba(79,142,247,0.1); border-color: var(--blue); transform: scale(1.1); }
.pg-title { font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 7px; transition: color var(--tr); }
.pg-desc { font-size: 11px; color: var(--text2); line-height: 1.6; transition: color var(--tr); }

/* ── Stats band ───────────────────────────────────────────── */
#stats { background: linear-gradient(135deg, rgba(37,99,235,0.08), rgba(155,93,229,0.05)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); transition: border var(--tr); }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1160px; margin: 0 auto; }
.stat-item { padding: 56px 32px; text-align: center; border-right: 1px solid var(--border); transition: border var(--tr); }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: 'Space Grotesk', sans-serif; font-size: clamp(36px, 4vw, 56px); font-weight: 700; letter-spacing: -0.04em; color: var(--text); line-height: 1; margin-bottom: 8px; transition: color var(--tr); }
.stat-num span { color: var(--blue); }
.stat-lbl { font-size: 12px; color: var(--text2); line-height: 1.5; transition: color var(--tr); }

/* ── Contact ──────────────────────────────────────────────── */
#contact { background: var(--bg); transition: background var(--tr); }
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.contact-detail { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.cd-icon { width: 40px; height: 40px; border-radius: 11px; background: var(--surface2); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; margin-top: 2px; transition: background var(--tr), border var(--tr); }
.cd-lbl { font-size: 10px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 3px; transition: color var(--tr); }
.cd-val { font-size: 14px; font-weight: 500; color: var(--text); transition: color var(--tr); }
.cd-val a { color: var(--blue); text-decoration: none; }
.cd-val a:hover { text-decoration: underline; }

.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 36px; transition: background var(--tr), border var(--tr); }
.fl { margin-bottom: 16px; }
.fl label { display: block; font-size: 10px; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px; transition: color var(--tr); }
.fl-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fi, .fs, .ft { width: 100%; padding: 11px 14px; background: rgba(255,255,255,0.04); border: 1.5px solid var(--border); border-radius: 10px; color: var(--text); font-size: 13px; font-family: 'Inter', sans-serif; outline: none; transition: all var(--tr); -webkit-appearance: none; }
[data-theme="light"] .fi, [data-theme="light"] .fs, [data-theme="light"] .ft { background: rgba(0,0,0,0.02); }
.fi:focus, .fs:focus, .ft:focus { border-color: var(--blue); background: rgba(79,142,247,0.04); }
.fi::placeholder, .ft::placeholder { color: var(--text3); }
.ft { min-height: 90px; resize: vertical; }
.fs option { background: var(--bg2); color: var(--text); }
.form-btn { width: 100%; padding: 14px; border-radius: 10px; background: linear-gradient(135deg, var(--blue2), var(--blue)); border: none; color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; letter-spacing: 0.03em; box-shadow: 0 0 30px rgba(79,142,247,0.2); transition: transform 0.2s, box-shadow 0.2s; }
.form-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 40px rgba(79,142,247,0.35); }

/* ── Footer ───────────────────────────────────────────────── */
footer { border-top: 1px solid var(--border); padding: 36px 48px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; position: relative; z-index: 1; transition: border var(--tr), background var(--tr); }
.f-logo { font-family: 'Space Grotesk', sans-serif; font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; transition: color var(--tr); }
.f-logo span { color: var(--blue); }
.f-links { display: flex; gap: 20px; list-style: none; }
.f-links a { font-size: 12px; color: var(--text3); text-decoration: none; transition: color 0.2s; }
.f-links a:hover { color: var(--text); }
.f-copy { font-size: 11px; color: var(--text3); transition: color var(--tr); }

/* ── Floating chat bubble ─────────────────────────────────── */
.chat-bubble-btn {
  position: fixed; bottom: 28px; right: 28px; z-index: 500;
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue2), var(--purple));
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: #fff;
  box-shadow: 0 8px 30px rgba(79,142,247,0.4);
  transition: transform 0.3s, box-shadow 0.3s;
}
.chat-bubble-btn:hover { transform: scale(1.08); box-shadow: 0 12px 40px rgba(79,142,247,0.5); }
.chat-bubble-btn .cbb-open { display: flex; }
.chat-bubble-btn .cbb-close { display: none; }
.chat-bubble-btn.open .cbb-open { display: none; }
.chat-bubble-btn.open .cbb-close { display: flex; }

.chat-float-panel {
  position: fixed; bottom: 100px; right: 28px; z-index: 499;
  width: 340px; background: var(--bg2);
  border: 1px solid var(--border2); border-radius: 20px;
  box-shadow: 0 24px 80px var(--shadow); overflow: hidden;
  transform: translateY(20px) scale(0.96); opacity: 0; pointer-events: none;
  transition: opacity 0.3s cubic-bezier(.4,0,.2,1), transform 0.3s cubic-bezier(.4,0,.2,1);
}
.chat-float-panel.open { transform: translateY(0) scale(1); opacity: 1; pointer-events: all; }
.cfp-messages { height: 260px; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.cfp-messages::-webkit-scrollbar { width: 3px; }
.cfp-messages::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }
.cfp-input-row { padding: 12px; border-top: 1px solid var(--border); display: flex; gap: 8px; transition: border var(--tr); }
.cfp-input { flex: 1; background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; font-size: 12px; color: var(--text); font-family: 'Inter', sans-serif; outline: none; transition: all var(--tr); }
.cfp-input:focus { border-color: var(--border2); }
.cfp-input::placeholder { color: var(--text3); }
.cfp-send { width: 34px; height: 34px; border-radius: 8px; background: var(--blue); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; transition: opacity 0.2s; flex-shrink: 0; }
.cfp-send:hover { opacity: 0.85; }
.cfp-send:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Scroll reveal ────────────────────────────────────────── */
.rv { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1); }
.rv.vis { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1000px) {
  .products-grid { grid-template-columns: 1fr 1fr; }
  .pc.featured { grid-column: span 2; }
  .pc.featured .pc-inner { grid-template-columns: 1fr; }
  .pc-demo-panel { display: none; }
  .analytics-grid { grid-template-columns: repeat(2, 1fr); }
  .analytics-services, .chart-area { grid-column: span 2; }
  .process-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .process-grid::before { display: none; }
}
@media (max-width: 700px) {
  #nav { padding: 14px 20px; }
  .nav-center, .nav-cta { display: none; }
  .nav-hamburger { display: block; }
  .si { padding: 64px 20px; }
  .hero-metrics { flex-direction: column; border: none; background: none; }
  .hm { border-right: none; border-bottom: 1px solid var(--border); padding: 14px 24px; }
  .hm:last-child { border-bottom: none; }
  .products-grid { grid-template-columns: 1fr; }
  .pc.featured { grid-column: auto; }
  .chatdemo-grid, .contact-grid { grid-template-columns: 1fr; }
  .analytics-grid { grid-template-columns: 1fr; }
  .analytics-services, .chart-area { grid-column: auto; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); padding: 36px 20px; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  footer { flex-direction: column; text-align: center; padding: 28px 20px; }
  .f-links { justify-content: center; }
  .fl-2 { grid-template-columns: 1fr; }
  .chat-float-panel { width: calc(100vw - 32px); right: 16px; }
}

/* ── Typing indicator dot (used in chat.js showTyping) ─── */
.td {
  display: inline-block;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--text3);
  animation: typeDot 1.2s infinite;
}

/* ── Chat formatted lines ─────────────────────────────────── */
.cb-line {
  display: block;
  padding-left: 4px;
  margin: 1px 0;
}
.msg-typing {
  display: flex !important;
  align-items: center;
  gap: 5px;
  padding: 12px 16px !important;
}
.td {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--text3);
  animation: typeDot 1.2s infinite;
}
