/* BizName.au — Global Styles */
:root {
  --bg: #0f172a;
  --bg-card: #1e293b;
  --bg-card-hover: #253349;
  --border: #334155;
  --border-hover: #475569;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent: #10b981;
  --accent-hover: #059669;
  --accent-glow: rgba(16, 185, 129, 0.15);
  --danger: #ef4444;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 0.2s ease;
}

/* Google Font - loaded inline as base64 is too large; fallback system fonts work fine */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ─── Layout ─────────────────────────────────────────────────────── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }

/* ─── Nav ────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-size: 1.25rem; font-weight: 800; color: var(--text);
  text-decoration: none; display: flex; align-items: center; gap: 8px;
}
.nav-logo .dot { color: var(--accent); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  color: var(--text-muted); text-decoration: none; font-size: 0.9rem; font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-mobile-toggle { display: none; background: none; border: none; color: var(--text); cursor: pointer; }

/* ─── Hero ───────────────────────────────────────────────────────── */
.hero { text-align: center; padding: 100px 0 60px; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800;
  line-height: 1.15; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p { color: var(--text-muted); font-size: 1.15rem; max-width: 600px; margin: 0 auto; }

/* ─── Generator Form ─────────────────────────────────────────────── */
.generator {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 720px;
  margin: 0 auto 48px;
  box-shadow: var(--shadow);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-size: 0.85rem; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.form-group select,
.form-group input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font);
  transition: border-color var(--transition);
  outline: none;
  width: 100%;
}
.form-group select:focus,
.form-group input:focus { border-color: var(--accent); }
.form-group select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}

.btn-generate {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  padding: 14px 28px;
  background: var(--accent);
  color: #fff;
  font-size: 1rem; font-weight: 700; font-family: var(--font);
  border: none; border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition), transform 0.1s;
}
.btn-generate:hover { background: var(--accent-hover); }
.btn-generate:active { transform: scale(0.98); }
.btn-generate:disabled { opacity: 0.6; cursor: not-allowed; }

/* ─── Loading ────────────────────────────────────────────────────── */
.loader { display: none; text-align: center; padding: 48px 0; }
.loader.active { display: block; }
.loader-spinner {
  width: 40px; height: 40px; margin: 0 auto 16px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader p { color: var(--text-muted); font-size: 0.95rem; }

/* ─── Results ────────────────────────────────────────────────────── */
.results { max-width: 720px; margin: 0 auto; }
.results-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.results-header h2 { font-size: 1.3rem; font-weight: 700; }
.results-grid { display: flex; flex-direction: column; gap: 12px; }

.name-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  transition: border-color var(--transition), background var(--transition);
  opacity: 0; transform: translateY(12px);
  animation: cardIn 0.4s ease forwards;
}
.name-card:hover { border-color: var(--accent); background: var(--bg-card-hover); }

@keyframes cardIn {
  to { opacity: 1; transform: translateY(0); }
}

.name-card-left { flex: 1; min-width: 0; }
.name-card-name {
  font-size: 1.15rem; font-weight: 700; margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.name-card-domain {
  font-size: 0.85rem; display: flex; align-items: center; gap: 6px;
}
.domain-available { color: var(--accent); }
.domain-taken { color: var(--danger); }
.name-card-actions {
  display: flex; gap: 8px; flex-shrink: 0;
}
.btn-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}
.btn-icon:hover { border-color: var(--accent); color: var(--accent); }
.btn-icon svg { width: 16px; height: 16px; }

.name-card-links {
  display: flex; gap: 12px; margin-top: 8px;
}
.name-card-links a {
  font-size: 0.78rem; color: var(--text-dim); text-decoration: none;
  transition: color var(--transition);
}
.name-card-links a:hover { color: var(--accent); }

/* ─── Pro Section ────────────────────────────────────────────────── */
.pro-section {
  max-width: 720px; margin: 48px auto 0;
  background: linear-gradient(135deg, rgba(16,185,129,0.08) 0%, rgba(16,185,129,0.02) 100%);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}
.pro-section h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.pro-section .price { font-size: 2rem; font-weight: 800; color: var(--accent); margin-bottom: 16px; }
.pro-features { list-style: none; margin-bottom: 24px; text-align: left; max-width: 360px; margin-left: auto; margin-right: auto; }
.pro-features li {
  padding: 6px 0; color: var(--text-muted); font-size: 0.9rem;
  display: flex; align-items: center; gap: 8px;
}
.pro-features li svg { color: var(--accent); flex-shrink: 0; }
.btn-pro {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px;
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-weight: 600; font-family: var(--font);
  cursor: not-allowed; opacity: 0.8;
  font-size: 0.95rem;
}
.badge-soon {
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ─── How It Works ───────────────────────────────────────────────── */
.steps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 40px;
}
.step-card {
  text-align: center; padding: 32px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}
.step-card:hover { border-color: var(--accent); }
.step-num {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-glow);
  color: var(--accent);
  font-weight: 800; font-size: 1.2rem;
  border-radius: 50%;
  margin: 0 auto 16px;
}
.step-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ─── FAQ ────────────────────────────────────────────────────────── */
.faq-list { max-width: 720px; margin: 40px auto 0; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  width: 100%; padding: 18px 24px;
  background: var(--bg-card);
  border: none; color: var(--text);
  font-size: 0.95rem; font-weight: 600; font-family: var(--font);
  text-align: left; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--bg-card-hover); }
.faq-question svg {
  transition: transform 0.3s ease; flex-shrink: 0; margin-left: 12px;
  color: var(--text-dim);
}
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  background: var(--bg-card);
}
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 0.9rem; line-height: 1.7;
}
.faq-answer-inner a { color: var(--accent); text-decoration: none; }

/* ─── Section Headings ───────────────────────────────────────────── */
.section-heading { text-align: center; }
.section-heading h2 { font-size: 1.75rem; font-weight: 800; margin-bottom: 12px; }
.section-heading p { color: var(--text-muted); max-width: 540px; margin: 0 auto; }

/* ─── Footer ─────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}
.footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 16px; list-style: none; }
.footer-links a { color: var(--text-muted); text-decoration: none; transition: color var(--transition); }
.footer-links a:hover { color: var(--accent); }

/* ─── Content Pages ──────────────────────────────────────────────── */
.content-page { max-width: 720px; margin: 0 auto; padding: 80px 24px; }
.content-page h1 { font-size: 2rem; font-weight: 800; margin-bottom: 16px; }
.content-page h2 { font-size: 1.4rem; font-weight: 700; margin: 32px 0 12px; }
.content-page p { color: var(--text-muted); margin-bottom: 16px; line-height: 1.8; }
.content-page ul { margin: 0 0 16px 24px; color: var(--text-muted); }
.content-page li { margin-bottom: 8px; line-height: 1.7; }
.content-page a { color: var(--accent); text-decoration: none; }
.content-page a:hover { text-decoration: underline; }
.content-page .cta-box {
  background: var(--accent-glow);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: var(--radius);
  padding: 24px;
  margin: 32px 0;
  text-align: center;
}
.content-page .cta-box a {
  display: inline-block;
  margin-top: 12px;
  padding: 12px 28px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

/* ─── Toast ──────────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--accent); color: #fff;
  padding: 12px 24px; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 600;
  opacity: 0; transition: all 0.3s ease;
  pointer-events: none; z-index: 999;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ─── Favourite Button ───────────────────────────────────────────── */
.btn-icon.fav-active { color: #ef4444; }
.btn-icon.fav-active:hover { color: #dc2626; }

/* ─── Results Actions Bar ────────────────────────────────────────── */
.results-actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-top: 20px; padding-top: 20px;
  border-top: 1px solid var(--border);
}
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-sm);
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 0.85rem; cursor: pointer;
  transition: var(--transition);
}
.btn-secondary:hover {
  background: var(--bg-card-hover); border-color: var(--accent);
  color: var(--accent);
}
.btn-secondary svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .form-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 16px 24px; gap: 16px;
  }
  .hero h1 { font-size: 1.75rem; }
  .hero { padding: 60px 0 40px; }
  section { padding: 48px 0; }
  .generator { padding: 20px; }
  .name-card { flex-direction: column; align-items: flex-start; }
  .name-card-actions { width: 100%; justify-content: flex-end; }
}

/* Footer sister links */
.footer-sister {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
}
.footer-sister a {
  color: var(--text-muted);
  text-decoration: none;
}
.footer-sister a:hover {
  color: var(--accent);
}
