/* ═══════════════════════════════════════════════
   NEURONARRATIVES — DESIGN SYSTEM & GLOBAL
   ═══════════════════════════════════════════════ */

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

:root {
  /* Palette */
  --bg-deep: #06060e;
  --bg-surface: #0c0c1a;
  --bg-card: #111128;
  --bg-card-hover: #161640;
  --border: rgba(167, 139, 250, 0.12);
  --border-hover: rgba(167, 139, 250, 0.3);

  --text-primary: #f0eef6;
  --text-secondary: #a09cb5;
  --text-muted: #6b6784;

  --accent-purple: #a78bfa;
  --accent-cyan: #06b6d4;
  --accent-pink: #f472b6;
  --accent-green: #34d399;

  --gradient-primary: linear-gradient(135deg, #a78bfa 0%, #06b6d4 100%);
  --gradient-warm: linear-gradient(135deg, #f472b6 0%, #a78bfa 100%);
  --gradient-cool: linear-gradient(135deg, #06b6d4 0%, #34d399 100%);
  --gradient-full: linear-gradient(135deg, #a78bfa 0%, #f472b6 33%, #06b6d4 66%, #34d399 100%);

  /* Typography */
  --font-display: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-body: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --section-pad: clamp(80px, 12vw, 160px);
  --container-max: 1200px;

  /* Effects */
  --glow-purple: 0 0 60px rgba(167, 139, 250, 0.15);
  --glow-cyan: 0 0 60px rgba(6, 182, 212, 0.15);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.7;
}

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

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

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

/* ═══════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 clamp(20px, 4vw, 48px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled {
  background: rgba(6, 6, 14, 0.85);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  transition: opacity 0.3s;
}

.nav-logo:hover {
  opacity: 0.8;
}

.logo-icon {
  display: flex;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.3s;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(167, 139, 250, 0.08);
}

.nav-cta {
  background: var(--gradient-primary) !important;
  color: var(--bg-deep) !important;
  font-weight: 600 !important;
  padding: 8px 20px !important;
}

.nav-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(167, 139, 250, 0.3);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ═══════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#neural-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, transparent 0%, var(--bg-deep) 100%),
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(167, 139, 250, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 80% 20%, rgba(6, 182, 212, 0.06) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 900px;
  padding: 120px 24px 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px 6px 12px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: rgba(167, 139, 250, 0.06);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-purple);
  margin-bottom: 32px;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.title-line {
  display: block;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.title-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.7;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.85s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--bg-deep);
  box-shadow: 0 0 0 0 rgba(167, 139, 250, 0);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(167, 139, 250, 0.3);
}

.btn-ghost {
  background: rgba(167, 139, 250, 0.08);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: rgba(167, 139, 250, 0.14);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-top: 64px;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1s both;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-row {
  display: flex;
  align-items: baseline;
  gap: 0;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-suffix {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.2s both;
  opacity: 1;
  transition: opacity 0.6s ease;
}

.hero-scroll-indicator.faded {
  opacity: 0;
  pointer-events: none;
}

.hero-scroll-indicator span {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: var(--gradient-primary);
  animation: scroll-pulse 2s ease-in-out infinite;
  transform-origin: top;
}

@keyframes scroll-pulse {
  0% { transform: scaleY(0); opacity: 0; }
  50% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0); opacity: 0; }
}

/* ═══════════════════════════════════════════════
   SECTIONS — SHARED
   ═══════════════════════════════════════════════ */

.section {
  padding: var(--section-pad) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 100px;
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-purple);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* ═══════════════════════════════════════════════
   ABOUT CARDS
   ═══════════════════════════════════════════════ */

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.about-card {
  padding: 40px 32px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.4s;
}

.about-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--glow-purple);
}

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

.about-card-icon {
  margin-bottom: 24px;
}

.about-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.about-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════
   HOW IT WORKS — TIMELINE
   ═══════════════════════════════════════════════ */

.how-it-works {
  background:
    radial-gradient(ellipse 50% 30% at 0% 50%, rgba(167, 139, 250, 0.04) 0%, transparent 100%),
    radial-gradient(ellipse 50% 30% at 100% 50%, rgba(6, 182, 212, 0.04) 0%, transparent 100%);
}

.steps-timeline {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  left: 40px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-purple), var(--accent-cyan), var(--accent-green));
  opacity: 0.2;
}

.step {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 40px 0;
  position: relative;
}

.step-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

.step-content h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.step-visual {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Pulse rings */
.pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid var(--accent-purple);
  animation: pulse-expand 3s ease-out infinite;
  opacity: 0;
}

.pulse-ring.delay-1 { animation-delay: 1s; }
.pulse-ring.delay-2 { animation-delay: 2s; }

@keyframes pulse-expand {
  0% { transform: scale(0.5); opacity: 0.6; }
  100% { transform: scale(1.2); opacity: 0; }
}

/* Typewriter */
.typewriter-effect {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 2px;
}

.tw-line {
  overflow: hidden;
  white-space: nowrap;
  animation: typewriter 4s steps(30) infinite;
  max-width: 0;
}

@keyframes typewriter {
  0% { max-width: 0; }
  50%, 90% { max-width: 200px; }
  100% { max-width: 0; }
}

.tw-cursor {
  animation: blink 0.8s step-end infinite;
}

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

/* Focus meter */
.focus-meter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.focus-bar {
  width: 100%;
  height: 12px;
  background: rgba(167, 139, 250, 0.1);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

.focus-fill {
  height: 100%;
  border-radius: 6px;
  background: var(--gradient-primary);
  animation: focus-wave 3s ease-in-out infinite;
}

@keyframes focus-wave {
  0% { width: 30%; }
  50% { width: 85%; }
  100% { width: 30%; }
}

.focus-target {
  position: absolute;
  right: 25%;
  top: -4px;
  bottom: -4px;
  width: 3px;
  background: var(--accent-green);
  border-radius: 2px;
}

.focus-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Branch tree */
.branch-tree {
  position: relative;
  width: 100%;
  height: 100%;
}

.branch-node {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-purple);
}

.branch-node.root {
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  width: 20px;
  height: 20px;
}

.branch-node.left-node {
  bottom: 25%;
  left: 20%;
  background: var(--accent-green);
  animation: glow-green 2s ease-in-out infinite;
}

.branch-node.right-node {
  bottom: 25%;
  right: 20%;
  background: var(--accent-pink);
  animation: glow-pink 2s ease-in-out infinite 0.5s;
}

.branch-line {
  position: absolute;
  height: 2px;
  top: 28%;
  width: 40px;
  transform-origin: left;
}

.branch-line.left {
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  background: linear-gradient(to right, var(--accent-purple), var(--accent-green));
}

.branch-line.right {
  right: 50%;
  transform: translateX(50%) rotate(-45deg);
  background: linear-gradient(to right, var(--accent-purple), var(--accent-pink));
}

@keyframes glow-green {
  0%, 100% { box-shadow: 0 0 8px rgba(52, 211, 153, 0.4); }
  50% { box-shadow: 0 0 20px rgba(52, 211, 153, 0.7); }
}

@keyframes glow-pink {
  0%, 100% { box-shadow: 0 0 8px rgba(244, 114, 182, 0.4); }
  50% { box-shadow: 0 0 20px rgba(244, 114, 182, 0.7); }
}

/* ═══════════════════════════════════════════════
   FEATURES GRID
   ═══════════════════════════════════════════════ */

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 32px 28px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--glow-purple);
}

.feature-large {
  grid-column: span 2;
  grid-row: span 2;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.feature-bg-glow {
  position: absolute;
  top: -50%;
  right: -30%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.08) 0%, transparent 70%);
  animation: float-glow 8s ease-in-out infinite;
}

@keyframes float-glow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-20px, 20px) scale(1.1); }
  66% { transform: translate(10px, -10px) scale(0.95); }
}

.feature-icon {
  margin-bottom: 32px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-large h3 {
  font-size: 1.6rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

.feature-platforms {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.platform-badge {
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

/* ═══════════════════════════════════════════════
   TECHNOLOGY
   ═══════════════════════════════════════════════ */

.technology {
  background:
    radial-gradient(ellipse 40% 40% at 80% 20%, rgba(244, 114, 182, 0.03) 0%, transparent 100%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(6, 182, 212, 0.03) 0%, transparent 100%);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 64px;
}

.tech-card {
  padding: 32px 28px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--glow-cyan);
}

.tech-card-header {
  margin-bottom: 20px;
}

.tech-icon-wrap {
  display: inline-flex;
}

.tech-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(167, 139, 250, 0.1);
  color: var(--accent-purple);
  border: 1px solid rgba(167, 139, 250, 0.2);
}

.tech-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.tech-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* Tech diagram */
.tech-diagram {
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 48px 32px;
  overflow-x: auto;
}

.diagram-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-width: 600px;
}

.diagram-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(167, 139, 250, 0.06);
  border: 1px solid var(--border);
  transition: all 0.3s;
  flex-shrink: 0;
}

.diagram-node:hover {
  border-color: var(--border-hover);
  background: rgba(167, 139, 250, 0.12);
  transform: translateY(-2px);
}

.diagram-icon {
  font-size: 1.8rem;
}

.diagram-node span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.diagram-arrow {
  flex-shrink: 0;
  animation: arrow-pulse 2s ease-in-out infinite;
}

@keyframes arrow-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ═══════════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════════ */

.cta-section {
  padding-bottom: 0;
}

.cta-card {
  border-radius: 28px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: clamp(48px, 8vw, 80px) clamp(24px, 6vw, 64px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-bg-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}

.orb-1 {
  width: 300px;
  height: 300px;
  background: var(--accent-purple);
  top: -100px;
  left: -100px;
  animation: orb-float 10s ease-in-out infinite;
}

.orb-2 {
  width: 250px;
  height: 250px;
  background: var(--accent-cyan);
  bottom: -80px;
  right: -80px;
  animation: orb-float 12s ease-in-out infinite reverse;
}

.orb-3 {
  width: 200px;
  height: 200px;
  background: var(--accent-pink);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: orb-float 8s ease-in-out infinite 2s;
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(30px, -20px); }
  50% { transform: translate(-10px, 30px); }
  75% { transform: translate(20px, 10px); }
}

.cta-card h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  position: relative;
}

.cta-card p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto 32px;
  position: relative;
}

.cta-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.cta-form input {
  padding: 14px 24px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  width: 300px;
  transition: all 0.3s;
  outline: none;
}

.cta-form input:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.1);
}

.cta-success {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-green);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */

.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--border);
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 12px;
  max-width: 300px;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color 0.3s;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-tagline {
  font-style: italic;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════
   ANIMATIONS — REVEAL ON SCROLL
   ═══════════════════════════════════════════════ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

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

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-large {
    grid-column: span 2;
    grid-row: span 1;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(6, 6, 14, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-stats {
    gap: 20px;
  }

  .stat-value, .stat-suffix {
    font-size: 1.5rem;
  }

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

  .feature-large {
    grid-column: span 1;
  }

  .step {
    grid-template-columns: 60px 1fr;
    gap: 20px;
  }

  .step-visual {
    display: none;
  }

  .timeline-line {
    left: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: span 2;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .diagram-flow {
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }

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

  .footer-brand {
    grid-column: span 1;
  }

  .cta-form input {
    width: 100%;
  }
}

/* ═══════════════════════════════════════════════
   SELECTION AND SCROLLBAR
   ═══════════════════════════════════════════════ */

::selection {
  background: rgba(167, 139, 250, 0.3);
  color: var(--text-primary);
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: rgba(167, 139, 250, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(167, 139, 250, 0.4);
}
