:root {
  font-family: 'Inter', 'Noto Sans SC', system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', sans-serif;
  color: #f7f7fb;
  background-color: #05030a;
  --bg: #05030a;
  --panel: rgba(15, 10, 30, 0.85);
  --panel-light: rgba(255, 255, 255, 0.05);
  --accent: #ff8dd9;
  --accent-blue: #5dd3ff;
  --muted: #a6a3ba;
}

* {
  box-sizing: border-box;
}

  --page-gutter: clamp(1.5rem, 5vw, 4rem);
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 10% 10%, rgba(255, 141, 217, 0.25), transparent 40%),
    radial-gradient(circle at 85% 0%, rgba(93, 211, 255, 0.25), transparent 50%), var(--bg);
  padding: 0 var(--page-gutter) 4rem;
  line-height: 1.6;
}

.site-header {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem var(--page-gutter);
  margin: 0 calc(var(--page-gutter) * -1);
  background: rgba(5, 3, 10, 0.85);
  backdrop-filter: blur(25px);
  z-index: 10;
}

.site-header nav a {
  margin-left: 1.25rem;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-header nav a:hover {
  color: #fff;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

main {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 2rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 2rem;
  padding: 2.5rem;
  background: var(--panel);
  border-radius: 1.6rem;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
  margin-bottom: 3rem;
}

.eyebrow {
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
}

.hero h1 {
  font-size: clamp(2.7rem, 5vw, 4rem);
  margin: 0.4rem 0 1rem;
}

.lede {
  color: var(--muted);
  max-width: 640px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
}

.btn {
  padding: 0.85rem 1.4rem;
  border-radius: 0.9rem;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  color: inherit;
}

.btn.primary {
  background: var(--accent);
  color: #1e0517;
}

.btn.ghost {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.stats {
  list-style: none;
  display: flex;
  gap: 2rem;
  padding: 0;
  margin: 2rem 0 0;
}

.stats strong {
  display: block;
  font-size: 1.6rem;
}

.preview-card {
  background: var(--panel-light);
  padding: 1.8rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.preview-card .muted {
  color: var(--muted);
}

.preview-card .ghost-link {
  color: var(--accent-blue);
  text-decoration: none;
}

.section-heading h2 {
  margin-bottom: 0.3rem;
}

.section-heading p {
  margin-top: 0;
  color: var(--muted);
}

.collections {
  margin-bottom: 3.5rem;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.collection-grid article {
  padding: 1.5rem;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.collection-grid .tag {
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
}

.collection-grid .link {
  margin-top: 1rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.generator {
  margin-bottom: 3.5rem;
  padding: 2.5rem;
  background: var(--panel);
  border-radius: 1.5rem;
}

.generator-content {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(0, 1.2fr);
  gap: 2rem;
  margin-top: 2rem;
}

form label {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
  gap: 0.4rem;
  font-size: 0.95rem;
}

input[type='color'],
select {
  border-radius: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(5, 3, 10, 0.7);
  color: #fff;
  padding: 0.65rem 0.9rem;
}

input[type='color'] {
  padding: 0.2rem;
  height: 48px;
}

.generator-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.generator-actions button {
  flex: 1;
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.generator-actions .primary {
  border-color: transparent;
  background: var(--accent);
  color: #1a0416;
}

.canvas-wrapper {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 1rem;
  padding: 1rem;
}

.canvas-wrapper canvas {
  width: 100%;
  border-radius: 0.8rem;
  display: block;
}

.canvas-wrapper .muted {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.8rem;
}

.how ol {
  counter-reset: steps;
  list-style: none;
  padding: 0;
}

.how li {
  counter-increment: steps;
  margin-bottom: 1rem;
  padding-left: 2.25rem;
  position: relative;
}

.how li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 0.3rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
}

.cta-banner {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer {
  padding: 2rem 0 0;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 960px) {
  .site-header {
    flex-direction: column;
    gap: 0.8rem;
  }

  .hero,
  .generator-content {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }
}
