/* ==========================================================================
   NORTHLEAF DATA — DESIGN SYSTEM & CORE STYLES
   Aesthetic: Obsidian luxury dark mode, Boreal emerald & cyan aurora lighting,
   frosted glass surfaces, crisp typography, and high-velocity telemetry.
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-primary: #05080e;
  --bg-secondary: #0a0f18;
  --bg-card: rgba(13, 20, 32, 0.72);
  --bg-card-hover: rgba(18, 28, 45, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.035);
  --bg-glass-elevated: rgba(255, 255, 255, 0.06);

  /* Boreal Glow & Accent Gradients */
  --emerald-primary: #10b981;
  --emerald-bright: #06d6a0;
  --teal-accent: #14b8a6;
  --cyan-bright: #38bdf8;
  --blue-vivid: #3b82f6;
  --indigo-deep: #6366f1;

  --gradient-aurora: linear-gradient(135deg, #10b981 0%, #06d6a0 35%, #38bdf8 70%, #6366f1 100%);
  --gradient-emerald: linear-gradient(135deg, #06d6a0 0%, #10b981 100%);
  --gradient-cyan: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  --gradient-card-border: linear-gradient(135deg, rgba(16, 185, 129, 0.35) 0%, rgba(56, 189, 248, 0.2) 50%, rgba(255, 255, 255, 0.05) 100%);
  --gradient-glow: radial-gradient(circle, rgba(16, 185, 129, 0.18) 0%, rgba(56, 189, 248, 0.08) 40%, transparent 70%);

  /* Text Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-highlight: #ffffff;

  /* Borders & Lines */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-glow: rgba(16, 185, 129, 0.35);

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Shadows & Blurs */
  --glass-blur: blur(16px);
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(16, 185, 129, 0.2);
  --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.7);

  /* Layout */
  --container-max: 1280px;
  --header-height: 80px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Base Reset & Foundations */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background Atmosphere Layer */
.ambient-canvas-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

#particleCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
}

.aurora-glow-1 {
  position: absolute;
  top: -15%;
  left: 20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(20, 184, 166, 0.08) 40%, transparent 70%);
  filter: blur(80px);
  animation: floatOrb 22s ease-in-out infinite alternate;
}

.aurora-glow-2 {
  position: absolute;
  top: 25%;
  right: -10%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.14) 0%, rgba(99, 102, 241, 0.07) 45%, transparent 70%);
  filter: blur(100px);
  animation: floatOrb 28s ease-in-out infinite alternate-reverse;
}

.aurora-glow-3 {
  position: absolute;
  bottom: 10%;
  left: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(6, 214, 160, 0.12) 0%, transparent 65%);
  filter: blur(90px);
  animation: floatOrb 18s ease-in-out infinite alternate;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.08); }
  100% { transform: translate(-30px, 50px) scale(0.95); }
}

/* Content Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-highlight);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-secondary);
}

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

.gradient-text {
  background: var(--gradient-aurora);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.gradient-emerald-text {
  background: var(--gradient-emerald);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-cyan-text {
  background: var(--gradient-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  transition: all var(--transition-smooth);
}

.site-header.scrolled {
  background: rgba(5, 8, 14, 0.85);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  height: 70px;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  text-decoration: none;
}

.brand-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.3);
  transition: transform var(--transition-fast);
  object-fit: cover;
}

.brand-link:hover .brand-logo-img {
  transform: scale(1.05) rotate(-2deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #ffffff;
  line-height: 1.1;
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--emerald-bright);
  font-weight: 600;
  text-transform: uppercase;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.25rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-aurora);
  transition: width var(--transition-fast);
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link:hover::after {
  width: 100%;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.edge-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--emerald-bright);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.status-dot {
  width: 7px;
  height: 7px;
  background-color: var(--emerald-bright);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--emerald-bright);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-aurora);
  color: #05080e;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.55);
  color: #000000;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: var(--border-medium);
  backdrop-filter: var(--glass-blur);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--emerald-bright);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-icon {
  font-size: 1.1rem;
  transition: transform var(--transition-fast);
}

.btn:hover .btn-icon {
  transform: translateX(4px);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--emerald-bright);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

.hero-title {
  font-size: clamp(2.5rem, 4.8vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: 2.2rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-trust-indicators {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.trust-item {
  display: flex;
  flex-direction: column;
}

.trust-number {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
}

.trust-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hero Visual Showcase */
.hero-visual-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-card), 0 0 50px rgba(16, 185, 129, 0.12);
  transition: transform var(--transition-smooth);
}

.hero-visual-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.4);
}

.visual-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1rem;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background-color: #ef4444; }
.dot-yellow { background-color: #f59e0b; }
.dot-green { background-color: #10b981; }

.visual-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan-bright);
  background: rgba(56, 189, 248, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.visual-media-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #000000;
  margin-bottom: 1rem;
}

.hero-mesh-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}

.hero-visual-card:hover .hero-mesh-image {
  transform: scale(1.04);
}

.telemetry-overlay {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background: rgba(5, 8, 14, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.telemetry-stat {
  display: flex;
  flex-direction: column;
}

.telemetry-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.telemetry-val {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--emerald-bright);
}

/* Micro Pipeline Nodes under Image */
.pipeline-nodes-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.preview-node {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.node-icon {
  font-size: 1.1rem;
}

.node-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.node-title {
  font-size: 0.74rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.node-status {
  font-size: 0.66rem;
  color: var(--emerald-bright);
}

/* ==========================================================================
   PARTNERS / TECH STACK STRIP
   ========================================================================== */
.stack-ticker-section {
  padding: 3rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(10, 15, 24, 0.4);
}

.ticker-heading {
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.ticker-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem 3.5rem;
}

.tech-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
}

.tech-pill:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.tech-icon-svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* ==========================================================================
   SOLUTIONS & CORE CAPABILITIES
   ========================================================================== */
.solutions-section {
  padding: 7rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--emerald-bright);
  margin-bottom: 0.8rem;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.solution-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  backdrop-filter: var(--glass-blur);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.solution-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-aurora);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.solution-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(16, 185, 129, 0.35);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6), 0 0 30px rgba(16, 185, 129, 0.15);
}

.solution-card:hover::before {
  opacity: 1;
}

.card-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--emerald-bright);
  transition: transform var(--transition-fast);
}

.solution-card:hover .card-icon-wrap {
  transform: scale(1.1) rotate(4deg);
  background: rgba(16, 185, 129, 0.18);
  border-color: var(--emerald-bright);
}

.card-title {
  font-size: 1.3rem;
  margin-bottom: 0.9rem;
  color: #ffffff;
}

.card-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.8rem;
}

.card-features li {
  font-size: 0.86rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-features li::before {
  content: '✦';
  color: var(--emerald-bright);
  font-size: 0.75rem;
}

.card-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--emerald-bright);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap var(--transition-fast);
  cursor: pointer;
}

.card-link:hover {
  gap: 0.7rem;
  color: var(--cyan-bright);
}

/* ==========================================================================
   INTERACTIVE ARCHITECTURE BLUEPRINT EXPLORER
   ========================================================================== */
.architecture-section {
  padding: 6rem 0;
  background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
}

.blueprint-container {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-card);
}

.blueprint-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.blueprint-tab {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.1rem 1rem;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
}

.blueprint-tab:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(16, 185, 129, 0.3);
}

.blueprint-tab.active {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--emerald-bright);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.2);
}

.tab-step {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--emerald-bright);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
  display: block;
}

.tab-title {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
}

.blueprint-stage-detail {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  background: rgba(5, 8, 14, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
}

.stage-title {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
  color: #ffffff;
}

.stage-description {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.stage-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.spec-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
}

.spec-title {
  font-size: 0.74rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.spec-value {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cyan-bright);
}

.stage-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.stage-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: rgba(16, 185, 129, 0.1);
  color: var(--emerald-bright);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
}

.stage-code-card {
  background: #03060a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #e2e8f0;
  overflow-x: auto;
  position: relative;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.code-badge {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ==========================================================================
   INTERACTIVE ROI & ARCHITECTURE ESTIMATOR
   ========================================================================== */
.estimator-section {
  padding: 6rem 0;
  position: relative;
}

.estimator-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 3rem;
  backdrop-filter: var(--glass-blur);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  box-shadow: var(--shadow-card);
}

.estimator-controls {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.control-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
}

.control-current-val {
  color: var(--emerald-bright);
  font-family: var(--font-mono);
}

.control-buttons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.control-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.control-btn.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--emerald-bright);
  color: var(--emerald-bright);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

/* Custom Range Slider */
.custom-range {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  outline: none;
}

.custom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--emerald-bright);
  cursor: pointer;
  box-shadow: 0 0 10px var(--emerald-bright);
  transition: transform 0.1s;
}

.custom-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Estimator Live Output Board */
.estimator-results {
  background: rgba(5, 8, 14, 0.85);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: inset 0 0 30px rgba(16, 185, 129, 0.05);
}

.results-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.results-title {
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 0.3rem;
}

.results-subtitle {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.results-metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.res-metric-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.2rem;
}

.res-metric-label {
  font-size: 0.74rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.res-metric-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.res-metric-hint {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.3rem;
}

.blueprint-recommendation-box {
  background: rgba(16, 185, 129, 0.06);
  border: 1px dashed rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.blueprint-rec-title {
  font-size: 0.78rem;
  color: var(--emerald-bright);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.blueprint-rec-desc {
  font-size: 0.9rem;
  color: #ffffff;
}

/* ==========================================================================
   ENTERPRISE IMPACT COUNTERS
   ========================================================================== */
.impact-section {
  padding: 6rem 0;
  position: relative;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.impact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.75rem;
  text-align: center;
  backdrop-filter: var(--glass-blur);
  transition: all var(--transition-smooth);
}

.impact-card:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(56, 189, 248, 0.15);
}

.impact-num {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.6rem;
}

.impact-label {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.impact-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   CASE STUDIES & CLIENT VOICES
   ========================================================================== */
.case-studies-section {
  padding: 6rem 0;
}

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

.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  backdrop-filter: var(--glass-blur);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-smooth);
}

.case-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--bg-card-hover);
}

.case-tag {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--cyan-bright);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.case-quote {
  font-size: 1.05rem;
  color: #f1f5f9;
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 1.75rem;
}

.case-stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  color: var(--emerald-bright);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.case-author {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.25rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-aurora);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #05080e;
  font-size: 0.9rem;
}

.author-meta {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
}

.author-role {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-section {
  padding: 6rem 0;
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.faq-item.active {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 24, 38, 0.85);
}

.faq-question {
  width: 100%;
  padding: 1.4rem 1.6rem;
  background: none;
  border: none;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 600;
}

.faq-toggle-icon {
  font-size: 1.3rem;
  color: var(--emerald-bright);
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-smooth), padding var(--transition-smooth);
  padding: 0 1.6rem;
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  max-height: 400px;
  padding: 0 1.6rem 1.4rem;
}

/* ==========================================================================
   CONSULTATION / CONTACT SECTION
   ========================================================================== */
.contact-section {
  padding: 6rem 0;
  position: relative;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 3.5rem;
  backdrop-filter: var(--glass-blur);
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 4rem;
  box-shadow: var(--shadow-card), 0 0 60px rgba(16, 185, 129, 0.1);
  position: relative;
  overflow: hidden;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-direct-items {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.direct-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.direct-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald-bright);
  font-size: 1.1rem;
}

.direct-link {
  color: #ffffff;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.direct-link:hover {
  color: var(--emerald-bright);
}

.cloudflare-callout {
  margin-top: 2.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.cloudflare-icon {
  font-size: 1.3rem;
  color: #f6821f; /* Cloudflare orange */
}

.cloudflare-callout p {
  font-size: 0.82rem;
  line-height: 1.5;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-input, .form-select, .form-textarea {
  background: rgba(5, 8, 14, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--emerald-bright);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
  background: rgba(5, 8, 14, 0.9);
}

.form-textarea {
  resize: vertical;
  min-height: 110px;
}

.form-note {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* Form success message state */
.form-success-banner {
  display: none;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--emerald-bright);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  color: #ffffff;
  text-align: center;
  margin-top: 1rem;
}

.form-success-banner.active {
  display: block;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #03060a;
  padding: 5rem 0 2.5rem;
  position: relative;
  z-index: 1;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.6;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--emerald-bright);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

/* ==========================================================================
   MODAL / INQUIRY DRAWER
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 5, 10, 0.85);
  backdrop-filter: blur(14px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  max-width: 600px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-card), 0 0 50px rgba(16, 185, 129, 0.2);
  transform: scale(0.95);
  transition: transform var(--transition-smooth);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.modal-close-btn:hover {
  color: #ffffff;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-visual-card {
    max-width: 650px;
    margin: 0 auto;
  }

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

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

  .blueprint-stage-detail {
    grid-template-columns: 1fr;
  }

  .estimator-wrapper {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-card {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .edge-badge {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .solutions-grid {
    grid-template-columns: 1fr;
  }

  .cases-grid {
    grid-template-columns: 1fr;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .blueprint-tabs {
    grid-template-columns: 1fr;
  }

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

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
