/* ============================================================
   EditorBox AI — Pricing Page Styles
   Brand: purple (#6366f1) → violet (#8b5cf6) → cyan (#22d3ee)
   Background: #08080c  |  Font: Inter (Google Fonts)
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --color-bg: #08080c;
  --color-surface: #0f0f14;
  --color-surface-2: #161620;
  --color-surface-3: #1e1e2a;
  --color-border: rgba(255, 255, 255, 0.06);
  --color-border-hover: rgba(255, 255, 255, 0.12);
  --color-text: #e4e4e7;
  --color-text-muted: #a1a1aa;
  --color-text-dim: #71717a;
  --color-purple: #6366f1;
  --color-violet: #8b5cf6;
  --color-cyan: #22d3ee;
  --color-green: #34d399;
  --color-red: #f87171;
  --gradient-brand: linear-gradient(135deg, #6366f1, #8b5cf6, #22d3ee);
  --gradient-brand-subtle: linear-gradient(135deg, rgba(99,102,241,.15), rgba(139,92,246,.15), rgba(34,211,238,.15));
  --glass-bg: rgba(15, 15, 20, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.15), 0 0 120px rgba(139, 92, 246, 0.08);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 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', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition-base);
}

.navbar.scrolled {
  background: rgba(8, 8, 12, 0.85);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--glass-border);
  padding: 10px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
}

.nav-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-logo-text {
  color: #fff;
}

.nav-logo-ai {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: 1px;
  transition: width var(--transition-base);
}

.nav-link:hover {
  color: #fff;
}

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

.nav-cta {
  padding: 10px 22px;
  background: var(--gradient-brand);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 10px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.35);
}

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

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

.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* ---------- Pricing Hero ---------- */
.pricing-hero {
  position: relative;
  padding: 160px 24px 80px;
  text-align: center;
  overflow: hidden;
}

.pricing-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(99,102,241,.12) 0%, rgba(139,92,246,.06) 40%, transparent 70%);
  pointer-events: none;
}

.pricing-hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--gradient-brand-subtle);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-cyan);
  margin-bottom: 24px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.pricing-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 16px;
}

.pricing-hero h1 .gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pricing-hero .subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---------- Section Shared ---------- */
.section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--gradient-brand-subtle);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-cyan);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 520px;
  line-height: 1.7;
}

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

.section-header .section-subtitle {
  margin: 0 auto;
}

/* ---------- Pricing Cards ---------- */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 880px;
  margin: 0 auto;
  align-items: start;
}

.pricing-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  opacity: 0;
  transform: translateY(30px);
}

.pricing-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Pro card — highlighted with gradient border glow */
.pricing-card.pro {
  background: var(--color-surface);
  border: none;
  z-index: 1;
}

.pricing-card.pro::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  padding: 2px;
  background: var(--gradient-brand);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.pricing-card.pro::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-xl) + 2px);
  background: var(--gradient-brand);
  opacity: 0.15;
  filter: blur(30px);
  z-index: -1;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.pricing-card.pro:hover::after {
  opacity: 0.25;
}

.pricing-card.pro:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}

.card-popular-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 20px;
  background: var(--gradient-brand);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  white-space: nowrap;
}

.card-header {
  margin-bottom: 28px;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.pricing-card.free .card-icon {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.pricing-card.pro .card-icon {
  background: var(--gradient-brand-subtle);
  border: 1px solid rgba(139, 92, 246, 0.25);
}

.card-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.card-tagline {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.card-price {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--color-border);
}

.card-price .price-main {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.03em;
}

.card-price .price-unit {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text-muted);
  margin-left: 4px;
}

.card-price .price-note {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-dim);
  margin-top: 6px;
}

.pro .price-main {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card-credits-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.15);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-cyan);
  margin-top: 10px;
}

/* Feature list */
.card-features {
  list-style: none;
  margin-bottom: 32px;
}

.card-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--color-text);
}

.card-features li .icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  margin-top: 2px;
}

.card-features li .icon.check {
  background: rgba(52, 211, 153, 0.12);
  color: var(--color-green);
}

.card-features li .icon.x {
  background: rgba(248, 113, 113, 0.1);
  color: var(--color-red);
  font-weight: 700;
}

.card-features li.disabled {
  color: var(--color-text-dim);
}

/* Card buttons */
.card-btn {
  display: block;
  width: 100%;
  padding: 14px 24px;
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.card-btn.btn-outline {
  background: transparent;
  border: 1px solid var(--color-border-hover);
  color: var(--color-text);
}

.card-btn.btn-outline:hover {
  background: var(--color-surface-2);
  border-color: var(--color-purple);
  color: #fff;
  transform: translateY(-1px);
}

.card-btn.btn-gradient {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.25);
}

.card-btn.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.4);
}

/* ---------- How Credits Work ---------- */
.how-credits {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

/* Connecting line between steps */
.steps-grid::before {
  content: '';
  position: absolute;
  top: 48px;
  left: calc(16.66% + 24px);
  right: calc(16.66% + 24px);
  height: 2px;
  background: linear-gradient(90deg, var(--color-purple), var(--color-violet), var(--color-cyan));
  opacity: 0.3;
}

.step-card {
  text-align: center;
  padding: 36px 28px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  position: relative;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  opacity: 0;
  transform: translateY(24px);
}

.step-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
  border-color: var(--color-border-hover);
}

.step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gradient-brand-subtle);
  border: 1px solid rgba(99, 102, 241, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.1rem;
  font-weight: 800;
  background-clip: unset;
}

.step-number span {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.step-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.step-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ---------- Credit Calculator ---------- */
.calculator-section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.calculator-wrapper {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.calculator-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-brand);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.calc-controls {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.calc-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.calc-field input[type="number"],
.calc-field select {
  width: 100%;
  padding: 14px 18px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
}

.calc-field input[type="number"]:focus,
.calc-field select:focus {
  border-color: var(--color-purple);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.calc-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a1a1aa' d='M6 8.825L.35 3.175l.7-.7L6 7.425l4.95-4.95.7.7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* Video Type Buttons & Density Styles */
.calc-video-type {
  display: flex;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 4px;
  gap: 4px;
}

.video-type-btn {
  flex: 1;
  background: transparent;
  border: none;
  border-radius: calc(var(--radius-md) - 2px);
  color: var(--color-text-muted);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 8px;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.video-type-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}

.video-type-btn.active {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.density-slider-wrapper {
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.density-header,
.mixed-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.density-label,
.mixed-slider-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
}

.density-value,
.mixed-slider-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-cyan);
}

.density-hints {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--color-text-dim);
  margin-top: 4px;
}

/* Styled Range Input */
.styled-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--color-surface-3);
  border-radius: 100px;
  outline: none;
  margin: 10px 0;
  border: 1px solid var(--color-border);
}

.styled-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-cyan);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
  transition: transform 0.1s;
}

.styled-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.styled-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-cyan);
  cursor: pointer;
  border: none;
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
  transition: transform 0.1s;
}

.styled-range::-moz-range-thumb:hover {
  transform: scale(1.2);
}

/* Mixed Sliders Wrapper */
.mixed-sliders-wrapper {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 16px;
}

.mixed-slider-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mixed-slider-item {
  display: flex;
  flex-direction: column;
}

.mixed-total-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
  font-weight: 700;
  font-size: 0.9rem;
}

.mix-total-value {
  color: var(--color-cyan);
}

.mix-total-value.invalid {
  color: var(--color-red);
}

.calc-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.toggle-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition-fast);
  user-select: none;
}

.toggle-chip:hover {
  border-color: var(--color-border-hover);
}

.toggle-chip.active {
  background: var(--gradient-brand-subtle);
  border-color: rgba(99, 102, 241, 0.3);
}

.toggle-chip input {
  display: none;
}

.toggle-indicator {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid var(--color-text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  transition: var(--transition-fast);
}

.toggle-chip.active .toggle-indicator {
  background: var(--gradient-brand);
  border-color: transparent;
  color: #fff;
}

.toggle-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.toggle-chip.active .toggle-label {
  color: #fff;
}

/* Calculator result panel */
.calc-result {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  position: sticky;
  top: 120px;
}

.calc-result-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.calc-result-credits {
  font-size: 3.5rem;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 4px;
  transition: var(--transition-fast);
}

.calc-result-cost {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
}

.calc-result-cost span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--color-text-muted);
}

.calc-breakdown {
  text-align: left;
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
}

.calc-breakdown-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 12px;
}

.calc-breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 0.85rem;
}

.calc-breakdown-item .label {
  color: var(--color-text-muted);
}

.calc-breakdown-item .value {
  color: var(--color-text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.calc-breakdown-item.total {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}

.calc-breakdown-item.total .label,
.calc-breakdown-item.total .value {
  color: #fff;
  font-weight: 700;
}

/* ---------- Credit Cost Breakdown Table ---------- */
.cost-table-section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.cost-table-wrapper {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

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

.cost-table thead th {
  padding: 18px 28px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: var(--color-surface-2);
  border-bottom: 1px solid var(--color-border);
}

.cost-table thead th:last-child {
  text-align: right;
}

.cost-table tbody tr {
  transition: background var(--transition-fast);
}

.cost-table tbody tr:hover {
  background: rgba(99, 102, 241, 0.04);
}

.cost-table tbody td {
  padding: 16px 28px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--color-border);
}

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

.cost-table tbody td:last-child {
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.cost-table .service-name {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 500;
}

.service-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  background: var(--gradient-brand-subtle);
  border: 1px solid rgba(99, 102, 241, 0.12);
  flex-shrink: 0;
}

.cost-table .cost-value {
  color: var(--color-cyan);
}

.cost-table .cost-dollar {
  color: var(--color-text-muted);
  font-size: 0.8rem;
  font-weight: 400;
  margin-left: 4px;
}

/* ---------- FAQ Section ---------- */
.faq-section {
  padding: 80px 24px;
  max-width: 800px;
  margin: 0 auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--color-border-hover);
}

.faq-item.active {
  border-color: rgba(99, 102, 241, 0.2);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: #fff;
}

.faq-question .faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-base), background var(--transition-base);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: var(--gradient-brand-subtle);
}

.faq-icon svg {
  width: 14px;
  height: 14px;
  stroke: var(--color-text-muted);
  stroke-width: 2;
  fill: none;
}

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

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 64px 24px 32px;
  margin-top: 40px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

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

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  padding: 6px 0;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: #fff;
}

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

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  transition: var(--transition-fast);
}

.footer-social a:hover {
  background: var(--gradient-brand-subtle);
  border-color: rgba(99, 102, 241, 0.3);
  color: #fff;
}

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

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

/* Stagger children */
.stagger-children .fade-up:nth-child(1) { transition-delay: 0.05s; }
.stagger-children .fade-up:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .fade-up:nth-child(3) { transition-delay: 0.15s; }
.stagger-children .fade-up:nth-child(4) { transition-delay: 0.2s; }
.stagger-children .fade-up:nth-child(5) { transition-delay: 0.25s; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(8, 8, 12, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    z-index: 999;
  }

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

  .nav-links .nav-link {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-text);
  }

  .nav-mobile-toggle {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .pricing-hero {
    padding: 130px 20px 60px;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 440px;
  }

  .pricing-card {
    padding: 32px 28px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .steps-grid::before {
    display: none;
  }

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

  .calculator-wrapper {
    padding: 28px 24px;
  }

  .calc-result {
    position: static;
  }

  .cost-table-wrapper {
    overflow-x: auto;
  }

  .cost-table {
    min-width: 500px;
  }

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

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

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

@media (max-width: 480px) {
  .pricing-hero h1 {
    font-size: 1.8rem;
  }

  .card-price .price-main {
    font-size: 2.4rem;
  }

  .calc-result-credits {
    font-size: 2.8rem;
  }

  .calc-toggles {
    flex-direction: column;
  }

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