:root {
  --bg: #ffffff;
  --bg-soft: #faf9fc;
  --bg-soft-2: #f4f1fa;
  --text: #211c2b;
  --muted: #6b6478;
  --accent: #6d28d9;
  --accent-dark: #5521b0;
  --accent-soft: #f1eafb;
  --border: #e7e3ef;
  --shadow-sm: 0 1px 3px rgba(33, 20, 70, 0.06);
  --shadow-md: 0 10px 30px rgba(33, 20, 70, 0.08);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --max-width: 1120px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.icon {
  width: 22px;
  height: 22px;
  display: block;
}

/* ---------- Header ---------- */
.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.logo:hover { text-decoration: none; }
.logo span { color: var(--accent); }

.nav-select {
  appearance: none;
  padding: 10px 38px 10px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--bg-soft) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="%236b6478" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg>') no-repeat right 14px center;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  max-width: 230px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.nav-select:hover, .nav-select:focus-visible { border-color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 70px;
  padding: 32px 0;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-weight: 600; }
.footer-links a:hover { color: var(--accent-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 15px 30px;
  font-size: 1.02rem;
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--accent-dark); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn-secondary {
  background: #fff;
  color: var(--accent-dark);
  border: 1.5px solid var(--border);
  box-shadow: none;
}
.btn-secondary:hover { background: var(--accent-soft); border-color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 72px 0 48px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  margin: 0 0 14px;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.hero p.subtitle {
  color: var(--muted);
  font-size: 1.15rem;
  margin: 0 auto 30px;
  max-width: 560px;
}

/* ---------- Result chips ---------- */
.result-box {
  max-width: 600px;
  margin: 30px auto 0;
  text-align: left;
}

.name-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.name-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 15px 18px;
  font-size: 1.08rem;
  font-weight: 650;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.name-item:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }

.copy-btn {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--accent-dark);
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.copy-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.copy-btn.copied { background: #16a34a; color: #fff; border-color: #16a34a; }

.generator-actions {
  text-align: center;
  margin: 28px 0 10px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Section headings ---------- */
.section-heading {
  text-align: center;
  margin: 0 0 28px;
}
.section-heading h2 {
  font-size: 1.7rem;
  margin: 0 0 8px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.section-heading p { color: var(--muted); margin: 0; }

.category-section { padding: 46px 0; }
.category-section.alt { background: var(--bg-soft); }

/* ---------- Card grid (homepage categories) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 560px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}

.name-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: left;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.name-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
  text-decoration: none;
}

.name-card .icon-badge {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.name-card h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 700;
}
.name-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- How it works ---------- */
.how-it-works {
  padding: 50px 0;
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 30px;
}
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

.step {
  text-align: center;
  padding: 10px;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.step h3 { margin: 0 0 6px; font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.93rem; }

/* ---------- Closing CTA ---------- */
.closing-cta {
  text-align: center;
  padding: 50px 0 70px;
}
.closing-cta h2 {
  font-size: 1.6rem;
  margin: 0 0 10px;
  font-weight: 800;
}
.closing-cta p {
  color: var(--muted);
  margin: 0 0 24px;
}

/* ---------- Generator page ---------- */
.page-wrap { padding: 44px 0 10px; }

.gen-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}

.gen-header .icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.gen-header .icon-badge .icon { width: 28px; height: 28px; }

.page-wrap h1 {
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  margin: 0 0 4px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tagline { color: var(--muted); margin: 0; }

.intro-text {
  max-width: 700px;
  color: var(--muted);
}

.generator-panel {
  text-align: center;
  margin: 32px auto;
}

/* ---------- Ad slot ---------- */
.ad-slot {
  display: none;
  max-width: 728px;
  margin: 32px auto;
  min-height: 90px;
  border: 1px dashed var(--border);
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

/* ---------- Related generators ---------- */
.related { margin: 54px 0; }
.related h2 { font-size: 1.25rem; margin-bottom: 16px; font-weight: 800; }

.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 560px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .related-grid { grid-template-columns: repeat(3, 1fr); } }

.related-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-weight: 650;
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.related-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}
.related-card .icon { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }

/* ---------- Static pages ---------- */
.static-page { padding: 48px 0 70px; max-width: 720px; }
.static-page h1 { font-size: clamp(1.7rem, 4vw, 2.1rem); font-weight: 800; }
.static-page h2 { font-size: 1.2rem; margin-top: 32px; font-weight: 750; }
.static-page a { font-weight: 600; }

@media (max-width: 500px) {
  .hero { padding: 48px 0 36px; }
  .btn { padding: 13px 24px; font-size: 0.98rem; }
}
