/* ==========================================================================
   LPZC PORTFOLIO DESIGN SYSTEM — INSPIRED BY RBP-AI-APP-TEMPLATE / CORTEX
   Harmonious vertical rhythm, non-obstructing unified navbar, obsidian palette
   ========================================================================== */

:root {
  /* Dark Obsidian Theme (Default) */
  --bg: #090a0c;
  --bg-subtle: #0f1115;
  --surface: #13161c;
  --surface-elevated: #1a1d25;
  --surface-card: rgba(19, 22, 28, 0.75);
  --surface-glass: rgba(15, 17, 21, 0.75);
  --surface-border: rgba(255, 255, 255, 0.08);
  --surface-border-subtle: rgba(255, 255, 255, 0.04);
  --surface-border-hover: rgba(255, 255, 255, 0.22);

  --foreground: #f2f4f8;
  --foreground-muted: #8b93a0;
  --foreground-dim: #545b68;

  --accent-emerald: #10b981;
  --accent-mint: #22c55e;
  --accent-cyan: #38bdf8;
  --accent-glow: rgba(16, 185, 129, 0.15);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-xl: 36px;
  --radius-full: 9999px;

  --header-height: 76px;
}

html[data-theme="light"] {
  --bg: #f8fafc;
  --bg-subtle: #f1f5f9;
  --surface: #ffffff;
  --surface-elevated: #f1f5f9;
  --surface-card: rgba(255, 255, 255, 0.85);
  --surface-glass: rgba(255, 255, 255, 0.82);
  --surface-border: rgba(0, 0, 0, 0.08);
  --surface-border-subtle: rgba(0, 0, 0, 0.04);
  --surface-border-hover: rgba(0, 0, 0, 0.2);

  --foreground: #090a0f;
  --foreground-muted: #4b5563;
  --foreground-dim: #9ca3af;

  --accent-emerald: #059669;
  --accent-mint: #16a34a;
  --accent-cyan: #0284c7;
  --accent-glow: rgba(5, 150, 105, 0.12);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--foreground);
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.35s ease, color 0.35s ease;
}

::selection {
  background: var(--foreground);
  color: var(--bg);
}

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

button {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.skip-to-content {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--foreground);
  color: var(--bg);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  z-index: 99999;
  font-weight: 500;
  transition: top 0.2s ease;
}

.skip-to-content:focus {
  top: 20px;
}

/* ==========================================================================
   LAYOUT CONTAINERS & CONSISTENT VERTICAL RHYTHM
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  position: relative;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   CINEMATIC INTRO PRELOADER
   ========================================================================== */
.cortex-preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.cortex-preloader.fade-out {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
}

.preloader-title {
  position: absolute;
  top: clamp(1.5rem, 4vw, 3rem);
  left: clamp(1.5rem, 4vw, 3rem);
  font-size: clamp(40px, 10vw, 130px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: var(--foreground);
  opacity: 0.85;
}

.preloader-card-stack {
  position: relative;
  width: clamp(140px, 16vw, 200px);
  aspect-ratio: 3 / 4;
}

.preloader-card {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-border);
  background: var(--surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: scale(0.65) translateY(20px);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.preloader-card.active {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.preloader-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.card-code-snippet {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-emerald);
  line-height: 1.5;
  opacity: 0.8;
}

.preloader-counter {
  position: absolute;
  bottom: clamp(1.5rem, 4vw, 3rem);
  right: clamp(1.5rem, 4vw, 3rem);
  font-size: clamp(48px, 12vw, 150px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: var(--foreground);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   UNIFIED NON-OBSTRUCTING FLOATING HEADER
   Logo on left, unified island in center (links + scroll %), actions on right
   ========================================================================== */
.cortex-header {
  position: fixed;
  inset: 0 auto auto 0;
  width: 100%;
  z-index: 1000;
  pointer-events: none;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.cortex-header-inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
  position: relative;
}

.header-left, .header-center, .header-right {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Logo & Identity Left */
.cortex-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.cortex-logo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--surface-glass);
  border: 1px solid var(--surface-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.cortex-logo-btn:hover {
  border-color: var(--surface-border-hover);
}

.cortex-logo-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cortex-logo-btn:hover .cortex-logo-icon {
  transform: rotate(180deg);
}

.cortex-brand-tag {
  display: none;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--foreground);
  letter-spacing: -0.01em;
}

@media (min-width: 1180px) {
  .cortex-brand-tag {
    display: block;
  }
}

/* ==========================================================================
   CENTER UNIFIED FLOATING NAV ISLAND
   Holds desktop navigation items AND scroll badge with ZERO collision
   ========================================================================== */
.header-center {
  position: relative;
}

.unified-nav-island {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  height: 48px;
  padding: 0.25rem 0.35rem 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  background: var(--surface-glass);
  border: 1px solid var(--surface-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.35);
  transition: border-color 0.25s ease;
}

.unified-nav-island:hover {
  border-color: var(--surface-border-hover);
}

/* Desktop Links inside Unified Island */
.island-nav-links {
  display: none;
  align-items: center;
  gap: 0.2rem;
}

@media (min-width: 960px) {
  .island-nav-links {
    display: flex;
  }
}

.island-link {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 1rem;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--foreground-muted);
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.island-link:hover, .island-link.active {
  color: var(--foreground);
  background: rgba(255, 255, 255, 0.06);
}

html[data-theme="light"] .island-link:hover,
html[data-theme="light"] .island-link.active {
  background: rgba(0, 0, 0, 0.05);
}

/* Mobile Menu Button inside Island (visible on screens < 960px) */
.island-menu-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 38px;
  padding: 0 0.85rem;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--foreground);
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

@media (min-width: 960px) {
  .island-menu-btn {
    display: none;
  }
}

.island-menu-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

.menu-lines {
  display: flex;
  flex-direction: column;
  gap: 3.5px;
  width: 14px;
}

.menu-line {
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease;
}

/* Scroll Percentage Badge inside Unified Island */
.scroll-percentage-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 34px;
  padding: 0 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--foreground);
  letter-spacing: -0.01em;
}

html[data-theme="light"] .scroll-percentage-badge {
  background: rgba(0, 0, 0, 0.06);
}

/* ==========================================================================
   FLOATING MOBILE MENU DROPDOWN
   Clean non-obstructing dropdown anchored directly beneath the island
   ========================================================================== */
.mobile-menu-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-10px) scale(0.96);
  width: min(90vw, 340px);
  background: var(--surface-elevated);
  border: 1px solid var(--surface-border-hover);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1100;
}

.mobile-menu-dropdown.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--foreground-muted);
  transition: all 0.2s ease;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  color: var(--foreground);
  background: rgba(255, 255, 255, 0.06);
}

html[data-theme="light"] .mobile-nav-link:hover {
  background: rgba(0, 0, 0, 0.05);
}

.mobile-menu-footer {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--surface-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Header Right Actions */
.header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 48px;
  padding: 0 1.25rem;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-pill-solid {
  background: var(--foreground);
  color: var(--bg);
  font-weight: 600;
}

.btn-pill-solid:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-circle {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-glass);
  border: 1px solid var(--surface-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--foreground);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.btn-circle:hover {
  border-color: var(--surface-border-hover);
  transform: scale(1.04);
}

/* ==========================================================================
   01 / HERO SECTION WITH INTERACTIVE CANVAS
   ========================================================================== */
.overview-section {
  position: relative;
  width: 100%;
}

.cortex-hero {
  position: relative;
  min-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(90px, 12vh, 125px) 0 clamp(28px, 4vh, 44px) 0;
  overflow: hidden;
}

.hero-section-tag {
  margin-bottom: 0.85rem;
  opacity: 0;
  transform: translateY(12px);
  animation: heroFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards;
}

.hero-canvas-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  z-index: 1;
}

.hero-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
  pointer-events: none;
}

.hero-content > * {
  pointer-events: auto;
}

/* Telemetry / Live Status Pill */
.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  background: var(--surface-glass);
  border: 1px solid var(--surface-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--foreground-muted);
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(16px);
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

.status-ping-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-mint);
  box-shadow: 0 0 10px var(--accent-mint);
  position: relative;
}

.status-ping-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--accent-mint);
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  75%, 100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* Giant Headline */
.hero-headline {
  font-size: clamp(38px, 6.8vw, 80px);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--foreground);
  margin-bottom: 1.25rem;
  text-wrap: balance;
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.headline-gradient {
  background: linear-gradient(180deg, var(--foreground) 30%, var(--foreground-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtext {
  max-width: 580px;
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.6;
  color: var(--foreground-muted);
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

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

/* ==========================================================================
   02 / REFINED TELEMETRY SHOWCASE (NO EXCESSIVE VOIDS)
   ========================================================================== */
.showcase-scroll-section {
  position: relative;
  padding: clamp(20px, 4vw, 50px) 0;
}

.showcase-sticky-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.showcase-tagline {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--foreground-muted);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.showcase-terminal-box {
  width: min(94vw, 1100px);
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transform-origin: center top;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.4s ease;
  will-change: transform;
}

.showcase-terminal-box:hover {
  border-color: var(--surface-border-hover);
  box-shadow: 0 36px 90px -15px rgba(0, 0, 0, 0.65), 0 0 30px var(--accent-glow);
}

.terminal-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--surface-border);
  background: rgba(255, 255, 255, 0.02);
}

.terminal-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #eab308; }
.dot-green { background: #22c55e; }

.terminal-title-text {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--foreground-muted);
}

.terminal-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--accent-mint);
  background: var(--accent-glow);
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.terminal-body {
  padding: clamp(1.25rem, 2.5vw, 2rem);
}

.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.telemetry-card {
  padding: 1.1rem;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--surface-border);
}

.telemetry-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--foreground-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.telemetry-value {
  font-size: 24px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  color: var(--foreground);
  margin-bottom: 0.35rem;
}

.telemetry-bar {
  height: 3px;
  width: 100%;
  background: var(--surface-border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.telemetry-bar-fill {
  height: 100%;
  background: var(--accent-mint);
  border-radius: var(--radius-full);
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.terminal-code-view {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  border: 1px solid var(--surface-border-subtle);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.65;
  overflow-x: auto;
}

.json-key { color: var(--accent-cyan); }
.json-val { color: #f59e0b; }
.json-str { color: var(--accent-mint); }
.json-dim { color: var(--foreground-dim); }

/* ==========================================================================
   03 / THE MANIFESTO — HARMONIZED SPACING
   ========================================================================== */
.manifesto-section {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
  position: relative;
}

.manifesto-lead {
  font-size: clamp(26px, 4vw, 50px);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.03em;
  max-width: 1080px;
}

.scrub-word {
  display: inline;
  opacity: 0.12;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.scrub-word.lit {
  opacity: 1;
  color: var(--foreground);
}

/* ==========================================================================
   04 / INTERACTIVE ARCHITECTURE ROWS
   ========================================================================== */
.architecture-section {
  padding: clamp(40px, 5vw, 64px) 0 clamp(24px, 3vw, 36px) 0;
  position: relative;
}

.section-header {
  margin-bottom: clamp(2rem, 4vw, 3rem);
  max-width: 640px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--foreground-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(30px, 4.4vw, 50px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.06;
  color: var(--foreground);
  margin-bottom: 0.75rem;
  text-wrap: balance;
}

.section-subtitle {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--foreground-muted);
}

/* Architecture Rows */
.arch-rows-container {
  border-top: 1px solid var(--surface-border);
  position: relative;
}

.arch-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  border-bottom: 1px solid var(--surface-border);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.arch-row-left {
  display: flex;
  align-items: baseline;
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
  flex: 1;
}

.arch-row-num {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--foreground-dim);
  width: 28px;
  flex-shrink: 0;
}

.arch-row-info {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

@media (min-width: 900px) {
  .arch-row-info {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
}

.arch-row-title {
  font-size: clamp(20px, 2.3vw, 32px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--foreground);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.arch-row:hover .arch-row-title {
  transform: translateX(12px);
}

.arch-row-desc {
  font-size: 14px;
  color: var(--foreground-muted);
  line-height: 1.5;
  max-width: 420px;
}

.arch-row-arrow {
  width: 22px;
  height: 22px;
  color: var(--foreground);
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.arch-row:hover .arch-row-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Floating Cursor Follower Preview Box */
.floating-cursor-preview {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  pointer-events: none;
  z-index: 1000;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-cursor-preview.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.floating-preview-card {
  padding: 1.15rem;
  border-radius: var(--radius-lg);
  background: var(--surface-elevated);
  border: 1px solid var(--surface-border-hover);
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(20px);
}

.preview-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent-mint);
  background: var(--accent-glow);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 0.6rem;
}

.preview-code-block {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.55;
  color: var(--foreground-muted);
}

/* ==========================================================================
   05 / STICKY 3-COLUMN PIPELINE WALKTHROUGH (RESPONSIVE & TIGHTENED)
   ========================================================================== */
.pipeline-walkthrough-section {
  position: relative;
  min-height: auto;
  padding: clamp(24px, 3vw, 36px) 0 0 0;
}

.pipeline-sticky-wrapper {
  position: relative;
  height: auto;
  display: flex;
  align-items: center;
  overflow: visible;
  padding-bottom: clamp(16px, 2vw, 24px);
}

.pipeline-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 1.75rem;
  width: 100%;
}

@media (min-width: 960px) {
  .pipeline-walkthrough-section {
    min-height: 135vh;
    padding: clamp(28px, 3.5vw, 42px) 0 0 0;
  }

  .pipeline-sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    padding-bottom: 0;
    overflow: hidden;
  }

  .pipeline-grid {
    grid-template-columns: 1fr auto 1fr;
    gap: 3.5rem;
  }
}

@media (max-width: 959px) {
  .pipeline-step-info-col {
    height: 200px;
  }
  .pipeline-step-item {
    text-align: center;
    align-items: center;
  }
  .step-header-indicator {
    justify-content: center;
  }
  .step-title {
    font-size: clamp(20px, 4.5vw, 26px);
  }
  .step-description {
    font-size: 13.5px;
    max-width: 100%;
  }
  .device-frame {
    width: min(65vw, 210px);
  }
}

/* Left Column: Step Description */
.pipeline-step-info-col {
  position: relative;
  height: 300px;
}

.pipeline-step-item {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.pipeline-step-item.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.step-header-indicator {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.step-num-mono {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--foreground);
}

.step-line-fill {
  width: 42px;
  height: 2px;
  background: var(--foreground);
  border-radius: 1px;
}

.step-title {
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--foreground);
  margin-bottom: 0.85rem;
}

.step-description {
  font-size: 15px;
  line-height: 1.6;
  color: var(--foreground-muted);
  max-width: 380px;
}

/* Center Column: Phone / Device Mockup */
.pipeline-device-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.device-frame {
  width: min(78vw, 275px);
  aspect-ratio: 9 / 19;
  border-radius: 44px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  padding: 8px;
  box-shadow: 0 25px 70px -20px rgba(0, 0, 0, 0.6);
  position: relative;
}

.device-screen-inner {
  width: 100%;
  height: 100%;
  border-radius: 36px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--surface-border-subtle);
}

.device-island-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 18px;
  border-radius: var(--radius-full);
  background: #000;
  z-index: 10;
}

/* Device screen slides */
.device-slide {
  position: absolute;
  inset: 0;
  padding: 2.8rem 1.15rem 1.25rem 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateY(105%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--bg-subtle);
}

.device-slide.active {
  transform: translateY(0);
}

.slide-badge-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--accent-mint);
  margin-bottom: 0.65rem;
}

.slide-content-box {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 0.9rem;
}

.slide-content-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.4rem;
}

.slide-content-code {
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--foreground-muted);
}

/* Step Dots */
.pipeline-dots-track {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.pipeline-track-pill {
  width: 34px;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--surface-border);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.pipeline-track-pill:hover {
  background: var(--foreground-muted);
  transform: scaleY(1.3);
}

.pipeline-track-fill {
  width: 100%;
  height: 100%;
  background: var(--foreground);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.4s ease;
}

.pipeline-track-pill.active .pipeline-track-fill {
  transform: scaleX(1);
}

/* Right Column: Live Telemetry Metadata */
.pipeline-meta-col {
  display: none;
}

@media (min-width: 960px) {
  .pipeline-meta-col {
    display: block;
    position: relative;
    height: 300px;
  }
}

.meta-step-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.85rem;
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.meta-step-card.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.meta-spec-box {
  padding: 1.15rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  width: 100%;
  max-width: 310px;
}

.meta-spec-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--foreground-muted);
  margin-bottom: 0.3rem;
}

.meta-spec-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.2rem;
}

.meta-spec-sub {
  font-size: 11.5px;
  color: var(--foreground-muted);
}

/* ==========================================================================
   06 / DUAL INFINITE MARQUEE TICKER
   ========================================================================== */
.marquee-section {
  padding: clamp(14px, 2vw, 22px) 0;
  overflow: hidden;
  position: relative;
}

.marquee-mask {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 0.85rem;
  user-select: none;
}

.marquee-left {
  animation: marqueeScrollLeft 35s linear infinite;
}

.marquee-right {
  animation: marqueeScrollRight 35s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marqueeScrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marqueeScrollRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.marquee-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  white-space: nowrap;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.marquee-pill:hover {
  border-color: var(--surface-border-hover);
  transform: translateY(-2px);
}

.pill-icon {
  width: 17px;
  height: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pill-name {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--foreground);
}

.pill-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--foreground-muted);
}

/* ==========================================================================
   07 / FEATURED SYSTEMS & PROJECTS
   ========================================================================== */
.projects-section {
  padding: clamp(28px, 3.5vw, 44px) 0 clamp(44px, 5vw, 64px) 0;
  position: relative;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.5rem;
  margin-top: clamp(2rem, 3.5vw, 3rem);
}

.project-cortex-card {
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.project-cortex-card:hover {
  border-color: var(--surface-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 25px 50px -15px rgba(0, 0, 0, 0.5);
}

.card-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.proj-badge-id {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--foreground-muted);
  letter-spacing: 0.05em;
}

.proj-badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--accent-mint);
  background: var(--accent-glow);
  padding: 3px 9px;
  border-radius: var(--radius-full);
}

.project-main-info {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.project-heading {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

.project-paragraph {
  font-size: 14px;
  line-height: 1.6;
  color: var(--foreground-muted);
}

.project-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: auto;
}

.btn-card-action {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 40px;
  padding: 0 1.1rem;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-card-solid {
  background: var(--foreground);
  color: var(--bg);
  font-weight: 600;
}

.btn-card-solid:hover {
  opacity: 0.85;
}

.btn-card-outline {
  border: 1px solid var(--surface-border);
  color: var(--foreground);
}

.btn-card-outline:hover {
  border-color: var(--surface-border-hover);
  background: rgba(255, 255, 255, 0.04);
}

/* ==========================================================================
   08 / LIVE REST API TESTER CONSOLE
   ========================================================================== */
.api-tester-section {
  padding: clamp(48px, 6vw, 80px) 0;
  position: relative;
}

.api-tester-container {
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  margin-top: 2rem;
  box-shadow: 0 25px 70px -20px rgba(0, 0, 0, 0.4);
}

.api-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.btn-execute-api {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  height: 46px;
  padding: 0 1.35rem;
  border-radius: var(--radius-full);
  background: var(--foreground);
  color: var(--bg);
  font-weight: 600;
  font-size: 13px;
  transition: all 0.2s ease;
}

.btn-execute-api:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.api-status-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent-mint);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.api-terminal-output {
  background: var(--bg);
  border: 1px solid var(--surface-border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.65;
  color: var(--foreground-muted);
  max-height: 350px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

/* ==========================================================================
   09 / BENTO TESTIMONIALS & SYSTEM REVIEWS
   ========================================================================== */
.bento-reviews-section {
  padding: clamp(48px, 6vw, 80px) 0;
  position: relative;
}

.bento-reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: clamp(2rem, 3.5vw, 3rem);
}

@media (min-width: 900px) {
  .bento-reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.bento-column {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .col-offset-1 { transform: translateY(15px); }
  .col-offset-2 { transform: translateY(35px); }
  .col-offset-3 { transform: translateY(20px); }
}

.review-card {
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  padding: clamp(1.35rem, 2.5vw, 1.85rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  transition: border-color 0.3s ease;
}

.review-card:hover {
  border-color: var(--surface-border-hover);
}

.review-quote {
  font-size: 15.5px;
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--foreground);
}

.review-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface-elevated);
  border: 1px solid var(--surface-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12.5px;
  color: var(--foreground);
}

.author-name {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--foreground);
}

.author-role {
  font-size: 11.5px;
  color: var(--foreground-muted);
}

/* ==========================================================================
   10 / SERVICE & ENGAGEMENT TIERS
   ========================================================================== */
.pricing-section {
  padding: clamp(48px, 6vw, 80px) 0;
  position: relative;
}

.pricing-header-row {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: clamp(2rem, 3.5vw, 3rem);
}

@media (min-width: 860px) {
  .pricing-header-row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.tier-toggle-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--surface-border);
}

.tier-toggle-btn {
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--foreground-muted);
  transition: all 0.25s ease;
}

.tier-toggle-btn.active {
  background: var(--foreground);
  color: var(--bg);
  font-weight: 600;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
}

.pricing-card {
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.75rem;
  transition: border-color 0.3s ease;
}

.pricing-card.featured-tier {
  background: var(--foreground);
  color: var(--bg);
  border-color: transparent;
}

.pricing-card.featured-tier .tier-name,
.pricing-card.featured-tier .tier-price,
.pricing-card.featured-tier .tier-feature-item {
  color: var(--bg);
}

.pricing-card.featured-tier .tier-desc,
.pricing-card.featured-tier .tier-period {
  color: rgba(0, 0, 0, 0.65);
}

.pricing-card.featured-tier .tier-feature-icon {
  color: var(--bg);
}

.pricing-card.featured-tier .btn-tier-action {
  background: var(--bg);
  color: var(--foreground);
}

.tier-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--foreground);
}

.tier-desc {
  font-size: 13px;
  color: var(--foreground-muted);
  margin-top: 0.3rem;
}

.tier-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin: 1.25rem 0 0.5rem 0;
}

.tier-currency {
  font-size: 19px;
  font-weight: 600;
}

.tier-price {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.tier-period {
  font-size: 12.5px;
  color: var(--foreground-muted);
}

.tier-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.tier-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 13px;
  line-height: 1.45;
  color: var(--foreground-muted);
}

.tier-feature-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--foreground);
}

.btn-tier-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  width: 100%;
  border-radius: var(--radius-full);
  border: 1px solid var(--surface-border);
  color: var(--foreground);
  font-weight: 600;
  font-size: 13px;
  transition: all 0.25s ease;
}

.btn-tier-action:hover {
  border-color: var(--surface-border-hover);
  background: rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   11 / INTERACTIVE FAQ ACCORDION
   ========================================================================== */
.faq-section {
  padding: clamp(48px, 6vw, 80px) 0;
  position: relative;
}

.faq-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 960px) {
  .faq-layout {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
  }
}

.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--surface-border);
}

.faq-item {
  border-bottom: 1px solid var(--surface-border);
}

.faq-question-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.35rem 0;
  text-align: left;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--foreground);
  transition: color 0.2s ease;
}

.faq-question-btn:hover {
  color: var(--foreground-muted);
}

.faq-icon-cross {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.faq-answer-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
}

.faq-item.active .faq-answer-panel {
  max-height: 200px;
  opacity: 1;
}

.faq-answer-text {
  padding-bottom: 1.35rem;
  font-size: 14px;
  line-height: 1.65;
  color: var(--foreground-muted);
}

/* ==========================================================================
   12 / EPIC BOTTOM CTA & CONTACT FORM
   ========================================================================== */
.bottom-cta-section {
  padding: clamp(48px, 6vw, 80px) 0 clamp(60px, 8vw, 100px) 0;
  position: relative;
}

.cta-grand-card {
  border-radius: clamp(28px, 4vw, 48px);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  padding: clamp(2rem, 5vw, 4.5rem) clamp(1.25rem, 4vw, 3.5rem);
  position: relative;
  overflow: hidden;
  box-shadow: 0 35px 90px -20px rgba(0, 0, 0, 0.5);
}

/* Fan-out stacked cards */
.cta-fan-wrapper {
  position: relative;
  height: 120px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
}

.fan-card {
  position: absolute;
  width: 110px;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  background: var(--bg-subtle);
  border: 1px solid var(--surface-border-hover);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.6);
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fan-card-1 { transform: translateX(-70px) rotate(-14deg); }
.fan-card-2 { transform: translateX(-35px) rotate(-7deg); }
.fan-card-3 { transform: translateX(0) rotate(0deg); z-index: 3; }
.fan-card-4 { transform: translateX(35px) rotate(7deg); }
.fan-card-5 { transform: translateX(70px) rotate(14deg); }

.cta-grand-card:hover .fan-card-1 { transform: translateX(-100px) rotate(-20deg); }
.cta-grand-card:hover .fan-card-2 { transform: translateX(-50px) rotate(-10deg); }
.cta-grand-card:hover .fan-card-3 { transform: translateY(-8px); }
.cta-grand-card:hover .fan-card-4 { transform: translateX(50px) rotate(10deg); }
.cta-grand-card:hover .fan-card-5 { transform: translateX(100px) rotate(20deg); }

.cta-heading {
  font-size: clamp(30px, 4.8vw, 60px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.06;
  text-align: center;
  color: var(--foreground);
  margin-bottom: 1rem;
  text-wrap: balance;
}

.cta-subtext {
  font-size: clamp(14.5px, 1.7vw, 17px);
  color: var(--foreground-muted);
  text-align: center;
  max-width: 540px;
  margin: 0 auto 2.5rem auto;
  line-height: 1.6;
}

/* Contact Form */
.contact-form-grid {
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.input-pill {
  width: 100%;
  height: 50px;
  padding: 0 1.4rem;
  border-radius: var(--radius-full);
  background: var(--bg);
  border: 1px solid var(--surface-border);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 13.5px;
  transition: border-color 0.2s ease;
}

.input-pill:focus {
  outline: none;
  border-color: var(--foreground);
}

.textarea-pill {
  width: 100%;
  min-height: 110px;
  padding: 1.15rem 1.4rem;
  border-radius: var(--radius-lg);
  background: var(--bg);
  border: 1px solid var(--surface-border);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 13.5px;
  resize: vertical;
  transition: border-color 0.2s ease;
}

.textarea-pill:focus {
  outline: none;
  border-color: var(--foreground);
}

.form-status-feedback {
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: center;
  min-height: 20px;
}

/* ==========================================================================
   13 / MINIMALIST FOOTER
   ========================================================================== */
.cortex-footer {
  border-top: 1px solid var(--surface-border);
  padding: clamp(40px, 5vw, 60px) 0;
  position: relative;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

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

.footer-copy {
  font-size: 13px;
  color: var(--foreground-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 13px;
  color: var(--foreground-muted);
}

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

/* ==========================================================================
   RESPONSIVE UTILITIES & REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
