/* GreatPrompt — shared styles */
:root {
  --bg: #08090a;
  --bg-elev: #0f1112;
  --bg-elev-2: #151819;
  --line: #1f2324;
  --line-strong: #2b3031;
  --text: #eef1ef;
  --text-dim: #a3aba7;
  --text-faint: #6c7571;
  --accent: #00ff7f;
  --accent-ink: #03140a;
  --accent-soft: rgba(0, 255, 127, 0.1);
  --accent-line: rgba(0, 255, 127, 0.28);
  --danger: #ff6b6b;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-size: 15px; font-weight: 800;
}
.brand em { font-style: normal; color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 30px -8px rgba(0, 255, 127, .55); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 34px -8px rgba(0, 255, 127, .7); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
#generate-btn:disabled { opacity: .7; cursor: progress; }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--text-faint); background: var(--bg-elev); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 0.85rem; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 1rem; }

.gh-icon { width: 16px; height: 16px; flex: none; fill: currentColor; }
@media (max-width: 560px) { .btn .gh-label { display: none; } .btn.btn-gh { padding: 0 10px; } }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--accent-line); background: var(--accent-soft);
  color: var(--accent); font-size: 0.8rem; font-weight: 600; letter-spacing: .01em;
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

.kbd {
  font-family: var(--mono); font-size: 0.75rem; padding: 2px 6px; border-radius: 6px;
  border: 1px solid var(--line-strong); color: var(--text-faint);
}

/* ---------- Top nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 9, 10, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 0.92rem; color: var(--text-dim); }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 12px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--text-faint); font-size: 0.875rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer a:hover { color: var(--text); }

@media (max-width: 760px) {
  .container { padding: 0 16px; }
  .nav-links { display: none; }
}
