/* ============================================================
   SYNTHASKILL LANDING PAGE
   Cyberpunk noir with concentrated purple radiance
   ============================================================ */

/* --- Design Tokens --- */
:root {
  /* Purple palette */
  --purple-900: #3b0764;
  --purple-800: #5b21b6;
  --purple-700: #6d28d9;
  --purple-600: #7c3aed;
  --purple-500: #8b5cf6;
  --purple-400: #a855f7;
  --purple-300: #c084fc;
  --purple-200: #d8b4fe;
  --purple-100: #f3e8ff;

  /* Brand */
  --primary: #9333ea;
  --secondary: #7c3aed;
  --accent: #a855f7;
  --accent-glow: rgba(168, 85, 247, 0.4);

  /* Backgrounds */
  --bg-deep: #0a0a0f;
  --bg-surface: #0d0d1a;
  --bg-card: #111127;
  --bg-card-hover: #161638;
  --bg-code: #0c0c1e;

  /* Text */
  --text-primary: #f0eef6;
  --text-secondary: #a8a3b8;
  --text-muted: #6b6582;
  --text-accent: #c084fc;

  /* Borders */
  --border-subtle: rgba(139, 92, 246, 0.12);
  --border-glow: rgba(139, 92, 246, 0.3);
  --border-active: rgba(168, 85, 247, 0.6);

  /* Values */
  --val-good: #34d399;
  --val-bad: #f87171;
  --val-mid: #fbbf24;

  /* Spacing */
  --section-gap: 8rem;
  --container-max: 1120px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-sm: 8px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
}

/* Grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
}

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

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

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

::selection {
  background: var(--purple-600);
  color: #fff;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

.section {
  padding: var(--section-gap) 0;
}

/* --- Particles --- */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 12s infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 14s; }
.particle:nth-child(2) { left: 25%; animation-delay: 2s; animation-duration: 11s; }
.particle:nth-child(3) { left: 40%; animation-delay: 4s; animation-duration: 16s; }
.particle:nth-child(4) { left: 55%; animation-delay: 1s; animation-duration: 13s; }
.particle:nth-child(5) { left: 70%; animation-delay: 3s; animation-duration: 15s; }
.particle:nth-child(6) { left: 85%; animation-delay: 5s; animation-duration: 12s; }
.particle:nth-child(7) { left: 15%; animation-delay: 6s; animation-duration: 17s; }
.particle:nth-child(8) { left: 65%; animation-delay: 7s; animation-duration: 10s; }

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.1;
  }
  100% {
    transform: translateY(-20vh) scale(1.5);
    opacity: 0;
  }
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: 0 1px 0 var(--border-subtle);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  flex-shrink: 0;
}

.logo-text {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.15em;
  background: linear-gradient(135deg, var(--purple-300), var(--primary), var(--purple-400));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px var(--accent-glow));
}

.logo-text-sm {
  font-size: 1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
}

.nav-links a:hover {
  color: var(--text-primary);
}

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

.nav-cta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--purple-600);
  box-shadow: 0 0 20px var(--accent-glow);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  transition: all 0.3s ease;
  border-radius: 1px;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1.5rem;
  flex-direction: column;
  gap: 1rem;
  z-index: 99;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-size: 1rem;
  color: var(--text-secondary);
  padding: 0.5rem 0;
  transition: color 0.2s;
}

.mobile-menu a:hover {
  color: var(--text-primary);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  transition: all 0.25s var(--ease-out);
  position: relative;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--purple-600));
  color: #fff;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--purple-600), var(--primary));
  transform: translateY(-1px);
}

.btn-glow {
  box-shadow:
    0 0 20px var(--accent-glow),
    0 4px 20px rgba(0, 0, 0, 0.4);
}

.btn-glow:hover {
  box-shadow:
    0 0 30px rgba(168, 85, 247, 0.5),
    0 4px 30px rgba(0, 0, 0, 0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-glow);
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-active);
  background: rgba(139, 92, 246, 0.06);
}

.btn-large {
  font-size: 1rem;
  padding: 1rem 2.5rem;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 5rem;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(147, 51, 234, 0.15), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: center;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  margin-bottom: 1.5rem;
}

.hero-brand {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: clamp(3rem, 6vw, 5rem);
  letter-spacing: 0.2em;
  line-height: 1;
  background: linear-gradient(135deg, var(--purple-200), var(--primary), var(--purple-400), var(--purple-300));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 30px rgba(147, 51, 234, 0.3));
  animation: gradientShift 6s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-product {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--text-muted);
  letter-spacing: 0.3em;
  margin-top: 0.25rem;
}

.hero-tagline {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --- Terminal --- */
.hero-terminal {
  background: var(--bg-code);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 0 40px rgba(147, 51, 234, 0.08),
    0 20px 60px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 2;
}

.terminal-chrome {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-subtle);
}

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

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #28ca41; }

.terminal-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.terminal-body {
  padding: 1.25rem 1.5rem;
  min-height: 320px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  line-height: 1.8;
  position: relative;
}

.terminal-output {
  white-space: pre-wrap;
  word-break: break-word;
}

.terminal-line {
  opacity: 0;
  animation: terminalLineIn 0.3s var(--ease-out) forwards;
}

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

.t-prompt { color: var(--val-good); }
.t-purple { color: var(--purple-400); }
.t-dim { color: var(--text-muted); }
.t-green { color: var(--val-good); }
.t-yellow { color: var(--val-mid); }
.t-cyan { color: #67e8f9; }
.t-white { color: var(--text-primary); }
.t-bold { font-weight: 700; }

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--accent);
  animation: blink 1s step-end infinite;
  vertical-align: middle;
  margin-left: 2px;
}

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

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  animation: scrollBounce 2s ease-in-out infinite;
  z-index: 2;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* --- Problem Section --- */
.section-problem {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-surface) 100%);
}

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

.pain-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s var(--ease-out);
}

.pain-card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.06);
  transform: translateY(-2px);
}

.pain-icon {
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.pain-icon svg {
  display: inline-block;
}

.pain-card h3 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.pain-card p {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Solution Section --- */
.section-solution {
  background: var(--bg-surface);
}

.stat-highlight {
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
}

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

.solution-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.solution-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top center, rgba(147, 51, 234, 0.06), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.solution-card:hover {
  border-color: var(--border-active);
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.1);
  transform: translateY(-3px);
}

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

.solution-icon {
  color: var(--accent);
  margin: 0 auto 1.25rem;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 1;
}

.solution-card h3 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.solution-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.solution-card > p:last-child {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* --- Steps Section --- */
.section-steps {
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-deep) 100%);
}

.steps {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.step {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.step-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--purple-800);
  line-height: 1;
  flex-shrink: 0;
  width: 64px;
  text-align: center;
  position: relative;
}

.step-content {
  flex: 1;
}

.step-content h3 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.step-detail {
  font-size: 0.925rem;
  color: var(--text-secondary);
  margin-top: 0.75rem;
}

.step-connector {
  width: 2px;
  height: 3rem;
  background: linear-gradient(180deg, var(--purple-700), transparent);
  margin-left: 31px;
  flex-shrink: 0;
}

/* Code blocks */
.code-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-code);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.875rem 1.25rem;
  gap: 1rem;
}

.code-block code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.code-var {
  color: var(--accent);
}

.copy-btn {
  color: var(--text-muted);
  padding: 4px;
  border-radius: 4px;
  transition: color 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}

.copy-btn:hover {
  color: var(--accent);
  background: rgba(139, 92, 246, 0.1);
}

.copy-btn.copied {
  color: var(--val-good);
}

/* --- Comparison Table --- */
.section-compare {
  background: var(--bg-deep);
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.925rem;
  min-width: 600px;
}

.compare-table th,
.compare-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.compare-table thead th {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: var(--bg-card);
  text-transform: uppercase;
}

.compare-table tbody tr {
  transition: background 0.2s ease;
}

.compare-table tbody tr:hover {
  background: rgba(139, 92, 246, 0.03);
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.feature-name {
  font-weight: 600;
  color: var(--text-primary);
}

.col-highlight {
  background: rgba(147, 51, 234, 0.06) !important;
  position: relative;
}

thead .col-highlight {
  color: var(--accent) !important;
  background: rgba(147, 51, 234, 0.1) !important;
}

.col-highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.val-good { color: var(--val-good); font-weight: 600; }
.val-bad { color: var(--val-bad); opacity: 0.8; }
.val-mid { color: var(--val-mid); opacity: 0.9; }

.check-mark::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--val-good);
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

/* --- Tech Stack --- */
.section-stacks {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-surface) 100%);
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.stack-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 0.5rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s var(--ease-out);
}

.stack-item:hover {
  border-color: var(--border-glow);
  background: var(--bg-card);
  transform: translateY(-2px);
}

.stack-item svg {
  display: inline-block;
}

.stack-item span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.stack-more {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* --- Testimonials --- */
.section-testimonials {
  background: var(--bg-surface);
}

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

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: border-color 0.3s ease, transform 0.3s var(--ease-out);
}

.testimonial-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

.testimonial-stars {
  display: flex;
  gap: 2px;
}

.testimonial-stars svg {
  display: inline-block;
}

.testimonial-card blockquote {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.6;
  font-style: italic;
  flex: 1;
}

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

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-700), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  flex-shrink: 0;
}

.author-name {
  font-weight: 600;
  font-size: 0.875rem;
}

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

/* --- Pricing --- */
.section-pricing {
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-deep) 100%);
  position: relative;
}

.pricing-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  text-align: center;
  position: relative;
  box-shadow:
    0 0 60px rgba(147, 51, 234, 0.12),
    0 20px 60px rgba(0, 0, 0, 0.3);
}

.pricing-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary), var(--purple-400), var(--purple-600));
  z-index: -1;
  opacity: 0.3;
  filter: blur(0);
}

.pricing-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  display: inline-block;
  margin-bottom: 2rem;
}

.pricing-amount {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 0.25rem;
}

.pricing-dollar {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 0.5rem;
}

.pricing-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--purple-200), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pricing-term {
  font-size: 0.925rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.pricing-features {
  list-style: none;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.925rem;
  color: var(--text-secondary);
}

.pricing-features li svg {
  flex-shrink: 0;
  display: inline-block;
}

.pricing-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.pricing-trust svg {
  display: inline-block;
}

.pricing-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.pricing-guarantee svg {
  display: inline-block;
  flex-shrink: 0;
}

/* --- FAQ --- */
.section-faq {
  background: var(--bg-deep);
}

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

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-item[open] {
  border-color: var(--border-glow);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  list-style: none;
  user-select: none;
  transition: color 0.2s ease;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::marker {
  content: '';
}

.faq-question:hover {
  color: var(--accent);
}

.faq-question:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-radius: var(--radius);
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.3s var(--ease-out), color 0.2s ease;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Final CTA --- */
.section-final-cta {
  padding: 6rem 0;
  background: var(--bg-deep);
  position: relative;
  overflow: hidden;
}

.section-final-cta::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  bottom: -300px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(147, 51, 234, 0.1), transparent 70%);
  pointer-events: none;
}

.final-cta-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.final-cta-content h2 {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.final-cta-content p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* --- Footer --- */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.footer-product {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

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

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

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

.footer-legal {
  text-align: right;
}

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

.footer-tagline {
  font-size: 0.75rem !important;
  color: var(--text-muted);
  opacity: 0.6;
  margin-top: 0.25rem;
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.08s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.16s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.24s; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.32s; }
.stagger.visible > *:nth-child(6) { transition-delay: 0.4s; }
.stagger.visible > *:nth-child(7) { transition-delay: 0.48s; }
.stagger.visible > *:nth-child(8) { transition-delay: 0.56s; }
.stagger.visible > *:nth-child(9) { transition-delay: 0.64s; }
.stagger.visible > *:nth-child(10) { transition-delay: 0.72s; }
.stagger.visible > *:nth-child(11) { transition-delay: 0.8s; }
.stagger.visible > *:nth-child(12) { transition-delay: 0.88s; }

.stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */

/* Tablet */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-ctas {
    justify-content: center;
  }

  .pain-grid,
  .solution-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }

  .stack-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --section-gap: 5rem;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding-top: 4rem;
    min-height: auto;
    padding-bottom: 3rem;
  }

  .hero-brand {
    font-size: 2.5rem;
  }

  .terminal-body {
    min-height: 260px;
    font-size: 0.7rem;
  }

  .hero-scroll-indicator {
    display: none;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .step {
    gap: 1.25rem;
  }

  .step-number {
    font-size: 2rem;
    width: 48px;
  }

  .step-connector {
    margin-left: 23px;
  }

  .stack-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }

  .pricing-card {
    padding: 2.5rem 1.5rem;
  }

  .pricing-number {
    font-size: 3.5rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-legal {
    text-align: center;
  }

  .footer-links {
    gap: 1.25rem;
  }

  .compare-table th,
  .compare-table td {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero-brand {
    font-size: 2rem;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ctas .btn {
    justify-content: center;
  }

  .stack-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .code-block {
    font-size: 0.8rem;
    padding: 0.75rem 1rem;
  }

  .code-block code {
    font-size: 0.75rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }

  .stagger > * {
    opacity: 1;
    transform: none;
  }

  .particle {
    display: none;
  }
}

/* Print */
@media print {
  .nav, .particles, .hero-glow, .hero-scroll-indicator,
  .hero-terminal, .section-final-cta {
    display: none;
  }

  body::before, body::after {
    display: none;
  }

  body {
    background: #fff;
    color: #111;
  }

  .section {
    padding: 2rem 0;
  }
}