/* ============================================ */
/* INSIGHTRON — Minimal Warm Design             */
/* Inspired by Moveworks                        */
/* ============================================ */

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button, input { font-family: inherit; border: none; outline: none; background: none; cursor: pointer; }

/* ============================================ */
/* TOKENS                                       */
/* ============================================ */
:root {
  --bg: #FAF8F5;
  --bg-white: #FFFFFF;
  --bg-warm: #F3F0EB;
  --bg-dark: #1A1A1A;

  --text: #1A1A1A;
  --text-secondary: #666666;
  --text-tertiary: #999999;
  --text-inverse: #FFFFFF;

  --border: #E5E2DD;
  --border-light: #EEEAE5;

  --accent: #6C5CE7;
  --accent-light: #EDE9FE;
  --blue: #3B82F6;
  --blue-light: #EFF6FF;
  --green: #22C55E;
  --green-light: #F0FDF4;
  --orange: #F97316;
  --orange-light: #FFF7ED;
  --red: #EF4444;
  --purple: #A855F7;
  --purple-light: #FAF5FF;

  /* Tri-neon */
  --neon-green: #00FF88;
  --neon-violet: #BF5AF2;
  --neon-red: #FF6B6B;
  --neon-green-bg: rgba(0,255,136,0.08);
  --neon-violet-bg: rgba(191,90,242,0.08);
  --neon-red-bg: rgba(255,107,107,0.08);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.02);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.02);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.10);

  --container: 1160px;
}

/* ============================================ */
/* LAYOUT                                       */
/* ============================================ */
body {
  background: var(--bg);
  color: var(--text);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================ */
/* BUTTONS                                      */
/* ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  transition: all 200ms ease;
  white-space: nowrap;
}

.btn--dark {
  background: var(--bg-dark);
  color: var(--text-inverse);
}
.btn--dark:hover {
  background: #333;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  border: 1.5px solid var(--border);
  color: var(--text);
  background: var(--bg-white);
}
.btn--outline:hover {
  border-color: var(--text);
  box-shadow: var(--shadow-sm);
}

.btn--sm {
  font-size: 13px;
  padding: 8px 18px;
}

.btn--lg {
  font-size: 16px;
  padding: 14px 28px;
}

/* ============================================ */
/* LABELS & TAGS                                */
/* ============================================ */
.label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 16px;
}

.label--center { display: block; text-align: center; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}
.pill--blue { background: var(--blue-light); color: var(--blue); }
.pill--purple { background: var(--purple-light); color: var(--purple); }
.pill--green { background: var(--green-light); color: var(--green); }

.s-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-warm);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

/* ============================================ */
/* NAV                                          */
/* ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250,248,245,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
}

.nav--scrolled {
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.logo__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Minimal logo animation — subtle ring pulse */
@keyframes ringPulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.logo__ring {
  animation: ringPulse 3s ease-in-out infinite;
}

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

.nav__link {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 150ms ease;
}
.nav__link:hover { color: var(--text); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav__burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 200ms ease;
}

/* Burger open state */
.nav__burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__burger.open span:nth-child(2) {
  opacity: 0;
}
.nav__burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile-only CTA in nav */
.nav__link--mobile-cta {
  display: none !important;
}

/* ============================================ */
/* HERO                                         */
/* ============================================ */
.hero {
  padding: 120px 0 80px;
  overflow: hidden;
  position: relative;
}

/* Aurora gradient background */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 120%;
  height: 140%;
  background:
    radial-gradient(ellipse 600px 400px at 15% 30%, rgba(0,255,136,0.07)  0%, transparent 70%),
    radial-gradient(ellipse 500px 350px at 80% 20%, rgba(191,90,242,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 400px 300px at 60% 70%, rgba(255,107,107,0.05) 0%, transparent 70%);
  animation: auroraMove 12s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.hero > * { position: relative; z-index: 1; }

@keyframes auroraMove {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -10px) scale(1.02); }
  66% { transform: translate(-15px, 15px) scale(0.98); }
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 60px;
  align-items: center;
}

/* --- Hero badge --- */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--neon-green);
  background: var(--bg-dark);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  transition: all 0.4s ease;
  cursor: default;
}

.hero__badge:hover {
  background: linear-gradient(135deg, var(--neon-green), var(--neon-violet), var(--neon-red));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 20px rgba(191,90,242,0.25), 0 0 40px rgba(0,255,136,0.1);
}

.hero__badge:hover .hero__badge-dot {
  background: #fff;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-green);
  animation: badgePulse 2s ease infinite;
  transition: background 0.4s ease;
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0,255,136,0.5); }
  50% { opacity: 0.6; box-shadow: 0 0 0 8px rgba(0,255,136,0); }
}

.hero__title {
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 20px;
}

/* --- Rotating word --- */
.hero__rotate-wrap {
  display: inline-block;
  position: relative;
  overflow: hidden;
  vertical-align: bottom;
  height: 1.1em;
  width: auto;
}

.hero__rotate {
  display: flex;
  flex-direction: column;
  animation: rotateWords 8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.hero__rotate span {
  display: block;
  height: 1.1em;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--neon-green), var(--neon-violet), var(--neon-red));
  background-size: 200% 200%;
  animation: neonShift 6s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes neonShift {
  0%, 100% { background-position: 0% 50%; }
  33% { background-position: 100% 50%; }
  66% { background-position: 50% 100%; }
}

@keyframes rotateWords {
  0%, 20%   { transform: translateY(0); }
  25%, 45%  { transform: translateY(-1.1em); }
  50%, 70%  { transform: translateY(-2.2em); }
  75%, 95%  { transform: translateY(-3.3em); }
  100%      { transform: translateY(-4.4em); }
}

.hero__sub {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 460px;
}

.hero__ctas {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
}

/* --- Proof line --- */
.hero__proof {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero__proof-avatars {
  display: flex;
}

.hero__proof-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: white;
  border: 2px solid var(--bg);
}

.hero__proof-avatar + .hero__proof-avatar {
  margin-left: -8px;
}

.hero__proof-text {
  font-size: 13px;
  color: var(--text-tertiary);
}
.hero__proof-text strong {
  color: var(--text-secondary);
  font-weight: 600;
}

/* ============================================ */
/* HERO ENTRANCE ANIMATIONS                     */
/* ============================================ */
.anim-in {
  opacity: 0;
  transform: translateY(24px);
  animation: animIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes animIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.anim-in-right {
  opacity: 0;
  transform: translateX(40px) scale(0.97);
  animation: animInRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes animInRight {
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* Node pop-in */
.node-anim {
  opacity: 0;
  transform: scale(0.8) translateY(10px);
  animation: nodePopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: var(--node-delay, 0s);
}

@keyframes nodePopIn {
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Connector draw-in */
.connector-line {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  stroke: var(--neon-violet);
  opacity: 0.35;
  animation: drawLine 1.2s ease forwards;
  animation-delay: 0.8s;
}

.connector-line:nth-child(odd) { stroke: var(--neon-green); }
.connector-line:nth-child(3n) { stroke: var(--neon-red); }

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
    opacity: 0.5;
  }
}

/* FLOW BUILDER — AI Foundry Style */
.flow-builder {
  background: linear-gradient(145deg, rgba(191,90,242,0.06) 0%, rgba(0,255,136,0.05) 30%, #faf8f5 60%, rgba(255,107,107,0.03) 100%);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
}

.flow-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
}

.flow-toolbar__left {
  display: flex;
  gap: 2px;
}

.flow-toolbar__btn {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 5px 10px;
  border-radius: var(--radius-full);
  transition: all 150ms;
  white-space: nowrap;
}
.flow-toolbar__btn:hover { background: var(--bg-warm); }
.flow-toolbar__btn--active {
  background: var(--bg-white);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.flow-toolbar__right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.flow-toolbar__zoom {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
}

.flow-toolbar__zoom-label {
  font-size: 11px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  min-width: 36px;
  text-align: center;
}

/* Canvas */
.flow-canvas {
  position: relative;
  min-height: 390px;
  padding: 20px;
  background-image:
    radial-gradient(circle, #d8d5d0 0.8px, transparent 0.8px);
  background-size: 20px 20px;
  background-position: 10px 10px;
}

.flow-connectors {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Nodes */
.flow-node {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  box-shadow: var(--shadow-md);
  z-index: 1;
  transition: box-shadow 200ms, border-color 200ms;
  cursor: default;
  white-space: nowrap;
}

.flow-node:hover {
  box-shadow: var(--shadow-lg);
}

.flow-node--selected {
  border-color: var(--neon-violet);
  box-shadow: 0 0 0 3px rgba(191,90,242,0.15), 0 0 20px rgba(191,90,242,0.08), var(--shadow-lg);
}

.flow-node--start {
  padding: 8px 16px;
}

.flow-node--end {
  padding: 8px 16px;
}

.flow-node__icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.flow-node__icon--green  { background: var(--green-light); color: var(--green); }
.flow-node__icon--cyan   { background: var(--neon-violet-bg); color: var(--neon-violet); }
.flow-node__icon--purple { background: var(--purple-light); color: var(--purple); }
.flow-node__icon--orange { background: var(--orange-light); color: var(--orange); }
.flow-node__icon--blue   { background: var(--blue-light); color: var(--blue); }

.flow-node__content {
  display: flex;
  flex-direction: column;
}

.flow-node__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.flow-node__sub {
  font-size: 11px;
  color: var(--text-tertiary);
  line-height: 1.3;
}

/* Ports */
.flow-node__port {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 2px solid var(--border);
  position: absolute;
}
.flow-node__port--in  { left: -5px; top: 50%; transform: translateY(-50%); }
.flow-node__port--out { right: -5px; top: 50%; transform: translateY(-50%); }

/* If / Else badges */
.flow-node__badges {
  display: flex;
  gap: 4px;
  margin-left: 4px;
}

.flow-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}
.flow-badge--true  { background: var(--green-light); color: var(--green); }
.flow-badge--false { background: var(--orange-light); color: var(--orange); }

/* Detail panel */
.flow-detail {
  position: absolute;
  width: 160px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 2;
  overflow: hidden;
}

.flow-detail__header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text);
}

.flow-detail__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.flow-detail__dot--cyan { background: var(--neon-violet); box-shadow: 0 0 6px rgba(191,90,242,0.5); }

.flow-detail__row {
  display: flex;
  justify-content: space-between;
  padding: 6px 12px;
  font-size: 11px;
}

.flow-detail__label {
  color: var(--text-tertiary);
  font-weight: 500;
}

.flow-detail__value {
  color: var(--text-secondary);
  font-weight: 500;
  font-family: var(--font-mono);
  font-size: 10px;
}

.flow-detail__value--active {
  color: var(--green);
}

/* Subtle float animation for nodes */
@keyframes floatNode {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.flow-node--selected.node-anim-done {
  animation: floatNode 3s ease-in-out infinite;
}

/* Signal pulse glow */
.signal-pulse {
  filter: drop-shadow(0 0 6px var(--neon-green)) drop-shadow(0 0 12px rgba(0,255,136,0.3));
  opacity: 0.85;
}

/* Toolbar live status */
.flow-toolbar__status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  margin-right: 10px;
}
.flow-toolbar__status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: statusBlink 2s ease-in-out infinite;
}
@keyframes statusBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(59,130,246,0.3); }
  50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(59,130,246,0); }
}

/* ============================================ */
/* USE CASES — TABS                             */
/* ============================================ */
.use-cases {
  padding: 80px 0;
}

.use-cases__tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 48px;
  border-bottom: 1.5px solid var(--border);
  padding-bottom: 0;
}

.tab {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 12px 20px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1.5px;
  transition: all 200ms;
  white-space: nowrap;
}
.tab:hover { color: var(--text); }
.tab--active {
  color: var(--text);
  border-bottom-color: var(--text);
}

/* Use Case Panels */
.use-case {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.use-case__content {
  flex: 1;
  min-width: 0;
}

.use-case__title {
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.use-case__desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.checklist li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 8px;
}
.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
  font-size: 13px;
}

.use-case__visual {
  flex: 0 0 400px;
}

/* Code Block */
.code-block {
  background: #1E1E2E;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.code-block__header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: #28283A;
}

.code-block__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #555;
}

.code-block__title {
  margin-left: 8px;
  font-size: 11px;
  color: #888;
  font-family: var(--font-mono);
}

.code-block__code {
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: #CDD6F4;
  overflow-x: auto;
}

.code-block__code .kw { color: #89B4FA; }
.code-block__code .fn { color: #F9E2AF; }
.code-block__code .str { color: #A6E3A1; }
.code-block__code .num { color: #FAB387; }

/* Transform Cards */
.transform-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.t-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.t-card__icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.t-card h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.t-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.t-card__bar {
  height: 4px;
  background: var(--bg-warm);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 6px;
}

.t-card__bar-fill {
  height: 100%;
  background: var(--green);
  border-radius: var(--radius-full);
  transition: width 1s ease;
}

.t-card__bar-fill--purple { background: var(--purple); }

.t-card__metric {
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  font-family: var(--font-mono);
}

.t-card--marketing .t-card__metric { color: var(--purple); }

/* Agent Design Cards */
.agent-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.a-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all 200ms;
}
.a-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.a-card__logo {
  flex-shrink: 0;
}

.a-card h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.a-card p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Scale Grid */
.scale-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.scale-stat {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
}

.scale-stat__num {
  display: block;
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.1;
}

.scale-stat__num small {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-secondary);
}

.scale-stat__label {
  display: block;
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 4px;
  font-weight: 500;
}

/* ============================================ */
/* SERVICES                                     */
/* ============================================ */
.services {
  padding: 100px 0;
  background: var(--bg-white);
}

.section-title {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 16px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 520px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

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

.service-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  transition: all 250ms;
}
.service-card:hover {
  border-color: var(--text);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.service-card__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}

.service-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.service-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================ */
/* DEMO MODAL                                   */
/* ============================================ */
.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}
.demo-modal--open {
  opacity: 1;
  pointer-events: auto;
}

.demo-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.demo-modal__card {
  position: relative;
  width: 94%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 80px rgba(0,0,0,0.18);
  transform: translateY(24px) scale(0.97);
  transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1);
}
.demo-modal--open .demo-modal__card {
  transform: translateY(0) scale(1);
}

.demo-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--bg-white);
  color: var(--text-secondary);
  cursor: pointer;
  z-index: 2;
  transition: background 200ms, color 200ms;
}
.demo-modal__close:hover {
  background: var(--bg);
  color: var(--text);
}

.demo-modal__header {
  text-align: center;
  padding: 40px 32px 0;
}
.demo-modal__header .section-title {
  font-size: 24px;
  margin-top: 12px;
}
.demo-modal__header .section-sub {
  font-size: 14px;
  margin-top: 8px;
}

.demo-modal .gs-flow {
  border: none;
  box-shadow: none;
  border-radius: 0;
  max-width: 100%;
}

@media (max-width: 600px) {
  .demo-modal__card {
    width: 100%;
    max-width: 100%;
    max-height: 100vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    align-self: flex-end;
  }
  .demo-modal__header {
    padding: 32px 20px 0;
  }
  .demo-modal__header .section-title {
    font-size: 20px;
  }
}

/* -- Stepper flow -- */
.gs-flow {
  max-width: 580px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-white);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.gs-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg);
}

.gs-stepper__step {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.gs-stepper__num {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-tertiary);
  transition: all 250ms;
  flex-shrink: 0;
}
.gs-stepper__step--active .gs-stepper__num {
  background: var(--bg-dark);
  border-color: var(--bg-dark);
  color: #fff;
}
.gs-stepper__step--done .gs-stepper__num {
  background: var(--neon-green);
  border-color: var(--neon-green);
  color: var(--bg-dark);
}

.gs-stepper__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-tertiary);
  transition: color 250ms;
}
.gs-stepper__step--active .gs-stepper__label { color: var(--text); }
.gs-stepper__step--done .gs-stepper__label { color: var(--neon-green); }

.gs-stepper__line {
  flex: 1;
  height: 2px;
  background: var(--border-light);
  margin: 0 12px;
  border-radius: 1px;
  transition: background 250ms;
}
.gs-stepper__line--done { background: var(--neon-green); }

/* -- Panels -- */
.gs-panel {
  display: none;
  animation: panelIn 350ms ease;
}
.gs-panel--active { display: block; }

@keyframes panelIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.gs-panel__nav {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.gs-panel__nav .btn { flex: 1; justify-content: center; }

/* -- Form -- */
.gs-form {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gs-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.gs-form__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gs-form__optional {
  font-weight: 400;
  color: var(--text-tertiary);
  text-transform: none;
  letter-spacing: 0;
}

.gs-form__input,
.gs-form__textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  transition: border 200ms, box-shadow 200ms;
  outline: none;
}
.gs-form__input:focus,
.gs-form__textarea:focus {
  border-color: var(--neon-green);
  box-shadow: 0 0 0 3px var(--neon-green-bg);
}

.gs-form__textarea { resize: vertical; min-height: 60px; }
.gs-form__submit { margin-top: 4px; }

/* -- Custom Select / Dropdown -- */
.gs-select { position: relative; }

.gs-select__trigger {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border 200ms, box-shadow 200ms;
}
.gs-select__trigger:hover { border-color: var(--text-tertiary); }
.gs-select--open .gs-select__trigger {
  border-color: var(--neon-green);
  box-shadow: 0 0 0 3px var(--neon-green-bg);
}

.gs-select__chevron { transition: transform 200ms; flex-shrink: 0; }
.gs-select--open .gs-select__chevron { transform: rotate(180deg); }
.gs-select__value--placeholder { color: var(--text-tertiary); }

.gs-select__dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 150ms, transform 150ms;
  max-height: 240px;
  overflow-y: auto;
}
.gs-select--open .gs-select__dropdown {
  opacity: 1; pointer-events: auto; transform: translateY(0);
}

.gs-select__option {
  padding: 10px 14px;
  font-size: 14px;
  cursor: pointer;
  transition: background 120ms;
}
.gs-select__option:hover { background: var(--neon-green-bg); }
.gs-select__option--selected {
  color: var(--neon-green); font-weight: 600; background: var(--neon-green-bg);
}

/* -- Calculator -- */
.gs-calc {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.gs-calc__field { display: flex; flex-direction: column; gap: 8px; }

.gs-calc__pills { display: flex; gap: 8px; flex-wrap: wrap; }

.gs-pill {
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  background: var(--bg);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 200ms;
  font-family: var(--font);
}
.gs-pill:hover { border-color: var(--text-tertiary); }
.gs-pill--active {
  background: var(--bg-dark); color: #fff; border-color: var(--bg-dark);
}

.gs-calc__checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.gs-check {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-secondary); cursor: pointer; padding: 6px 0;
}
.gs-check input { display: none; }

.gs-check__box {
  width: 18px; height: 18px;
  border: 2px solid var(--border);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  transition: all 200ms;
  flex-shrink: 0;
}
.gs-check__box::after {
  content: '';
  width: 10px; height: 10px;
  border-radius: 2px;
  background: var(--neon-green);
  opacity: 0; transform: scale(0.5);
  transition: all 200ms;
}
.gs-check input:checked + .gs-check__box { border-color: var(--neon-green); }
.gs-check input:checked + .gs-check__box::after { opacity: 1; transform: scale(1); }

.gs-calc__result {
  text-align: center;
  padding: 20px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}

.gs-calc__label {
  display: block; font-size: 12px; color: var(--text-tertiary);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px;
}

.gs-calc__price {
  display: block;
  font-size: 36px; font-weight: 900; letter-spacing: -0.03em;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--neon-green), var(--neon-violet));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.gs-calc__period {
  display: block; font-size: 13px; color: var(--text-tertiary); margin-top: 2px;
}

/* -- Meeting section (inside panel 3) -- */
.gs-meeting { padding: 24px 28px 28px; }

.gs-meeting__topics {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px;
}

.gs-meeting__topic {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  font-size: 13px; font-weight: 500; font-family: var(--font);
  color: var(--text-secondary); cursor: pointer;
  transition: all 200ms; text-align: left;
}
.gs-meeting__topic:hover { border-color: var(--text-tertiary); }
.gs-meeting__topic--active {
  border-color: var(--bg-dark); background: var(--bg-dark); color: #fff;
}
.gs-meeting__topic-icon { font-size: 18px; }

.gs-meeting__slots {
  display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px;
}

.gs-meeting__slot {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  font-size: 13px; font-weight: 500; font-family: var(--font);
  color: var(--text-secondary); cursor: pointer;
  transition: all 200ms; text-align: left;
}
.gs-meeting__slot:hover { border-color: var(--text-tertiary); }
.gs-meeting__slot--active {
  border-color: var(--bg-dark); background: var(--bg-dark); color: #fff;
}

/* ============================================ */
/* FLOATING AI CHAT POPUP                       */
/* ============================================ */
.ai-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
}

.ai-fab__btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--bg-dark);
  color: var(--neon-green);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0,0,0,0.25), 0 0 0 0 rgba(0,255,136,0);
  transition: all 300ms cubic-bezier(.4,0,.2,1);
  position: relative;
}
.ai-fab__btn:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 20px rgba(0,255,136,0.15);
}

.ai-fab__icon { transition: opacity 200ms, transform 200ms; position: absolute; }
.ai-fab__icon--close { opacity: 0; transform: rotate(-90deg) scale(0.7); }
.ai-fab--open .ai-fab__icon--chat { opacity: 0; transform: rotate(90deg) scale(0.7); }
.ai-fab--open .ai-fab__icon--close { opacity: 1; transform: rotate(0) scale(1); }

.ai-fab__badge {
  position: absolute;
  top: -2px; right: -2px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--neon-green);
  border: 2px solid var(--bg-dark);
  animation: pulse 2s ease infinite;
}
.ai-fab--open .ai-fab__badge { display: none; }

/* -- Chat window -- */
.ai-fab__window {
  position: absolute;
  bottom: 68px;
  right: 0;
  width: 380px;
  max-height: 520px;
  border-radius: 20px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.95);
  transform-origin: bottom right;
  transition: opacity 250ms cubic-bezier(.4,0,.2,1),
              transform 250ms cubic-bezier(.4,0,.2,1);
}
.ai-fab--open .ai-fab__window {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.ai-fab__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--bg-dark);
  color: #fff;
}

.ai-fab__header-left {
  display: flex; align-items: center; gap: 12px;
}

.ai-fab__logo {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: rgba(0,255,136,0.12);
  color: var(--neon-green);
  display: flex; align-items: center; justify-content: center;
}

.ai-fab__name {
  display: block; font-size: 14px; font-weight: 700;
}

.ai-fab__status {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; color: rgba(255,255,255,0.6);
}

.ai-fab__status-dot {
  width: 6px; height: 6px;
  border-radius: 50%; background: var(--neon-green);
  animation: pulse 2s ease infinite;
}

.ai-fab__close {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 200ms;
}
.ai-fab__close:hover { background: rgba(255,255,255,0.2); color: #fff; }

.ai-fab__messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 240px;
  max-height: 320px;
}

.ai-fab__suggestions {
  display: flex;
  gap: 6px;
  padding: 0 18px 10px;
  flex-wrap: wrap;
}

.ai-fab__input {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border-light);
  background: var(--bg);
  border-radius: 0 0 20px 20px;
}

/* Reuse chat message styles inside popup */
.ai-fab__messages .gs-chat__msg,
.ai-fab__messages .gs-chat__avatar,
.ai-fab__messages .gs-chat__bubble { /* inherit shared */ }

/* Chat shared styles (used by popup) */
.gs-chat__msg {
  display: flex; gap: 10px; max-width: 88%;
  animation: chatFade 300ms ease;
}
.gs-chat__msg--bot { align-self: flex-start; }
.gs-chat__msg--user { align-self: flex-end; flex-direction: row-reverse; }

@keyframes chatFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.gs-chat__avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-dark);
  color: var(--neon-green);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.gs-chat__msg--user .gs-chat__avatar {
  background: var(--neon-violet-bg); color: var(--neon-violet);
}

.gs-chat__bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px; line-height: 1.55; color: var(--text);
}
.gs-chat__msg--bot .gs-chat__bubble {
  background: var(--bg); border-bottom-left-radius: 4px;
}
.gs-chat__msg--user .gs-chat__bubble {
  background: var(--bg-dark); color: #fff; border-bottom-right-radius: 4px;
}

.gs-chat__suggestion {
  font-size: 12px; padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--bg-white);
  color: var(--text-secondary);
  cursor: pointer; font-family: var(--font);
  transition: all 200ms;
}
.gs-chat__suggestion:hover { border-color: var(--neon-green); color: var(--neon-green); }

.gs-chat__input {
  flex: 1; border: none; background: transparent;
  font-family: var(--font); font-size: 13px;
  color: var(--text); outline: none;
}
.gs-chat__input::placeholder { color: var(--text-tertiary); }

.gs-chat__send {
  width: 34px; height: 34px;
  border-radius: 50%; border: none;
  background: var(--bg-dark); color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 200ms, transform 200ms;
  flex-shrink: 0;
}
.gs-chat__send:hover { background: var(--neon-green); color: var(--bg-dark); transform: scale(1.05); }

/* Button helpers */
.btn--full { width: 100%; justify-content: center; }

/* ============================================ */
/* SPECIALISTS                                  */
/* ============================================ */
.specialists {
  padding: 100px 0;
  background: var(--bg-white);
}

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

.specialist-card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg);
  transition: all 250ms;
}
.specialist-card:hover {
  box-shadow: var(--shadow-md);
}

.specialist-card__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.specialist-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}

.specialist-card__avatar--dark {
  background: var(--bg-dark);
}

.specialist-card__name {
  font-size: 20px;
  font-weight: 800;
}

.specialist-card__role {
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
}

.specialist-card__bio {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.specialist-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.specialist-card__specialties {
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.specialist-card__specialties h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}

.specialist-card__specialties ul {
  list-style: none;
}

.specialist-card__specialties li {
  position: relative;
  padding-left: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 4px;
}
.specialist-card__specialties li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

/* ============================================ */
/* CTA                                          */
/* ============================================ */
.cta {
  padding: 100px 0;
}

.cta__inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.cta h2 {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.cta p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
}

.cta__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.cta__note {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ============================================ */
/* SQL DEMO STAGE (index.html)                  */
/* ============================================ */
.sql-demo__stage {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.sql-demo__mockup {
  max-width: 600px;
  width: 100%;
}

/* ============================================ */
/* FOOTER                                       */
/* ============================================ */
.footer {
  padding: 48px 0 24px;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
}

.footer__brand p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 12px;
  line-height: 1.6;
}

.footer__col h4 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer__col a {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 3px 0;
  transition: color 150ms;
}
.footer__col a:hover { color: var(--text); }

.footer__social {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--border-light);
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: color 200ms, border-color 200ms, background 200ms;
}
.footer__social a:hover {
  color: var(--text);
  border-color: var(--text-tertiary);
  background: var(--bg);
}

.footer__bottom {
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  font-size: 12px;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer__bottom-links {
  display: flex;
  gap: 16px;
}
.footer__bottom-links a {
  color: var(--text-tertiary);
  transition: color 150ms;
}
.footer__bottom-links a:hover {
  color: var(--text);
}

/* ============================================ */
/* ANIMATIONS                                   */
/* ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================ */
/* UI SLIDESHOW                                 */
/* ============================================ */
.slideshow {
  padding: 80px 0;
  overflow: hidden;
}

.slideshow__header {
  text-align: center;
  margin-bottom: 48px;
}

.slideshow__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--neon-violet);
  background: var(--neon-violet-bg);
  border: 1px solid rgba(191,90,242,0.15);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.slideshow__title {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.slideshow__sub {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

.slideshow__track-wrap {
  position: relative;
}

/* Stage: single-slide container */
.slideshow__stage {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  background: var(--bg-white);
}

/* Timer bar */
.slideshow__timer {
  height: 3px;
  background: var(--border-light);
  position: relative;
  z-index: 2;
}

.slideshow__timer-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--neon-green), var(--neon-violet), var(--neon-red));
  border-radius: 0 2px 2px 0;
  transition: none;
}

.slideshow__timer-fill--running {
  animation: timerFill 5s linear forwards;
}

@keyframes timerFill {
  from { width: 0%; }
  to { width: 100%; }
}

/* Stacked slides */
.slideshow__slides {
  position: relative;
  min-height: 360px;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  background: var(--bg-white);
}

.slide--active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  position: relative;
}

/* Slide navigation arrows */
.slideshow__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  z-index: 5;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}
.slideshow__arrow:hover {
  border-color: var(--neon-green);
  color: var(--neon-green);
  box-shadow: 0 0 0 3px rgba(0,255,136,0.1), var(--shadow-md);
  transform: translateY(-50%) scale(1.08);
}
.slideshow__arrow--prev { left: -20px; }
.slideshow__arrow--next { right: -20px; }

/* Dot indicators */
.slideshow__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
.slideshow__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}
.slideshow__dot:hover {
  border-color: var(--text);
}
.slideshow__dot--active {
  background: var(--neon-green);
  border-color: var(--neon-green);
  box-shadow: 0 0 6px rgba(0,255,136,0.4);
  transform: scale(1.2);
}

/* Current slide label */
.slideshow__current-label {
  text-align: center;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  transition: opacity 0.3s;
}

.slide__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: #F5F3F0;
  border-bottom: 1px solid var(--border-light);
}

.slide__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.slide__url {
  margin-left: 10px;
  font-size: 11px;
  color: #999;
  font-family: var(--font-mono);
  background: var(--bg-white);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
}

.slide__body {
  padding: 20px;
  min-height: 220px;
}

/* Slide — Reporting */
.slide__report-query {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.slide__report-query .cursor {
  width: 2px; height: 16px;
  background: var(--neon-green);
  border-radius: 1px;
  animation: cursorBlink 1s step-end infinite;
}

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

.slide__chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 100px;
  padding-top: 8px;
  margin-bottom: 14px;
}

.slide__bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.slide__bar-fill {
  width: 100%;
  border-radius: 4px 4px 0 0;
  min-height: 4px;
  transition: height 1s ease;
}

.slide__bar-fill--g { background: linear-gradient(180deg, var(--neon-green), #00cc6e); }
.slide__bar-fill--v { background: linear-gradient(180deg, var(--neon-violet), #9b3dd4); }
.slide__bar-fill--r { background: linear-gradient(180deg, var(--neon-red), #e04040); }

.slide__bar-label {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-tertiary);
}

.slide__metrics {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.slide__metric {
  text-align: center;
  padding: 10px 6px;
  background: var(--bg);
  border-radius: var(--radius-sm);
}

.slide__metric-val {
  display: block;
  font-size: 16px;
  font-weight: 800;
  font-family: var(--font-mono);
  letter-spacing: -0.03em;
}

.slide__metric-val--green { color: var(--neon-green); }
.slide__metric-val--violet { color: var(--neon-violet); }
.slide__metric-val--red { color: var(--neon-red); }

.slide__metric-label {
  display: block;
  font-size: 10px;
  color: var(--text-tertiary);
  margin-top: 2px;
  font-weight: 500;
}

/* Slide — Agent Builder */
.slide__agent-nodes {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.slide__agent-node {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.slide__agent-node--active {
  border-color: var(--neon-violet);
  box-shadow: 0 0 0 2px rgba(191,90,242,0.1);
}

.slide__agent-node-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.slide__agent-node-icon--g { background: var(--neon-green-bg); color: var(--neon-green); }
.slide__agent-node-icon--v { background: var(--neon-violet-bg); color: var(--neon-violet); }
.slide__agent-node-icon--r { background: var(--neon-red-bg); color: var(--neon-red); }

.slide__agent-node strong {
  font-size: 13px;
  display: block;
}

.slide__agent-node span {
  font-size: 11px;
  color: var(--text-tertiary);
}

.slide__agent-status {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.slide__agent-status--live {
  background: var(--neon-green-bg);
  color: #00cc6e;
}

.slide__agent-status--training {
  background: var(--neon-violet-bg);
  color: var(--neon-violet);
}

.slide__agent-status--paused {
  background: var(--neon-red-bg);
  color: var(--neon-red);
}

/* Slide — Context */
.slide__ctx-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.slide__ctx-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.slide__ctx-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
}

.slide__ctx-bar {
  height: 6px;
  background: var(--bg);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.slide__ctx-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 1.2s ease;
}

.slide__ctx-fill--g {
  background: linear-gradient(90deg, var(--neon-green), #00D4FF);
  box-shadow: 0 0 6px rgba(0,255,136,0.2);
}

.slide__ctx-fill--v {
  background: linear-gradient(90deg, var(--neon-violet), #d98ff7);
  box-shadow: 0 0 6px rgba(191,90,242,0.2);
}

.slide__ctx-fill--r {
  background: linear-gradient(90deg, var(--neon-red), #ff9a9a);
  box-shadow: 0 0 6px rgba(255,107,107,0.2);
}

/* Slide — Marketing */
.slide__mkt-channels {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.slide__mkt-ch {
  flex: 1;
  text-align: center;
  padding: 12px 6px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  transition: border-color 0.3s;
}

.slide__mkt-ch--active {
  border-color: var(--neon-red);
  box-shadow: 0 0 0 2px rgba(255,107,107,0.08);
}

.slide__mkt-ch-val {
  display: block;
  font-size: 18px;
  font-weight: 800;
  font-family: var(--font-mono);
}

.slide__mkt-ch-label {
  display: block;
  font-size: 10px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.slide__mkt-perf {
  padding: 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
}

.slide__mkt-perf-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  display: block;
}

.slide__mkt-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.slide__mkt-row:last-child { margin-bottom: 0; }

.slide__mkt-row-label {
  font-size: 11px;
  font-weight: 600;
  min-width: 60px;
}

.slide__mkt-row-bar {
  flex: 1;
  height: 5px;
  border-radius: var(--radius-full);
}

.slide__mkt-row-bar--g {
  background: linear-gradient(90deg, var(--neon-green), var(--neon-violet));
}

.slide__mkt-row-bar--dim {
  background: var(--border);
}

.slide__mkt-row-val {
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  min-width: 36px;
  text-align: right;
}

/* Slide labels */
.slide__label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.slide__label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.slide__label-dot--g { background: var(--neon-green); box-shadow: 0 0 4px rgba(0,255,136,0.4); }
.slide__label-dot--v { background: var(--neon-violet); box-shadow: 0 0 4px rgba(191,90,242,0.4); }
.slide__label-dot--r { background: var(--neon-red); box-shadow: 0 0 4px rgba(255,107,107,0.4); }

.slide__label-text {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

.slide__label-tag {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--neon-green-bg);
  color: #00cc6e;
}

/* ============================================ */
/* RESPONSIVE                                   */
/* ============================================ */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__left { text-align: center; }
  .hero__badge { margin-left: auto; margin-right: auto; }
  .hero__sub { margin: 0 auto 32px; max-width: 540px; }
  .hero__ctas { justify-content: center; }
  .hero__proof { justify-content: center; }

  .flow-builder { max-width: 600px; margin: 0 auto; }

  .use-case {
    flex-direction: column;
    gap: 32px;
  }

  .use-case__visual {
    flex: auto;
    width: 100%;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gs-flow { max-width: 100%; }
  .gs-calc__checks { grid-template-columns: 1fr 1fr; }
  .gs-stepper__label { display: none; }

  .specialists__grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }

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

  /* Slideshow */
  .slideshow__stage { max-width: 480px; }
  .slideshow__arrow--prev { left: -16px; }
  .slideshow__arrow--next { right: -16px; }
}

@media (max-width: 768px) {
  /* Nav */
  .nav__links, .nav__actions .btn--outline {
    display: none;
  }

  .nav__links.open {
    display: flex;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    flex-direction: column;
    gap: 8px;
    z-index: 999;
    overflow-y: auto;
  }

  .nav__links.open .nav__link {
    font-size: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
  }

  .nav__links.open .nav__link--mobile-cta {
    display: inline-flex !important;
    margin-top: 8px;
    text-align: center;
    justify-content: center;
    border-bottom: none;
  }

  .nav__burger { display: flex; }

  /* Hero */
  .hero { padding: 90px 0 48px; }
  .hero__inner { gap: 32px; }
  .hero__title { font-size: 32px; line-height: 1.15; }
  .hero__sub { font-size: 15px; }
  .hero__badge { font-size: 12px; padding: 5px 12px; margin-bottom: 16px; }
  .hero__proof-text { font-size: 12px; }
  .hero__ctas { margin-bottom: 20px; }

  /* Flow Builder - scale to fit mobile */
  .flow-builder { max-width: 100%; }
  .flow-canvas {
    min-height: 240px;
    overflow: hidden;
    transform: scale(0.72);
    transform-origin: top left;
    width: 138.9%; /* 100% / 0.72 to compensate */
    margin-bottom: -80px; /* compensate for scale whitespace */
  }
  .flow-detail { display: none; }
  .flow-toolbar__left {
    gap: 0;
  }
  .flow-toolbar__btn {
    font-size: 0;
    padding: 6px 8px;
    gap: 0;
  }
  .flow-toolbar__btn svg {
    font-size: initial;
    width: 16px;
    height: 16px;
  }

  /* Slideshow */
  .slideshow__title { font-size: 24px; }
  .slideshow__sub { font-size: 14px; }
  .slideshow__stage { max-width: 100%; }
  .slideshow__slides { min-height: 280px; }
  .slideshow__arrow { width: 34px; height: 34px; }
  .slideshow__arrow--prev { left: 6px; }
  .slideshow__arrow--next { right: 6px; }
  .slide__body { padding: 14px; min-height: 180px; }
  .slide__chart-bars { height: 80px; }
  .slide__metrics { gap: 6px; }
  .slide__metric-val { font-size: 14px; }

  /* Sections spacing */
  .use-cases { padding: 56px 0; }
  .slideshow { padding: 48px 0; }
  .services { padding: 64px 0; }
  .platform { padding: 64px 0; }
  .specialists { padding: 64px 0; }
  .cta { padding: 64px 0; }

  /* Section titles */
  .section-title { font-size: 26px; }
  .section-sub { font-size: 14px; margin-bottom: 32px; }

  /* Use case tabs */
  .use-cases__tabs {
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0;
    gap: 0;
  }
  .use-cases__tabs::-webkit-scrollbar { display: none; }
  .tab { font-size: 13px; padding: 10px 14px; }

  /* Use case content */
  .use-case__title { font-size: 22px; }
  .use-case__desc { font-size: 14px; }
  .checklist li { font-size: 13px; }

  /* Code block */
  .code-block__code { font-size: 11px; padding: 12px 14px; }

  /* Services */
  .services__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .service-card { padding: 20px; }
  .service-card h3 { font-size: 16px; }
  .service-card p { font-size: 13px; }

  /* Get Started */
  .gs-form__row { grid-template-columns: 1fr; }
  .gs-calc__pills { flex-wrap: wrap; }
  .gs-calc__checks { grid-template-columns: 1fr; }
  .gs-meeting__topics { grid-template-columns: 1fr; }
  .gs-stepper { padding: 16px 20px; }
  .gs-form { padding: 20px; }
  .gs-calc { padding: 20px; }
  .gs-meeting { padding: 20px; }

  /* AI Popup */
  .ai-fab__window { width: calc(100vw - 32px); right: -8px; bottom: 64px; max-height: 70vh; }
  .ai-fab { bottom: 16px; right: 16px; }

  /* Specialists */
  .specialist-card { padding: 24px; }
  .specialist-card__avatar { width: 44px; height: 44px; font-size: 15px; }
  .specialist-card__name { font-size: 17px; }
  .specialist-card__role { font-size: 13px; }
  .specialist-card__bio { font-size: 13px; }
  .specialist-card__tags { gap: 4px; }
  .s-tag { font-size: 11px; padding: 3px 10px; }
  .specialist-card__specialties li { font-size: 12px; }

  /* Scale grid */
  .scale-stat__num { font-size: 28px; }
  .scale-stat { padding: 16px; }

  /* CTA */
  .cta h2 { font-size: 26px; }
  .cta p { font-size: 14px; }
  .cta__actions { flex-direction: column; align-items: center; }
  .hero__ctas { flex-direction: column; align-items: center; }

  /* Footer */
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer__brand p { font-size: 12px; }
}

/* Extra small phones */
@media (max-width: 400px) {
  .container { padding: 0 16px; }
  .hero__title { font-size: 28px; }
  .hero__ctas .btn { width: 100%; justify-content: center; }
  .cta__actions .btn { width: 100%; justify-content: center; }
  .nav__actions .btn--dark { font-size: 12px; padding: 8px 14px; }

  .flow-canvas {
    transform: scale(0.58);
    width: 172.4%;
    margin-bottom: -120px;
  }

  .scale-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .t-card { padding: 16px; }
  .a-card { padding: 16px; gap: 12px; }
  .specialist-card__header { gap: 12px; }

  .sql-demo__mockup { max-width: 100%; }
}
