/* ================================================================
   LLMs.txt Generator — Stylesheet
   Design: Dark-first, gradient accents, glassmorphism
   ================================================================ */

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

:root {
  /* Colors */
  --bg:          #06060f;
  --bg-2:        #0c0c1a;
  --bg-3:        #111126;
  --surface:     rgba(255, 255, 255, 0.04);
  --surface-2:   rgba(255, 255, 255, 0.07);
  --border:      rgba(255, 255, 255, 0.08);
  --border-2:    rgba(255, 255, 255, 0.14);

  --primary:     #7c3aed;
  --primary-2:   #6d28d9;
  --secondary:   #06b6d4;
  --gradient:    linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
  --gradient-2:  linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #06b6d4 100%);

  --text:        #f0eeff;
  --text-2:      #a8a4c8;
  --text-3:      #6b6890;

  --success:     #10b981;
  --error:       #ef4444;
  --warning:     #f59e0b;

  /* Typography */
  --font-sans:   'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:   'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  /* Spacing */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Radii */
  --radius-sm:  6px;
  --radius:     10px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.4);
  --shadow:     0 4px 20px rgba(0,0,0,.5);
  --shadow-lg:  0 12px 48px rgba(0,0,0,.6);
  --shadow-glow: 0 0 40px rgba(124, 58, 237, 0.25);

  /* Transitions */
  --t-fast:   150ms ease;
  --t:        250ms ease;
  --t-slow:   400ms ease;
}

/* ── Base ────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
input, textarea, select { font: inherit; }
summary { cursor: pointer; }
details summary::-webkit-details-marker { display: none; }

/* ── Utilities ───────────────────────────────────────── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  transition: all var(--t);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.35);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 36px rgba(124, 58, 237, 0.5);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: var(--surface);
  color: var(--text-2);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border-2);
}

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

/* ── Navigation ──────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 6, 15, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
  transition: opacity var(--t-fast);
}
.nav-logo:hover { opacity: 0.85; }

.logo-icon {
  font-size: 22px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--font-mono);
  font-weight: 600;
}

.logo-text { color: var(--text); }
.logo-accent { color: var(--secondary); -webkit-text-fill-color: var(--secondary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-left: auto;
}

.nav-link {
  padding: var(--space-2) var(--space-3);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--t-fast);
}
.nav-link:hover { color: var(--text); background: var(--surface); }

.nav-cta {
  padding: 8px 18px;
  background: var(--gradient);
  color: #fff;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--t);
  box-shadow: 0 0 16px rgba(124, 58, 237, 0.3);
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.45);
}

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  margin-left: auto;
}
.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-2);
  border-radius: 2px;
  transition: all var(--t);
}

.nav-mobile-menu {
  display: none;
  flex-direction: column;
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  gap: var(--space-1);
}
.nav-mobile-menu a {
  padding: var(--space-3) var(--space-4);
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--t-fast);
}
.nav-mobile-menu a:hover { color: var(--text); background: var(--surface); }
.nav-mobile-menu.open { display: flex; }

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

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124,58,237,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
}
.hero-glow--1 {
  width: 600px; height: 600px;
  top: -200px; left: -100px;
  background: radial-gradient(circle, #7c3aed, transparent 70%);
  animation: float1 8s ease-in-out infinite;
}
.hero-glow--2 {
  width: 500px; height: 500px;
  bottom: -150px; right: -100px;
  background: radial-gradient(circle, #06b6d4, transparent 70%);
  animation: float2 10s ease-in-out infinite;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.6;
}
.hero-orb--1 {
  width: 6px; height: 6px;
  background: #7c3aed;
  top: 30%; left: 20%;
  animation: twinkle 4s ease-in-out infinite;
}
.hero-orb--2 {
  width: 4px; height: 4px;
  background: #06b6d4;
  top: 60%; right: 25%;
  animation: twinkle 6s ease-in-out infinite 2s;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0); }
  50%       { transform: translate(30px, -20px); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0, 0); }
  50%       { transform: translate(-20px, 30px); }
}
@keyframes twinkle {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1; transform: scale(1.5); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: #b59fff;
  letter-spacing: 0.01em;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
}

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

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  justify-content: center;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-5) var(--space-8);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
  justify-content: center;
}
.stat { text-align: center; }
.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}
.stat-label {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
}
.hero-scroll-indicator span {
  display: block;
  width: 22px; height: 38px;
  border: 2px solid var(--border-2);
  border-radius: var(--radius-full);
  position: relative;
}
.hero-scroll-indicator span::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: var(--text-3);
  border-radius: var(--radius-full);
  animation: scroll-dot 2s ease-in-out infinite;
}
@keyframes scroll-dot {
  0%   { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(14px); }
}

/* ── Sections ────────────────────────────────────────── */
.section {
  padding: var(--space-20) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto;
}

/* ── Generator Section ───────────────────────────────── */
.generator-section {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

.generator-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: start;
}

/* ── Form Cards ──────────────────────────────────────── */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--t);
}
.form-card:hover { border-color: var(--border-2); }

.form-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}

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

.form-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.form-card-body {
  padding: var(--space-5) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

/* ── Form Elements ───────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: var(--space-2); }

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.required { color: #ef4444; }

.form-hint {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-3);
}

.form-hint-block {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.5;
}

.form-input, .form-textarea, .form-select {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: var(--text);
  font-size: 14px;
  width: 100%;
  transition: all var(--t-fast);
  outline: none;
  -webkit-appearance: none;
}
.form-input:hover, .form-textarea:hover, .form-select:hover {
  border-color: var(--border-2);
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--primary);
  background: rgba(124, 58, 237, 0.06);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-3); }

.form-textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6890' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.char-counter {
  font-size: 11px;
  color: var(--text-3);
  text-align: right;
  margin-top: -4px;
}
.char-counter.warn { color: var(--warning); }
.char-counter.over { color: var(--error); }

/* ── Toggle ──────────────────────────────────────────── */
.toggle-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
}
.toggle-input { display: none; }
.toggle-track {
  flex-shrink: 0;
  width: 42px; height: 24px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  position: relative;
  transition: all var(--t);
  margin-top: 2px;
}
.toggle-track::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--text-3);
  transition: all var(--t);
}
.toggle-input:checked + .toggle-track {
  background: var(--primary);
  border-color: var(--primary);
}
.toggle-input:checked + .toggle-track::after {
  transform: translateX(18px);
  background: #fff;
}
.toggle-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

/* ── Sections / Pages Input ──────────────────────────── */
.section-block {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  position: relative;
  transition: border-color var(--t-fast);
}
.section-block:hover { border-color: var(--border-2); }

.section-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.section-block-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}
.btn-remove-section {
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-3);
  transition: all var(--t-fast);
}
.btn-remove-section:hover { background: rgba(239,68,68,0.1); color: var(--error); }

.page-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--border);
}
.page-row:first-of-type { border-top: none; padding-top: 0; }
.page-row-inputs {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: var(--space-2);
}
.btn-remove-page {
  width: 28px; height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-3);
  transition: all var(--t-fast);
}
.btn-remove-page:hover { background: rgba(239,68,68,0.1); color: var(--error); }

.btn-add-page {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 12px;
  color: var(--text-3);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all var(--t-fast);
}
.btn-add-page:hover { color: var(--primary); background: rgba(124,58,237,.08); }

.btn-add-section {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-3);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--t);
  margin-top: var(--space-3);
}
.btn-add-section:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(124,58,237,.05);
}

/* ── Generator Actions ───────────────────────────────── */
.generator-actions {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.btn-generate {
  flex: 1;
  justify-content: center;
}

/* ── Preview Panel ───────────────────────────────────── */
.generator-preview-panel {
  position: sticky;
  top: 88px;
  background: #0d0d1f;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  min-height: 520px;
  max-height: calc(100vh - 120px);
}

.preview-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.preview-dots { display: flex; align-items: center; gap: 6px; }
.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.dot--red    { background: #ff5f57; }
.dot--yellow { background: #febc2e; }
.dot--green  { background: #28c840; }

.preview-filename {
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--text-3);
  margin-left: var(--space-2);
  flex: 1;
}

.preview-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: auto;
}

.preview-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all var(--t-fast);
}
.preview-btn:hover { color: var(--text); background: var(--surface-2); border-color: var(--border-2); }
.preview-btn--primary {
  background: rgba(124,58,237,.15);
  border-color: rgba(124,58,237,.3);
  color: #b59fff;
}
.preview-btn--primary:hover {
  background: rgba(124,58,237,.25);
  color: #d4c6ff;
}

.preview-body {
  flex: 1;
  overflow: auto;
  padding: var(--space-5) var(--space-6);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.08) transparent;
}
.preview-body::-webkit-scrollbar { width: 6px; }
.preview-body::-webkit-scrollbar-track { background: transparent; }
.preview-body::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.1);
  border-radius: 3px;
}

.preview-code {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: #c9c4e8;
  white-space: pre-wrap;
  word-break: break-word;
}

.preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,.02);
  flex-shrink: 0;
}
.preview-size {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-3);
}
.preview-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-3);
}
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
}
.status-dot--idle   { background: var(--text-3); }
.status-dot--active { background: var(--success); animation: pulse 2s infinite; }
.status-dot--copied { background: var(--secondary); }

/* Syntax colors in preview */
.c-h1    { color: #e879f9; font-weight: 600; }
.c-h2    { color: #818cf8; font-weight: 600; }
.c-quote { color: #86efac; font-style: italic; }
.c-link  { color: #7dd3fc; }

/* ── What Is Section ─────────────────────────────────── */
.what-is-section {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-3) 100%);
}

.what-is-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: start;
}

.what-is-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.body-text {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.8;
}
.body-text strong { color: var(--text); font-weight: 600; }
.body-text code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: rgba(124,58,237,.15);
  color: #b59fff;
  padding: 2px 6px;
  border-radius: 4px;
}

.code-card {
  background: #0d0d1f;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.code-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.02);
}
.code-example {
  padding: var(--space-5) var(--space-6);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: #c9c4e8;
  white-space: pre;
  overflow-x: auto;
}

/* ── Features ────────────────────────────────────────── */
.features-section {
  background: var(--bg);
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--t);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0;
  transition: opacity var(--t);
}
.feature-card:hover {
  border-color: rgba(124,58,237,.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(124,58,237,.15);
}
.feature-card:hover::before { opacity: 0.04; }

.feature-icon {
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124,58,237,.12);
  border: 1px solid rgba(124,58,237,.2);
  border-radius: var(--radius);
  margin-bottom: var(--space-4);
  color: #b59fff;
  position: relative;
  z-index: 1;
}

.feature-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-2);
  position: relative;
  z-index: 1;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

/* ── How To Section ──────────────────────────────────── */
.how-to-section {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  max-width: 760px;
  margin: 0 auto;
  counter-reset: none;
}

.step-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--space-6);
  align-items: start;
  padding: var(--space-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--t);
  position: relative;
  overflow: hidden;
}
.step-item:hover {
  border-color: var(--border-2);
  background: var(--surface-2);
}
.step-item::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
  background: var(--gradient);
  opacity: 0;
  transition: opacity var(--t);
}
.step-item:hover::after { opacity: 1; }

.step-number {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  padding-top: 4px;
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-3);
}

.step-desc {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
}
.step-desc code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: rgba(124,58,237,.15);
  color: #b59fff;
  padding: 2px 6px;
  border-radius: 4px;
}

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

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--t);
}
.faq-item[open] { border-color: rgba(124,58,237,.3); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  transition: color var(--t-fast);
  gap: var(--space-4);
}
.faq-question:hover { color: #d4c6ff; }
.faq-question::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  color: var(--text-3);
  flex-shrink: 0;
  transition: transform var(--t);
  line-height: 1;
}
.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
  color: var(--primary);
}

.faq-answer {
  padding: 0 var(--space-6) var(--space-5);
  border-top: 1px solid var(--border);
}
.faq-answer p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.75;
  padding-top: var(--space-4);
}
.faq-answer code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: rgba(124,58,237,.15);
  color: #b59fff;
  padding: 2px 6px;
  border-radius: 4px;
}

/* ── CTA Section ─────────────────────────────────────── */
.cta-section {
  background: var(--bg);
  padding: var(--space-12) 0 var(--space-20);
}

.cta-card {
  position: relative;
  text-align: center;
  padding: var(--space-16) var(--space-8);
  background: linear-gradient(135deg, rgba(124,58,237,.12), rgba(6,182,212,.08));
  border: 1px solid rgba(124,58,237,.25);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 400px; height: 300px;
  background: radial-gradient(ellipse, rgba(124,58,237,.2), transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: var(--space-4);
  position: relative;
  z-index: 1;
}

.cta-subtitle {
  font-size: 1.1rem;
  color: var(--text-2);
  margin-bottom: var(--space-8);
  position: relative;
  z-index: 1;
}

/* ── Footer ──────────────────────────────────────────── */
.site-footer {
  background: var(--bg-3);
  border-top: 1px solid var(--border);
  padding: var(--space-12) 0 0;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-12);
  padding-bottom: var(--space-10);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.6;
  max-width: 300px;
}

.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
}

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

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-col a {
  font-size: 14px;
  color: var(--text-2);
  transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: var(--space-5) var(--space-6);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.footer-bottom p {
  font-size: 13px;
  color: var(--text-3);
}
.footer-privacy { font-size: 12px !important; }

/* ── Toast ───────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1a1a2e;
  border: 1px solid var(--border-2);
  color: var(--text);
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  opacity: 0;
  transition: all var(--t);
  pointer-events: none;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast.success { border-color: rgba(16,185,129,.4); color: #6ee7b7; }
.toast.error   { border-color: rgba(239,68,68,.4);  color: #fca5a5; }

/* ── Hero Fetch Bar ──────────────────────────────────── */
.hero-fetch-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  max-width: 620px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: var(--space-2);
  box-shadow: 0 0 40px rgba(124,58,237,.15);
  transition: border-color var(--t), box-shadow var(--t);
}
.hero-fetch-bar:focus-within {
  border-color: rgba(124,58,237,.5);
  box-shadow: 0 0 56px rgba(124,58,237,.25);
}
.hero-fetch-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0 var(--space-3);
}
.hero-fetch-icon { color: var(--text-3); flex-shrink: 0; }
.hero-fetch-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 15px;
  outline: none;
  padding: 10px 0;
}
.hero-fetch-input::placeholder { color: var(--text-3); }
.hero-fetch-btn {
  flex-shrink: 0;
  border-radius: var(--radius);
  padding: 11px 22px;
}
.hero-fetch-note {
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
  margin-top: calc(-1 * var(--space-3));
}

/* ── Auto-Fetch Panel ────────────────────────────────── */
.autofetch-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: border-color var(--t);
}
.autofetch-panel:focus-within { border-color: rgba(124,58,237,.35); }

.autofetch-input-row {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}
.autofetch-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 var(--space-3);
  transition: all var(--t-fast);
}
.autofetch-input-wrap:focus-within {
  border-color: var(--primary);
  background: rgba(124,58,237,.06);
  box-shadow: 0 0 0 3px rgba(124,58,237,.15);
}
.autofetch-input-wrap svg { color: var(--text-3); flex-shrink: 0; }
.autofetch-url-input {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 10px 0;
  font-size: 14px;
}
.autofetch-btn {
  flex-shrink: 0;
  white-space: nowrap;
}
.autofetch-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* ── Progress ────────────────────────────────────────── */
.autofetch-progress {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.progress-bar-track {
  height: 3px;
  background: rgba(255,255,255,.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: var(--radius-full);
  width: 0%;
  transition: width 600ms ease;
}
.progress-steps {
  display: flex;
  gap: var(--space-5);
  flex-wrap: wrap;
}
.progress-step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
  transition: color var(--t);
}
.progress-step.active { color: var(--text); }
.progress-step.done   { color: var(--success); }
.step-icon {
  width: 14px; height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}
.step-icon--pending  { background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.15); }
.step-icon--active   { background: var(--primary); animation: pulse 1s infinite; }
.step-icon--done     { background: var(--success); }
.step-icon--error    { background: var(--error); }

/* ── Auto-Fetch Error ────────────────────────────────── */
.autofetch-error {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: rgba(239,68,68,.08);
  border: 1px solid rgba(239,68,68,.2);
  border-radius: var(--radius);
  font-size: 13px;
  color: #fca5a5;
}
.autofetch-error svg { flex-shrink: 0; stroke: #ef4444; }

/* ── Section Divider ─────────────────────────────────── */
.section-divider {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: var(--space-6) 0 var(--space-5);
  color: var(--text-3);
  font-size: 13px;
  font-weight: 500;
}
.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .generator-layout    { grid-template-columns: 1fr; }
  .generator-preview-panel { position: static; max-height: 480px; }
  .features-grid       { grid-template-columns: repeat(2, 1fr); }
  .what-is-grid        { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero-fetch-bar        { flex-direction: column; padding: var(--space-3); }
  .hero-fetch-input-wrap { width: 100%; }
  .hero-fetch-btn        { width: 100%; justify-content: center; }
  .autofetch-input-row   { flex-direction: column; }
  .autofetch-btn         { width: 100%; justify-content: center; }
  .progress-steps        { gap: var(--space-3); }
  .nav-links, .nav-cta { display: none; }
  .nav-mobile-toggle   { display: flex; }
  .hero-stats          { gap: var(--space-5); }
  .stat-divider        { display: none; }
  .features-grid       { grid-template-columns: 1fr; }
  .footer-container    { grid-template-columns: 1fr; gap: var(--space-8); }
  .footer-nav          { grid-template-columns: 1fr 1fr; }
  .step-item           { grid-template-columns: 60px 1fr; gap: var(--space-4); }
  .step-number         { font-size: 1.6rem; }
  .page-row-inputs     { grid-template-columns: 1fr; }
  .generator-actions   { flex-direction: column; }
}

@media (max-width: 480px) {
  .container           { padding: 0 var(--space-4); }
  .form-card-body      { padding: var(--space-4); }
  .hero-actions        { flex-direction: column; width: 100%; }
  .hero-actions .btn   { width: 100%; justify-content: center; }
}

/* ── Focus Visible ───────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── Selection ───────────────────────────────────────── */
::selection {
  background: rgba(124,58,237,.35);
  color: var(--text);
}

/* ── Scrollbar ───────────────────────────────────────── */
::-webkit-scrollbar        { width: 8px; height: 8px; }
::-webkit-scrollbar-track  { background: var(--bg); }
::-webkit-scrollbar-thumb  { background: rgba(255,255,255,.1); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.18); }

/* ── GEO Section ─────────────────────────────────────── */
.geo-section { background: var(--bg-2); }

.geo-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-12);
  align-items: start;
}

@media (max-width: 900px) {
  .geo-grid { grid-template-columns: 1fr; }
}

.subsection-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: var(--space-8) 0 var(--space-3);
}

.comparison-table-wrap {
  overflow-x: auto;
  margin-top: var(--space-4);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

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

.comparison-table th {
  background: var(--surface-2);
  color: var(--text-2);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.comparison-table td { color: var(--text-2); }
.comparison-table td code { color: var(--secondary); }
.comparison-table tbody tr:hover { background: var(--surface); }
.comparison-table tbody tr:last-child td { border-bottom: none; }

.geo-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.geo-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--space-5) var(--space-6);
}

.geo-stat-number {
  font-size: 2.2rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
}

.geo-stat-label {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.4;
}

.geo-checklist {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--space-5) var(--space-6);
}

.geo-checklist-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  margin-bottom: var(--space-3);
}

.geo-checklist ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }

.geo-check {
  font-size: 0.9rem;
  color: var(--text-2);
  padding: 4px 0;
}

.geo-check--done { color: var(--success); }

/* ── Comparison Section ───────────────────────────────── */
.comparison-section { background: var(--bg); }

.comparison-intro {
  max-width: 760px;
  margin: 0 auto var(--space-12);
  text-align: center;
}

.full-comparison-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  margin-bottom: var(--space-12);
}

.full-comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 760px;
}

.full-comparison-table th,
.full-comparison-table td {
  padding: 12px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.full-comparison-table th {
  background: var(--surface-2);
  color: var(--text-2);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.full-comparison-table td:first-child { text-align: left; }
.full-comparison-table th:first-child { text-align: left; }

.full-comparison-table tbody tr:hover { background: var(--surface); }
.full-comparison-table tbody tr:last-child td { border-bottom: none; }

.row-highlight { background: rgba(124,58,237,.08); }
.row-highlight td:first-child strong { color: var(--text); }

.cell-yes  { color: var(--success); font-weight: 700; }
.cell-no   { color: var(--error);   font-weight: 600; }
.cell-partial { color: var(--warning); font-weight: 600; }

.badge-us {
  display: inline-block;
  background: var(--gradient);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  margin-left: 6px;
  vertical-align: middle;
}

.competitor-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-5);
  margin-bottom: var(--space-12);
}

.competitor-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: var(--space-6);
  transition: border-color .2s, background .2s;
}

.competitor-card:hover {
  border-color: var(--border-2);
  background: var(--surface-2);
}

.competitor-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}

.competitor-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.competitor-verdict {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.competitor-verdict--good    { background: rgba(16,185,129,.15); color: var(--success); }
.competitor-verdict--neutral { background: rgba(245,158,11,.15); color: var(--warning); }
.competitor-verdict--bad     { background: rgba(239,68,68,.15);  color: var(--error);  }

.competitor-desc {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: var(--space-3);
}

.competitor-gap {
  font-size: 0.82rem;
  color: var(--text-3);
  padding: var(--space-3);
  background: var(--surface-2);
  border-radius: 8px;
  border-left: 3px solid var(--primary);
  line-height: 1.5;
}

.comparison-summary {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 16px;
  padding: var(--space-8) var(--space-10);
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.comparison-summary-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: var(--space-4);
  color: var(--text);
}

/* ── Use Cases Section ────────────────────────────────── */
.use-cases-section { background: var(--bg-2); }

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-5);
}

.use-case-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: var(--space-6);
  transition: border-color .2s, transform .2s;
}

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

.use-case-icon {
  font-size: 2rem;
  margin-bottom: var(--space-3);
  display: block;
}

.use-case-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-2);
}

.use-case-desc {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.65;
}
