/* AnveAI - Authoritative Enterprise AI Engineering Design System
   Tier-1 Enterprise Aesthetic (Palantir / Stripe / Linear / Scale AI grade)
   High-contrast Light & Dark themes, uncluttered single-line navigation,
   and WCAG AA compliance with zero-flash persistence. */

@font-face {
  font-family: "Geist";
  src: url("/assets/Geist-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/assets/Geist-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/assets/Geist-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  /* Core Light Palette: High Precision Slate & Sapphire */
  --bg: #ffffff;
  --bg-sunken: #f8fafc;
  --bg-raised: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.85);
  
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --line-subtle: #f1f5f9;

  --text: #0f172a;
  --text-muted: #334155;
  --text-faint: #64748b;
  --text-on-accent: #ffffff;

  --accent: #1d4ed8;
  --accent-hover: #1e40af;
  --accent-quiet: #eff6ff;
  --accent-subtle: #dbeafe;
  --accent-glow: 29, 78, 216;

  --emerald: #059669;
  --emerald-quiet: #ecfdf5;
  --emerald-line: #a7f3d0;

  --amber: #d97706;
  --amber-quiet: #fffbeb;

  --terminal-bg: #0f172a;
  --terminal-text: #e2e8f0;
  --terminal-line: #1e293b;
  --terminal-accent: #38bdf8;
  --terminal-green: #34d399;

  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.03);
  --shadow-xl: 0 20px 32px -8px rgba(15, 23, 42, 0.12);

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --maxw: 1240px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  
  --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
}

:root[data-theme="dark"] {
  /* Core Dark Palette: Obsidian Glass & Electric Sapphire */
  --bg: #080c14;
  --bg-sunken: #0c121e;
  --bg-raised: #121929;
  --bg-card: #101726;
  --bg-card-hover: #172238;
  --bg-glass: rgba(8, 12, 20, 0.85);

  --line: #1e293b;
  --line-strong: #334155;
  --line-subtle: #131c2d;

  --text: #f8fafc;
  --text-muted: #94a3b8;
  --text-faint: #64748b;
  --text-on-accent: #ffffff;

  --accent: #3b82f6;
  --accent-hover: #60a5fa;
  --accent-quiet: #132347;
  --accent-subtle: #1e3a8a;
  --accent-glow: 59, 130, 246;

  --emerald: #10b981;
  --emerald-quiet: #062d23;
  --emerald-line: #065f46;

  --amber: #f59e0b;
  --amber-quiet: #2d1f06;

  --terminal-bg: #050811;
  --terminal-text: #e2e8f0;
  --terminal-line: #1e293b;
  --terminal-accent: #38bdf8;
  --terminal-green: #34d399;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.6), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 32px -8px rgba(0, 0, 0, 0.7);
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 36px);
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 1000;
  background: var(--accent);
  color: var(--text-on-accent);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

::selection {
  background: var(--accent);
  color: var(--text-on-accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

.ico {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex: none;
}
.ico-sm {
  width: 16px;
  height: 16px;
}
.ico-lg {
  width: 28px;
  height: 28px;
}

/* ==========================================================================
   NAVIGATION BAR (Sleek, Clean, Single-Line, Uncluttered)
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--line);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.nav.stuck {
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.03em;
  color: var(--text);
  white-space: nowrap;
}
.brand-logo-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent) 0%, #1e40af 100%);
  color: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(var(--accent-glow), 0.35);
  transition: transform 0.25s var(--ease);
}
.brand:hover .brand-logo-icon {
  transform: translateY(-1px) scale(1.05);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1.2vw, 16px);
}
.nav-item {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}
.nav-item:hover {
  color: var(--text);
  background: var(--bg-sunken);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-raised);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  position: relative;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.theme-toggle:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: var(--bg-sunken);
}
.theme-toggle .ico {
  position: absolute;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
:root[data-theme="light"] .ico-moon {
  opacity: 0;
  transform: translateY(8px) rotate(-30deg);
}
:root[data-theme="light"] .ico-sun {
  opacity: 1;
  transform: none;
}
:root[data-theme="dark"] .ico-sun {
  opacity: 0;
  transform: translateY(-8px) rotate(30deg);
}
:root[data-theme="dark"] .ico-moon {
  opacity: 1;
  transform: none;
}

.mobile-nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-raised);
  color: var(--text);
  place-items: center;
  cursor: pointer;
}
@media (max-width: 960px) {
  .nav-menu { display: none; }
  .mobile-nav-toggle { display: grid; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.btn-primary {
  background: var(--accent);
  color: var(--text-on-accent);
  box-shadow: 0 2px 8px rgba(var(--accent-glow), 0.3);
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 14px rgba(var(--accent-glow), 0.4);
  transform: translateY(-1px);
}
.btn-ghost {
  background: var(--bg-raised);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover {
  background: var(--bg-sunken);
  border-color: var(--text-faint);
  transform: translateY(-1px);
}
.btn-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 13.5px;
}
.btn-lg {
  height: 48px;
  padding: 0 24px;
  font-size: 15px;
}
.btn:active {
  transform: translateY(0) scale(0.98);
}

/* Typography & Section Standards */
h1, h2, h3, h4, h5 {
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0;
}
.section-kicker {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-kicker::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 2px;
  background: var(--accent);
}
.section-head {
  max-width: 740px;
  margin-bottom: clamp(36px, 5vw, 52px);
}
.section-head h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  line-height: 1.15;
  margin-bottom: 14px;
}
.section-head p {
  font-size: clamp(16px, 1.8vw, 18px);
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Sections */
.section {
  padding: clamp(60px, 7vw, 100px) 0;
  position: relative;
}
.section-sunken {
  background: var(--bg-sunken);
  border-block: 1px solid var(--line);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  padding: clamp(48px, 6vw, 84px) 0 clamp(56px, 7vw, 92px);
  position: relative;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(100% 50% at 50% 0%, var(--bg-sunken) 0%, var(--bg) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}

.hero-copy {
  max-width: 620px;
}

/* Clean Minimal Hero Pill */
.hero-badge-wrap {
  margin-bottom: 20px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-full);
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
}

.hero-h1 {
  font-size: clamp(2.35rem, 4.3vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 700;
  margin-bottom: 22px;
}
.hero-h1 span.highlight {
  color: var(--accent);
}
.hero-lede {
  font-size: clamp(16.5px, 1.8vw, 19px);
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 30px;
}
.hero-cta-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 32px;
}
.hero-guarantee {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-faint);
}
.hero-guarantee svg {
  color: var(--emerald);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
@media (max-width: 640px) {
  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}
.metric-item dt {
  font-size: 12px;
  color: var(--text-faint);
  font-weight: 500;
  margin-bottom: 3px;
}
.metric-item dd {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* Interactive Hero Control Matrix Sandbox */
.hero-sandbox {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.sandbox-header {
  padding: 12px 18px;
  background: var(--bg-sunken);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sandbox-title {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sandbox-status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--emerald);
}
.sandbox-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 2px var(--emerald-line);
}

.sandbox-stage {
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  background: var(--bg-raised);
}
.arch-nodes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
@media (max-width: 580px) {
  .arch-nodes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.arch-node {
  padding: 10px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-sunken);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.arch-node:hover {
  border-color: var(--line-strong);
  background: var(--bg-card-hover);
}
.arch-node.active {
  border-color: var(--accent);
  background: var(--accent-quiet);
  box-shadow: 0 0 0 1px var(--accent);
}
.arch-node-step {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-faint);
  text-transform: uppercase;
  margin-bottom: 3px;
}
.arch-node.active .arch-node-step {
  color: var(--accent);
}
.arch-node-name {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}

.sandbox-terminal {
  background: var(--terminal-bg);
  color: var(--terminal-text);
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.55;
  min-height: 155px;
}
.terminal-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--terminal-line);
  font-size: 11px;
  color: var(--text-faint);
}
.terminal-rule-tag {
  color: var(--terminal-accent);
}
.terminal-code {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-all;
  color: #cbd5e1;
}
.terminal-code .kw { color: #f472b6; }
.terminal-code .fn { color: #60a5fa; }
.terminal-code .str { color: #34d399; }
.terminal-code .prop { color: #38bdf8; }

/* ==========================================================================
   WHY ANVEAI / THE 4 ENTERPRISE DIFFERENTIATORS
   ========================================================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 1040px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .why-grid { grid-template-columns: 1fr; }
}
.why-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--ease);
}
.why-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.why-ico-box {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--accent-quiet);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.why-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.why-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   THE 6 CORE SERVICES SECTION
   ========================================================================== */
.services-filter-strip {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.services-filter-strip::-webkit-scrollbar { display: none; }
.filter-btn {
  padding: 7px 15px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
  background: var(--bg-raised);
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s var(--ease);
}
.filter-btn:hover {
  border-color: var(--line-strong);
  color: var(--text);
}
.filter-btn.active {
  background: var(--accent);
  color: var(--text-on-accent);
  border-color: var(--accent);
  box-shadow: 0 2px 6px rgba(var(--accent-glow), 0.25);
}

.services-grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 1080px) {
  .services-grid-6 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .services-grid-6 { grid-template-columns: 1fr; }
}

.service-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
  padding: clamp(22px, 2.5vw, 28px);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--ease);
  position: relative;
}
.service-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.service-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.service-index {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-quiet);
  padding: 2px 7px;
  border-radius: var(--radius-xs);
}
.service-category-pill {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}

.service-card h3 {
  font-size: 19px;
  margin-bottom: 8px;
  line-height: 1.25;
}
.service-card p.service-summary {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 18px;
  line-height: 1.5;
}

.service-deliverables {
  list-style: none;
  padding: 14px 0 0;
  margin: 0 0 18px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  flex: 1;
}
.service-deliverables li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.45;
}
.service-deliverables li svg {
  color: var(--accent);
  margin-top: 2px;
}

.service-tech-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid var(--line-subtle);
}
.tech-chip {
  font-family: var(--mono);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  background: var(--bg-sunken);
  color: var(--text-faint);
  border: 1px solid var(--line);
}

/* ==========================================================================
   PROPRIETARY PRODUCT SHOWCASE
   ========================================================================= */
.product-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 860px) {
  .product-showcase-grid { grid-template-columns: 1fr; }
}

.product-feature-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
  padding: clamp(22px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--ease);
}
.product-feature-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.prod-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.prod-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--emerald-quiet);
  border: 1px solid var(--emerald-line);
  color: var(--emerald);
  font-size: 11px;
  font-family: var(--mono);
  font-weight: 600;
}
.prod-domain-link {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.prod-domain-link:hover { text-decoration: underline; }

.product-feature-card h3 {
  font-size: 21px;
  margin-bottom: 8px;
}
.product-feature-card p.prod-desc {
  font-size: 14.5px;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.5;
}

.prod-ui-widget {
  background: var(--bg-sunken);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 18px;
}
.waveform-bars {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  margin-top: 8px;
}
.waveform-bar {
  flex: 1;
  background: var(--accent);
  border-radius: 2px;
  height: 20%;
  animation: wavePulse 1.2s ease-in-out infinite alternate;
}
.waveform-bar:nth-child(2) { animation-delay: 0.15s; height: 50%; }
.waveform-bar:nth-child(3) { animation-delay: 0.3s; height: 85%; }
.waveform-bar:nth-child(4) { animation-delay: 0.45s; height: 60%; }
.waveform-bar:nth-child(5) { animation-delay: 0.2s; height: 95%; }
.waveform-bar:nth-child(6) { animation-delay: 0.35s; height: 40%; }
.waveform-bar:nth-child(7) { animation-delay: 0.5s; height: 75%; }
.waveform-bar:nth-child(8) { animation-delay: 0.25s; height: 30%; }
@keyframes wavePulse {
  0% { transform: scaleY(0.3); }
  100% { transform: scaleY(1); }
}

.json-preview {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.prod-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 7px;
}
.prod-highlights li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-muted);
}
.prod-highlights li svg {
  color: var(--emerald);
}

/* ==========================================================================
   OPEN SOURCE & COLLABORATION HUB
   ========================================================================== */
.oss-collab-banner {
  border: 1px solid var(--accent-subtle);
  background: var(--accent-quiet);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 30px);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.collab-text h3 {
  font-size: 19px;
  margin-bottom: 4px;
  color: var(--text);
}
.collab-text p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-muted);
  max-width: 580px;
}

.oss-grid-8 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 1080px) {
  .oss-grid-8 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .oss-grid-8 { grid-template-columns: 1fr; }
}

.oss-repo-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-raised);
  padding: 18px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s var(--ease);
}
.oss-repo-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}
.oss-repo-title {
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.oss-repo-card p {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--text-muted);
  flex: 1;
  line-height: 1.45;
}
.oss-repo-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
  padding-top: 8px;
  border-top: 1px solid var(--line-subtle);
}
.oss-lang-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.oss-lang-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* Zero-Trust Security Grid */
.security-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1024px) {
  .security-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .security-grid { grid-template-columns: 1fr; }
}
.sec-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--ease);
}
.sec-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.sec-ico-wrap {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--emerald-quiet);
  color: var(--emerald);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border: 1px solid var(--emerald-line);
}
.sec-card h3 {
  font-size: 16.5px;
  margin-bottom: 8px;
}
.sec-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   1-WEEK ASSESSMENT FRAMEWORK (Structured Step-by-Step)
   ========================================================================== */
.process-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
@media (max-width: 960px) {
  .process-grid { grid-template-columns: 1fr; }
}
.process-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.timeline-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
  padding: 20px;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  transition: all 0.25s var(--ease);
}
.timeline-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.timeline-step-num {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--accent-quiet);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.timeline-content h3 {
  font-size: 16.5px;
  margin-bottom: 4px;
}
.timeline-content p {
  margin: 0;
  font-size: 13.8px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Contact Intake Form */
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(32px, 5vw, 60px);
  align-items: start;
}
@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 14px;
}
.contact-info-list li {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14.5px;
  color: var(--text-muted);
}
.contact-info-list svg {
  color: var(--emerald);
}

.contact-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-raised);
  padding: clamp(22px, 3vw, 32px);
  box-shadow: var(--shadow-lg);
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}
.form-group label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: inherit;
  font-size: 14.5px;
  color: var(--text);
  background: var(--bg-sunken);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  transition: all 0.2s var(--ease);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-raised);
  box-shadow: 0 0 0 3px rgba(var(--accent-glow), 0.15);
}
.form-group .form-hint {
  font-size: 12px;
  color: var(--text-faint);
}
.form-status {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--text-muted);
  min-height: 20px;
}

/* Global Footer */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-sunken);
  padding: clamp(48px, 6vw, 76px) 0 32px;
  color: var(--text-muted);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 44px);
  padding-bottom: 40px;
}
@media (max-width: 960px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer-top { grid-template-columns: 1fr; }
}
.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 14px 0 20px;
  max-width: 340px;
  line-height: 1.5;
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
}
.footer-col a {
  font-size: 13.5px;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}
.footer-col a:hover {
  color: var(--accent);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-faint);
}

/* Animations & Spotlight */
.reveal {
  opacity: 0;
  transform: translateY(18px);
}
html.js .reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease) var(--d, 0s), transform 0.7s var(--ease) var(--d, 0s);
}
html:not(.js) .reveal {
  opacity: 1;
  transform: none;
}

.spot {
  position: relative;
  isolation: isolate;
}
.spot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  z-index: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--accent-glow), 0.08), transparent 70%);
}
.spot:hover::before {
  opacity: 1;
}
.spot > * {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal, html.js .reveal { opacity: 1 !important; transform: none !important; }
}
