@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap");

:root {
  --bg: #fdfbff;
  --panel: #ffffff;
  --panel-2: #f6f1fb;
  --border: #e8dff2;
  --amber: #ffabce;
  --amber-dim: #c9a3ec;
  --teal: #8ec6ec;
  --yellow: #ffe38a;
  --text: #4a3f57;
  --muted: #635673;
  --danger: #ff8f8f;
  --amber-text: #d1447e;
  --purple-text: #7a52b8;
  --teal-text: #2f7ab0;
  --border-dark: #2b2733;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 171, 206, 0.3), transparent 45%),
    radial-gradient(circle at 88% 12%, rgba(142, 198, 236, 0.28), transparent 45%),
    radial-gradient(circle at 50% 100%, rgba(255, 227, 138, 0.22), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
  margin: 0;
}

.watermark {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 360px;
  max-width: 55vw;
  opacity: 0.22;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

main,
.footer {
  position: relative;
  z-index: 1;
}

.section-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

code {
  font-family: "IBM Plex Mono", monospace;
  background: var(--panel-2);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 13px 22px;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease;
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary {
  background: linear-gradient(135deg, var(--amber), var(--amber-dim));
  color: #1c1815;
  box-shadow: 0 8px 24px rgba(255, 171, 206, 0.35);
}
.btn-ghost {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-lg {
  padding: 16px 30px;
  font-size: 15px;
}

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 251, 255, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.nav-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--amber), var(--amber-dim));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  color: #1c1815;
  flex-shrink: 0;
}
.nav-brand-text {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.5px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a {
  color: var(--text);
  text-decoration: none;
}
.nav-links a:hover {
  color: var(--amber-text);
}
.nav-cta {
  background: linear-gradient(135deg, var(--amber), var(--amber-dim));
  color: #1c1815 !important;
  padding: 9px 16px;
  border-radius: 10px;
  font-weight: 600;
}
.nav-toggle,
.nav-toggle-input {
  display: none;
}

/* ---------- HERO ---------- */
.hero {
  padding: 72px 24px 56px;
  text-align: center;
}
.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}
.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--amber-text);
  background: rgba(255, 171, 206, 0.15);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
  letter-spacing: 0.3px;
}
.hero h1 {
  font-size: 40px;
  line-height: 1.2;
  margin-bottom: 18px;
}
.hero-sub {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 28px;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.hero-note {
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- SECTIONS ---------- */
.section {
  padding: 64px 0;
}
.section-alt {
  background: var(--panel-2);
}
.section h2 {
  font-size: 28px;
  text-align: center;
  margin-bottom: 10px;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  font-size: 14.5px;
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.6;
}
.section-sub.small {
  margin-bottom: 28px;
}

/* ---------- FEATURES ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.feature-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
}
.feature-icon {
  font-size: 26px;
  margin-bottom: 10px;
}
.feature-card h3 {
  font-size: 15.5px;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ---------- STEPS ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.step {
  text-align: center;
}
.step-num {
  width: 36px;
  height: 36px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--amber-dim));
  color: #1c1815;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}
.step h3 {
  font-size: 15px;
  margin-bottom: 6px;
}
.step p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ---------- USAGE FLOW ---------- */
.flow-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 640px;
}
.flow-item {
  display: flex;
  gap: 18px;
  position: relative;
  padding-bottom: 32px;
}
.flow-item:last-child {
  padding-bottom: 0;
}
.flow-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 36px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.flow-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--amber-dim));
  color: #1c1815;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  z-index: 1;
}
.flow-body h3 {
  font-size: 15.5px;
  margin-bottom: 6px;
}
.flow-body p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ---------- DEMO: PROMPT EXAMPLES ---------- */
.demo-subhead {
  font-size: 17px;
  margin: 8px 0 18px;
}
.prompt-examples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-bottom: 48px;
}
.prompt-card {
  background: #0e0c0a;
  border-radius: 14px;
  padding: 18px;
  color: #f2ede6;
}
.prompt-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: var(--amber-dim);
  margin-bottom: 12px;
}
.prompt-card-body {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
  line-height: 1.7;
  margin: 0 0 12px;
}
.mini-copy-btn {
  background: none;
  border: 1px solid var(--border-dark);
  color: var(--teal);
  font-size: 11.5px;
  padding: 7px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-family: "Inter", sans-serif;
}
.mini-copy-btn:hover {
  border-color: var(--teal);
}

/* ---------- DEMO: RESULT GALLERY ---------- */
.result-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin: 0;
}
.result-card {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.result-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  background: var(--panel-2);
}
.result-card-empty-label {
  display: none;
}
.result-card.is-empty img {
  display: none;
}
.result-card.is-empty .result-card-empty-label {
  display: flex;
  aspect-ratio: 4 / 5;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  background: repeating-linear-gradient(
    45deg,
    var(--panel-2),
    var(--panel-2) 10px,
    #eee6f7 10px,
    #eee6f7 20px
  );
  padding: 12px;
}
.result-card figcaption {
  padding: 10px 14px;
  font-size: 12.5px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

/* ---------- CTA BANNER ---------- */
.cta-banner {
  padding: 60px 24px;
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 171, 206, 0.25), rgba(201, 163, 236, 0.25));
}
.cta-inner h2 {
  margin-bottom: 10px;
}
.cta-inner p {
  color: var(--muted);
  margin-bottom: 24px;
}

/* ---------- FOOTER ---------- */
.footer {
  padding: 24px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}
.footer-inner a {
  color: var(--teal-text);
  text-decoration: none;
}
.version-tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 720px) {
  .nav-toggle {
    display: block;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--panel);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 16px;
    display: none;
  }
  .nav-links a {
    width: 100%;
    padding: 10px 0;
  }
  .nav-toggle-input:checked ~ .nav-links {
    display: flex;
  }
  .hero h1 {
    font-size: 30px;
  }
}
