/* ============================================================
   NameGenz — visual system
   Direction: an arcane spellbook / grimoire. Deep indigo-black
   parchment-dark ground, a luminous violet-to-gold accent, a
   serif display face for headings (storybook feel) against a clean
   sans body. NOT a generic SaaS gradient.
   ============================================================ */

:root {
  --bg:        oklch(0.17 0.035 285);
  --bg-raised: oklch(0.22 0.040 285);
  --bg-panel:  oklch(0.25 0.045 288);
  --line:      oklch(0.34 0.045 288);
  --line-soft: oklch(0.29 0.040 288);

  --ink:       oklch(0.95 0.015 300);
  --ink-dim:   oklch(0.76 0.030 295);
  --ink-faint: oklch(0.56 0.035 292);

  /* Accent — arcane violet + a warm gold highlight */
  --violet:      oklch(0.72 0.17 305);
  --violet-dim:  oklch(0.58 0.15 302);
  --gold:        oklch(0.83 0.13 85);
  --glow:        oklch(0.72 0.17 305 / 0.4);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-name: "Cormorant Garamond", Georgia, serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex; flex-direction: column;
  background-image:
    radial-gradient(ellipse 900px 600px at 50% -15%, oklch(0.30 0.06 305 / 0.5), transparent),
    radial-gradient(ellipse 700px 500px at 100% 110%, oklch(0.24 0.05 290 / 0.4), transparent);
}

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

.site-shell { display: flex; flex-direction: column; min-height: 100vh; }

/* ---------------- Topbar ---------------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1080px; margin: 0 auto; width: 100%;
  padding: 1.25rem 1.5rem;
}
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.5rem; letter-spacing: 0.01em;
}
.brand-mark {
  width: 22px; height: 22px; flex-shrink: 0;
  background:
    conic-gradient(from 45deg, var(--violet), var(--gold), var(--violet));
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.brand-text { color: var(--ink); }
.brand-text .z { color: var(--violet); }

.topnav { display: flex; gap: 1.75rem; font-size: 0.92rem; color: var(--ink-dim); }
.topnav a:hover { color: var(--gold); }

/* ---------------- Layout ---------------- */
.main-content {
  flex: 1; max-width: 1080px; margin: 0 auto; width: 100%;
  padding: 0.5rem 1.5rem 5rem;
}
.site-footer { border-top: 1px solid var(--line-soft); padding: 1.75rem 1.5rem; margin-top: auto; }
.footer-inner {
  max-width: 1080px; margin: 0 auto; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 0.75rem; font-size: 0.85rem; color: var(--ink-faint);
}
.footer-links { display: flex; gap: 1.25rem; }
.footer-links a:hover { color: var(--gold); }

/* ============================================================
   Generator page
   ============================================================ */
.gen-hero { padding: 1.75rem 0 1.5rem; text-align: center; }
.gen-eyebrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.8rem; color: var(--gold); font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.8rem;
}
.gen-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 3.4rem); font-weight: 700;
  letter-spacing: 0.005em; margin: 0 0 0.6rem; color: var(--ink); line-height: 1.05;
}
.gen-sub { color: var(--ink-dim); font-size: 1.05rem; max-width: 52ch; margin: 0 auto; line-height: 1.5; }

/* Generate button */
.gen-action { display: flex; justify-content: center; gap: 0.75rem; margin: 2rem 0 1.25rem; flex-wrap: wrap; }
.btn {
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 0.85rem 2rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg-raised); color: var(--ink); cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}
.btn:hover { border-color: var(--violet-dim); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, var(--violet), var(--violet-dim));
  border-color: var(--violet); color: oklch(0.98 0.01 300);
  box-shadow: 0 4px 24px var(--glow);
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; }

/* Names grid */
.names-panel {
  margin: 1.5rem auto 0; max-width: 760px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--bg-panel); padding: 1.5rem;
}
.names-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.5rem;
}
.name-chip {
  font-family: var(--font-name);
  font-size: 1.35rem; font-weight: 600;
  padding: 0.6rem 0.9rem; border-radius: var(--radius-sm);
  background: var(--bg-raised); border: 1px solid transparent;
  color: var(--ink); cursor: pointer; text-align: center;
  transition: border-color 0.12s ease, color 0.12s ease, background 0.12s ease;
  position: relative;
}
.name-chip:hover { border-color: var(--gold); color: var(--gold); }
.name-chip.copied { border-color: var(--violet); color: var(--violet); }
.name-chip.copied::after {
  content: "copied"; position: absolute; top: -0.5rem; right: 0.4rem;
  font-family: var(--font-body); font-size: 0.6rem; color: var(--violet);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.names-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1rem; flex-wrap: wrap; gap: 0.5rem;
}
.names-hint { font-size: 0.82rem; color: var(--ink-faint); }
.copy-all {
  font-family: var(--font-body); font-size: 0.82rem; color: var(--ink-dim);
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  padding: 0.35rem 0.9rem; cursor: pointer;
}
.copy-all:hover { color: var(--gold); border-color: var(--gold); }

/* ---------------- Other-generators rail ---------------- */
.gens-rail { margin-top: 3rem; padding-top: 2.25rem; border-top: 1px solid var(--line-soft); }
.rail-label {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-faint); font-weight: 600; margin-bottom: 1rem;
}
.gen-chip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 0.6rem; }
.gen-chip {
  display: flex; align-items: center; justify-content: center;
  padding: 0.75rem 0.6rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--bg-raised);
  font-size: 0.92rem; color: var(--ink-dim);
  transition: border-color 0.12s ease, color 0.12s ease;
}
.gen-chip:hover { border-color: var(--violet-dim); color: var(--ink); }

/* ---------------- Content (SEO copy) ---------------- */
.info-section { margin-top: 3.5rem; display: grid; gap: 2rem; max-width: 760px; margin-left: auto; margin-right: auto; }
.info-block h2 {
  font-family: var(--font-display); font-size: 1.7rem; font-weight: 700;
  margin: 0 0 0.6rem; color: var(--ink);
}
.info-block p { color: var(--ink-dim); line-height: 1.7; margin: 0 0 0.75rem; font-size: 1rem; }
.faq-item { border-bottom: 1px solid var(--line-soft); padding: 1.1rem 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-weight: 600; font-size: 1rem; margin: 0 0 0.4rem; color: var(--ink); }
.faq-a { color: var(--ink-dim); font-size: 0.96rem; line-height: 1.6; margin: 0; }

/* ---------------- Homepage ---------------- */
.home-hero { padding: 3rem 0 1.5rem; text-align: center; }
.home-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.5vw, 4.2rem); font-weight: 700;
  letter-spacing: 0.005em; margin: 0 0 0.9rem; line-height: 1.02;
}
.home-h1 .accent { color: var(--violet); }
.home-sub { color: var(--ink-dim); font-size: 1.15rem; max-width: 54ch; margin: 0 auto; line-height: 1.5; }

.gen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.85rem; margin: 3rem 0; }
.gen-card {
  display: flex; flex-direction: column; gap: 0.4rem;
  padding: 1.5rem 1.25rem; border-radius: var(--radius-md);
  border: 1px solid var(--line); background: var(--bg-raised);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.gen-card:hover { border-color: var(--violet-dim); transform: translateY(-3px); box-shadow: 0 8px 30px oklch(0.15 0.05 300 / 0.6); }
.gen-card-title { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--ink); }
.gen-card-title .arrow { color: var(--gold); font-size: 1rem; }
.gen-card-desc { font-size: 0.88rem; color: var(--ink-faint); line-height: 1.4; }

/* ---------------- Static pages ---------------- */
.prose-page { max-width: 700px; margin: 0 auto; }
.prose-page h1 { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; margin-bottom: 1rem; }
.prose-page h2 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; margin: 1.75rem 0 0.6rem; }
.prose-page p { color: var(--ink-dim); line-height: 1.75; margin-bottom: 0.9rem; }
.prose-page a { color: var(--gold); }

/* ---------------- Responsive ---------------- */
@media (max-width: 640px) {
  .topbar { padding: 1rem; }
  .main-content { padding: 0.25rem 1rem 3.5rem; }
  .name-chip { font-size: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
