/* ============================================================
   FlexAI – Corporate Site Design System
   ============================================================ */

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

:root {
  --bg: #050810;
  --bg2: #080d18;
  --surface: #0d1424;
  --surface2: #111a2e;
  --surface3: #1a2440;
  --border: rgba(99,179,255,0.12);
  --border2: rgba(99,179,255,0.22);
  --accent: #3b82f6;
  --accent2: #60a5fa;
  --accent3: #93c5fd;
  --accent-soft: rgba(59,130,246,0.10);
  --green: #10b981;
  --purple: #8b5cf6;
  --orange: #f59e0b;
  --pink: #ec4899;
  --cyan: #06b6d4;
  --text: #f0f4ff;
  --text2: #c8d8ee;
  --text3: #8aa0bc;
  --text4: #5e7290;
  --glow: rgba(59,130,246,0.18);
  --radius: 14px;
  --radius-lg: 22px;
  --radius-sm: 8px;
  --shadow-sm: 0 4px 16px rgba(0,0,0,0.25);
  --shadow-md: 0 12px 32px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 40px rgba(59,130,246,0.25);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
}

/* Decorative background grid */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.035) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at top, black 30%, transparent 80%);
}

a { color: inherit; }

img, svg { max-width: 100%; display: block; }

/* ============================================================
   NAVIGATION
   ============================================================ */
nav.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(5,8,16,0.78);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -1.2px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0;
  line-height: 1;
}
.logo-mark {
  /* Neural F icon — sized so the F glyph visually matches caps height of adjacent text */
  width: 32px;
  height: 32px;
  display: inline-block;
  flex-shrink: 0;
  filter: drop-shadow(0 0 12px rgba(139,92,246,0.35));
  /* Pull right so F's right edge sits visually flush against "lex" */
  margin-right: -6px;
  transform: translateY(1px);
}
.logo-word {
  display: inline-block;
  color: var(--text);
  font-weight: 800;
}
.logo-word b {
  color: var(--accent2);
  font-weight: 800;
}

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  color: var(--text2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

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

/* Language switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px;
  gap: 0;
}
.lang-switch button {
  background: transparent;
  border: 0;
  color: var(--text3);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 5px 9px;
  border-radius: 100px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button.active {
  background: var(--accent);
  color: #fff;
}
@media (max-width: 768px) {
  .lang-switch { display: none; }
  .mobile-menu .lang-switch {
    display: inline-flex;
    margin-top: 8px;
    align-self: flex-start;
  }
}

.nav-cta {
  background: var(--accent);
  color: #fff;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 0 20px rgba(59,130,246,0.25);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 0 28px rgba(59,130,246,0.45); }

.hamburger {
  display: none;
  background: transparent;
  border: 0;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

.mobile-menu {
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: rgba(5,8,16,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 24px 32px;
  display: none;
  flex-direction: column;
  gap: 18px;
  z-index: 99;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--text2);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-menu .mobile-cta {
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 14px;
  border-radius: 10px;
  border: 0;
  margin-top: 8px;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
  position: relative;
  z-index: 1;
}

section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.divider {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border2), transparent);
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 700;
  letter-spacing: -1.2px;
  line-height: 1.1;
  margin-bottom: 18px;
}
.section-title .accent { color: var(--accent); }
.section-title .grad {
  background: linear-gradient(135deg, var(--accent2), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-sub {
  font-size: 17px;
  color: var(--text2);
  max-width: 620px;
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 56px;
}

.section-head { text-align: center; margin: 0 auto 60px; max-width: 720px; }
.section-head .section-sub { margin-left: auto; margin-right: auto; }

/* ============================================================
   PAGE HERO (small hero for inner pages)
   ============================================================ */
.page-hero {
  position: relative;
  padding: 160px 0 80px;
  text-align: center;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 40px; left: 50%;
  transform: translateX(-50%);
  width: min(900px, 90vw);
  height: 320px;
  background: radial-gradient(ellipse, rgba(59,130,246,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}
.page-hero h1 .grad {
  background: linear-gradient(135deg, var(--accent2), var(--purple) 60%, var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-hero p {
  font-size: 18px;
  color: var(--text2);
  max-width: 680px;
  margin: 0 auto;
  font-weight: 300;
  line-height: 1.7;
}

/* ============================================================
   HERO (homepage)
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 80px;
  z-index: 1;
  overflow: hidden;
}

/* Full-page hero background scene */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 30% 20%, rgba(59,130,246,0.22) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 70% 30%, rgba(139,92,246,0.20) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% 80%, rgba(236,72,153,0.15) 0%, transparent 60%),
    linear-gradient(180deg, transparent 0%, var(--bg) 95%);
  filter: blur(0px);
}
.hero-bg svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-bg .mesh-line {
  stroke: rgba(99,179,255,0.18);
  stroke-width: 1;
  fill: none;
  animation: meshShift 18s ease-in-out infinite alternate;
}
.hero-bg .mesh-node {
  fill: var(--accent);
  filter: drop-shadow(0 0 6px rgba(59,130,246,0.8));
  animation: nodePulse 3s ease-in-out infinite;
}
.hero-bg .mesh-node:nth-child(odd) { animation-delay: -1s; fill: var(--purple); filter: drop-shadow(0 0 6px rgba(139,92,246,0.8)); }
.hero-bg .mesh-node:nth-child(3n) { animation-delay: -2s; fill: var(--pink); filter: drop-shadow(0 0 6px rgba(236,72,153,0.8)); }

.hero-bg .data-particle {
  fill: rgba(255,255,255,0.6);
  animation: drift 12s linear infinite;
}

@keyframes meshShift {
  0%   { transform: translateY(0) scale(1); }
  100% { transform: translateY(-30px) scale(1.04); }
}
@keyframes nodePulse {
  0%, 100% { opacity: 1; r: 3; }
  50% { opacity: 0.4; r: 5; }
}
@keyframes drift {
  0% { transform: translate(0,0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translate(60px, -120px); opacity: 0; }
}

.hero-bg .scanline {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, rgba(99,179,255,0.04) 1px, transparent 1px);
  background-size: 100% 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero-glow {
  position: absolute;
  top: 18%; left: 50%;
  transform: translateX(-50%);
  width: min(900px, 90vw);
  height: 460px;
  background: radial-gradient(ellipse, rgba(59,130,246,0.18) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(20px);
  z-index: 0;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  pointer-events: none;
  animation: float 12s ease-in-out infinite;
}
.hero-orb.a { width: 280px; height: 280px; background: rgba(59,130,246,0.4); top: 30%; left: 8%; }
.hero-orb.b { width: 220px; height: 220px; background: rgba(139,92,246,0.35); top: 50%; right: 10%; animation-delay: -4s; }
.hero-orb.c { width: 180px; height: 180px; background: rgba(236,72,153,0.25); bottom: 20%; left: 40%; animation-delay: -8s; }

@keyframes float {
  0%,100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-30px) translateX(20px); }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59,130,246,0.10);
  border: 1px solid rgba(59,130,246,0.30);
  color: var(--accent3);
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 28px;
  animation: fadeUp 0.6s ease both;
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
  box-shadow: 0 0 8px var(--accent);
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.hero h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 26px;
  animation: fadeUp 0.6s 0.1s ease both;
  position: relative;
  z-index: 2;
}
.hero h1 .accent { color: var(--accent); }
.hero h1 .grad {
  background: linear-gradient(135deg, var(--accent2) 0%, var(--purple) 60%, var(--pink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero h1 .dim { color: var(--text2); }

.hero-lead {
  font-size: 19px;
  color: var(--text2);
  max-width: 680px;
  margin: 0 auto 38px;
  font-weight: 300;
  line-height: 1.7;
  animation: fadeUp 0.6s 0.2s ease both;
  position: relative; z-index: 2;
}

.hero-outcomes {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 36px;
  animation: fadeUp 0.6s 0.25s ease both;
  position: relative; z-index: 2;
}
.outcome-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 14px;
  color: var(--text2);
}
.outcome-icon { font-size: 16px; }

.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.6s 0.3s ease both;
  position: relative; z-index: 2;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 15px 32px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 0 30px rgba(59,130,246,0.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 44px rgba(59,130,246,0.55); }

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  padding: 15px 32px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--border2);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-secondary:hover { background: var(--surface2); transform: translateY(-2px); border-color: var(--accent); }

.btn-ghost {
  color: var(--accent3);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
.btn-ghost:hover { gap: 10px; }

.stats {
  display: flex;
  justify-content: center;
  gap: 50px;
  padding: 48px 0 0;
  animation: fadeUp 0.6s 0.4s ease both;
  flex-wrap: wrap;
  position: relative; z-index: 2;
}
.stat { text-align: center; }
.stat-num {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -1px;
}
.stat-num span { color: var(--accent); }
.stat-label { font-size: 12px; color: var(--text3); margin-top: 4px; text-transform: uppercase; letter-spacing: 1px; }

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

/* ============================================================
   FEATURE CARDS
   ============================================================ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--glow) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.card:hover { border-color: var(--border2); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card:hover::before { opacity: 1; }

.card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 18px;
  background: var(--accent-soft);
  border: 1px solid var(--border2);
}
.card-icon.blue { background: rgba(59,130,246,0.12); color: var(--accent2); }
.card-icon.green { background: rgba(16,185,129,0.12); color: var(--green); }
.card-icon.purple { background: rgba(139,92,246,0.12); color: var(--purple); }
.card-icon.orange { background: rgba(245,158,11,0.12); color: var(--orange); }
.card-icon.pink { background: rgba(236,72,153,0.12); color: var(--pink); }
.card-icon.cyan { background: rgba(6,182,212,0.12); color: var(--cyan); }

.card-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
.card-desc {
  font-size: 14.5px;
  color: var(--text2);
  line-height: 1.65;
  font-weight: 300;
}
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.tag {
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.18);
  color: var(--accent3);
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
}

/* Feature highlight – wider card with arrow */
.feature-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 100px;
}
.feature-row.reverse { grid-template-columns: 1fr 1.1fr; }
.feature-row.reverse .feature-row-text { order: 2; }
.feature-row .feature-row-text h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.15;
  margin-bottom: 16px;
}
.feature-row .feature-row-text h3 .accent { color: var(--accent); }
.feature-row .feature-row-text p {
  font-size: 16px;
  color: var(--text2);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 18px;
}
.feature-row .feature-row-text ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-row .feature-row-text ul li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text2);
}
.feature-row .feature-row-text ul li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
}
.feature-row-visual {
  background: linear-gradient(135deg, var(--surface), var(--surface2));
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-row-visual::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 30%, var(--glow) 0%, transparent 60%);
  pointer-events: none;
}

/* ============================================================
   LOGO GRID (integrations)
   ============================================================ */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
.logo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  transition: all 0.25s;
  min-height: 110px;
}
.logo-card:hover {
  transform: translateY(-3px);
  border-color: var(--border2);
  background: var(--surface2);
  box-shadow: var(--shadow-sm);
}
.logo-card svg, .logo-card img {
  width: 36px; height: 36px;
  object-fit: contain;
}
.logo-card .lc-name {
  font-size: 13px;
  color: var(--text2);
  font-weight: 500;
}
.logo-card .lc-tag {
  font-size: 10px;
  color: var(--text4);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.logo-section-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 60px 0 18px;
  letter-spacing: -0.4px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-section-title::before {
  content: '';
  width: 6px; height: 22px;
  background: var(--accent);
  border-radius: 3px;
}

/* ============================================================
   RAG PAGE — pipeline diagram
   ============================================================ */
.rag-pipeline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: stretch;
  padding: 24px 0;
}
.rag-step {
  flex: 1 1 160px;
  min-width: 140px;
  background: linear-gradient(135deg, var(--surface), var(--surface2));
  border: 1px solid var(--border2);
  border-radius: 14px;
  padding: 18px 14px;
  text-align: center;
  position: relative;
  transition: all 0.3s;
}
.rag-step:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(59,130,246,0.2);
}
.rag-step .step-num {
  position: absolute;
  top: -10px; left: 14px;
  background: var(--accent);
  color: #fff;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}
.rag-step .step-icon {
  font-size: 28px;
  margin-bottom: 8px;
}
.rag-step .step-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.rag-step .step-desc {
  font-size: 11.5px;
  color: var(--text3);
  line-height: 1.4;
}
.rag-arrow {
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 18px;
  flex: 0 0 14px;
}

/* ============================================================
   SECTOR TABS
   ============================================================ */
.sector-tabs-wrap {
  position: relative;
  margin-bottom: 32px;
}
.sector-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
}
.sector-tabs::-webkit-scrollbar { height: 6px; }
.sector-tabs::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

.sector-tab {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text2);
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  font-family: inherit;
}
.sector-tab:hover { color: var(--text); border-color: var(--border2); }
.sector-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.sector-panel { display: none; animation: fadeUp 0.4s ease both; }
.sector-panel.active { display: block; }

/* ============================================================
   TIMELINE / STACK
   ============================================================ */
.tenant-viz {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 13px;
  line-height: 2;
  background: var(--bg2);
  border-radius: 10px;
  padding: 18px;
  border: 1px solid var(--border);
}
.tenant-line { display: flex; align-items: center; gap: 8px; }
.tenant-line.instance { color: var(--accent3); }
.tenant-line.tenant { color: var(--text); padding-left: 14px; }
.tenant-line.user { color: var(--text2); padding-left: 28px; font-size: 12px; }
.tenant-tag {
  background: rgba(59,130,246,0.15);
  border: 1px solid rgba(59,130,246,0.3);
  color: var(--accent3);
  padding: 1px 8px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
}
.tenant-tag.green { background: rgba(16,185,129,0.15); border-color: rgba(16,185,129,0.3); color: var(--green); }

/* ============================================================
   STACK ROWS
   ============================================================ */
.stack-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.stack-row:last-child { border-bottom: 0; }
.stack-key { color: var(--text3); }
.stack-val { color: var(--text); font-weight: 500; }

/* ============================================================
   GALLERY (screenshots)
   ============================================================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.gallery-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
}
.gallery-item:hover {
  transform: translateY(-4px);
  border-color: var(--border2);
  box-shadow: var(--shadow-md);
}
.gallery-thumb {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--surface2), var(--surface3));
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--text3);
  font-size: 13px;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-info {
  padding: 14px 16px;
}
.gallery-info .gi-title { font-weight: 600; color: var(--text); font-size: 14.5px; }
.gallery-info .gi-cat { font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: 1px; margin-top: 3px; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5,8,16,0.92);
  backdrop-filter: blur(12px);
  display: none;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 95vw; max-height: 90vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,0.7); }
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  background: var(--surface);
  border: 1px solid var(--border2);
  color: var(--text);
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
}

/* ============================================================
   CTA STRIP
   ============================================================ */
.cta-strip {
  background: linear-gradient(135deg, rgba(59,130,246,0.10), rgba(139,92,246,0.10));
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  margin: 60px 0;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute;
  top: -50%; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--glow) 0%, transparent 60%);
  pointer-events: none;
}
.cta-strip h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.cta-strip h2 .grad {
  background: linear-gradient(135deg, var(--accent2), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cta-strip p {
  font-size: 16px;
  color: var(--text2);
  max-width: 560px;
  margin: 0 auto 32px;
  position: relative;
  z-index: 1;
}
.cta-strip .hero-ctas { animation: none; position: relative; z-index: 1; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 44px;
  align-items: start;
}
.contact-info { padding: 8px 0; }
.contact-info .info-item {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.contact-info .info-item:last-child { border-bottom: 0; }
.contact-info .info-icon {
  width: 40px; height: 40px;
  background: var(--accent-soft);
  border: 1px solid var(--border2);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}
.contact-info h4 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 15px; margin-bottom: 4px; }
.contact-info p { color: var(--text2); font-size: 14px; }
.contact-info a { color: var(--accent3); text-decoration: none; }
.contact-info a:hover { color: var(--accent); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-field label { font-size: 13px; color: var(--text3); font-weight: 500; }
.form-field input, .form-field textarea, .form-field select {
  background: var(--bg2);
  border: 1px solid var(--border2);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14.5px;
  font-family: inherit;
  transition: border-color 0.2s;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.form-field textarea { min-height: 120px; resize: vertical; }

/* ============================================================
   FOOTER
   ============================================================ */
footer.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 60px 0 28px;
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h5 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 700;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  color: var(--text2);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--accent3); }
.footer-tag {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
  margin-top: 12px;
  font-weight: 300;
  max-width: 300px;
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text3);
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================================
   VIDEO PLACEHOLDER
   ============================================================ */
.video-placeholder {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--surface2), var(--surface3));
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  color: var(--text3);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
}
.video-placeholder:hover { border-color: var(--accent); }
.video-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, var(--glow) 0%, transparent 70%);
}
.video-placeholder .play {
  width: 80px; height: 80px;
  background: var(--accent);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 28px;
  color: #fff;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 50px rgba(59,130,246,0.5);
  transition: transform 0.3s;
}
.video-placeholder:hover .play { transform: scale(1.1); }
.video-placeholder .vp-label {
  position: absolute;
  bottom: 24px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text2);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; gap: 30px; }
  .feature-row.reverse .feature-row-text { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  nav.site-nav { padding: 14px 20px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  section { padding: 70px 0; }
  .container { padding: 0 20px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats { gap: 28px; }
  .hero { padding: 120px 16px 60px; }
  .page-hero { padding: 120px 0 60px; }
  .cta-strip { padding: 40px 24px; }
  .rag-arrow { display: none; }
}
