:root {
  --bg: #0a0612;
  --bg-2: #12081f;
  --fg: #f4f0ff;
  --muted: #a89bb8;
  --line: rgba(255, 80, 200, 0.22);
  --magenta: #ff2d95;
  --cyan: #2de2ff;
  --yellow: #ffe566;
  --purple: #9b5cff;
  --accent: var(--magenta);
  --card: rgba(22, 12, 40, 0.55);
  --glass: rgba(255, 255, 255, 0.04);
  --max: 1100px;
  --pad: clamp(1.25rem, 4vw, 2rem);
  font-family: Inter, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 45% at 15% 10%, rgba(255, 45, 149, 0.2), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(45, 226, 255, 0.14), transparent 50%),
    radial-gradient(ellipse 50% 35% at 50% 85%, rgba(155, 92, 255, 0.14), transparent 55%),
    var(--bg);
}

.particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 10% 20%, rgba(45, 226, 255, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 30% 70%, rgba(255, 45, 149, 0.6), transparent),
    radial-gradient(1px 1px at 50% 30%, rgba(255, 229, 102, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 70% 50%, rgba(45, 226, 255, 0.5), transparent),
    radial-gradient(1px 1px at 85% 15%, rgba(255, 45, 149, 0.55), transparent),
    radial-gradient(1px 1px at 20% 90%, rgba(155, 92, 255, 0.5), transparent);
  opacity: 0.5;
  animation: drift 28s linear infinite;
}

.butterflies {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.bf {
  position: absolute;
  opacity: 0.35;
  filter: drop-shadow(0 0 8px rgba(255, 45, 149, 0.45));
  animation: floaty 12s ease-in-out infinite;
}
.bf-1 { top: 12%; left: 8%; font-size: 1.4rem; animation-delay: 0s; }
.bf-2 { top: 28%; right: 12%; font-size: 1rem; animation-delay: 2s; }
.bf-3 { bottom: 22%; left: 18%; font-size: 1.2rem; animation-delay: 4s; }
.bf-4 { bottom: 14%; right: 20%; font-size: 0.9rem; animation-delay: 1s; }

@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-18px) rotate(6deg); }
}

@media (prefers-reduced-motion: reduce) {
  .particles, .bf { animation: none; }
  html { scroll-behavior: auto; }
  .btn, .home-card { transition: none !important; }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.wrap { width: min(100% - 2 * var(--pad), var(--max)); margin-inline: auto; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem var(--pad);
  background: rgba(10, 6, 18, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(45, 226, 255, 0.15);
  box-shadow: 0 0 40px rgba(255, 45, 149, 0.08);
}
.logo-img {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(45, 226, 255, 0.35));
}
.logo-img-sm { height: 32px; }
.nav-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  flex: 1;
  min-width: 0;
}
.tool-name {
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tool-tag { font-size: 0.68rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.nav-actions { display: none; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.menu-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--fg);
  border-radius: 10px;
  padding: 0.4rem 0.65rem;
  font-size: 1.1rem;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.75rem var(--pad) 1rem;
  background: rgba(12, 6, 22, 0.96);
  border-bottom: 1px solid var(--line);
}
.mobile-nav a, .mobile-nav button {
  background: transparent;
  border: 0;
  text-align: left;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  color: var(--fg);
}
.mobile-nav a:hover, .mobile-nav button:hover {
  background: rgba(255, 45, 149, 0.12);
}

@media (min-width: 900px) {
  .nav-actions { display: flex; }
  .menu-btn { display: none; }
  .mobile-nav { display: none !important; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--magenta), var(--purple));
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 0 24px rgba(255, 45, 149, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 0 32px rgba(255, 45, 149, 0.5); }
.btn-sm { padding: 0.45rem 0.85rem; font-size: 0.85rem; }
.btn-ghost {
  background: transparent;
  border-color: rgba(45, 226, 255, 0.35);
  box-shadow: none;
  color: var(--fg);
}
.btn-ghost:hover { border-color: var(--cyan); box-shadow: 0 0 18px rgba(45, 226, 255, 0.25); }
.btn-neon {
  background: transparent;
  border: 1px solid var(--magenta);
  box-shadow: 0 0 20px rgba(255, 45, 149, 0.35), inset 0 0 20px rgba(255, 45, 149, 0.08);
}
.linkish {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  font: inherit;
}

/* Type */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cyan);
  margin: 0 0 0.6rem;
}
h1 {
  font-size: clamp(1.85rem, 5vw, 3rem);
  line-height: 1.12;
  margin: 0 0 0.85rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}
h2 { margin: 0 0 0.5rem; font-size: 1.25rem; }
h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.lede { color: var(--muted); max-width: 42rem; margin: 0 0 1rem; }
.lede.soft { margin-bottom: 1.5rem; }
.glow-cyan {
  background: linear-gradient(90deg, #7ef9ff, var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 40px rgba(45, 226, 255, 0.25);
}
.glow-magenta {
  background: linear-gradient(90deg, #ff7ec8, var(--magenta));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 40px rgba(255, 45, 149, 0.25);
}
.honest-note {
  background: rgba(155, 92, 255, 0.08);
  border: 1px solid rgba(155, 92, 255, 0.28);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 1.5rem;
}
.tiny { font-size: 0.78rem; color: var(--muted); }

/* Glass / panels */
.glass {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 0 0 1px rgba(255, 45, 149, 0.06), 0 10px 40px rgba(0, 0, 0, 0.25);
}
.panel { padding: 1.25rem; margin-bottom: 1.25rem; }
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.view { padding: 1.5rem 0 3rem; }
.view-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
@media (min-width: 640px) {
  .view-head { flex-direction: row; align-items: flex-start; gap: 1rem; }
}

.hero { margin-bottom: 1.75rem; padding-top: 0.5rem; }

/* Home cards */
.home-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}
@media (min-width: 640px) {
  .primary-grid { grid-template-columns: 1fr 1fr; }
  .soon-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .primary-grid { grid-template-columns: repeat(4, 1fr); }
  .soon-grid { grid-template-columns: repeat(4, 1fr); }
}
.home-card {
  text-align: left;
  padding: 1.15rem 1.2rem 1.25rem;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  position: relative;
  overflow: hidden;
}
button.home-card { width: 100%; background: var(--glass); }
.home-card.spark:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 45, 149, 0.45);
  box-shadow: 0 0 28px rgba(255, 45, 149, 0.22), 0 0 28px rgba(45, 226, 255, 0.12);
}
.home-card.soon {
  opacity: 0.72;
  cursor: not-allowed;
}
.home-icon { font-size: 1.5rem; display: block; margin-bottom: 0.5rem; }
.home-card p { color: var(--muted); font-size: 0.9rem; margin: 0 0 0.85rem; }
.chip {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(45, 226, 255, 0.12);
  border: 1px solid rgba(45, 226, 255, 0.35);
  color: var(--cyan);
}
.chip-soon {
  background: rgba(255, 229, 102, 0.08);
  border-color: rgba(255, 229, 102, 0.35);
  color: var(--yellow);
}
.soon-block .eyebrow { margin-bottom: 0.85rem; }

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 720px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .full { grid-column: 1 / -1; }
  .form-grid .grow { grid-column: span 1; }
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field > span { font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  background: rgba(8, 4, 16, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  outline: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(45, 226, 255, 0.15);
}
.color-row { display: flex; gap: 0.5rem; align-items: center; }
.color-row input[type="color"] {
  width: 44px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  background: transparent;
}
.color-row input[type="text"] { flex: 1; }
.consent {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(255, 45, 149, 0.06);
  border: 1px solid rgba(255, 45, 149, 0.22);
  border-radius: 14px;
  padding: 0.85rem 1rem;
}
.consent input { margin-top: 0.25rem; accent-color: var(--magenta); flex-shrink: 0; }
.consent span { font-size: 0.88rem; color: var(--muted); }
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.15rem;
}
.status {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  color: var(--cyan);
}
.status.err { color: #ff8ab8; }

.dropzone {
  position: relative;
  border: 1.5px dashed rgba(45, 226, 255, 0.4);
  border-radius: 16px;
  padding: 1.35rem 1rem;
  text-align: center;
  background: rgba(45, 226, 255, 0.04);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.dropzone.drag { border-color: var(--magenta); background: rgba(255, 45, 149, 0.08); }
.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.dropzone p { margin: 0.2rem 0; color: var(--muted); }
.thumb-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.85rem;
}
.thumb {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 12px rgba(255, 45, 149, 0.2);
}

.char-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
@media (min-width: 640px) {
  .char-grid { grid-template-columns: 1fr 1fr; }
}
.char-card {
  display: flex;
  gap: 0.85rem;
  padding: 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}
.char-avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 45, 149, 0.45), rgba(45, 226, 255, 0.35));
  display: grid;
  place-items: center;
  font-weight: 800;
  flex-shrink: 0;
  overflow: hidden;
}
.char-avatar img { width: 100%; height: 100%; object-fit: cover; }
.char-meta { min-width: 0; flex: 1; }
.char-meta h3 { margin: 0 0 0.15rem; font-size: 1rem; }
.char-meta p { margin: 0; font-size: 0.82rem; color: var(--muted); }
.char-actions { display: flex; gap: 0.4rem; margin-top: 0.55rem; flex-wrap: wrap; }
.empty {
  color: var(--muted);
  font-size: 0.92rem;
  padding: 0.5rem 0;
}

.privacy { padding: 1rem 1.15rem; margin-top: 0.5rem; }
.privacy h3 { color: var(--cyan); font-size: 0.95rem; }
.privacy p { margin: 0; color: var(--muted); font-size: 0.88rem; }
.privacy a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }

/* Photo previews */
.preview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 720px) {
  .preview-grid { grid-template-columns: repeat(3, 1fr); }
}
.preview-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #10081c;
}
.preview-stage {
  position: relative;
  width: 100%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 45, 149, 0.35), transparent 45%),
    radial-gradient(circle at 70% 60%, rgba(45, 226, 255, 0.3), transparent 50%),
    linear-gradient(160deg, #1a0b2e, #0c1528 60%, #1a0820);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 1rem;
}
.preview-stage[data-aspect="9:16"] { aspect-ratio: 9 / 16; }
.preview-stage[data-aspect="1:1"] { aspect-ratio: 1 / 1; }
.preview-stage[data-aspect="4:5"] { aspect-ratio: 4 / 5; }
.preview-stage[data-aspect="16:9"] { aspect-ratio: 16 / 9; }
.preview-stage .sparkle {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 70% 40%, rgba(255,229,102,0.8), transparent),
    radial-gradient(1.5px 1.5px at 40% 75%, rgba(45,226,255,0.8), transparent);
  opacity: 0.7;
  pointer-events: none;
}
.preview-stage .label {
  position: relative;
  z-index: 1;
  font-size: 0.85rem;
  text-shadow: 0 0 12px rgba(255, 45, 149, 0.6);
}
.preview-body { padding: 0.85rem 0.95rem 1rem; }
.preview-body h3 { font-size: 0.95rem; margin: 0 0 0.35rem; }
.preview-body p { margin: 0; font-size: 0.82rem; color: var(--muted); }
.plan-box {
  margin-top: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  font-size: 0.8rem;
  color: var(--fg);
  white-space: pre-wrap;
}

/* Writer */
.draft-out {
  margin: 0;
  white-space: pre-wrap;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--fg);
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Brand preview */
.brand-preview { padding: 1.25rem; }
.brand-swatches { display: flex; gap: 0.5rem; margin-bottom: 0.85rem; }
.swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 12px rgba(255, 45, 149, 0.25);
}

/* Pricing */
.price-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 720px) {
  .price-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .price-grid { grid-template-columns: repeat(4, 1fr); }
}
.price-card {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  position: relative;
}
.price-card.featured {
  border-color: rgba(255, 45, 149, 0.45);
  box-shadow: 0 0 32px rgba(255, 45, 149, 0.2);
}
.price-card .badge {
  position: absolute;
  top: -0.55rem;
  right: 1rem;
  background: linear-gradient(90deg, var(--magenta), var(--purple));
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
}
.price { margin: 0; font-size: 2rem; font-weight: 900; }
.price span {
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.price small { font-size: 0.95rem; color: var(--muted); font-weight: 600; margin-left: 0.15rem; }
.price-desc { color: var(--muted); margin: 0; font-size: 0.9rem; }
.price-card ul {
  margin: 0.25rem 0 0.75rem;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.88rem;
  flex: 1;
}
.price-card li { margin-bottom: 0.3rem; }
.price-card .btn { width: 100%; margin-top: auto; }

/* Footer */
.footer {
  border-top: 1px solid rgba(45, 226, 255, 0.12);
  padding: 1.5rem var(--pad) 2rem;
  margin-top: 1rem;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-links a:hover, .footer-links .linkish:hover { color: var(--cyan); }
.copy {
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  margin: 1.25rem 0 0;
}
