/* ============================================================
   FORGE CLOUD — Design System
   The forge molds with great power.
   ============================================================ */

/* --- Custom Properties --- */
:root {
  /* Core palette */
  --forge-black: #0a0a14;
  --forge-dark: #1a1a2e;
  --forge-blue: #16213e;
  --forge-accent: #0f3460;
  --forge-orange: #e8590c;
  --forge-orange-light: #ff6b1a;
  --forge-orange-glow: rgba(232, 89, 12, 0.4);
  --forge-green: #2d6a4f;
  --forge-gold: #d4a017;
  --forge-light: #f8f9fa;
  --forge-ember: #ff4500;

  /* Text */
  --text-primary: #e8e8ee;
  --text-secondary: #a0aec0;
  --text-muted: #8896a9;
  --text-dark: #212529;

  /* Surfaces */
  --surface-1: #12121e;
  --surface-2: #1a1a2e;
  --surface-3: #222240;
  --surface-card: rgba(26, 26, 46, 0.8);
  --surface-glass: rgba(255, 255, 255, 0.03);

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(232, 89, 12, 0.3);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  --space-4xl: 128px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px var(--forge-orange-glow);
  --shadow-glow-sm: 0 0 15px rgba(232, 89, 12, 0.2);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
}

/* --- Reset --- */
*, *::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: var(--font-sans);
  background: var(--forge-black);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
a { color: var(--forge-orange); text-decoration: none; transition: color var(--duration-fast); }
a:hover { color: var(--forge-orange-light); }
a:focus-visible {
  outline: 2px solid var(--forge-orange);
  outline-offset: 2px;
  border-radius: 2px;
}

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

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.25rem; }

p { color: var(--text-secondary); margin-bottom: 1rem; }
.text-orange { color: var(--forge-orange); }
.text-green { color: var(--forge-green); }
.text-gold { color: var(--forge-gold); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

.lead {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.mono { font-family: var(--font-mono); }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--forge-orange);
  margin-bottom: var(--space-md);
  display: block;
}

.section-title {
  margin-bottom: var(--space-lg);
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.8;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

section {
  padding: var(--space-3xl) 0;
  position: relative;
}

section + section {
  border-top: 1px solid var(--border-subtle);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-md) 0;
  transition: all var(--duration-normal) var(--ease-out);
  background: transparent;
}

.nav.scrolled {
  background: rgba(10, 10, 20, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-sm) 0;
}

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

.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo span { color: var(--forge-orange); }

.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  transition: transform var(--duration-normal) var(--ease-out);
}

.nav-logo:hover .logo-icon {
  transform: scale(1.08);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: var(--space-lg);
}

.footer-logo .logo-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.footer-logo .logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.footer-logo .logo-text span {
  color: var(--forge-orange);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--duration-fast);
  position: relative;
}

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

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

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-sm);
  background: none;
  border: none;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--forge-orange);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--duration-fast);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px 28px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--forge-orange);
  color: white;
  box-shadow: var(--shadow-glow-sm);
}

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

.btn-primary:hover {
  background: var(--forge-orange-light);
  color: white;
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.btn-primary:focus-visible {
  box-shadow: var(--shadow-glow), 0 0 0 3px rgba(232, 89, 12, 0.4);
}

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

.btn-secondary:hover {
  background: rgba(232, 89, 12, 0.1);
  border-color: var(--forge-orange);
  color: var(--forge-orange);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.85rem;
}

.btn-group {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: var(--space-4xl) 0 var(--space-3xl);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(232, 89, 12, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(15, 52, 96, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(22, 33, 62, 0.4) 0%, transparent 50%),
    var(--forge-black);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-icon {
  width: 80px;
  height: 80px;
  margin-bottom: var(--space-lg);
  filter: drop-shadow(0 0 20px rgba(232, 89, 12, 0.3));
  animation: hero-icon-pulse 4s ease-in-out infinite;
}

@keyframes hero-icon-pulse {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(232, 89, 12, 0.3)); }
  50% { filter: drop-shadow(0 0 35px rgba(232, 89, 12, 0.5)); }
}

.hero h1 {
  margin-bottom: var(--space-lg);
}

.hero h1 .highlight {
  color: var(--forge-orange);
  position: relative;
}

.hero .lead {
  margin-bottom: var(--space-xl);
  max-width: 600px;
}

.hero-stats {
  display: flex;
  gap: var(--space-2xl);
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-subtle);
}

.hero-stat .number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--forge-orange);
  line-height: 1;
}

.hero-stat .label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

/* Ember particles */
.embers {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.ember {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--forge-orange);
  border-radius: 50%;
  opacity: 0;
  animation: ember-rise linear infinite;
  box-shadow: 0 0 6px var(--forge-orange), 0 0 12px rgba(232, 89, 12, 0.3);
}

@keyframes ember-rise {
  0% {
    opacity: 0;
    transform: translateY(0) scale(1);
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.2;
  }
  100% {
    opacity: 0;
    transform: translateY(-100vh) scale(0.3);
  }
}

.ember:nth-child(1) { left: 10%; animation-duration: 8s; animation-delay: 0s; bottom: -5%; }
.ember:nth-child(2) { left: 25%; animation-duration: 10s; animation-delay: 1s; bottom: -8%; }
.ember:nth-child(3) { left: 40%; animation-duration: 7s; animation-delay: 2s; bottom: -3%; }
.ember:nth-child(4) { left: 55%; animation-duration: 9s; animation-delay: 0.5s; bottom: -6%; }
.ember:nth-child(5) { left: 70%; animation-duration: 11s; animation-delay: 3s; bottom: -4%; }
.ember:nth-child(6) { left: 85%; animation-duration: 8.5s; animation-delay: 1.5s; bottom: -7%; }
.ember:nth-child(7) { left: 15%; animation-duration: 12s; animation-delay: 4s; bottom: -2%; }
.ember:nth-child(8) { left: 60%; animation-duration: 9.5s; animation-delay: 2.5s; bottom: -9%; }
.ember:nth-child(9) { left: 35%; animation-duration: 7.5s; animation-delay: 0.8s; bottom: -5%; }
.ember:nth-child(10) { left: 80%; animation-duration: 10.5s; animation-delay: 3.5s; bottom: -3%; }
.ember:nth-child(11) { left: 5%; animation-duration: 13s; animation-delay: 5s; bottom: -6%; }
.ember:nth-child(12) { left: 48%; animation-duration: 6.5s; animation-delay: 1.2s; bottom: -4%; }
.ember:nth-child(13) { left: 92%; animation-duration: 11.5s; animation-delay: 0.3s; bottom: -8%; }
.ember:nth-child(14) { left: 20%; animation-duration: 8s; animation-delay: 2.8s; bottom: -2%; }
.ember:nth-child(15) { left: 73%; animation-duration: 9s; animation-delay: 4.2s; bottom: -7%; }

/* --- Cards --- */
.card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--forge-orange), transparent);
  opacity: 0;
  transition: opacity var(--duration-normal);
}

.card:hover,
.card:focus-within {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card:hover::before,
.card:focus-within::before { opacity: 1; }

.card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(232, 89, 12, 0.15), rgba(232, 89, 12, 0.05));
  border: 1px solid rgba(232, 89, 12, 0.2);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  font-size: 1.5rem;
}

.card h3 {
  margin-bottom: var(--space-sm);
}

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

/* Service card variants */
.service-card {
  text-align: center;
  padding: var(--space-2xl) var(--space-xl);
}

.service-card .price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--forge-orange);
  line-height: 1;
  margin: var(--space-lg) 0 var(--space-xs);
}

.service-card .price .price-range {
  font-size: 0.5em;
  font-weight: 400;
}

.service-card .price-period {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.service-card .features {
  list-style: none;
  text-align: left;
  margin-bottom: var(--space-xl);
}

.service-card .features li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.service-card .features li::before {
  content: '\2713';
  color: var(--forge-orange);
  font-weight: 700;
  flex-shrink: 0;
}

.service-card.featured {
  border-color: var(--forge-orange);
  background: linear-gradient(180deg, rgba(232, 89, 12, 0.06) 0%, var(--surface-card) 30%);
}

.service-card.featured::before {
  opacity: 1;
}

.card-badge {
  position: absolute;
  top: 0;
  right: var(--space-xl);
  background: var(--forge-orange);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Feature Grid --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.feature-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  transition: background var(--duration-fast);
}

.feature-item:hover {
  background: var(--surface-glass);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(232, 89, 12, 0.1);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  font-size: 1.2rem;
}

.feature-item h4 {
  margin-bottom: var(--space-xs);
  font-weight: 700;
  font-size: 1rem;
}

.feature-item p {
  font-size: 0.9rem;
  margin: 0;
  color: var(--text-muted);
}

/* --- Pillars --- */
.pillar {
  display: flex;
  gap: var(--space-xl);
  align-items: flex-start;
  padding: var(--space-xl) 0;
}

.pillar + .pillar {
  border-top: 1px solid var(--border-subtle);
}

.pillar-number {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 800;
  color: rgba(232, 89, 12, 0.2);
  line-height: 1;
  flex-shrink: 0;
  width: 80px;
}

.pillar h3 { margin-bottom: var(--space-sm); }

.pillar p {
  font-size: 0.95rem;
  max-width: 600px;
}

/* --- Stats Section --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-lg);
}

.stat-block {
  text-align: center;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  background: var(--surface-glass);
  border: 1px solid var(--border-subtle);
}

.stat-block .value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--forge-orange);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.stat-block .desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Code / Terminal Block --- */
.terminal {
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: var(--space-xl) 0;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
}

.terminal-dot:nth-child(1) { background: #ff5f57; }
.terminal-dot:nth-child(2) { background: #ffbd2e; }
.terminal-dot:nth-child(3) { background: #28c840; }

.terminal-body {
  padding: var(--space-lg);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--text-secondary);
  overflow-x: auto;
}

.terminal-body .prompt { color: var(--forge-orange); }
.terminal-body .comment { color: var(--text-muted); }
.terminal-body .success { color: var(--forge-green); }
.terminal-body .highlight { color: var(--forge-orange); font-weight: 600; }

/* --- Testimonial / Quote --- */
.quote-block {
  padding: var(--space-2xl);
  border-left: 3px solid var(--forge-orange);
  background: var(--surface-glass);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  margin: var(--space-xl) 0;
}

.quote-block blockquote {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.quote-block .attribution {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-style: normal;
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: var(--space-4xl) 0;
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(232, 89, 12, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 {
  margin-bottom: var(--space-md);
}

.cta-section .lead {
  margin: 0 auto var(--space-xl);
  max-width: 500px;
}

/* --- Forms --- */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color var(--duration-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--forge-orange);
  box-shadow: 0 0 0 3px rgba(232, 89, 12, 0.3);
}

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

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a0aec0' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5.5l6.5 6.5 6.5-6.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand p {
  max-width: 300px;
  font-size: 0.9rem;
}

.footer h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.footer-links {
  list-style: none;
}

.footer-links li { margin-bottom: var(--space-sm); }

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--duration-fast);
}

.footer-links a:hover,
.footer-links a:focus-visible { color: var(--forge-orange); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Page Header (inner pages) --- */
.page-header {
  padding: calc(var(--space-4xl) + 60px) 0 var(--space-3xl);
  background:
    radial-gradient(ellipse 70% 50% at 50% 30%, rgba(232, 89, 12, 0.05) 0%, transparent 60%),
    var(--forge-black);
  text-align: center;
}

.page-header .section-label {
  margin-bottom: var(--space-md);
}

.page-header h1 {
  margin-bottom: var(--space-md);
}

.page-header .lead {
  margin: 0 auto;
  max-width: 600px;
}

/* --- Process Steps --- */
.process-steps {
  counter-reset: step;
}

.process-step {
  display: flex;
  gap: var(--space-xl);
  padding: var(--space-xl) 0;
  position: relative;
}

.process-step + .process-step {
  border-top: 1px solid var(--border-subtle);
}

.process-step::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  color: rgba(232, 89, 12, 0.15);
  line-height: 1;
  flex-shrink: 0;
  width: 60px;
}

.process-step h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.2rem;
}

.process-step p { margin: 0; }

/* --- Comparison Table --- */
.comparison-table {
  overflow-x: auto;
  margin: var(--space-xl) 0;
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table th {
  background: var(--surface-2);
  color: var(--text-primary);
  padding: 14px 20px;
  text-align: left;
  font-weight: 700;
  font-size: 0.9rem;
  border-bottom: 2px solid var(--forge-orange);
}

.comparison-table th:not(:first-child) {
  text-align: center;
}

.comparison-table td {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.comparison-table td:not(:first-child) {
  text-align: center;
}

.comparison-table tr:hover td {
  background: rgba(232, 89, 12, 0.03);
}

.comparison-table .check { color: var(--forge-orange); font-weight: 700; }
.comparison-table .x { color: var(--text-muted); }

/* --- Divider --- */
.divider {
  width: 60px;
  height: 3px;
  background: var(--forge-orange);
  margin: var(--space-xl) 0;
  border-radius: 2px;
}

.divider-center {
  margin-left: auto;
  margin-right: auto;
}

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

.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; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Utility: full-width centered button --- */
.btn-block {
  width: 100%;
  justify-content: center;
}

/* --- Utility: pricing card tier label --- */
.tier-label {
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
}

/* --- Utility: pricing row heading --- */
.pricing-row-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--space-lg);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
}

@media (max-width: 768px) {
  section { padding: var(--space-2xl) 0; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 20, 0.98);
    backdrop-filter: blur(20px);
    padding: var(--space-lg);
    gap: var(--space-md);
    border-bottom: 1px solid var(--border-subtle);
  }
  .nav-toggle { display: flex; }

  .hero { min-height: auto; padding: calc(var(--space-4xl) + 40px) 0 var(--space-2xl); }
  .hero-stats { flex-direction: column; gap: var(--space-lg); }

  .pillar { flex-direction: column; gap: var(--space-md); }
  .pillar-number { width: auto; font-size: 2rem; }

  .process-step { flex-direction: column; gap: var(--space-md); }
  .process-step::before { font-size: 1.5rem; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: var(--space-md); text-align: center; }

  .btn-group { flex-direction: column; width: 100%; }
  .btn-group .btn { width: 100%; justify-content: center; }

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

@media (max-width: 480px) {
  .container, .container-narrow { padding: 0 var(--space-md); }
  .stats-row { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
}

/* --- Utility --- */
.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-md);
  background: var(--forge-orange);
  color: white;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 10000;
  transition: top var(--duration-fast);
}
.skip-link:focus {
  top: var(--space-md);
  color: white;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ember { animation: none; opacity: 0; }
  .hero-icon { animation: none; }
  .card, .btn, a, .nav, .nav-toggle span,
  .form-group input, .form-group textarea, .form-group select {
    transition: none;
  }
}

/* --- Noscript fallback --- */
noscript .reveal { opacity: 1; transform: none; }
