/* ===== CSS Variables ===== */
:root {
  --primary: #6C5CE7;
  --primary-hover: #5A4BD1;
  --primary-light: #A29BFE;
  --bg: #0F0F1A;
  --bg-card: #1A1A2E;
  --bg-card-hover: #222240;
  --bg-input: #16162A;
  --text: #E8E8F0;
  --text-muted: #9090A8;
  --text-dim: #6B6B85;
  --border: #2A2A45;
  --border-active: #6C5CE7;
  --success: #00D68F;
  --warning: #FFB800;
  --error: #FF4757;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --transition: 0.25s ease;
  --max-width: 800px;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== App Container ===== */
#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== Progress Header ===== */
#progress-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15, 15, 26, 0.95);
  backdrop-filter: blur(10px);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border);
}

#progress-header.hidden {
  display: none;
}

.progress-bar {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.4s ease;
  width: 0%;
}

.progress-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 80px;
  text-align: right;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.back-btn:hover {
  color: var(--text);
  background: var(--bg-card);
}

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

/* ===== Floating Back Button ===== */
.floating-back {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  z-index: 50;
}

.floating-back:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary-light);
  color: var(--text);
  transform: translateY(-50%) scale(1.1);
}

.floating-back.hidden {
  display: none;
}

@media (max-width: 768px) {
  .floating-back {
    left: 12px;
    width: 40px;
    height: 40px;
  }
}

/* ===== Screens ===== */
.screen {
  display: none;
  min-height: 100vh;
  padding: 80px 20px 40px;
  animation: fadeIn 0.35s ease;
}

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

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

.screen-content {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ===== Welcome Screen ===== */
.welcome-screen {
  text-align: center;
  padding-top: 60px;
}

.logo {
  margin-bottom: 24px;
}

.welcome-screen h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 8px;
}

.subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

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

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(108, 92, 231, 0.4);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-muted);
}

.btn-large {
  padding: 16px 40px;
  font-size: 1.1rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ===== Section Headings ===== */
.screen-content h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.screen-desc {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

/* ===== Cards ===== */
.card-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.card-group-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 24px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  width: 100%;
  font-family: inherit;
  color: var(--text);
  font-size: 1rem;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

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

.card.selected {
  border-color: var(--primary);
  background: rgba(108, 92, 231, 0.1);
  box-shadow: 0 0 0 1px var(--primary);
}

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

.card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 6px;
}

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

/* ===== Tier Selection — Fire Motif ===== */
.tier-select {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.tier-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 20px 28px;
  background: var(--bg-card);
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  color: var(--text);
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

/* Gradient border */
.tier-option::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--radius);
  padding: 2px;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

/* Background glow element */
.tier-option-glow {
  position: absolute;
  bottom: -40%;
  left: -20%;
  right: -20%;
  height: 60%;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

/* --- Dreamer: Smoke / Wisps --- */
.tier-dreamer::before {
  background: linear-gradient(180deg, #4a5568, #718096, #a0aec0);
}

.tier-dreamer .tier-option-glow {
  background: radial-gradient(ellipse, rgba(160, 174, 192, 0.3), transparent 70%);
}

.tier-dreamer:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(160, 174, 192, 0.12);
}

.tier-dreamer:hover .tier-option-glow {
  opacity: 1;
  animation: smoke-drift 3s ease-in-out infinite;
}

.tier-dreamer.selected {
  background: rgba(160, 174, 192, 0.06);
}

/* --- Builder: Flames --- */
.tier-builder::before {
  background: linear-gradient(180deg, #F59E0B, #F97316, #EF4444);
  animation: flame-border 2s ease-in-out infinite alternate;
}

.tier-builder .tier-option-glow {
  background: radial-gradient(ellipse, rgba(249, 115, 22, 0.35), rgba(239, 68, 68, 0.15), transparent 70%);
}

.tier-builder:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(249, 115, 22, 0.2);
}

.tier-builder:hover .tier-option-glow {
  opacity: 1;
  animation: flame-flicker 1.5s ease-in-out infinite;
}

.tier-builder.selected {
  background: rgba(249, 115, 22, 0.08);
}

/* --- Developer: Raging Fire --- */
.tier-developer::before {
  background: linear-gradient(180deg, #FBBF24, #F97316, #EF4444, #DC2626);
  animation: inferno-border 1s ease-in-out infinite alternate;
}

.tier-developer .tier-option-glow {
  background: radial-gradient(ellipse, rgba(239, 68, 68, 0.5), rgba(220, 38, 38, 0.25), transparent 70%);
  height: 80%;
  bottom: -30%;
}

.tier-developer:hover {
  transform: translateY(-6px);
  box-shadow:
    0 8px 32px rgba(239, 68, 68, 0.25),
    0 0 60px rgba(249, 115, 22, 0.1);
}

.tier-developer:hover .tier-option-glow {
  opacity: 1;
  animation: inferno-pulse 0.8s ease-in-out infinite;
}

.tier-developer.selected {
  background: rgba(239, 68, 68, 0.08);
}

/* --- Shared states --- */
.tier-option:hover::before {
  opacity: 1;
}

.tier-option.selected::before {
  opacity: 1;
}

.tier-option.selected .tier-option-glow {
  opacity: 0.7;
}

.tier-option:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.tier-option-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.tier-option h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.tier-option p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

/* --- Fire Animations --- */
@keyframes smoke-drift {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.8; }
  50% { transform: translateY(-8px) scale(1.05); opacity: 1; }
}

@keyframes flame-border {
  0% { opacity: 0.7; }
  100% { opacity: 1; }
}

@keyframes flame-flicker {
  0%, 100% { transform: translateY(0) scaleY(1); opacity: 0.9; }
  25% { transform: translateY(-4px) scaleY(1.05); opacity: 1; }
  50% { transform: translateY(-2px) scaleY(0.98); opacity: 0.85; }
  75% { transform: translateY(-6px) scaleY(1.03); opacity: 1; }
}

@keyframes inferno-border {
  0% { opacity: 0.8; filter: hue-rotate(-5deg); }
  100% { opacity: 1; filter: hue-rotate(5deg); }
}

@keyframes inferno-pulse {
  0%, 100% { transform: translateY(0) scaleY(1) scaleX(1); opacity: 0.9; }
  20% { transform: translateY(-8px) scaleY(1.08) scaleX(0.98); opacity: 1; }
  40% { transform: translateY(-3px) scaleY(0.97) scaleX(1.02); opacity: 0.85; }
  60% { transform: translateY(-10px) scaleY(1.1) scaleX(0.97); opacity: 1; }
  80% { transform: translateY(-5px) scaleY(1.02) scaleX(1.01); opacity: 0.9; }
}

@media (max-width: 768px) {
  .tier-select {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .tier-option {
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 20px 24px;
    gap: 16px;
  }

  .tier-option-icon {
    font-size: 2rem;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .tier-option-glow {
    left: -30%;
    bottom: -60%;
    right: auto;
    width: 60%;
  }
}

/* ===== Question List ===== */
.question-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 32px;
}

.question-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.question-item.hidden {
  display: none;
}

.question-label {
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.question-help {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  font-size: 0.7rem;
  cursor: help;
  flex-shrink: 0;
  position: relative;
}

.help-icon:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  color: var(--text);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 400;
  white-space: normal;
  width: 240px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  z-index: 50;
  line-height: 1.4;
}

/* ===== Inputs ===== */
input[type="text"],
textarea,
select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition);
}

input[type="text"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

textarea {
  min-height: 100px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-dim);
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239090A8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

/* ===== Option Buttons (Single Select within questions) ===== */
.option-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.option-btn {
  padding: 8px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.option-btn:hover {
  border-color: var(--primary-light);
  background: var(--bg-card-hover);
}

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

.option-btn.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* ===== Checkbox Options (Multi Select) ===== */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.checkbox-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.9rem;
}

.checkbox-option:hover {
  border-color: var(--primary-light);
  background: var(--bg-card-hover);
}

.checkbox-option.selected {
  background: rgba(108, 92, 231, 0.15);
  border-color: var(--primary);
  color: var(--text);
}

.checkbox-option input[type="checkbox"] {
  display: none;
}

.checkbox-option .check-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 4px;
  transition: all var(--transition);
  flex-shrink: 0;
}

.checkbox-option.selected .check-indicator {
  background: var(--primary);
  border-color: var(--primary);
}

.checkbox-option.selected .check-indicator::after {
  content: '✓';
  color: white;
  font-size: 0.7rem;
  font-weight: bold;
}

/* ===== Color Picker ===== */
.color-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.color-preset {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}

.color-preset:hover {
  transform: scale(1.1);
}

.color-preset.selected {
  border-color: white;
  box-shadow: 0 0 0 2px var(--primary);
}

.color-preset:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

/* ===== Slider ===== */
input[type="range"] {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--border);
  border-radius: 3px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 2px solid white;
}

.slider-value {
  text-align: center;
  font-weight: 600;
  color: var(--primary-light);
  margin-top: 4px;
}

/* ===== Review Summary ===== */
.review-summary {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.review-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: all var(--transition);
}

.review-section:hover {
  border-color: var(--primary-light);
  background: var(--bg-card-hover);
}

.review-section:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.review-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.review-section-title {
  font-weight: 600;
  font-size: 1rem;
}

.review-edit-hint {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.review-section-content {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.review-section-content .review-item {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}

.review-item-label {
  color: var(--text-dim);
  min-width: 140px;
  flex-shrink: 0;
}

.review-item-value {
  color: var(--text);
}

/* ===== Generate / Download ===== */
#generate-status {
  text-align: center;
  padding: 40px 0;
}

.spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

#download-section {
  text-align: center;
  padding: 40px 0;
}

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 214, 143, 0.15);
  color: var(--success);
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 16px;
}

#download-section h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.next-steps {
  margin-top: 32px;
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.next-steps h4 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.next-steps ol {
  padding-left: 20px;
  color: var(--text-muted);
  line-height: 2;
}

.next-steps ol li {
  padding-left: 4px;
}

.next-steps code {
  background: var(--bg-input);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--primary-light);
}

/* ===== Modal ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  padding: 20px;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow);
}

.modal-content h2 {
  margin-bottom: 12px;
}

.modal-content p {
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* ===== Hidden Utility ===== */
.hidden {
  display: none !important;
}

/* ===== Responsive: Tablet ===== */
@media (max-width: 768px) {
  .card-group-grid {
    grid-template-columns: 1fr;
  }

  .welcome-screen h1 {
    font-size: 2.2rem;
  }

  .screen {
    padding: 70px 16px 32px;
  }

  .screen-content h2 {
    font-size: 1.5rem;
  }

  .review-item-label {
    min-width: 100px;
  }
}

/* ===== Responsive: Mobile ===== */
@media (max-width: 480px) {
  .welcome-screen h1 {
    font-size: 1.8rem;
  }

  .tagline {
    font-size: 1.05rem;
  }

  .btn-large {
    width: 100%;
    padding: 16px 24px;
  }

  .card {
    padding: 18px;
  }

  .option-btn,
  .checkbox-option {
    padding: 10px 14px;
    font-size: 0.85rem;
  }

  .modal-actions {
    flex-direction: column;
  }

  .modal-actions .btn {
    width: 100%;
  }

  #progress-header {
    padding: 10px 12px;
    gap: 10px;
  }

  .progress-text {
    font-size: 0.7rem;
    min-width: 60px;
  }

  .back-btn {
    font-size: 0.8rem;
    padding: 4px 8px;
  }

  .next-steps {
    padding: 16px;
  }
}

/* ===== Landing Page ===== */
#landing {
  scroll-behavior: smooth;
}

.landing-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Nav --- */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15, 15, 26, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.landing-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition);
}

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

.btn-nav {
  padding: 8px 20px;
  font-size: 0.9rem;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
}

.mobile-menu {
  padding: 16px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 1px solid var(--border);
}

.mobile-menu a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1rem;
}

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

/* --- Hero --- */
.landing-hero {
  padding: 160px 0 100px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(108, 92, 231, 0.15);
  border: 1px solid rgba(108, 92, 231, 0.3);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--primary-light);
  margin-bottom: 24px;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-actions {
  margin-bottom: 40px;
}

.hero-tools {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-tools-label {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.tool-tag {
  padding: 4px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Landing Sections --- */
.landing-section {
  padding: 100px 0;
}

.landing-section-alt {
  background: rgba(26, 26, 46, 0.4);
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 56px;
}

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

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  position: relative;
}

.step-number {
  position: absolute;
  top: -14px;
  left: 24px;
  width: 28px;
  height: 28px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: white;
}

.step-icon {
  color: var(--primary-light);
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

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

/* --- Tiers --- */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tier-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
}

.tier-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.tier-card-featured {
  border-color: var(--primary);
  background: rgba(108, 92, 231, 0.08);
}

.tier-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.tier-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.tier-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.tier-example {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-style: italic;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* --- Output Files --- */
.output-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.output-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.output-file {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.85rem;
  color: var(--primary-light);
  background: var(--bg-input);
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

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

/* --- Final CTA --- */
.landing-cta-section {
  text-align: center;
  padding: 80px 0 100px;
}

/* --- Footer --- */
.landing-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* --- Email Capture --- */
.email-capture-content {
  text-align: center;
  margin-top: 32px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.email-capture-content h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.email-capture-content > p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.email-form {
  display: flex;
  gap: 8px;
  max-width: 400px;
  margin: 0 auto 12px;
}

.email-form input[type="email"] {
  flex: 1;
}

.email-dismiss {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 4px;
}

.email-dismiss:hover {
  color: var(--text-muted);
}

.email-success {
  color: var(--success);
  font-size: 0.9rem;
}

/* --- Landing Responsive: Tablet --- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-title {
    font-size: 2.8rem;
    letter-spacing: -1px;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .steps-grid,
  .tier-grid,
  .output-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .landing-hero {
    padding: 120px 0 60px;
  }

  .landing-section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section-subtitle {
    margin-bottom: 36px;
  }

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

/* --- Landing Responsive: Mobile --- */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .landing-hero {
    padding: 100px 0 40px;
  }

  .hero-tools {
    gap: 8px;
  }

  .email-form {
    flex-direction: column;
  }

  .email-form .btn {
    width: 100%;
  }
}

/* ===== Accessibility: Focus Visible ===== */
:focus:not(:focus-visible) {
  outline: none;
}

/* ===== Accessibility: Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== Scrollbar Styling ===== */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-dim);
}
