/* ═══════════════════════════════════════════════════════════════════════
   FLOOWBOX — GOOGLE ANTIGRAVITY AESTHETIC DESIGN SYSTEM
   Clean White Theme • Dark Text • Electric Blue Accents • Pill Ergonomics
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  /* Google Antigravity Light Palette */
  --bg: #ffffff;
  --bg-surface: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-hover: #e2e8f0;

  /* Typography Colors */
  --text: #0f172a;
  --text-heading: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  /* Antigravity Blue Accents */
  --blue: #1a73e8;
  --blue-hover: #1557b0;
  --blue-bright: #2563eb;
  --blue-light: #eff6ff;
  --blue-dim: rgba(26, 115, 232, 0.08);
  --blue-glow: rgba(26, 115, 232, 0.16);

  /* Clean Borders & Shadows */
  --border: rgba(0, 0, 0, 0.08);
  --border-light: rgba(0, 0, 0, 0.05);
  --border-blue: rgba(26, 115, 232, 0.25);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 25px 60px rgba(0, 0, 0, 0.12);

  /* Layout Constraints */
  --container-max: 1160px;
  --radius-pill: 999px;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, .font-heading {
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.028em;
  color: var(--text-heading);
}

.font-condensed {
  font-family: 'Barlow Condensed', 'Plus Jakarta Sans', sans-serif;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-surface); }
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--blue); }

/* ─── THREE.JS 3D CANVAS & AMBIENT LAYERS ─── */
#three-bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 40%, transparent 100%);
}

#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.2;
}

/* ─── SUBTLE CURSOR GLOW ─── */
#mouse-glow {
  position: fixed;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(26, 115, 232, 0.08) 0%, rgba(96, 165, 250, 0.02) 45%, transparent 70%);
  transition: opacity 0.4s ease;
  opacity: 0;
}

/* ─── HEADER / NAVIGATION (ANTIGRAVITY FLOATING PILL) ─── */
header {
  position: relative;
  z-index: 300;
}

nav#mainNav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--container-max), 92%);
  z-index: 300;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 0 1.5rem;
  height: 52px;

  /* Antigravity White Frosted Glass */
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
}

nav#mainNav.scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  height: 50px;
}

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  color: var(--text);
}

.brand-logo-img {
  height: 24px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
  color: var(--text);
  transition: transform 0.25s ease;
}

.nav-brand:hover .brand-logo-img {
  transform: scale(1.02);
}

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

.nav-links > li {
  position: relative;
}

.nav-links a {
  font-size: var(--fs-body);
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
  position: relative;
  padding: 0.4rem 0.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--blue);
  transform: translateX(-50%);
  transition: width 0.25s ease;
  border-radius: 2px;
}

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

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

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 320px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 0.8rem 0.6rem;
  padding-top: 1.2rem;
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 500;
}

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

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
  font-size: var(--fs-body);
  font-weight: 600;
  transition: all 0.2s ease;
}

.nav-dropdown-item:hover {
  background: var(--bg-subtle);
  color: var(--blue);
  transform: translateX(4px);
}

.nav-dropdown-item svg {
  width: 18px;
  height: 18px;
  color: var(--blue);
  flex-shrink: 0;
}

.nav-dropdown-text {
  display: flex;
  flex-direction: column;
}

.nav-dropdown-title {
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--text);
}

.nav-dropdown-desc {
  font-size: var(--fs-label);
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

/* Compact Nav Pill CTA */
.nav-cta {
  background: var(--text);
  color: #ffffff !important;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: var(--fs-label);
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-cta:hover {
  background: #000000;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

/* Mobile Menu Button & Drawer */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.6rem;
  cursor: pointer;
}

.mobile-menu {
  position: fixed;
  top: 76px;
  left: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(25px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  box-shadow: var(--shadow-xl);
  padding: 1.2rem 0;
  max-height: 85vh;
  overflow-y: auto;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-menu a {
  display: block;
  padding: 12px 24px;
  color: var(--text);
  text-decoration: none;
  font-size: var(--fs-body);
  font-weight: 600;
  border-bottom: 1px solid var(--border-light);
}

.mobile-menu a.mobile-sub-link {
  padding-left: 36px;
  font-size: var(--fs-body);
  color: var(--text-secondary);
  font-weight: 500;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

/* ─── ANTIGRAVITY PILL BUTTONS ─── */
.btn-magnetic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  will-change: transform;
  transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--text);
  color: #ffffff;
  padding: 0.85rem 2.2rem;
  font-size: var(--fs-body);
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.15);
}

.btn-primary:hover {
  background: #000000;
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.25);
  color: #ffffff;
}

.btn-ghost {
  background: #ffffff;
  color: var(--text);
  padding: 0.85rem 2.2rem;
  font-size: var(--fs-body);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  border-color: rgba(0, 0, 0, 0.18);
  background: var(--bg-surface);
  color: var(--blue);
}

/* ─── CONTAINER & SECTION WRAPPERS ─── */
.section-wrap {
  position: relative;
  z-index: 2;
  padding: 6.5rem 0;
}

.section-inner {
  width: min(var(--container-max), 92%);
  margin: 0 auto;
}

.section-eyebrow {
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.section-eyebrow::before {
  content: '';
  display: block;
  width: 14px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}

.section-title {
  font-size: var(--fs-heading);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.1rem;
}

.section-sub {
  color: var(--text-secondary);
  font-size: var(--fs-sub);
  line-height: 1.75;
  max-width: 600px;
}

.text-accent-blue {
  color: var(--blue);
}

/* ─── HERO SECTION (ANTIGRAVITY AIRY LIGHT HERO) ─── */
.hero-section {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8.5rem 1.5rem 5.5rem;
  position: relative;
  overflow: hidden;
  z-index: 2;
  background: radial-gradient(circle at 50% 30%, rgba(26, 115, 232, 0.05) 0%, transparent 60%);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  padding: 0.4rem 1.1rem;
  font-size: var(--fs-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 1.8rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  animation: blink 2s infinite;
}

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

.hero-title {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
  font-size: var(--fs-heading);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: 1.4rem;
}

.hero-sub {
  font-size: var(--fs-sub);
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 620px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── ENGAGING VIBRANT ICONS ─── */
.pillar-icon, .problem-icon, .sc-icon, .sim-node-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--blue-light);
  border: 1px solid rgba(26, 115, 232, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  margin-bottom: 1.3rem;
  transition: all 0.3s ease;
}

.pillar-icon svg, .problem-icon svg, .sc-icon svg, .sim-node-icon svg {
  width: 24px;
  height: 24px;
  color: var(--blue);
  transition: transform 0.3s ease;
}

.pillar-card:hover .pillar-icon,
.problem-card:hover .problem-icon {
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(26, 115, 232, 0.3);
}

.pillar-card:hover .pillar-icon svg,
.problem-card:hover .problem-icon svg {
  color: #ffffff;
  transform: scale(1.1);
}

/* ─── 3D PERSPECTIVE CARDS ─── */
.perspective-container {
  perspective: 1200px;
}

.card-3d {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s;
}

.card-3d:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(26, 115, 232, 0.25);
}

/* ─── SCROLL REVEALS ─── */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }

body.no-js .reveal-on-scroll {
  opacity: 1;
  transform: none;
}

/* ─── STATS SECTION ─── */
#stats {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
  padding: 3.5rem 1.5rem;
}

.stats-grid {
  width: min(var(--container-max), 92%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border);
}

.stat-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: var(--fs-heading);
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.35rem;
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: var(--fs-label);
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ─── SERVICE PILLAR CARDS ─── */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.4rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.pillar-card:hover {
  background: #ffffff;
  border-color: rgba(26, 115, 232, 0.3);
  box-shadow: var(--shadow-lg);
}

.pillar-title {
  font-size: var(--fs-sub);
  font-weight: 700;
  margin-bottom: 0.65rem;
  color: var(--text);
}

.pillar-desc {
  font-size: var(--fs-body);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.pillar-link {
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s;
}

.pillar-link:hover {
  gap: 0.65rem;
  color: var(--blue-hover);
}

/* ─── LIVE AI PIPELINE WORKFLOW SIMULATOR ─── */
.simulator-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.4rem;
  box-shadow: var(--shadow-md);
  margin-top: 2rem;
}

.sim-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.2rem;
  margin-bottom: 1.8rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.sim-title-group h3 {
  font-size: var(--fs-sub);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sim-title-group p {
  font-size: var(--fs-body);
  color: var(--text-secondary);
}

.sim-trigger-btn {
  background: var(--text);
  color: #ffffff;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: var(--fs-body);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.sim-trigger-btn:hover {
  background: #000000;
  transform: translateY(-1px);
}

.sim-pipeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.sim-node {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.sim-node.active {
  border-color: var(--blue);
  background: var(--blue-light);
  box-shadow: 0 4px 16px rgba(26, 115, 232, 0.15);
  transform: translateY(-2px);
}

.sim-node-step {
  font-size: var(--fs-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

.sim-node-title {
  font-size: var(--fs-body);
  font-weight: 700;
  margin: 0.25rem 0;
  color: var(--text);
}

.sim-node-badge {
  font-size: var(--fs-label);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  color: var(--text-muted);
  display: inline-block;
  font-weight: 600;
}

.sim-node.active .sim-node-badge {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.sim-terminal {
  background: #0f172a;
  border-radius: var(--radius-md);
  padding: 1.1rem 1.3rem;
  font-family: monospace;
  font-size: var(--fs-body);
  color: #93c5fd;
  height: 120px;
  overflow-y: auto;
}

.terminal-line {
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.terminal-time {
  color: #64748b;
  font-size: var(--fs-label);
}

.terminal-tag {
  color: #60a5fa;
  font-weight: 700;
}

/* ─── INTERACTIVE ROI CALCULATOR ─── */
.calc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.8rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  box-shadow: var(--shadow-lg);
  margin-top: 2rem;
}

.calc-slider-group {
  margin-bottom: 1.8rem;
}

.calc-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.calc-slider-header label {
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--text);
}

.calc-slider-val {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: var(--fs-sub);
  font-weight: 800;
  color: var(--blue);
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.4);
  transition: transform 0.15s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.calc-results {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.4rem;
  text-align: center;
}

.calc-metric-pill {
  font-size: var(--fs-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 0.6rem;
  display: inline-block;
}

.calc-big-stat {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: var(--fs-heading);
  font-weight: 800;
  line-height: 1;
  color: var(--text);
  margin-bottom: 0.4rem;
  letter-spacing: -0.03em;
}

.calc-sub-stat {
  font-size: var(--fs-body);
  color: var(--text-muted);
  margin-bottom: 1.8rem;
}

.calc-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  border-top: 1px solid var(--border);
  padding-top: 1.2rem;
  margin-bottom: 1.8rem;
}

.calc-break-val {
  font-size: var(--fs-sub);
  font-weight: 800;
  color: var(--text);
}

.calc-break-label {
  font-size: var(--fs-label);
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

/* ─── FLOWCHART IMPLEMENTATION PROCESS ─── */
.steps-track-frame {
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 2.8rem 2rem 2rem;
  background: #ffffff;
  position: relative;
  margin-top: 3.5rem;
  box-shadow: var(--shadow-sm);
}

.steps-track-frame::before {
  content: 'HOW WE WORK';
  position: absolute;
  top: -0.7rem;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  padding: 0 1rem;
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
  color: var(--blue);
  font-weight: 700;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.steps-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.8rem;
  position: relative;
}

.steps-track::before {
  content: '';
  position: absolute;
  top: 54px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: #e2e8f0;
  z-index: 0;
}

.step-flow {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 0.8rem;
}

.step-bubble {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.step-flow:hover .step-bubble {
  background: var(--blue-light);
  border-color: var(--blue);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(26, 115, 232, 0.2);
}

.step-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: var(--fs-heading);
  font-weight: 800;
  color: var(--blue);
}

.step-flow h4 {
  font-size: var(--fs-body);
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.step-flow p {
  font-size: var(--fs-body);
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.4rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(26, 115, 232, 0.3);
}

.step-card .step-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: var(--fs-sub);
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 0.5rem;
}

.step-card h4 {
  font-size: var(--fs-body);
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.step-card p {
  font-size: var(--fs-body);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── PROBLEM SECTION ─── */
.problem-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.problem-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.problem-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.problem-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 0, 0, 0.14);
}

.problem-card h4 {
  font-size: var(--fs-body);
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.problem-card p {
  font-size: var(--fs-body);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── FAQ ACCORDION ─── */
.faq-list {
  max-width: 860px;
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.faq-item.open {
  border-color: var(--blue);
  box-shadow: 0 4px 18px rgba(26, 115, 232, 0.08);
}

.faq-question {
  width: 100%;
  padding: 1.3rem 1.6rem;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: var(--fs-sub);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-chevron {
  transition: transform 0.3s ease;
  color: var(--blue);
  flex-shrink: 0;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.6rem 1.4rem;
  font-size: var(--fs-body);
  color: var(--text-secondary);
  line-height: 1.7;
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ─── CONTACT SECTION ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  margin-top: 3rem;
}

.contact-info-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.8rem;
  box-shadow: var(--shadow-md);
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.1rem;
  border-radius: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s ease;
}

.contact-method:hover {
  background: var(--blue-light);
  border-color: rgba(26, 115, 232, 0.3);
  transform: translateX(4px);
}

.contact-method-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
}

.contact-method-title {
  font-size: var(--fs-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

.contact-method-val {
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--text);
}

.calendly-embed-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.8rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

/* ─── FINAL CTA ─── */
#final-cta {
  padding: 8rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, rgba(26, 115, 232, 0.05) 0%, transparent 70%);
}

.final-label {
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 1.4rem;
}

.final-title {
  font-size: var(--fs-heading);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  letter-spacing: -0.035em;
}

.final-sub {
  color: var(--text-secondary);
  font-size: var(--fs-sub);
  max-width: 560px;
  margin: 0 auto 2.8rem;
  line-height: 1.75;
}

.cta-btns {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── FOOTER (ANTIGRAVITY CLEAN LIGHT FOOTER) ─── */
footer {
  position: relative;
  z-index: 2;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 4.5rem 2rem 3rem;
}

.footer-inner {
  width: min(var(--container-max), 92%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2.2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  max-width: 520px;
}

.footer-brand p {
  font-size: var(--fs-body);
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-brand .brand-logo-img {
  height: 30px;
  max-width: 200px;
  color: var(--text);
}

.footer-middle {
  width: 100%;
  display: flex;
  justify-content: center;
}

.footer-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
}

.footer-links a {
  font-size: var(--fs-body);
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 600;
}

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

.footer-right {
  text-align: center;
  font-size: var(--fs-body);
  color: var(--text-muted);
  line-height: 1.8;
  border-top: 1px solid var(--border);
  padding-top: 1.8rem;
  width: 100%;
}

.footer-right a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-right a:hover {
  color: var(--blue);
}

/* ─── SERVICE CARD MODAL OVERLAY ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(14px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-panel {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.8rem;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-xl);
  transform: translateY(24px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-panel {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--bg-hover);
}

.modal-eyebrow {
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.modal-title {
  font-size: var(--fs-sub);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.8rem;
  color: var(--text);
}

.modal-lead {
  font-size: var(--fs-body);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.modal-section-title {
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 1rem;
  margin-top: 1.6rem;
}

.modal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.modal-list li {
  font-size: var(--fs-body);
  color: var(--text-secondary);
  padding-left: 1.4rem;
  position: relative;
  line-height: 1.6;
}

.modal-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-size: var(--fs-body);
}

.modal-cta {
  margin-top: 2rem;
  text-align: center;
}

/* ─── PORTFOLIO PLACEHOLDER BOXES ─── */
.portfolio-section {
  margin-top: 5rem;
  padding-top: 4rem;
  border-top: 1px solid var(--border);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.portfolio-placeholder {
  background: var(--bg-surface);
  border: 1px dashed rgba(0, 0, 0, 0.14);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  text-align: center;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  transition: all 0.25s;
}

.portfolio-placeholder:hover {
  border-color: var(--blue);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.portfolio-placeholder-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}

.portfolio-placeholder h4 {
  color: var(--text);
}

.portfolio-placeholder p {
  font-size: var(--fs-label);
  color: var(--text-muted);
}

/* ─── TEAM & LEADERSHIP CARDS ─── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  margin-top: 2.5rem;
}

.team-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.2rem 1.8rem;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(26, 115, 232, 0.25);
}

.team-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin: 0 auto 1.4rem;
  background: var(--blue-light);
  border: 2px solid rgba(26, 115, 232, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--blue);
}

.team-role-badge {
  display: inline-block;
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  background: var(--blue-light);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(26, 115, 232, 0.15);
  margin-bottom: 0.8rem;
}

.team-name {
  font-size: var(--fs-sub);
  font-weight: 800;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.team-title {
  font-size: var(--fs-body);
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.team-bio {
  font-size: var(--fs-body);
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── JOURNEY TIMELINE ─── */
.timeline-track {
  position: relative;
  max-width: 820px;
  margin: 3.5rem auto 0;
  padding-left: 2rem;
  border-left: 2px solid #e2e8f0;
}

.timeline-item {
  position: relative;
  margin-bottom: 2.8rem;
  padding-left: 1.5rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -2.6rem;
  top: 0.2rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid #ffffff;
  box-shadow: 0 0 10px rgba(26, 115, 232, 0.5);
}

.timeline-year {
  font-size: var(--fs-body);
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 0.25rem;
  letter-spacing: 0.04em;
}

.timeline-title {
  font-size: var(--fs-sub);
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.timeline-desc {
  font-size: var(--fs-body);
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ─── RESPONSIVE BREAKPOINTS ─── */
@media (max-width: 1024px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-track { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .steps-track::before { display: none; }
  .calc-card { grid-template-columns: 1fr; gap: 2.5rem; }
  .sim-pipeline { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 860px) {
  nav#mainNav { height: 48px; padding: 0 1.2rem; }
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .hero-section { padding: 7rem 1.2rem 4rem; }
  .hero-title { font-size: var(--fs-heading); }
  .hero-sub { font-size: var(--fs-body); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2)::after { display: none; }
  .problem-inner { grid-template-columns: 1fr; gap: 3rem; }
  .problem-cards { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }
  .sim-pipeline { grid-template-columns: 1fr; }
  .steps-track { grid-template-columns: 1fr; gap: 2rem; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   v2 ADDITIONS — consistency, accessibility, home sections, motion
   (appended; original rules above are unchanged)
   ═══════════════════════════════════════════════════════════════ */
:root {
  /* aliases so legacy inline styles resolve in the light theme */
  --black: var(--bg); --black2: var(--bg-surface); --black3: var(--bg-subtle);
  --white: var(--text); --gray: var(--text-secondary); --gray2: var(--text-muted);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}
body { overflow-x: clip; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 10000; background: var(--blue); color: #fff; padding: .7rem 1.1rem; border-radius: var(--radius-md); font-weight: 700; transition: top .2s; }
.skip-link:focus { top: 1rem; }
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--blue), var(--blue-bright)); z-index: 9998; pointer-events: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.nav-links a[aria-current="page"], .mobile-menu a[aria-current="page"] { color: var(--blue); }

/* decorative layers that pages already reference */
.hero-section, #final-cta { position: relative; overflow: hidden; isolation: isolate; }
.hero-orb-1, .hero-orb-2, .cta-orb { position: absolute; border-radius: 50%; pointer-events: none; z-index: -1; will-change: transform; }
.hero-orb-1 { width: 640px; height: 640px; top: -18%; left: -12%; background: radial-gradient(circle, rgba(26,115,232,.14), transparent 65%); }
.hero-orb-2 { width: 520px; height: 520px; bottom: -22%; right: -10%; background: radial-gradient(circle, rgba(96,165,250,.16), transparent 65%); }
.cta-orb { width: 820px; height: 460px; top: 50%; left: 50%; transform: translate(-50%, -50%); background: radial-gradient(ellipse, rgba(26,115,232,.12), transparent 65%); }
.hero-grid, .cta-grid { position: absolute; inset: 0; pointer-events: none; z-index: -1; background-image: linear-gradient(rgba(26,115,232,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(26,115,232,.06) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 20%, transparent 100%); mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 20%, transparent 100%); }
.nav-dropdown-icon { width: 20px; height: 20px; color: var(--blue); flex-shrink: 0; }
.services-header { text-align: center; margin-bottom: 3rem; }
.services-header .section-sub { margin-left: auto; margin-right: auto; }

/* comparison */
.comp-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-card); box-shadow: var(--shadow-md); }
.comp-table { width: 100%; border-collapse: collapse; min-width: 640px; text-align: left; }
.comp-table th, .comp-table td { padding: 1.1rem 1.4rem; font-size: var(--fs-body); line-height: 1.55; border-bottom: 1px solid var(--border-light); }
.comp-table thead th { font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); background: var(--bg-surface); }
.comp-table .col-feature { font-weight: 700; color: var(--text-heading); }
.comp-table .col-manual { color: var(--text-secondary); }
.comp-table .col-floowbox { color: var(--text-heading); font-weight: 600; background: var(--blue-dim); }
.comp-table thead .col-floowbox { color: var(--blue); }
.comp-table tbody tr:last-child td { border-bottom: none; }
.comp-note { font-size: var(--fs-label); color: var(--text-muted); margin-top: 1rem; text-align: center; line-height: 1.6; }

/* tech stack */
.tech-bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.tech-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.8rem; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease-out), box-shadow .35s, border-color .35s; }
.tech-category { font-size: var(--fs-label); letter-spacing: .18em; text-transform: uppercase; color: var(--blue); font-weight: 700; }
.tech-name { font-size: var(--fs-sub); font-weight: 800; margin: .5rem 0; color: var(--text-heading); }
.tech-card p { font-size: var(--fs-body); color: var(--text-secondary); line-height: 1.65; }
.tech-pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.tech-pill { font-size: var(--fs-label); font-weight: 600; padding: .3rem .75rem; border-radius: 999px; background: var(--blue-light); color: var(--blue-hover); border: 1px solid var(--border-blue); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* who we serve */
.who-inner { display: grid; grid-template-columns: 1fr 1.3fr; gap: 4rem; align-items: start; }
.who-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.who-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; transition: transform .35s var(--ease-out), box-shadow .35s, border-color .35s; }
.who-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--blue-light); color: var(--blue); display: flex; align-items: center; justify-content: center; margin-bottom: .9rem; }
.who-icon svg { width: 20px; height: 20px; }
.who-card h4 { font-size: var(--fs-body); font-weight: 800; margin-bottom: .35rem; color: var(--text-heading); }
.who-card p { font-size: var(--fs-body); color: var(--text-secondary); line-height: 1.6; }

/* portfolio / work cards */
.portfolio-link { display: inline-flex; align-items: center; gap: .35rem; font-size: var(--fs-body); font-weight: 700; color: var(--blue); margin-top: .9rem; }
.portfolio-tag { font-size: var(--fs-label); letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; margin-bottom: .4rem; display: block; }

@media (hover: hover) and (pointer: fine) {
  .tech-card:hover, .who-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-blue); }
}
@media (hover: none) { .card-3d, .pillar-card { transform: none !important; } }

/* smooth scroll (Lenis) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

@media (max-width: 1024px) {
  .tech-bento { grid-template-columns: 1fr; }
  .who-inner { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 480px) {
  .who-cards { grid-template-columns: 1fr; }
  .hero-title { font-size: var(--fs-heading); }
  .comp-table th, .comp-table td { padding: .9rem; }
  .hero-orb-1, .hero-orb-2 { width: 360px; height: 360px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ── v2.1 additions ── */
.hero-ring, .hero-ring-2 { position: absolute; top: 50%; left: 50%; border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; z-index: -1; }
.hero-ring { width: 600px; height: 600px; border: 1px solid rgba(26,115,232,.10); }
.hero-ring-2 { width: 900px; height: 900px; border: 1px solid rgba(26,115,232,.06); }
.cta-line { position: absolute; top: 0; left: 50%; width: 1px; height: 100px; background: linear-gradient(var(--blue), transparent); pointer-events: none; }
.btn-ghost { transition: transform .25s var(--ease-out), box-shadow .25s, background-color .25s, border-color .25s, color .25s; }
.btn-ghost:active, .btn-primary:active { transform: translateY(0) scale(.98); }
@media (hover: hover) and (pointer: fine) {
  .btn-ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-blue); background-color: var(--blue-light); color: var(--blue-hover); }
}
.who-card-featured { grid-column: 1 / -1; display: flex; gap: 1.1rem; align-items: flex-start; background: linear-gradient(135deg, var(--blue-light), var(--bg-card)); border-color: var(--border-blue); }
.who-card-featured .who-icon { flex-shrink: 0; margin-bottom: 0; background: var(--blue); color: #fff; }
@media (max-width: 480px) { .who-card-featured { flex-direction: column; } }

/* popup scroll: keep wheel/touch scrolling inside the panel, never the page behind it */
.modal-panel { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.modal-panel:focus { outline: none; }


/* ═══ TYPE SYSTEM — 4 text sizes (+ condensed numerals, mono for code) ═══ */
:root {
  --fs-label: 0.75rem;                       /* small caps labels, pills, tags */
  --fs-body: 0.9rem;                         /* paragraphs, buttons, nav, form text */
  --fs-sub: 1.1rem;                          /* card titles, lead paragraphs */
  --fs-heading: clamp(2rem, 5.2vw, 3.4rem);  /* H1, H2, final CTA, big numbers */
}
.hero-title, .section-title, .final-title { font-size: var(--fs-heading); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
.portfolio-placeholder h3 { font-size: var(--fs-sub); font-weight: 700; }
/* h4 card titles were promoted to h3 (no skipped heading levels) — keep the same styling */
.step-flow h3 {
  font-size: var(--fs-body);
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.step-card h3 {
  font-size: var(--fs-body);
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.problem-card h3 {
  font-size: var(--fs-body);
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.portfolio-placeholder h3 {
  color: var(--text);
}
.who-card h3 { font-size: var(--fs-body); font-weight: 800; margin-bottom: .35rem; color: var(--text-heading); }

/* form controls & buttons inherit the site font (were falling back to Arial) */
button, input, select, textarea { font-family: inherit; }
.skip-link { font-size: var(--fs-body); }
/* contact page: no sideways scroll on small phones */
.contact-grid > * { min-width: 0; }
.contact-method-val, .calendly-embed-box a { overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .calendly-embed-box, .contact-info-card { padding: 1.4rem; }
}

/* card titles use the subheading size so they stay clearly above their text */
.step-flow h3, .step-card h3, .problem-card h3, .who-card h3, .service-card h3 { font-size: var(--fs-sub); }

/* ── bigger logo (nav + footer) ── */
nav#mainNav { height: 60px; }
nav#mainNav.scrolled { height: 56px; }
.brand-logo-img { height: 38px; max-width: 220px; }
.footer-brand .brand-logo-img { height: 48px; max-width: 260px; }
@media (max-width: 900px) {
  nav#mainNav, nav#mainNav.scrolled { height: 54px; }
  .brand-logo-img { height: 32px; max-width: 170px; }
  .footer-brand .brand-logo-img { height: 40px; }
}

/* ── team photos: drop an <img> inside .team-avatar ── */
.team-avatar { width: 104px; height: 104px; overflow: hidden; }
.team-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* small phones: the CTA lives in the mobile menu, so keep the bar to logo + menu button */
@media (max-width: 640px) { .nav-actions .nav-cta { display: none; } }


/* ── legal pages + footer legal row ── */
.legal-wrap { max-width: 820px; margin: 0 auto; }
.legal-wrap h2 { font-size: var(--fs-sub); font-weight: 800; color: var(--text-heading); margin: 2.4rem 0 .7rem; line-height: 1.3; }
.legal-wrap p, .legal-wrap li { font-size: var(--fs-body); line-height: 1.75; color: var(--text-secondary); }
.legal-wrap p { margin-bottom: .9rem; }
.legal-wrap ul { margin: 0 0 1rem 1.2rem; padding: 0; }
.legal-wrap li { margin-bottom: .45rem; }
.legal-wrap a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.legal-wrap strong { color: var(--text-heading); }
.legal-note { margin-top: 3rem; padding: 1.4rem 1.6rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-surface); }
.legal-note p { margin-bottom: .4rem; }
.legal-note p:last-child { margin-bottom: 0; }
.footer-legal { width: min(var(--container-max), 92%); margin: 2.2rem auto 0; padding-top: 1.4rem; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.8rem; }
.footer-legal a { font-size: var(--fs-label); color: var(--text-muted); text-decoration: none; transition: color .2s; }
.footer-legal a:hover, .footer-legal a:focus-visible { color: var(--blue); }
