:root {
  --bg: #F8FAFC;
  --bg-alt: #EFF3F8;
  --card: #FFFFFF;
  --card-hover: #F8FAFD;
  --text: #0F172A;
  --text-secondary: #475569;
  --muted: #94A3B8;
  --border: #E2E8F0;
  --accent: #1B4965;
  --accent-light: #2A6F97;
  --accent-ultra: #E8F4FD;
  --accent2: #CAA53D;
  --accent2-light: #D4B44E;
  --accent2-ultra: #FFF8E7;
  --success: #059669;
  --success-light: #D1FAE5;
  --warning: #D97706;
  --warning-light: #FEF3C7;
  --danger: #DC2626;
  --danger-light: #FEE2E2;
  --info: #2563EB;
  --info-light: #DBEAFE;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 24px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.1), 0 8px 16px rgba(0,0,0,0.06);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  --max-width: 1200px;
  --header-height: 68px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

[data-theme="dark"] {
  --bg: #0B1120;
  --bg-alt: #151D2E;
  --card: #1A2332;
  --card-hover: #1F2B3D;
  --text: #E8EDF5;
  --text-secondary: #8B9AB8;
  --muted: #5A6A84;
  --border: #243044;
  --accent: #60A5FA;
  --accent-light: #93C5FD;
  --accent-ultra: rgba(96,165,250,0.08);
  --accent2: #FBBF24;
  --accent2-light: #FCD34D;
  --accent2-ultra: rgba(251,191,36,0.08);
  --success-light: rgba(5,150,105,0.15);
  --warning-light: rgba(217,119,6,0.15);
  --danger-light: rgba(220,38,38,0.15);
  --info-light: rgba(37,99,235,0.15);
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.2);
  --shadow: 0 1px 3px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.25);
  --shadow-lg: 0 12px 24px rgba(0,0,0,0.3);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.35);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--accent-light); }

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

h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1rem; }

::selection { background: var(--accent); color: #fff; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ─── HEADER ─── */
.site-header {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: box-shadow var(--transition);
}

[data-theme="dark"] .site-header {
  background: rgba(11,17,32,0.9);
}

.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-logo {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.02em;
}
.site-logo span { color: var(--accent2); }
.site-logo img { width: 28px; height: 28px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}
.nav-links a:hover { color: var(--accent); background: var(--accent-ultra); }
.nav-links a.active { color: var(--accent); background: var(--accent-ultra); }

.nav-right { display: flex; align-items: center; gap: 0.5rem; }

.theme-toggle {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  transition: all var(--transition);
  color: var(--text);
}
.theme-toggle:hover { background: var(--border); transform: scale(1.05); }

.mobile-toggle {
  display: none;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--text);
  align-items: center;
  justify-content: center;
}

/* ─── HERO ─── */
.hero {
  background: linear-gradient(145deg, #0B2B40 0%, #1B4965 35%, #2A6F97 70%, #1B4965 100%);
  color: #fff;
  padding: 5rem 0 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(202,165,61,0.12) 0%, transparent 60%),
              radial-gradient(ellipse 60% 50% at 80% 100%, rgba(96,165,250,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h60v60H0z' fill='none'/%3E%3Cpath d='M30 0v60M0 30h60' stroke='%23fff' stroke-width='0.3' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}

[data-theme="dark"] .hero { background: linear-gradient(145deg, #0B1120 0%, #151D2E 50%, #1A2332 100%); }

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.6s ease-out;
}

.hero-badge .badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34D399;
  animation: pulse-dot 2s infinite;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero h1 .hero-accent { color: var(--accent2); }

.hero p {
  font-size: 1.2rem;
  opacity: 0.85;
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background: var(--accent2);
  color: #1a1a2e;
  padding: 1rem 2.25rem;
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 1.0625rem;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(202,165,61,0.3);
}
.hero-cta:hover {
  background: var(--accent2-light);
  color: #1a1a2e;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(202,165,61,0.4);
}

.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.9);
  padding: 1rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06);
  transition: all var(--transition);
}
.hero-cta-secondary:hover {
  color: #fff;
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.3);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3.5rem;
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

.hero-stat {
  text-align: center;
}
.hero-stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
}
.hero-stat-label {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
  margin-top: 0.125rem;
}

/* ─── BREADCRUMB ─── */
.breadcrumb { padding: 1rem 0; font-size: 0.875rem; color: var(--muted); }
.breadcrumb a { color: var(--text-secondary); font-weight: 500; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 0.5rem; }

/* ─── SECTIONS ─── */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
}
.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  margin-bottom: 2.5rem;
  max-width: 560px;
}
.section-subtitle.centered { margin-left: auto; margin-right: auto; }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ─── CARDS ─── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all var(--transition);
  box-shadow: var(--shadow-xs);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0;
  transition: opacity var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.card:hover::before { opacity: 1; }

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.card-desc {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.card-link {
  font-weight: 700;
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--accent);
  transition: gap var(--transition);
}
.card:hover .card-link { gap: 0.625rem; }

/* ─── CATEGORY CARDS ─── */
.cat-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}
.cat-card:hover { border-color: var(--accent-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cat-card.active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ultra); background: var(--accent-ultra); }
.cat-card .cat-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.cat-card .cat-label { font-weight: 700; font-size: 0.9375rem; }

/* ─── TEMPLATE SELECTOR CARDS ─── */
.tpl-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  cursor: pointer;
  transition: all var(--transition);
}
.tpl-card:hover { border-color: var(--accent-light); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.tpl-card.selected { border-color: var(--accent); background: var(--accent-ultra); box-shadow: 0 0 0 3px rgba(27,73,101,0.1); }
[data-theme="dark"] .tpl-card.selected { background: rgba(96,165,250,0.08); }
.tpl-card .tpl-title { font-weight: 800; font-size: 1rem; margin-bottom: 0.25rem; }
.tpl-card .tpl-desc { color: var(--text-secondary); font-size: 0.875rem; line-height: 1.5; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
}

.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 2px 8px rgba(27,73,101,0.2); }
.btn-primary:hover { background: var(--accent-light); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(27,73,101,0.3); }

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

.btn-accent { background: var(--accent2); color: #1a1a2e; box-shadow: 0 2px 8px rgba(202,165,61,0.2); }
.btn-accent:hover { background: var(--accent2-light); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(202,165,61,0.3); }

.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.0625rem; }
.btn-group { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ─── FORM ELEMENTS ─── */
.form-group { margin-bottom: 1.5rem; }
.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.form-hint { font-size: 0.8125rem; color: var(--muted); margin-bottom: 0.375rem; }

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.8125rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--text);
  font-size: 0.9375rem;
  font-family: inherit;
  transition: all var(--transition-fast);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-ultra);
}
.form-textarea { resize: vertical; min-height: 110px; }

.form-check { display: flex; align-items: center; gap: 0.625rem; cursor: pointer; }
.form-check input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--accent); border-radius: 4px; }
.form-error { color: var(--danger); font-size: 0.8125rem; margin-top: 0.25rem; }

/* ─── STEPS ─── */
.steps-nav {
  display: flex;
  gap: 0;
  margin-bottom: 2rem;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}

.step-tab {
  flex: 1;
  padding: 1.125rem 1rem;
  text-align: center;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: all var(--transition);
  background: none;
  border: none;
  font-size: 0.9375rem;
  border-right: 1px solid var(--border);
  position: relative;
}
.step-tab:last-child { border-right: none; }
.step-tab:hover { color: var(--text-secondary); background: var(--bg-alt); }
.step-tab.active { color: var(--accent); background: var(--accent-ultra); }
.step-tab.active::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--accent); }
.step-tab.completed { color: var(--success); }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-alt);
  font-size: 0.8125rem;
  font-weight: 800;
  margin-right: 0.625rem;
  transition: all var(--transition-fast);
}
.step-tab.active .step-num { background: var(--accent); color: #fff; }
.step-tab.completed .step-num { background: var(--success); color: #fff; }

.step-content { display: none; animation: fadeIn 0.3s ease; }
.step-content.active { display: block; }

/* ─── GENERATED TEXT ─── */
.generated-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 1.5rem;
  box-shadow: var(--shadow-md);
}

.generated-text {
  font-family: var(--font-mono);
  white-space: pre-wrap;
  line-height: 1.9;
  font-size: 0.9375rem;
  color: var(--text);
  min-height: 200px;
  padding: 2rem;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
}

.generated-actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; flex-wrap: wrap; }

/* ─── TONE SELECTOR ─── */
.tone-selector { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; }

.tone-btn {
  padding: 0.625rem 1.5rem;
  border: 2px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition);
}
.tone-btn:hover { border-color: var(--accent-light); transform: translateY(-1px); }
.tone-btn.active { border-color: var(--accent); background: var(--accent); color: #fff; box-shadow: 0 2px 8px rgba(27,73,101,0.2); }

/* ─── CHECKLIST ─── */
.checklist {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1.5rem;
}
.checklist h4 { font-size: 1rem; margin-bottom: 1rem; }
.checklist-item { display: flex; align-items: center; gap: 0.625rem; padding: 0.5rem 0; font-size: 0.9375rem; }
.checklist-item.filled { color: var(--success); }
.checklist-item.missing { color: var(--warning); }

/* ─── DISCLAIMER ─── */
.disclaimer {
  background: var(--warning-light);
  border: 1px solid rgba(217,119,6,0.25);
  border-left: 4px solid var(--warning);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  color: #92400E;
  margin: 1.5rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
[data-theme="dark"] .disclaimer { background: var(--warning-light); border-color: rgba(217,119,6,0.3); color: #FBBF24; }
.disclaimer-icon { font-size: 1.25rem; flex-shrink: 0; margin-top: 0.125rem; }

/* ─── TOAST ─── */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--accent);
  color: #fff;
  padding: 1rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9375rem;
  z-index: 9999;
  transform: translateY(120px) scale(0.9);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-xl);
}
.toast.show { transform: translateY(0) scale(1); opacity: 1; }

/* ─── SEARCH ─── */
.search-box { position: relative; max-width: 640px; margin: 0 auto; }
.search-input {
  width: 100%;
  padding: 1.125rem 1.25rem 1.125rem 3.25rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text);
  font-size: 1.0625rem;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}
.search-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ultra), var(--shadow-md); }
.search-icon { position: absolute; left: 1.125rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 1.25rem; }

.filter-chips { display: flex; gap: 0.5rem; margin: 1.25rem 0; justify-content: center; flex-wrap: wrap; }
.chip {
  padding: 0.5rem 1.125rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  border: 2px solid var(--border);
  background: var(--card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}
.chip:hover { border-color: var(--accent); }
.chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.search-results { margin-top: 1.5rem; }
.search-result {
  display: block;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  background: var(--card);
  transition: all var(--transition);
  text-decoration: none;
}
.search-result:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.search-result .result-title { font-weight: 800; margin-bottom: 0.25rem; color: var(--text); }
.search-result .result-type {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.125rem 0.625rem;
  border-radius: 999px;
  background: var(--accent-ultra);
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.search-result .result-desc { font-size: 0.9375rem; color: var(--text-secondary); }

/* ─── FAQ ACCORDION ─── */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  background: var(--card);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq-item:hover { box-shadow: var(--shadow); }
.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-weight: 700;
  font-size: 1rem;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition-fast);
  gap: 1rem;
}
.faq-question:hover { background: var(--bg-alt); }
.faq-arrow { transition: transform 0.3s ease; font-size: 0.75rem; flex-shrink: 0; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease; }
.faq-item.open .faq-answer { max-height: 600px; padding: 0 1.5rem 1.5rem; }
.faq-answer p { color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.7; }

/* ─── ADSENSE ─── */
.ad-slot {
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  margin: 2rem 0;
  text-align: center;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ad-slot-sidebar {
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  margin: 1.5rem 0;
  text-align: center;
  min-height: 250px;
  overflow: hidden;
}

.ad-slot-in-article {
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  margin: 2rem 0;
  text-align: center;
  min-height: 250px;
  overflow: hidden;
  clear: both;
}

.ad-slot-multiplex {
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  margin: 2rem 0;
  text-align: center;
  min-height: 200px;
  overflow: hidden;
}

.ad-slot-anchor {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;
  text-align: center;
  background: var(--card);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  padding: 0;
  min-height: 50px;
}

.ad-slot-anchor .ad-close-btn {
  position: absolute;
  top: -28px;
  right: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  box-shadow: var(--shadow-xs);
}

/* ─── FEATURE GRID (Homepage) ─── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border-radius: var(--radius-sm);
  margin: 0 auto 1.25rem;
}
.feature-icon.blue { background: var(--accent-ultra); color: var(--accent); }
.feature-icon.gold { background: var(--accent2-ultra); color: var(--accent2); }
.feature-icon.green { background: var(--success-light); color: var(--success); }

.feature-title { font-size: 1.0625rem; font-weight: 800; margin-bottom: 0.5rem; }
.feature-desc { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.6; margin: 0; }

/* ─── FOOTER ─── */
.site-footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.7; }
.footer-brand strong { display: block; font-size: 1.125rem; color: var(--text); margin-bottom: 0.75rem; }
.footer-col h4 { font-size: 0.9375rem; font-weight: 800; margin-bottom: 1rem; color: var(--text); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--text-secondary); font-size: 0.875rem; font-weight: 500; }
.footer-col a:hover { color: var(--accent); }

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

/* ─── ARTICLE / CONTENT ─── */
.article-content { max-width: 780px; margin: 0 auto; }
.article-content h2 { margin-top: 2.5rem; margin-bottom: 1rem; }
.article-content h3 { margin-top: 2rem; margin-bottom: 0.75rem; }
.article-content p { margin-bottom: 1.25rem; line-height: 1.8; }
.article-content ul, .article-content ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.article-content li { margin-bottom: 0.5rem; line-height: 1.7; }
.article-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 1.25rem 1.5rem;
  background: var(--bg-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
  color: var(--text-secondary);
  font-style: italic;
}

/* ─── RELATED BOX ─── */
.related-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
}
.related-box h4 { margin-bottom: 0.75rem; }
.related-links { display: flex; flex-direction: column; gap: 0.375rem; }
.related-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  font-weight: 500;
  font-size: 0.9375rem;
}
.related-links a:hover { background: var(--card); transform: translateX(4px); }

/* ─── PRIVACY TOGGLE ─── */
.privacy-toggle {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.875rem 1.125rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
}

/* ─── TAG ─── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--accent-ultra);
  color: var(--accent);
}

/* ─── GRIDS ─── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.with-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: flex-start;
}
.sidebar { position: sticky; top: calc(var(--header-height) + 1.5rem); }

/* ─── COOKIE BANNER ─── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 1.125rem 1.5rem;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.1);
  backdrop-filter: blur(20px);
}
.cookie-banner.show { display: flex; }
.cookie-banner p { font-size: 0.9375rem; color: var(--text-secondary); margin: 0; }

/* ─── ANIMATIONS ─── */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.animate-on-scroll { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .with-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero { padding: 3rem 0 2.5rem; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1.0625rem; }
  .hero-stats { gap: 2rem; }
  .hero-stat-num { font-size: 1.5rem; }
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem;
    box-shadow: var(--shadow-lg);
    z-index: 200;
  }
  .nav-links.open a { padding: 0.75rem 1rem; display: block; border-radius: var(--radius-sm); }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .two-col, .three-col { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps-nav { flex-direction: column; border-radius: var(--radius); }
  .step-tab { text-align: left; border-right: none; border-bottom: 1px solid var(--border); }
  .step-tab:last-child { border-bottom: none; }
  .step-tab.active::after { display: none; }
  .generated-actions { flex-direction: column; }
  .tone-selector { flex-wrap: wrap; }
  .filter-chips { justify-content: flex-start; }
  .card-grid { grid-template-columns: 1fr; }
  .cookie-banner { flex-direction: column; text-align: center; }
  .section { padding: 3rem 0; }
  .hero-actions { flex-direction: column; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .hero h1 { font-size: 1.625rem; }
  .card { padding: 1.25rem; }
  .generated-text { padding: 1rem; font-size: 0.875rem; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
}

/* ─── HOW IT WORKS ─── */
.how-it-works-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.hiw-step {
  flex: 1;
  min-width: 220px;
  max-width: 280px;
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.hiw-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.hiw-number {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}
.hiw-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}
.hiw-step h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.hiw-step p {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.5;
}
.hiw-arrow {
  display: flex;
  align-items: center;
  font-size: 2rem;
  color: var(--accent);
  font-weight: 700;
  padding-top: 2rem;
}

@media (max-width: 768px) {
  .hiw-arrow { display: none; }
  .how-it-works-grid { flex-direction: column; align-items: center; }
  .hiw-step { max-width: 100%; }
}

/* ─── TRUST ─── */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.trust-item {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.trust-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.trust-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}
.trust-item h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.trust-item p {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .trust-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .trust-grid { grid-template-columns: 1fr; }
}

/* ─── WITH SIDEBAR ─── */
.with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}
.sidebar {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
}
@media (max-width: 768px) {
  .with-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

/* ─── HERO MINI ─── */
.hero-mini {
  padding: 3rem 0 2rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  color: #fff;
}
.hero-mini h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.hero-mini .subtitle {
  opacity: 0.9;
  font-size: 1.125rem;
}

/* ─── ARTICLE CONTENT ─── */
.article-content h1 { font-size: 1.75rem; margin-bottom: 1rem; }
.article-content h2 { font-size: 1.375rem; margin: 2rem 0 0.75rem; color: var(--accent); }
.article-content h3 { font-size: 1.125rem; margin: 1.5rem 0 0.5rem; }
.article-content p { line-height: 1.7; margin-bottom: 1rem; }
.article-content ul, .article-content ol { margin: 0.75rem 0 1rem 1.5rem; line-height: 1.7; }
.article-content li { margin-bottom: 0.25rem; }

/* ─── PRINT ─── */
@media print {
  body { background: #fff; color: #000; font-family: "Times New Roman", Times, serif; }
  .site-header, .site-footer, .cookie-banner, .ad-slot,
  .ad-slot-sidebar, .ad-slot-in-article, .ad-slot-multiplex, .ad-slot-anchor,
  .steps-nav, .generated-actions, .tone-selector, .checklist,
  .disclaimer, .breadcrumb, .hero, .nav-links, .theme-toggle,
  .mobile-toggle, .btn, .toast, .privacy-toggle, .hero-badge,
  .hero-actions, .hero-stats { display: none !important; }
  .generated-panel { border: none; padding: 0; box-shadow: none; }
  .generated-text {
    font-family: "Times New Roman", Times, serif;
    font-size: 12pt;
    line-height: 1.6;
    border: none;
    background: none;
    padding: 0;
  }
  @page { size: A4; margin: 2cm; }
}

/* ─── UTILITIES ─── */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
