:root {
  --indigo: #3B1F8C;
  --indigo-light: #5233b3;
  --lavender: #C4B0FF;
  --lavender-soft: #EDE8FF;
  --gold: #F5C842;
  --gold-dark: #d4a800;
  --bg: #FAF8FF;
  --card: #FFFFFF;
  --text: #1E1E2E;
  --text-muted: #6B6B8A;
  --radius: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Nunito', sans-serif;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% -10%, rgba(59,31,140,0.13) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 110%, rgba(196,176,255,0.18) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,248,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1.5px solid var(--lavender);
  padding: 0 clamp(1rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo {
  width: 36px;
  height: 36px;
  background: var(--indigo);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.nav-name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--indigo);
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

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

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

.nav-cta {
  background: var(--gold);
  color: var(--indigo);
  border: none;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: 'Nunito', sans-serif;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,200,66,0.4);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--indigo);
  border-radius: 4px;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(250,248,255,0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1.5px solid var(--lavender);
  padding: 1.5rem clamp(1rem,4vw,3rem);
  flex-direction: column;
  gap: 1.2rem;
  z-index: 99;
}

.mobile-menu.open { display: flex; }

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

/* ── HERO ── */
.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: clamp(3rem,8vw,6rem) clamp(1rem,5vw,3rem) 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--lavender-soft);
  border: 1.5px solid var(--lavender);
  color: var(--indigo);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  animation: fadeDown 0.6s ease both;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  font-weight: 900;
  line-height: 1.08;
  color: var(--indigo);
  margin-bottom: 1rem;
  animation: fadeDown 0.7s ease 0.1s both;
}

.hero h1 span {
  color: var(--gold-dark);
  position: relative;
}

.hero h1 span::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 6px;
  background: var(--gold);
  border-radius: 3px;
  opacity: 0.5;
  z-index: -1;
}

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 2rem;
  line-height: 1.7;
  animation: fadeDown 0.7s ease 0.2s both;
}

/* ── AI INPUT BOX ── */
.ai-box {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto 1rem;
  padding: 0 clamp(1rem, 4vw, 2rem);
  animation: fadeDown 0.7s ease 0.3s both;
}

.ai-box-inner {
  background: #fff;
  border: 2px solid var(--lavender);
  border-radius: 24px;
  padding: 28px 28px 22px;
  box-shadow: 0 8px 40px rgba(59,31,140,0.1);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.ai-box-inner:focus-within {
  border-color: var(--indigo);
  box-shadow: 0 12px 50px rgba(59,31,140,0.18);
}

.ai-box-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-textarea {
  width: 100%;
  border: none;
  outline: none;
  resize: none;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  color: var(--text);
  background: transparent;
  line-height: 1.6;
  min-height: 70px;
}

.ai-textarea::placeholder { color: #b0b0c8; }

.ai-box-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.ai-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ai-chip {
  background: var(--lavender-soft);
  border: 1px solid var(--lavender);
  color: var(--indigo);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
}

.ai-chip:hover {
  background: var(--indigo);
  color: #fff;
  border-color: var(--indigo);
}

.ai-submit {
  background: var(--indigo);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.ai-submit:hover {
  background: var(--indigo-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59,31,140,0.3);
}

.ai-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2.5px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}

.ai-submit.loading .spinner { display: block; }
.ai-submit.loading .btn-text { display: none; }

.ai-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 10px;
  text-align: right;
  padding: 0 4px;
}

/* ── MODAL ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(20,10,50,0.6);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.open {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.modal {
  background: #fff;
  border-radius: 28px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px 32px 28px;
  box-shadow: 0 30px 80px rgba(59,31,140,0.28);
  animation: popUp 0.35s cubic-bezier(0.34,1.56,0.64,1) both;
  position: relative;
}

.modal-close-x {
  position: absolute;
  top: 18px;
  right: 20px;
  background: var(--lavender-soft);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  color: var(--indigo);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  font-weight: 800;
}

.modal-close-x:hover { background: var(--lavender); }

.modal-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: rgba(245,200,66,0.15);
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
  display: inline-block;
}

.modal-query {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--indigo);
  margin-bottom: 20px;
  line-height: 1.4;
}

.modal-query em {
  font-style: normal;
  color: var(--gold-dark);
}

.names-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.name-pill {
  background: var(--lavender-soft);
  border: 1.5px solid var(--lavender);
  border-radius: 14px;
  padding: 14px 16px;
  font-weight: 800;
  font-size: 1rem;
  color: var(--indigo);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.name-pill:hover {
  background: var(--indigo);
  color: #fff;
  border-color: var(--indigo);
  transform: scale(1.03);
}

.name-pill.copied {
  background: #e8f8ec;
  border-color: #5cb85c;
  color: #2d7a2d;
}

.name-pill .pill-name { flex: 1; }
.name-pill .pill-icon { font-size: 0.8rem; opacity: 0.5; }

.modal-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 20px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.modal-regen {
  flex: 1;
  background: var(--indigo);
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-regen:hover { background: var(--indigo-light); }
.modal-regen:disabled { opacity: 0.6; cursor: not-allowed; }

.modal-close-btn {
  flex: 1;
  background: var(--lavender-soft);
  color: var(--indigo);
  border: 1.5px solid var(--lavender);
  padding: 12px 20px;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-close-btn:hover { background: var(--lavender); }

.modal-loading {
  text-align: center;
  padding: 40px 0;
}

.big-spinner {
  width: 52px;
  height: 52px;
  border: 4px solid var(--lavender-soft);
  border-top-color: var(--indigo);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

.modal-loading p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ── OR DIVIDER ── */
.or-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
  position: relative;
  z-index: 1;
}

.or-divider::before,
.or-divider::after {
  content: '';
  flex: 1;
  height: 1.5px;
  background: linear-gradient(to right, transparent, var(--lavender), transparent);
}

.or-divider span {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  padding: 0 6px;
}

/* ── SECTIONS ── */
.section {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2rem,4vw,4rem) clamp(1rem,4vw,3rem);
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: rgba(245,200,66,0.15);
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--indigo);
  margin-bottom: 0.5rem;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2.5rem;
  max-width: 500px;
}

/* ── CARD GRID ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gen-card {
  background: var(--card);
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.25s ease;
  box-shadow: 0 2px 12px rgba(59,31,140,0.07);
  text-align: center;
}

.gen-card:hover {
  border-color: var(--gold);
  background: var(--lavender-soft);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(59,31,140,0.15);
}

.card-icon {
  width: 46px;
  height: 46px;
  background: var(--lavender-soft);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: background 0.25s;
}

.gen-card:hover .card-icon { background: var(--gold); }

.card-name {
  font-weight: 800;
  font-size: 0.88rem;
  line-height: 1.3;
  color: var(--indigo);
}

/* ── STEPS ── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 1rem;
}

.step {
  background: var(--card);
  border: 1.5px solid var(--lavender);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow 0.2s;
}

.step:hover { box-shadow: 0 8px 30px rgba(59,31,140,0.12); }

.step-num {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 10px;
}

.step h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--indigo);
  margin-bottom: 6px;
}

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

/* ── OTHER PILLS ── */
.other-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1rem;
}

.other-pill {
  text-decoration: none;
  background: var(--lavender-soft);
  color: var(--indigo);
  border: 1.5px solid var(--lavender);
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.other-pill:hover {
  background: var(--indigo);
  color: #fff;
  border-color: var(--indigo);
  transform: translateY(-2px);
}

/* ── SUGGEST ── */
.suggest-box {
  background: linear-gradient(135deg, var(--indigo) 0%, #5233b3 100%);
  border-radius: 24px;
  padding: clamp(2rem,4vw,3.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  box-shadow: 0 20px 60px rgba(59,31,140,0.25);
}

.suggest-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem,3vw,2rem);
  color: #fff;
  margin-bottom: 8px;
}

.suggest-text p {
  color: var(--lavender);
  font-size: 0.95rem;
}

.suggest-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 280px;
  max-width: 460px;
}

.suggest-input {
  flex: 1;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  padding: 12px 20px;
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
  min-width: 160px;
}

.suggest-input::placeholder { color: rgba(255,255,255,0.5); }
.suggest-input:focus { border-color: var(--gold); }

.suggest-btn {
  background: var(--gold);
  color: var(--indigo);
  border: none;
  padding: 12px 26px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.suggest-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245,200,66,0.4);
}

/* ── ABOUT ── */
.about-inner { max-width: 800px; margin: 0 auto; }

.about-inner h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem,3vw,2.2rem);
  color: var(--indigo);
  margin-bottom: 1rem;
}

.about-inner p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 0.98rem;
}

.about-inner h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--indigo);
  margin: 2rem 0 0.6rem;
}

.divider {
  width: 60px;
  height: 4px;
  background: var(--gold);
  border-radius: 4px;
  margin: 0 auto 2rem;
}

/* ── FOOTER ── */
footer {
  position: relative;
  z-index: 1;
  background: var(--indigo);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 3rem clamp(1rem,4vw,3rem);
  margin-top: 4rem;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 0.5rem;
  font-weight: 800;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--lavender);
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--gold); }

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

/* ── ANIMATIONS ── */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes popUp {
  from { opacity: 0; transform: scale(0.85) translateY(24px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

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

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .suggest-box { flex-direction: column; }
  .suggest-form { max-width: 100%; width: 100%; }
  .names-grid { grid-template-columns: 1fr; }
  .modal { padding: 28px 18px 22px; }
  .ai-box-footer { flex-direction: column; align-items: stretch; }
  .ai-submit { justify-content: center; }
}

@media (max-width: 480px) {
  .card-grid { gap: 10px; }
  .gen-card { padding: 14px 10px; }
  .card-icon { width: 38px; height: 38px; font-size: 18px; }
  .card-name { font-size: 0.8rem; }
  .ai-chips { gap: 6px; }
  .ai-chip { font-size: 0.72rem; padding: 4px 10px; }
}

/* ── NAV FULL WIDTH FIX ── */
nav {
    width: 100% !important;
    box-sizing: border-box;
}
.elementor-widget-container {
    padding: 0 !important;
}

/* ================================================================
   NAV & FOOTER FULL WIDTH FIX
   Removes Elementor's default max-width container restrictions
================================================================ */

/* Full width for nav widget */
.elementor-widget-namegen_nav,
.elementor-widget-namegen_nav .elementor-widget-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Full width for footer widget */
.elementor-widget-namegen_footer,
.elementor-widget-namegen_footer .elementor-widget-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Full width for the Elementor section/container holding nav & footer */
.elementor-section:has(.elementor-widget-namegen_nav),
.elementor-section:has(.elementor-widget-namegen_footer),
.elementor-container:has(.elementor-widget-namegen_nav),
.elementor-container:has(.elementor-widget-namegen_footer) {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Nav itself */
nav {
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

/* Footer itself */
footer {
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}
