:root {
  --bg: #070912;
  --bg-elevated: #0d1120;
  --surface: rgba(17, 22, 39, 0.78);
  --surface-strong: #12182a;
  --surface-soft: rgba(255,255,255,.045);
  --border: rgba(255,255,255,.09);
  --border-strong: rgba(255,255,255,.15);
  --text: #f6f7fb;
  --text-2: #c8cfdf;
  --muted: #8993aa;
  --brand: #7c5cff;
  --brand-2: #ff4fc8;
  --cyan: #31d7ff;
  --green: #37d89a;
  --amber: #ffbc58;
  --danger: #ff6b7c;
  --shadow: 0 24px 80px rgba(0,0,0,.34);
  --shadow-soft: 0 14px 44px rgba(0,0,0,.22);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --max: 1180px;
}

:root[data-theme="light"] {
  --bg: #f6f7fb;
  --bg-elevated: #ffffff;
  --surface: rgba(255,255,255,.84);
  --surface-strong: #ffffff;
  --surface-soft: rgba(18,24,42,.045);
  --border: rgba(18,24,42,.09);
  --border-strong: rgba(18,24,42,.16);
  --text: #101525;
  --text-2: #374158;
  --muted: #69758e;
  --shadow: 0 24px 70px rgba(34,46,80,.13);
  --shadow-soft: 0 12px 34px rgba(34,46,80,.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(1000px 520px at 15% -10%, rgba(124,92,255,.22), transparent 58%),
    radial-gradient(900px 540px at 100% 12%, rgba(255,79,200,.15), transparent 58%),
    linear-gradient(180deg, var(--bg), var(--bg));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .24;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, #000, transparent 65%);
  z-index: -1;
}

a { color: inherit; }
button, input, select { font: inherit; }
button { color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: rgba(124,92,255,.38); }

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  transform: translateY(-150%);
  background: var(--text);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { border-bottom-color: var(--border); }

.navbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 850;
  letter-spacing: -.04em;
  font-size: 1.24rem;
}
.brand-mark,
.brand-logo {
  width: 39px;
  height: 39px;
  border-radius: 13px;
  display: block;
  object-fit: cover;
  box-shadow: 0 10px 34px rgba(124,92,255,.22);
  flex: 0 0 39px;
}
.brand-mark {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  font-weight: 900;
}
.brand span { color: var(--muted); font-weight: 750; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  color: var(--text-2);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 11px;
  font-size: .94rem;
  font-weight: 650;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: var(--surface-soft);
}

.nav-actions { display: flex; align-items: center; gap: 9px; }
.icon-button {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}
.icon-button:hover { border-color: var(--border-strong); transform: translateY(-1px); }

.mobile-toggle { display: none; }

.hero {
  padding: 74px 0 30px;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font-size: .86rem;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(55,216,154,.11);
}

.hero h1 {
  margin: 22px auto 18px;
  max-width: 920px;
  font-size: clamp(2.5rem, 7vw, 5.6rem);
  line-height: .98;
  letter-spacing: -.065em;
  font-weight: 900;
}
.gradient-text {
  background: linear-gradient(100deg, #a99aff 5%, #8fe9ff 46%, #ff86d8 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  max-width: 740px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
}
.hero-pills {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
}
.hero-pills span {
  padding: 8px 11px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: .84rem;
}

.section { padding: 38px 0; }
.section-tight { padding: 24px 0; }
.section-title {
  margin: 0 0 10px;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  letter-spacing: -.04em;
}
.section-lead {
  color: var(--muted);
  margin: 0 0 24px;
  max-width: 720px;
}

.generator-shell {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: 18px;
  align-items: stretch;
}
.panel {
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(18px);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}
.result-panel {
  min-height: 440px;
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.result-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}
.result-label {
  color: var(--muted);
  text-transform: uppercase;
  font-size: .72rem;
  letter-spacing: .14em;
  font-weight: 800;
}
.result-main {
  flex: 1;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 38px 0 24px;
}
.nick-output {
  margin: 0;
  word-break: break-word;
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: -.055em;
  font-weight: 900;
}
.result-hint {
  margin-top: 12px;
  color: var(--muted);
  font-size: .93rem;
}
.result-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--text);
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 760;
  text-decoration: none;
  cursor: pointer;
  transition: .18s ease;
}
.btn:hover { transform: translateY(-1px); border-color: var(--border-strong); }
.btn:active { transform: translateY(0); }
.btn-primary {
  border-color: transparent;
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 12px 34px rgba(124,92,255,.27);
}
.btn-ghost { background: transparent; }
.btn-soft { background: var(--surface-soft); }
.btn-small { min-height: 38px; border-radius: 12px; padding: 0 12px; font-size: .88rem; }
.btn-wide { width: 100%; }

.settings-panel { padding: 24px; }
.settings-title { margin: 0 0 5px; font-size: 1.18rem; }
.settings-subtitle { margin: 0 0 22px; color: var(--muted); font-size: .9rem; }

.field { margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }
.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--text-2);
  font-size: .88rem;
  font-weight: 750;
}
.field-label output { color: var(--text); }

.input,
.select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  border-radius: 13px;
  color: var(--text);
  padding: 0 13px;
  outline: none;
}
.input:focus,
.select:focus {
  border-color: color-mix(in srgb, var(--brand) 70%, white);
  box-shadow: 0 0 0 4px rgba(124,92,255,.1);
}
.select option { background: var(--surface-strong); color: var(--text); }

.range {
  width: 100%;
  accent-color: var(--brand);
}

.toggle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.toggle {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  padding: 9px 11px;
  border-radius: 12px;
  color: var(--text-2);
  cursor: pointer;
  user-select: none;
}
.toggle input { accent-color: var(--brand); }
.toggle:has(input:checked) {
  border-color: rgba(124,92,255,.45);
  background: rgba(124,92,255,.10);
  color: var(--text);
}

.platform-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.platform-checks a {
  color: var(--text-2);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 11px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  font-size: .84rem;
  font-weight: 650;
}
.platform-checks a:hover { color: var(--text); border-color: var(--border-strong); }

.favorites-panel {
  margin-top: 18px;
  padding: 20px;
}
.favorites-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.favorites-list {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.favorite-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .86rem;
}
.favorite-chip button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
}
.empty-state { color: var(--muted); font-size: .9rem; }

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.card {
  grid-column: span 4;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 22px;
  backdrop-filter: blur(16px);
}
.card-wide { grid-column: span 8; }
.card-full { grid-column: 1 / -1; }
.card h3 { margin: 8px 0 8px; letter-spacing: -.03em; }
.card p { margin: 0; color: var(--muted); }
.card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(124,92,255,.12);
  border: 1px solid rgba(124,92,255,.24);
  font-size: 1.1rem;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.platform-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  background: var(--surface);
  text-decoration: none;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: .18s ease;
}
.platform-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-soft);
}
.platform-card strong { font-size: 1rem; }
.platform-card span { color: var(--muted); font-size: .84rem; }
.platform-symbol {
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  font-weight: 850;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
}
.prose-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: clamp(22px, 4vw, 34px);
  box-shadow: var(--shadow-soft);
}
.prose-card h1,
.prose-card h2,
.prose-card h3 { letter-spacing: -.04em; }
.prose-card h1 { margin-top: 0; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.05; }
.prose-card h2 { margin-top: 34px; }
.prose-card p,
.prose-card li { color: var(--text-2); }
.prose-card a { color: #a99aff; }
.prose-card ul,
.prose-card ol { padding-left: 22px; }

.side-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 20px;
  height: fit-content;
  position: sticky;
  top: 96px;
}
.side-card h3 { margin-top: 0; }
.side-links { display: grid; gap: 7px; }
.side-links a {
  text-decoration: none;
  color: var(--text-2);
  padding: 9px 10px;
  border-radius: 10px;
}
.side-links a:hover { background: var(--surface-soft); color: var(--text); }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.tag {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text-2);
  font-size: .82rem;
}

.faq { display: grid; gap: 10px; }
.faq details {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 16px;
  padding: 0 17px;
}
.faq summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 760;
}
.faq p { color: var(--muted); margin-top: 0; padding-bottom: 2px; }

.password-shell {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 18px;
}
.password-output {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(1.45rem, 4vw, 2.5rem);
  word-break: break-all;
  letter-spacing: -.03em;
}

.notice {
  border: 1px solid rgba(49,215,255,.25);
  background: rgba(49,215,255,.07);
  color: var(--text-2);
  border-radius: 14px;
  padding: 13px 14px;
  font-size: .9rem;
}

.not-found {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
}
.not-found h1 {
  font-size: clamp(5rem, 18vw, 11rem);
  line-height: .8;
  margin: 0;
  letter-spacing: -.08em;
}
.not-found p { color: var(--muted); max-width: 540px; }

.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--border);
  padding: 34px 0 46px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 24px;
}
.footer-brand p { color: var(--muted); max-width: 440px; margin: 10px 0 0; }
.footer-col strong { display: block; margin-bottom: 10px; }
.footer-col a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  margin: 7px 0;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: .84rem;
  flex-wrap: wrap;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 100;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  background: var(--text);
  color: var(--bg);
  padding: 11px 14px;
  border-radius: 12px;
  font-weight: 750;
  box-shadow: var(--shadow);
  transition: .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 980px) {
  .generator-shell,
  .password-shell,
  .content-grid { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .platform-grid { grid-template-columns: repeat(3, 1fr); }
  .card, .card-wide { grid-column: span 6; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 22px, var(--max)); }
  .site-header { background: color-mix(in srgb, var(--bg) 90%, transparent); }
  .navbar { min-height: 68px; }
  .mobile-toggle { display: grid; }
  .nav-links {
    position: absolute;
    top: 68px;
    left: 11px;
    right: 11px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    border-radius: 16px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
  .hero { padding-top: 48px; }
  .hero h1 { font-size: clamp(2.45rem, 13vw, 4.6rem); }
  .result-panel { min-height: 360px; padding: 20px; }
  .settings-panel { padding: 20px; }
  .toggle-grid { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: 1fr 1fr; }
  .card, .card-wide, .card-full { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
  .brand { font-size: 1.05rem; }
  .brand-mark { width: 35px; height: 35px; }
  .nav-actions .desktop-only { display: none; }
  .platform-grid { grid-template-columns: 1fr; }
  .result-actions .btn { flex: 1 1 calc(50% - 6px); }
  .hero-pills { justify-content: flex-start; }
  .hero { text-align: left; }
  .eyebrow { font-size: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* Tool hub: only the three actual generators are shown in the public UI. */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.tool-card {
  min-height: 180px;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  background: var(--surface);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-soft);
  transition: transform .18s ease, border-color .18s ease;
}
.tool-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}
.tool-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(124,92,255,.12);
  border: 1px solid rgba(124,92,255,.24);
  font-size: 1.15rem;
  font-weight: 850;
}
.tool-card strong {
  display: block;
  margin-top: 20px;
  font-size: 1.06rem;
}
.tool-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: .9rem;
}
.favorite-value {
  border: 0 !important;
  background: transparent !important;
  color: var(--text-2) !important;
  font: inherit;
  padding: 0 !important;
  cursor: pointer;
}
.name-output {
  margin: 0;
  word-break: break-word;
  font-size: clamp(2rem, 6vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -.05em;
  font-weight: 900;
}
@media (max-width: 760px) {
  .tool-grid { grid-template-columns: 1fr; }
  .brand-logo { width: 35px; height: 35px; flex-basis: 35px; }
}