:root {
  --ink: #0a0c0b;
  --ink-2: #121614;
  --fog: #8b958f;
  --mist: #c5cec8;
  --paper: #eef3ee;
  --acid: #c8ff3d;
  --acid-dim: #9bcc20;
  --coral: #ff5c35;
  --coral-hot: #ff3d12;
  --line: rgba(238, 243, 238, 0.1);
  --glow: rgba(200, 255, 61, 0.18);
  --radius: 14px;
  --font-display: "Syne", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --font-body: "DM Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 720px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  color: var(--paper);
  background: var(--ink);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html.js-motion body {
  opacity: 0;
  transition: opacity 0.38s var(--ease);
}

html.js-motion body.is-ready {
  opacity: 1;
}

html.js-motion body.is-leaving {
  opacity: 0;
  transition: opacity 0.28s ease;
}

html.js-motion body.is-ready .wrap,
html.js-motion body.is-ready .site-foot {
  animation: page-in 0.5s var(--ease) both;
}

html.js-motion body.is-leaving .wrap,
html.js-motion body.is-leaving .site-foot {
  animation: page-out 0.28s ease both;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 55% at 15% -10%, var(--glow), transparent 55%),
    radial-gradient(ellipse 60% 40% at 95% 10%, rgba(255, 92, 53, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 50% at 50% 100%, rgba(200, 255, 61, 0.06), transparent 60%),
    var(--ink);
  animation: glow-drift 18s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: -48px;
  z-index: -1;
  opacity: 0.35;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black, transparent);
  animation: grid-drift 28s linear infinite;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.ambient span {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.45;
  will-change: transform;
}

.ambient span:nth-child(1) {
  width: 220px;
  height: 220px;
  left: -40px;
  top: 18%;
  background: rgba(200, 255, 61, 0.35);
  animation: orb-a 14s var(--ease) infinite alternate;
}

.ambient span:nth-child(2) {
  width: 180px;
  height: 180px;
  right: -30px;
  top: 8%;
  background: rgba(255, 92, 53, 0.28);
  animation: orb-b 17s var(--ease) infinite alternate;
}

.ambient span:nth-child(3) {
  width: 260px;
  height: 260px;
  left: 35%;
  bottom: -80px;
  background: rgba(200, 255, 61, 0.18);
  animation: orb-c 20s var(--ease) infinite alternate;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* ——— nav ——— */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0 0.4rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  line-height: 1.3;
  padding-bottom: 0.06em;
  display: inline-flex;
  align-items: baseline;
  gap: 0.05em;
  overflow: visible;
}

.brand span {
  color: var(--acid);
}

.nav-link {
  font-size: 0.85rem;
  color: var(--fog);
  transition: color 0.2s var(--ease);
}

.nav-link:hover {
  color: var(--paper);
}

/* ——— hub hero ——— */
.hero {
  padding: 2rem 0 1.75rem;
  text-align: center;
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 12vw, 4.75rem);
  letter-spacing: -0.06em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  padding: 0.06em 0 0.12em;
  color: var(--paper);
  overflow: visible;
}

.hero-brand span {
  color: var(--acid);
}

.hero-line {
  margin: 0 auto 1.5rem;
  max-width: 22rem;
  font-size: 1.02rem;
  color: var(--mist);
}

.hero-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: 1px solid rgba(200, 255, 61, 0.35);
  color: var(--acid);
  background: rgba(200, 255, 61, 0.06);
  transition: transform 0.25s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.3s;
  animation: arrow-bob 2.4s ease-in-out infinite;
}

.hero-arrow:hover {
  background: rgba(200, 255, 61, 0.16);
  border-color: var(--acid);
  box-shadow: 0 0 24px rgba(200, 255, 61, 0.2);
  animation: none;
  transform: translateY(3px);
}

.hero-arrow:active {
  transform: scale(0.94) translateY(3px);
}

/* ——— buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.25;
  position: relative;
  overflow: hidden;
  transition: transform 0.28s var(--ease), background 0.2s, box-shadow 0.35s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: scale(0.96);
}

.btn.is-pulse {
  animation: btn-punch 0.45s var(--ease);
}

.btn-acid {
  background: var(--acid);
  color: var(--ink);
  box-shadow: 0 0 0 0 transparent;
  animation: acid-breathe 3.6s ease-in-out infinite;
}

.btn-acid:hover {
  background: var(--acid-dim);
  box-shadow: 0 8px 32px var(--glow);
  animation: none;
}

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--mist);
}

.btn-coral {
  background: var(--coral);
  color: #fff;
}

.btn-coral:hover {
  background: var(--coral-hot);
}

.btn-wide {
  width: 100%;
}

/* ——— generator grid (hub) ——— */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fog);
  margin: 0 0 1rem;
}

.gen-grid {
  display: grid;
  gap: 0.75rem;
  padding-bottom: 3rem;
}

.gen-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius);
  background: var(--ink-2);
  border: 1px solid var(--line);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.35s var(--ease);
}

.gen-card:hover {
  border-color: rgba(200, 255, 61, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.gen-card.is-live {
  animation: card-float 5.5s ease-in-out infinite;
  border-color: rgba(200, 255, 61, 0.45);
  box-shadow:
    0 0 0 1px rgba(200, 255, 61, 0.12),
    0 0 28px rgba(200, 255, 61, 0.08);
}

.gen-card.is-live:hover {
  animation: none;
  border-color: rgba(200, 255, 61, 0.75);
  box-shadow:
    0 0 0 1px rgba(200, 255, 61, 0.25),
    0 12px 40px rgba(0, 0, 0, 0.25),
    0 0 36px rgba(200, 255, 61, 0.16);
}

.gen-card.is-soon {
  opacity: 0.55;
  pointer-events: none;
}

.gen-card h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.35;
  margin: 0 0 0.35rem;
  padding-bottom: 0.08em;
  overflow: visible;
}

.gen-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--fog);
}

.gen-card .badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  background: rgba(200, 255, 61, 0.12);
  color: var(--acid);
  white-space: nowrap;
}

.gen-card.is-soon .badge {
  background: rgba(139, 149, 143, 0.15);
  color: var(--fog);
}

/* ——— tool page ——— */
.tool-head {
  padding: 2.25rem 0 1.5rem;
}

.tool-kicker {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--acid);
  margin: 0 0 0.65rem;
}

.tool-head h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.45rem, 5.2vw, 2.1rem);
  letter-spacing: -0.02em;
  line-height: 1.4;
  margin: 0 0 0.75rem;
  padding: 0.05em 0 0.12em;
  overflow: visible;
}

.tool-head p {
  margin: 0;
  color: var(--mist);
  max-width: 28rem;
}

.panel {
  padding: 0 0 3.5rem;
}

.vibe-label {
  font-size: 0.85rem;
  color: var(--fog);
  margin: 0 0 0.65rem;
}

.vibes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.vibes.is-switching {
  animation: vibes-swap 0.42s var(--ease);
}

.vibe {
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 0.85rem;
  color: var(--mist);
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.25s var(--ease), box-shadow 0.25s;
}

.vibe:hover {
  border-color: var(--fog);
  color: var(--paper);
  transform: translateY(-1px);
}

.vibe:active {
  transform: scale(0.94);
}

.vibe.is-on {
  background: var(--acid);
  border-color: var(--acid);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 0 20px rgba(200, 255, 61, 0.25);
  animation: chip-pop 0.35s var(--ease);
}

.actions {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
}

.results {
  display: grid;
  gap: 0.5rem;
  min-height: 12rem;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), filter 0.28s var(--ease);
}

.results.is-hiding {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(4px);
  pointer-events: none;
}

.results.is-showing {
  opacity: 0;
  transform: translateY(10px);
}

.results[data-empty="true"]::before {
  content: "Hit generate. Steal a name. Rename your life.";
  display: block;
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--fog);
  font-size: 0.95rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.name-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1.05rem;
  border-radius: var(--radius);
  background: var(--ink-2);
  border: 1px solid var(--line);
  text-align: left;
  width: 100%;
  position: relative;
  overflow: visible;
  transition: border-color 0.2s, background 0.2s, transform 0.25s var(--ease), box-shadow 0.25s;
}

.name-row.is-enter {
  animation: pop 0.4s var(--ease) both;
}

.name-row:hover {
  border-color: rgba(200, 255, 61, 0.4);
  transform: translateX(2px);
}

.name-row:active {
  transform: scale(0.985);
}

.name-row.is-copied {
  border-color: var(--acid);
  background: rgba(200, 255, 61, 0.08);
  box-shadow: 0 0 0 1px rgba(200, 255, 61, 0.25);
  animation: copy-flash 0.55s var(--ease);
}

.name-row .name {
  font-family: var(--font-mono);
  font-size: clamp(0.88rem, 3.5vw, 1rem);
  letter-spacing: -0.01em;
  line-height: 1.35;
  word-break: break-word;
}

.name-row .hint {
  font-size: 0.7rem;
  color: var(--fog);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.8;
}

.spark {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acid);
  pointer-events: none;
  z-index: 60;
  animation: spark-fly 0.55s var(--ease) forwards;
  box-shadow: 0 0 8px var(--acid);
}

.spark.is-coral {
  background: var(--coral);
  box-shadow: 0 0 8px var(--coral);
}

/* ——— toast ——— */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%) translateY(120%);
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  background: var(--acid);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.88rem;
  z-index: 50;
  pointer-events: none;
  transition: transform 0.35s var(--ease);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.toast.is-on {
  transform: translateX(-50%) translateY(0);
}

.seo-block {
  margin: 2.5rem 0 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.seo-block h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.4;
  margin: 0 0 0.65rem;
  padding-bottom: 0.08em;
  color: var(--paper);
  overflow: visible;
}

.seo-block p {
  margin: 0;
  color: var(--fog);
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 40rem;
}

.seo-block a {
  color: var(--acid);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ——— footer ——— */
.site-foot {
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--fog);
  font-size: 0.8rem;
}

.site-foot a {
  color: var(--mist);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ——— motion ——— */
@keyframes arrow-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes page-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

@keyframes vibes-swap {
  0% {
    transform: translateX(0);
  }
  40% {
    transform: translateX(4px);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes glow-drift {
  from {
    transform: scale(1) translate(0, 0);
  }
  to {
    transform: scale(1.06) translate(2%, 1%);
  }
}

@keyframes grid-drift {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(48px, 48px);
  }
}

@keyframes orb-a {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(40px, 50px) scale(1.15);
  }
}

@keyframes orb-b {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-50px, 35px) scale(1.2);
  }
}

@keyframes orb-c {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(30px, -40px) scale(1.1);
  }
}

@keyframes acid-breathe {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(200, 255, 61, 0);
  }
  50% {
    box-shadow: 0 0 28px 2px rgba(200, 255, 61, 0.28);
  }
}

@keyframes btn-punch {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(0.94);
  }
  70% {
    transform: scale(1.03);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes chip-pop {
  0% {
    transform: scale(0.92);
  }
  60% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes card-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes copy-flash {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes spark-fly {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) scale(0.2);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html.js-motion body {
    opacity: 1 !important;
  }

  .ambient {
    display: none;
  }

  .hero-arrow {
    animation: none;
  }
}

@media (min-width: 640px) {
  .gen-grid {
    grid-template-columns: 1fr 1fr;
  }
}
