:root {
  --bg: #0d0618;
  --bg-alt: #150a2e;
  --fg: #f0eaf8;
  --fg-muted: #8a7fa8;
  --accent: #ff3366;
  --accent-dim: rgba(255, 51, 102, 0.12);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  padding: 1.5rem 2rem;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.nav-logo .accent { color: var(--accent); }

/* Hero */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 4rem 2rem 6rem;
  overflow: hidden;
}
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  background: var(--accent);
}
.circle-a { width: 600px; height: 600px; top: -200px; right: -150px; }
.circle-b { width: 300px; height: 300px; bottom: 50px; left: -80px; }
.bar-a { width: 2px; height: 400px; top: 10%; left: 15%; background: var(--accent); border-radius: 1px; opacity: 0.08; transform: rotate(20deg); }
.bar-b { width: 2px; height: 250px; top: 30%; right: 20%; background: var(--accent); border-radius: 1px; opacity: 0.05; transform: rotate(-15deg); }

.hero-content {
  position: relative;
  max-width: 820px;
}
.hero-kicker {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 2rem;
}
.peculiar-word {
  color: var(--accent);
  font-style: italic;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--fg-muted);
  max-width: 560px;
  font-weight: 300;
  line-height: 1.7;
}

/* How */
.how {
  background: var(--bg-alt);
  padding: 6rem 2rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
  color: var(--fg);
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  max-width: 960px;
}
.step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 1rem;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.75rem;
}
.step p {
  color: var(--fg-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Manifesto */
.manifesto {
  padding: 7rem 2rem;
  background: var(--bg);
}
.manifesto-inner {
  max-width: 680px;
  margin: 0 auto;
}
blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-style: italic;
  font-weight: 400;
  color: var(--fg);
  line-height: 1.3;
  margin-bottom: 2.5rem;
  position: relative;
  padding-left: 0;
}
blockquote::before {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--accent);
  margin-bottom: 1.5rem;
}
.manifesto-inner p {
  color: var(--fg-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
}
.manifesto-inner p:last-child { margin-bottom: 0; }

/* Showcase */
.showcase {
  padding: 6rem 2rem;
  background: var(--bg-alt);
}
.examples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: 960px;
}
.example {
  background: var(--bg);
  border: 1px solid rgba(255, 51, 102, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
}
.example-visual {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.example-visual svg { width: 100%; height: 100%; display: block; }
.example-input {
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin-bottom: 0.5rem;
}
.example-input em { color: var(--fg); font-style: normal; }
.example-output {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.5;
}
.example-output strong { color: var(--fg); font-weight: 500; }

/* Closing */
.closing {
  padding: 8rem 2rem;
  background: var(--bg);
  text-align: center;
}
.closing-statement {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--fg);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* Footer */
.footer {
  padding: 3rem 2rem;
  border-top: 1px solid rgba(255, 51, 102, 0.1);
  background: var(--bg);
  text-align: center;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.75rem;
}
.footer-logo .accent { color: var(--accent); }
.footer-tagline {
  font-size: 0.85rem;
  color: var(--fg-muted);
  font-weight: 300;
}

/* Peculiarifier */
.peculiarifier {
  margin-top: 3rem;
  max-width: 760px;
}
.input-row {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
}
.prompt-input {
  flex: 1;
  background: rgba(240, 234, 248, 0.06);
  border: 1px solid rgba(255, 51, 102, 0.25);
  border-radius: 12px;
  padding: 0.9rem 1.25rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--fg);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.prompt-input::placeholder { color: var(--fg-muted); opacity: 0.7; }
.prompt-input:focus {
  border-color: var(--accent);
  background: rgba(240, 234, 248, 0.09);
}
.peculiarify-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 0.9rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s, transform 0.1s;
  letter-spacing: 0.01em;
}
.peculiarify-btn:hover { opacity: 0.88; }
.peculiarify-btn:active { transform: scale(0.97); }
.peculiarify-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.input-hint {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--fg-muted);
  opacity: 0.6;
}
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.result-card {
  background: rgba(240, 234, 248, 0.04);
  border: 1px solid rgba(255, 51, 102, 0.15);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.result-card:hover { border-color: rgba(255, 51, 102, 0.35); }
.result-card .card-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.result-card .card-placeholder {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 51, 102, 0.06);
  color: var(--fg-muted);
  font-size: 0.8rem;
}
.result-card .card-prompt {
  padding: 1rem 1rem 1.25rem;
  font-size: 0.82rem;
  color: var(--fg-muted);
  line-height: 1.5;
  font-style: italic;
}
.result-card .card-actions {
  padding: 0 1rem 1rem;
}
.result-card .download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 51, 102, 0.15);
  color: var(--fg);
  border: none;
  border-radius: 8px;
  padding: 0.45rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}
.result-card .download-btn:hover { background: rgba(255, 51, 102, 0.28); }
.loading-indicator {
  margin-top: 2.5rem;
  text-align: center;
  color: var(--fg-muted);
  font-size: 0.9rem;
}
.loading-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 0.75rem;
}
.loading-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.2s ease-in-out infinite;
}
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes pulse {
  0%, 80%, 100% { opacity: 0.25; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1); }
}

/* Responsive */
@media (max-width: 640px) {
  .hero { padding: 3rem 1.5rem 5rem; }
  .how, .manifesto, .showcase, .closing { padding: 4rem 1.5rem; }
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .examples { grid-template-columns: 1fr; }
  .input-row { flex-direction: column; }
  .peculiarify-btn { width: 100%; }
  .results-grid { grid-template-columns: 1fr; }
}