/* ==========================================================================
   OpenFlex Landing Page V2 — Style Sheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Custom Properties — Light Mode (Default)
   -------------------------------------------------------------------------- */
:root {
  /* Primary */
  --primary: #4c4ff3;
  --primary-hover: #3b3ed9;
  --primary-subtle: #eef0ff;
  --primary-glow: rgba(76, 79, 243, 0.15);

  /* Backgrounds */
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --bg-elevated: #ffffff;
  --bg-hero: #09090b;

  /* Text */
  --text-primary: #0f1117;
  --text-secondary: #6b7280;
  --text-tertiary: #9ca3af;
  --text-on-dark: #f3f4f6;
  --text-on-dark-muted: #9ca3af;

  /* Borders */
  --border: #e5e7eb;
  --border-subtle: #f0f1f3;

  /* Accents */
  --accent-green: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  /* Theme-aware code syntax (light bg sections) */
  --code-keyword: #7c3aed;
  --code-string: #059669;
  --code-comment: #9ca3af;
  --code-fn: #2563eb;
  --code-var: #0f1117;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #09090b 0%, #1a1a2e 50%, #16162a 100%);
  --gradient-primary: linear-gradient(135deg, #4c4ff3, #7c3aed);
  --gradient-glow: radial-gradient(ellipse at 50% 0%, rgba(76, 79, 243, 0.2) 0%, transparent 60%);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 40px rgba(76, 79, 243, 0.15);

  /* Layout */
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --container-max: 1140px;
  --container-pad: 24px;

  /* Fonts */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'JetBrains Mono', monospace;
}

/* --------------------------------------------------------------------------
   2. Dark Mode Overrides
   -------------------------------------------------------------------------- */
[data-theme="dark"] {
  --primary: #6366f1;
  --primary-hover: #818cf8;
  --primary-subtle: rgba(99, 102, 241, 0.1);
  --primary-glow: rgba(99, 102, 241, 0.2);

  --bg: #09090b;
  --bg-alt: #111114;
  --bg-elevated: #18181b;
  --bg-hero: #09090b;

  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-tertiary: #6b7280;
  --text-on-dark: #f3f4f6;
  --text-on-dark-muted: #9ca3af;

  --border: #27272a;
  --border-subtle: #1e1e22;

  --code-keyword: #c084fc;
  --code-string: #86efac;
  --code-comment: #6b7280;
  --code-fn: #93c5fd;
  --code-var: #f3f4f6;

  --gradient-hero: linear-gradient(135deg, #09090b 0%, #1a1a2e 50%, #09090b 100%);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.2);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* Theme transition */
body,
.header,
.problem,
.how-it-works,
.features-deep,
.compatibility,
.comparison,
.testimonials,
.faq,
.footer {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Skip to content */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 1000;
  padding: 8px 16px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.hero :focus-visible,
.stats :focus-visible,
.dev-showcase :focus-visible,
.architecture :focus-visible,
.migration :focus-visible,
.cta-final :focus-visible {
  outline-color: #a5b4fc;
}

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* --------------------------------------------------------------------------
   5. Components — Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary-subtle);
}

/* Dark section button variants */
.hero .btn-secondary,
.migration .btn-secondary,
.cta-final .btn-secondary {
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.3);
}

.hero .btn-secondary:hover,
.migration .btn-secondary:hover,
.cta-final .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: var(--radius-lg);
}

/* Pulse glow for final CTA */
.btn-glow {
  animation: btn-pulse 2s ease-in-out infinite;
}

@keyframes btn-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(76, 79, 243, 0.3); }
  50% { box-shadow: 0 0 40px rgba(76, 79, 243, 0.5); }
}

/* --------------------------------------------------------------------------
   6. Components — Badge & Section Label
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid rgba(76, 79, 243, 0.3);
  color: #a5b4fc;
  background: rgba(76, 79, 243, 0.08);
}

.section-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 12px;
}

/* On dark sections */
.dev-showcase .section-label,
.architecture .section-label {
  color: var(--text-on-dark-muted);
}

/* --------------------------------------------------------------------------
   7. Components — Section Heading
   -------------------------------------------------------------------------- */
.section-heading {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-heading--center {
  text-align: center;
}

.section-subheading {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 48px;
}

.section-subheading--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Dark section headings */
.dev-showcase .section-heading,
.architecture .section-heading,
.stats .section-heading,
.migration .section-heading,
.cta-final .section-heading {
  color: var(--text-on-dark);
}

.dev-showcase .section-subheading,
.architecture .section-subheading,
.migration .section-subheading,
.cta-final .section-subheading {
  color: var(--text-on-dark-muted);
}

/* --------------------------------------------------------------------------
   8. Header / Navigation
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}

@supports not (backdrop-filter: blur(1px)) {
  .header {
    background: rgba(255, 255, 255, 0.95);
  }
  [data-theme="dark"] .header {
    background: rgba(9, 9, 11, 0.95);
  }
}

[data-theme="dark"] .header {
  background: rgba(9, 9, 11, 0.8);
}

.header.scrolled {
  border-bottom-color: var(--border);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Logo */
.logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.logo .accent {
  color: var(--primary);
}

.logo-tagline {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-tertiary);
  letter-spacing: normal;
}

.logo-tagline a {
  color: var(--text-tertiary);
  transition: color 0.2s ease;
}

.logo-tagline a:hover {
  color: var(--primary);
}

/* Desktop nav */
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

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

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

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

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

/* Theme toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.theme-toggle:hover {
  color: var(--text-primary);
  background: var(--bg-alt);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.theme-toggle .icon-sun {
  display: none;
}

.theme-toggle .icon-moon {
  display: block;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

/* Hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  gap: 5px;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   9. Mobile Navigation
   -------------------------------------------------------------------------- */
.mobile-nav {
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0 var(--container-pad);
  box-shadow: var(--shadow-md);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  visibility: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease, visibility 0.3s;
}

.mobile-nav.is-open {
  max-height: 400px;
  opacity: 1;
  padding: 16px var(--container-pad);
  visibility: visible;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-links a {
  display: block;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius);
  transition: background-color 0.2s ease, color 0.2s ease;
}

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

.mobile-nav-links .mobile-nav-cta {
  background: var(--gradient-primary);
  color: #fff;
  text-align: center;
  font-weight: 600;
  margin-top: 8px;
}

.mobile-nav-links .mobile-nav-cta:hover {
  background: var(--gradient-primary);
  color: #fff;
}

/* --------------------------------------------------------------------------
   10. Hero Section
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
  padding: 100px 0 80px;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(76, 79, 243, 0.15), transparent 70%);
  transform: translate(-50%, -50%);
  animation: glow-drift 12s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: 30%;
  left: 30%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.1), transparent 70%);
  transform: translate(-50%, -50%);
  animation: glow-drift 12s ease-in-out 4s infinite alternate-reverse;
  pointer-events: none;
}

@keyframes glow-drift {
  0% { transform: translate(-60%, -60%); }
  100% { transform: translate(-40%, -40%); }
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero .badge {
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(36px, 7vw, 72px);
  font-weight: 800;
  color: var(--text-on-dark);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 20px;
}

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

.hero-sub {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--text-on-dark-muted);
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* Hero terminal */
.hero-terminal {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transform: perspective(1000px) rotateX(2deg);
}

.terminal-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.terminal-dot:nth-child(1) { background: #ff5f56; }
.terminal-dot:nth-child(2) { background: #ffbd2e; }
.terminal-dot:nth-child(3) { background: #27c93f; }

.terminal-title {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  font-family: var(--font-mono);
}

.terminal-body {
  padding: 20px 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 2;
  text-align: left;
}

.terminal-line {
  color: var(--text-on-dark-muted);
  line-height: 1.8;
}

.terminal-line .code-keyword { color: #c084fc; }
.terminal-line .code-string { color: #86efac; }
.terminal-line .code-comment { color: #6b7280; font-style: italic; }
.terminal-line .code-fn { color: #93c5fd; }
.terminal-line .code-var { color: var(--text-on-dark); }
.terminal-line .terminal-prompt { color: #86efac; }
.terminal-line .terminal-cmd { color: #f3f4f6; }

.js-ready .terminal-line {
  opacity: 0;
  transform: translateY(4px);
  animation: terminal-reveal 0.3s ease-out forwards;
}

.js-ready .terminal-line:nth-child(1) { animation-delay: 0.5s; }
.js-ready .terminal-line:nth-child(2) { animation-delay: 1.2s; }
.js-ready .terminal-line:nth-child(3) { animation-delay: 2.0s; }
.js-ready .terminal-line:nth-child(4) { animation-delay: 2.8s; }
.js-ready .terminal-line:nth-child(5) { animation-delay: 3.5s; }

@keyframes terminal-reveal {
  to { opacity: 1; transform: translateY(0); }
}

.terminal-line:last-child::after {
  content: '\2588';
  animation: blink-cursor 1s step-end infinite;
  color: rgba(255, 255, 255, 0.6);
}

@keyframes blink-cursor {
  50% { opacity: 0; }
}

/* Hero load animations */
@keyframes hero-fade-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero .badge { animation: hero-fade-in 0.5s ease-out 0.3s both; }
.hero-title { animation: hero-fade-in 0.5s ease-out 0.4s both; }
.hero-sub { animation: hero-fade-in 0.5s ease-out 0.6s both; }
.hero-actions { animation: hero-fade-in 0.5s ease-out 0.8s both; }
.hero-marketplace-preview { animation: hero-fade-in 0.6s ease-out 1.0s both; }

/* Hero marketplace preview cards */
.hero-marketplace-preview {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 auto;
  max-width: 740px;
}

.marketplace-card {
  flex: 0 1 130px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 20px 12px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

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

.marketplace-card-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  color: var(--text-on-dark-muted);
}

.marketplace-card-icon svg {
  width: 100%;
  height: 100%;
}

.marketplace-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-on-dark);
  margin-bottom: 4px;
}

.marketplace-card-type {
  font-size: 13px;
  color: var(--text-on-dark-muted);
}

/* --------------------------------------------------------------------------
   11. Trust Strip
   -------------------------------------------------------------------------- */
.trust-strip {
  background: var(--gradient-hero);
  padding: 48px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.trust-strip .section-label {
  text-align: center;
  color: var(--text-on-dark-muted);
  margin-bottom: 24px;
  font-size: 11px;
}

.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.trust-logo {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.trust-logo:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* --------------------------------------------------------------------------
   12. Problem Section
   -------------------------------------------------------------------------- */
.problem {
  padding: 96px 0;
  background: var(--bg);
}

.problem .section-label {
  text-align: center;
}

.problem .section-heading {
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 48px;
}

.problem-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
}

.problem-card--old {
  border-left: 3px solid var(--accent-rose);
}

.problem-card--new {
  border-left: 3px solid var(--accent-green);
}

.problem-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.problem-card-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.problem-card--old .problem-card-icon {
  background: rgba(244, 63, 94, 0.1);
  color: var(--accent-rose);
}

.problem-card--new .problem-card-icon {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-green);
}

.problem-card-icon svg {
  width: 18px;
  height: 18px;
}

.problem-card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.problem-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.problem-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.problem-list li svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
}

.problem-card--old .problem-list li svg {
  color: var(--accent-rose);
}

.problem-card--new .problem-list li svg {
  color: var(--accent-green);
}

/* --------------------------------------------------------------------------
   13. How It Works
   -------------------------------------------------------------------------- */
.how-it-works {
  padding: 96px 0;
  background: var(--bg-alt);
}

.how-it-works .section-label {
  text-align: center;
}

.how-it-works .section-heading {
  text-align: center;
}

.how-it-works .section-subheading {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  position: relative;
}

.step-card {
  position: relative;
  padding: 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.step-number {
  font-size: 64px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 12px;
}

.step-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.step-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.step-code {
  background: #0f0f13;
  border-radius: var(--radius);
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-on-dark-muted);
  overflow-x: auto;
}

.step-code .code-keyword { color: #c084fc; }
.step-code .code-string { color: #86efac; }
.step-code .code-comment { color: #6b7280; font-style: italic; }
.step-code .code-fn { color: #93c5fd; }
.step-code .code-var { color: var(--text-on-dark); }

/* Step connectors — visible on desktop */
.step-connector {
  display: none;
}

/* --------------------------------------------------------------------------
   14. Developer Showcase (Tabbed Code)
   -------------------------------------------------------------------------- */
.dev-showcase {
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
  padding: 96px 0;
}

.dev-showcase::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-glow);
  pointer-events: none;
}

.dev-showcase .container {
  position: relative;
  z-index: 1;
}

.dev-showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}

.dev-showcase-text {
  max-width: 480px;
}

.dev-showcase-text .section-subheading {
  color: var(--text-on-dark-muted);
  margin-bottom: 0;
}

/* Code tabs */
.code-tabs {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.code-tab-list {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0;
  list-style: none;
}

.code-tab-btn {
  flex: 1;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-on-dark-muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}

.code-tab-btn:hover {
  color: var(--text-on-dark);
  background: rgba(255, 255, 255, 0.03);
}

.code-tab-btn[aria-selected="true"] {
  color: var(--text-on-dark);
  border-bottom-color: var(--primary);
  background: rgba(255, 255, 255, 0.03);
}

.code-tab-panels {
  position: relative;
}

.code-tab-panel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 20px 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-on-dark-muted);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s;
  overflow-x: auto;
}

.code-tab-panel.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
}

.code-tab-panel pre {
  margin: 0;
  white-space: pre;
}

.code-tab-panel .code-keyword { color: #c084fc; }
.code-tab-panel .code-string { color: #86efac; }
.code-tab-panel .code-comment { color: #6b7280; font-style: italic; }
.code-tab-panel .code-fn { color: #93c5fd; }
.code-tab-panel .code-var { color: var(--text-on-dark); }
.code-tab-panel .code-num { color: #fbbf24; }

/* --------------------------------------------------------------------------
   15. Feature Deep Dives
   -------------------------------------------------------------------------- */
.features-deep {
  padding: 96px 0;
  background: var(--bg);
}

.features-deep .section-label {
  text-align: center;
}

.features-deep .section-heading {
  text-align: center;
  margin-bottom: 64px;
}

.feature-spotlight {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 80px;
}

.feature-spotlight:last-child {
  margin-bottom: 0;
}

.spotlight-content {
  max-width: 480px;
}

.spotlight-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--primary-subtle);
  color: var(--primary);
  margin-bottom: 16px;
}

.spotlight-icon svg {
  width: 22px;
  height: 22px;
}

.spotlight-content h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.spotlight-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.detail-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  background: var(--primary-subtle);
  color: var(--primary);
  white-space: nowrap;
}

/* Feature visuals */
.spotlight-visual {
  background: var(--bg-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  min-height: 200px;
}

[data-theme="dark"] .spotlight-visual {
  background: var(--bg-elevated);
}

/* Transaction flow diagram */
.tx-flow {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

.tx-node {
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 500;
  background: var(--primary-subtle);
  color: var(--primary);
  white-space: nowrap;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.tx-node.is-active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 16px var(--primary-glow);
}

.tx-arrow {
  color: var(--text-tertiary);
  font-size: 14px;
  flex-shrink: 0;
}

/* Chat mock */
.chat-mock {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-bubble {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
}

.chat-bubble--buyer {
  background: var(--primary-subtle);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-bubble--seller {
  background: var(--bg);
  border: 1px solid var(--border-subtle);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

[data-theme="dark"] .chat-bubble--seller {
  background: rgba(255, 255, 255, 0.05);
}

.chat-meta {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 4px;
}

/* Search mock */
.search-mock-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--text-primary);
}

[data-theme="dark"] .search-mock-bar {
  background: rgba(255, 255, 255, 0.05);
}

.search-mock-bar svg {
  width: 16px;
  height: 16px;
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.search-results-mini {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-result-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
}

[data-theme="dark"] .search-result-card {
  background: rgba(255, 255, 255, 0.03);
}

.search-result-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.search-result-meta {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.search-result-price {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

/* Environment stack */
.env-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  perspective: 600px;
}

.env-layer {
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  border: 1px solid var(--border-subtle);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.env-layer:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.env-layer--live {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-green);
  border-color: rgba(16, 185, 129, 0.2);
}

.env-layer--dev {
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent-amber);
  border-color: rgba(245, 158, 11, 0.2);
}

.env-layer--test {
  background: var(--primary-subtle);
  color: var(--primary);
  border-color: rgba(76, 79, 243, 0.2);
}

.env-services {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.env-service {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   16. Architecture Diagram
   -------------------------------------------------------------------------- */
.architecture {
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
  padding: 96px 0;
}

.architecture::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-glow);
  pointer-events: none;
}

.architecture .container {
  position: relative;
  z-index: 1;
}

.architecture .section-heading {
  text-align: center;
}

.architecture .section-subheading {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.arch-diagram {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.arch-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.arch-row-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-on-dark-muted);
}

.arch-row-boxes {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.arch-box {
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-on-dark);
  text-align: center;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  white-space: nowrap;
}

.arch-box:hover {
  box-shadow: 0 0 24px var(--primary-glow);
  border-color: rgba(99, 102, 241, 0.3);
}

.arch-box--wide {
  flex: 1;
  min-width: 200px;
  max-width: 100%;
}

.arch-connector {
  text-align: center;
  color: rgba(255, 255, 255, 0.2);
  font-size: 18px;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   17. Compatibility Section
   -------------------------------------------------------------------------- */
.compatibility {
  padding: 96px 0;
  background: var(--bg-alt);
}

.compatibility .section-heading {
  text-align: center;
}

.compatibility .section-subheading {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Code comparison */
.code-compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 48px;
}

.code-compare-panel {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.code-compare-header {
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-on-dark-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #0f0f13;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.code-compare-body {
  padding: 16px 20px;
  background: #0f0f13;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-on-dark-muted);
  overflow-x: auto;
}

.code-compare-body pre {
  margin: 0;
  white-space: pre;
}

.code-compare-body .code-keyword { color: #c084fc; }
.code-compare-body .code-string { color: #86efac; }
.code-compare-body .code-comment { color: #6b7280; font-style: italic; }
.code-compare-body .code-fn { color: #93c5fd; }
.code-compare-body .code-var { color: var(--text-on-dark); }

.code-highlight-line {
  background: rgba(16, 185, 129, 0.1);
  display: inline;
  padding: 2px 0;
  border-left: 2px solid var(--accent-green);
  margin-left: -20px;
  padding-left: 18px;
}

.code-compare-divider {
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* SDK checklist */
.sdk-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.sdk-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: box-shadow 0.2s ease;
}

.sdk-item:hover {
  box-shadow: var(--shadow-md);
}

.sdk-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sdk-check svg {
  width: 14px;
  height: 14px;
}

.sdk-name {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.sdk-status {
  margin-left: auto;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-green);
  background: rgba(16, 185, 129, 0.1);
  padding: 4px 10px;
  border-radius: 100px;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   18. Comparison Table
   -------------------------------------------------------------------------- */
.comparison {
  padding: 96px 0;
  background: var(--bg);
}

.comparison .section-label {
  text-align: center;
}

.comparison .section-heading {
  text-align: center;
}

.comparison .section-subheading {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.comparison-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

/* Right-edge fade indicator */
.comparison-wrapper::after {
  content: '';
  position: sticky;
  right: 0;
  top: 0;
  bottom: 0;
  width: 32px;
  background: linear-gradient(to right, transparent, var(--bg));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  display: block;
  float: right;
  height: 100%;
  margin-top: -100%;
}

.comparison-wrapper.has-scroll::after {
  opacity: 1;
}

.comparison-wrapper.scrolled-end::after {
  opacity: 0;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table thead th {
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  background: var(--bg-alt);
  position: sticky;
  top: 0;
}

.comparison-table thead th:last-child {
  color: var(--primary);
}

.comparison-table td:first-child {
  font-weight: 500;
  color: var(--text-primary);
  position: sticky;
  left: 0;
  background: var(--bg-elevated);
  z-index: 1;
  min-width: 180px;
}

.comparison-table td:last-child {
  color: var(--text-primary);
  font-weight: 500;
}

.comparison-table tbody tr:hover {
  background: var(--bg-alt);
}

.comparison-table tbody tr:hover td:first-child {
  background: var(--bg-alt);
}

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

.table-yes {
  color: var(--accent-green);
  font-weight: 500;
}

.table-no {
  color: var(--text-tertiary);
}

.table-highlight {
  color: var(--accent-green);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   19. Stats Section
   -------------------------------------------------------------------------- */
.stats {
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
  padding: 80px 0;
}

.stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-glow);
  pointer-events: none;
}

.stats .container {
  position: relative;
  z-index: 1;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  text-align: center;
}

.stat-item {
  position: relative;
}

.stat-value {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: var(--text-on-dark);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-on-dark-muted);
  line-height: 1.5;
}

.stat-divider {
  display: none;
}

/* --------------------------------------------------------------------------
   20. Testimonials
   -------------------------------------------------------------------------- */
.testimonials {
  padding: 96px 0;
  background: var(--bg-alt);
}

.testimonials .section-label {
  text-align: center;
}

.testimonials .section-heading {
  text-align: center;
  margin-bottom: 48px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.testimonial-card {
  padding: 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.testimonial-quote {
  font-size: 16px;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.testimonial-quote::before {
  content: '\201C';
  font-size: 32px;
  line-height: 0;
  vertical-align: -12px;
  color: var(--primary);
  margin-right: 4px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.testimonial-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.testimonial-role {
  font-size: 13px;
  color: var(--text-tertiary);
}

.testimonial-disclaimer {
  text-align: center;
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 32px;
}

/* --------------------------------------------------------------------------
   21. FAQ Accordion
   -------------------------------------------------------------------------- */
.faq {
  padding: 96px 0;
  background: var(--bg);
}

.faq .section-label {
  text-align: center;
}

.faq .section-heading {
  text-align: center;
  margin-bottom: 48px;
}

.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

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

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  gap: 16px;
  transition: color 0.2s ease;
}

.faq-trigger:hover {
  color: var(--primary);
}

.faq-trigger svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-tertiary);
  transition: transform 0.3s ease;
}

.faq-item.is-open .faq-trigger svg {
  transform: rotate(180deg);
}

.faq-item.is-open .faq-trigger {
  color: var(--primary);
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer {
  padding: 0 0 20px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   22. Migration CTA
   -------------------------------------------------------------------------- */
.migration {
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
  padding: 80px 0;
  text-align: center;
}

.migration::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-glow);
  pointer-events: none;
}

.migration .container {
  position: relative;
  z-index: 1;
}

.migration-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 32px 0;
  flex-wrap: wrap;
}

.migration-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-on-dark);
}

.migration-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.migration-arrow {
  color: var(--text-on-dark-muted);
  font-size: 18px;
}

.migration-sub {
  font-size: 15px;
  color: var(--text-on-dark-muted);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   23. Final CTA
   -------------------------------------------------------------------------- */
.cta-final {
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
  padding: 120px 0;
  text-align: center;
}

.cta-final::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(76, 79, 243, 0.12), transparent 70%);
  transform: translate(-50%, -50%);
  animation: glow-drift 12s ease-in-out infinite alternate;
  pointer-events: none;
}

.cta-final .container {
  position: relative;
  z-index: 1;
}

.cta-final .section-heading {
  font-size: clamp(32px, 5vw, 48px);
}

.cta-final .section-subheading {
  margin-bottom: 32px;
}

.cta-trust {
  font-size: 13px;
  color: var(--text-on-dark-muted);
  margin-top: 16px;
}

/* --------------------------------------------------------------------------
   24. Footer
   -------------------------------------------------------------------------- */
.footer {
  padding: 48px 0 32px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

[data-theme="dark"] .footer {
  background: #0a0a0c;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  text-align: center;
  margin-bottom: 32px;
}

.footer-brand .logo {
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}

.footer-tagline a {
  color: var(--text-tertiary);
  transition: color 0.2s ease;
}

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

.footer-one-liner {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 8px;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

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

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

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

.footer-copyright {
  font-size: 12px;
  color: var(--text-tertiary);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-disclaimer {
  text-align: center;
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   25. Scroll Animations
   -------------------------------------------------------------------------- */
/* Default: content is visible (works without JS) */
.animate-on-scroll {
  opacity: 1;
  transform: none;
}

/* When JS is ready, hide elements for animation */
.js-ready .animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

/* Slide from left/right variants */
.js-ready .animate-from-left {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.js-ready .animate-from-right {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

/* When element scrolls into view */
.js-ready .animate-on-scroll.is-visible,
.js-ready .animate-from-left.is-visible,
.js-ready .animate-from-right.is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger delays */
.js-ready .problem-grid .animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.js-ready .problem-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.12s; }

.js-ready .steps-grid .animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.js-ready .steps-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.12s; }
.js-ready .steps-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.24s; }

.js-ready .stats-grid .animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.js-ready .stats-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.08s; }
.js-ready .stats-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.16s; }
.js-ready .stats-grid .animate-on-scroll:nth-child(4) { transition-delay: 0.24s; }

.js-ready .testimonial-grid .animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.js-ready .testimonial-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.08s; }
.js-ready .testimonial-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.16s; }

.js-ready .sdk-grid .animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.js-ready .sdk-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.08s; }
.js-ready .sdk-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.16s; }
.js-ready .sdk-grid .animate-on-scroll:nth-child(4) { transition-delay: 0.24s; }

.js-ready .arch-row-boxes .animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.js-ready .arch-row-boxes .animate-on-scroll:nth-child(2) { transition-delay: 0.08s; }
.js-ready .arch-row-boxes .animate-on-scroll:nth-child(3) { transition-delay: 0.16s; }
.js-ready .arch-row-boxes .animate-on-scroll:nth-child(4) { transition-delay: 0.24s; }

.js-ready .migration-steps .animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.js-ready .migration-steps .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.js-ready .migration-steps .animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.js-ready .migration-steps .animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.js-ready .migration-steps .animate-on-scroll:nth-child(5) { transition-delay: 0.4s; }

/* --------------------------------------------------------------------------
   26. Signup Page Styles
   -------------------------------------------------------------------------- */
.signup-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero);
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}

.signup-page::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(76, 79, 243, 0.12), transparent 70%);
  transform: translate(-50%, -50%);
  animation: glow-drift 8s ease-in-out infinite alternate;
  pointer-events: none;
}

.signup-card {
  position: relative;
  z-index: 1;
  background: var(--bg-elevated);
  border-radius: var(--radius-xl);
  padding: 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
}

.signup-card h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.signup-card .subtitle {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 14px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.form-group input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input::placeholder {
  color: var(--text-tertiary);
}

.form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.signup-card .btn {
  width: 100%;
  height: 48px;
  margin-top: 8px;
}

.signup-card .back-link {
  display: block;
  text-align: center;
  margin-top: 20px;
  color: var(--text-secondary);
  font-size: 13px;
  transition: color 0.2s ease;
}

.signup-card .back-link:hover {
  color: var(--primary);
}

.success-message,
.error-message {
  padding: 14px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 14px;
  display: none;
}

.success-message {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

[data-theme="dark"] .success-message {
  background: rgba(16, 185, 129, 0.08);
}

.error-message {
  background: rgba(244, 63, 94, 0.1);
  color: var(--accent-rose);
  border: 1px solid rgba(244, 63, 94, 0.2);
}

[data-theme="dark"] .error-message {
  background: rgba(244, 63, 94, 0.08);
}

.credentials {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.8;
  word-break: break-all;
}

.credentials dt {
  font-weight: 600;
  color: var(--text-tertiary);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.credentials dd {
  margin-bottom: 8px;
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   27. 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;
  }

  .hero .badge,
  .hero-title,
  .hero-sub,
  .hero-actions,
  .hero-marketplace-preview {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .btn-glow {
    animation: none !important;
  }
}

/* --------------------------------------------------------------------------
   28. Responsive — xs (max 639px)
   -------------------------------------------------------------------------- */
@media (max-width: 639px) {
  .hero-marketplace-preview {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .marketplace-card {
    width: 100%;
    max-width: 280px;
  }

  .code-tab-list {
    overflow-x: auto;
  }

  .code-tab-btn {
    padding: 10px 12px;
    font-size: 12px;
  }

  .code-tab-panel.is-active {
    padding: 14px 16px;
    font-size: 12px;
  }

  .migration-arrow {
    display: none;
  }

  .migration-steps {
    flex-direction: column;
    align-items: center;
  }
}

/* --------------------------------------------------------------------------
   29. Responsive — sm (640px)
   -------------------------------------------------------------------------- */
@media (min-width: 640px) {
  .problem-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .step-connector {
    display: block;
    position: absolute;
    right: -14px;
    top: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.3;
  }

  .step-card:last-child .step-connector {
    display: none;
  }

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

  .stat-divider {
    display: block;
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
  }

  .stat-item:last-child .stat-divider {
    display: none;
  }

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

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

  .code-compare {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  .code-compare-divider {
    display: flex;
  }
}

/* --------------------------------------------------------------------------
   30. Responsive — md (768px)
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .hero {
    padding: 140px 0 100px;
  }

  .hero-actions {
    flex-wrap: nowrap;
  }

  .dev-showcase-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .feature-spotlight {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }

  .feature-spotlight--reverse {
    direction: rtl;
  }

  .feature-spotlight--reverse > * {
    direction: ltr;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    text-align: left;
  }

  .footer-links {
    align-items: flex-start;
  }
}

/* --------------------------------------------------------------------------
   31. Responsive — lg (1024px)
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) {
  .hero {
    padding: 160px 0 120px;
  }

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

  .arch-row {
    flex-wrap: nowrap;
  }
}
