/* ==========================================================
   DeckForge — style.css
   Dark aurora palette · indigo–violet gradient accent
   ========================================================== */

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

:root {
  --bg:        #07090f;
  --surface:   #0c1020;
  --surface2:  #111628;
  --surface3:  #171d30;

  --border:        rgba(255,255,255,.07);
  --border-bright: rgba(255,255,255,.13);

  --accent:      #6366f1;
  --accent2:     #8b5cf6;
  --accent-h:    #4f52d8;
  --accent-s:    #a5b4fc;
  --accent-glow: rgba(99,102,241,.22);

  --text:       #e8ecff;
  --text-muted: #5c6480;
  --text-sub:   #8892b0;

  --success: #10b981;
  --error:   #f43f5e;

  --radius:    14px;
  --radius-sm: 8px;

  --shadow: 0 8px 48px rgba(0,0,0,.55);
  --glow:   0 0 48px rgba(99,102,241,.13);

  --trans: .18s ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Background blobs ──────────────────────────────────── */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  animation: blob-drift 28s ease-in-out infinite;
}
.blob-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, #6366f1 0%, transparent 70%);
  top: -200px; left: -200px;
  opacity: 0.15;
  animation-duration: 30s;
}
.blob-2 {
  width: 560px; height: 560px;
  background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
  bottom: -160px; right: -160px;
  opacity: 0.11;
  animation-duration: 36s;
  animation-delay: -12s;
}
.blob-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
  top: 40%; left: 55%;
  opacity: 0.07;
  animation-duration: 42s;
  animation-delay: -22s;
}

@keyframes blob-drift {
  0%,100% { transform: translate(0,0)      scale(1);    }
  25%      { transform: translate(30px,-40px) scale(1.06); }
  50%      { transform: translate(-20px,30px) scale(0.94); }
  75%      { transform: translate(40px,20px)  scale(1.03); }
}

body > *:not(.bg-blobs) { position: relative; z-index: 1; }

a { color: var(--accent-s); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Nav ───────────────────────────────────────────────── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(7,9,15,.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 100;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo:hover { text-decoration: none; }
.nav-logo span {
  background: linear-gradient(135deg, #818cf8 20%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: .85rem;
}

.nav-link {
  font-size: .875rem;
  color: var(--text-sub);
  text-decoration: none;
  transition: color var(--trans);
}
.nav-link:hover { color: var(--text); text-decoration: none; }

.nav-license {
  display: flex;
  align-items: center;
  gap: .35rem;
}
.nav-license input {
  width: 170px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .4rem .7rem;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: .75rem;
  outline: none;
  transition: border-color var(--trans);
}
.nav-license input:focus { border-color: rgba(99,102,241,.5); }
.nav-license input::placeholder { color: var(--text-muted); font-family: inherit; }

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem 1.35rem;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all var(--trans);
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: scale(.97) !important; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(99,102,241,.3);
}
.btn-primary:hover {
  opacity: .92;
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(99,102,241,.4);
  text-decoration: none;
}

.btn-outline {
  background: var(--surface3);
  border: 1px solid var(--border-bright);
  color: var(--text-sub);
}
.btn-outline:hover {
  border-color: rgba(99,102,241,.4);
  color: var(--accent-s);
  background: rgba(99,102,241,.06);
  text-decoration: none;
}

.btn-sm {
  padding: .38rem .85rem;
  font-size: .8rem;
}

.btn:disabled {
  opacity: .35;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ── Checkout banners ──────────────────────────────────── */
.checkout-banner {
  display: none;
  max-width: 860px;
  margin: 1rem auto 0;
  padding: .85rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  text-align: center;
}
.checkout-banner.visible { display: block; }

#checkout-success {
  background: rgba(16,185,129,.08);
  border: 1px solid rgba(16,185,129,.22);
  color: var(--success);
}
#checkout-cancelled {
  background: rgba(244,63,94,.06);
  border: 1px solid rgba(244,63,94,.18);
  color: var(--error);
}

/* ── Hero ──────────────────────────────────────────────── */
#hero {
  padding: 5.5rem 2rem 2.5rem;
  text-align: center;
}

.hero-inner {
  max-width: 760px;
  margin: 0 auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(99,102,241,.1);
  border: 1px solid rgba(99,102,241,.28);
  color: var(--accent-s);
  font-size: .72rem;
  font-weight: 700;
  padding: .35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.6rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.035em;
  margin-bottom: 1.25rem;
}

.highlight {
  background: linear-gradient(135deg, #818cf8 0%, #a78bfa 35%, #c084fc 65%, #818cf8 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 6s linear infinite;
}

@keyframes gradient-shift {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-sub);
  line-height: 1.75;
  max-width: 580px;
  margin: 0 auto 1rem;
}

.hero-social-proof {
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}
.hero-social-proof .count { color: var(--success); font-weight: 700; }

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  flex-wrap: wrap;
  margin-bottom: .75rem;
}

.hero-note {
  font-size: .75rem;
  color: var(--text-muted);
}

/* ── Slide strip ───────────────────────────────────────── */
.slide-strip-wrap {
  padding: 0 1rem 4rem;
}
.slide-strip-inner {
  max-width: 920px;
  margin: 0 auto;
}
.slide-strip-label {
  text-align: center;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.slide-strip {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding-bottom: .5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--surface3) transparent;
}
.slide-chip {
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .65rem 1rem;
  min-width: 96px;
  text-align: center;
}
.slide-chip.accent {
  border-color: rgba(99,102,241,.35);
  background: rgba(99,102,241,.07);
}
.slide-num {
  font-size: .6rem;
  font-weight: 700;
  color: var(--accent-s);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: .2rem;
}
.slide-name {
  font-size: .75rem;
  font-weight: 600;
  color: var(--text);
}
.slide-sub {
  font-size: .6rem;
  color: var(--text-muted);
  margin-top: .1rem;
}
.strip-note {
  text-align: center;
  font-size: .76rem;
  color: var(--text-muted);
  margin-top: .85rem;
}
.strip-note a { color: var(--accent-s); }

/* ── Tool section ──────────────────────────────────────── */
#tool {
  padding: 0 1rem 5rem;
}

.tool-card {
  max-width: 860px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem;
  box-shadow: var(--shadow), var(--glow);
  position: relative;
  overflow: hidden;
}
.tool-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(99,102,241,.6) 40%, rgba(139,92,246,.6) 60%, transparent 100%);
}

/* ── Form ──────────────────────────────────────────────── */
.tool-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.form-group label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-sub);
  letter-spacing: .01em;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--surface2);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-sm);
  padding: .7rem .9rem;
  color: var(--text);
  font-family: inherit;
  font-size: .9rem;
  outline: none;
  transition: border-color var(--trans), box-shadow var(--trans);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: rgba(99,102,241,.55);
  box-shadow: 0 0 0 3px rgba(99,102,241,.08);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group textarea { resize: vertical; min-height: 130px; line-height: 1.65; }
.form-group select { cursor: pointer; }
.form-group select option { background: #111628; }

.char-count {
  font-size: .72rem;
  color: var(--text-muted);
  text-align: right;
}
.char-count.near { color: #f59e0b; }
.char-count.over { color: var(--error); }

/* ── Generate row ──────────────────────────────────────── */
.generate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  padding-top: .25rem;
}

.free-note {
  font-size: .8rem;
  color: var(--text-muted);
}
.free-note strong {
  color: var(--text-sub);
  font-weight: 600;
}

.btn-generate {
  font-size: .95rem;
  padding: .72rem 2rem;
}

/* ── Spinner ───────────────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 15px; height: 15px;
  border: 2px solid rgba(255,255,255,.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Error banner ──────────────────────────────────────── */
.error-banner {
  display: none;
  margin-top: 1rem;
  padding: .85rem 1rem;
  background: rgba(244,63,94,.08);
  border: 1px solid rgba(244,63,94,.22);
  border-radius: var(--radius-sm);
  color: var(--error);
  font-size: .875rem;
}
.error-banner.visible { display: block; }

/* ── Result box ────────────────────────────────────────── */
.result-box {
  display: none;
  margin-top: 1.75rem;
  background: rgba(16,185,129,.05);
  border: 1px solid rgba(16,185,129,.2);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.result-box.visible { display: block; }

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: .75rem;
}

.result-meta {
  font-size: .82rem;
  color: var(--text-sub);
}
.result-meta strong { color: var(--text); font-weight: 600; }

.result-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

.result-hint {
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: .25rem;
}

/* ── How it works ──────────────────────────────────────── */
#how {
  padding: 5rem 1.5rem;
}
.section-label {
  text-align: center;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent-s);
  margin-bottom: .75rem;
}
.section-title {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -.025em;
  margin-bottom: 3rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: border-color var(--trans), transform var(--trans);
}
.step-card:hover {
  border-color: rgba(99,102,241,.3);
  transform: translateY(-3px);
}

.step-num-big {
  font-size: 2.75rem;
  font-weight: 800;
  color: rgba(99,102,241,.15);
  line-height: 1;
  letter-spacing: -.04em;
  margin-bottom: .85rem;
}

.step-card h3 {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: .45rem;
}
.step-card p {
  font-size: .845rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Pricing ───────────────────────────────────────────── */
#pricing {
  padding: 5rem 1.5rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: border-color var(--trans), transform var(--trans);
  position: relative;
}
.pricing-card:hover {
  border-color: rgba(99,102,241,.35);
  transform: translateY(-3px);
}

.pricing-card--featured {
  border-color: rgba(99,102,241,.4);
  background: linear-gradient(135deg, rgba(99,102,241,.08) 0%, rgba(139,92,246,.05) 100%);
  box-shadow: 0 0 40px rgba(99,102,241,.12), inset 0 1px 0 rgba(99,102,241,.2);
}
.pricing-card--featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .25rem .85rem;
  border-radius: 0 0 8px 8px;
}

.pricing-tier {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--text-muted);
  margin-bottom: .6rem;
  margin-top: .75rem;
}
.pricing-card--featured .pricing-tier { color: var(--accent-s); }

.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1;
  margin-bottom: .3rem;
}
.pricing-mo {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-sub);
}

.pricing-cycle {
  font-size: .78rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-bottom: 1.75rem;
  flex: 1;
}
.pricing-features li {
  font-size: .875rem;
  color: var(--text-sub);
  padding-left: 1.4rem;
  position: relative;
}
.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.pricing-card .btn { width: 100%; justify-content: center; }

.pricing-note {
  text-align: center;
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 2rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* ── FAQ ───────────────────────────────────────────────── */
#faq {
  padding: 5rem 1.5rem;
}
.faq-inner {
  max-width: 720px;
  margin: 0 auto;
}
.faq-list { display: flex; flex-direction: column; gap: .45rem; }

details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--trans);
}
details:hover { border-color: var(--border-bright); }
details[open] { border-color: rgba(99,102,241,.3); }

summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--text);
  user-select: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+';
  font-size: 1.1rem;
  color: var(--accent-s);
  flex-shrink: 0;
  transition: transform var(--trans);
}
details[open] summary::after { transform: rotate(45deg); }

.faq-answer {
  padding: .85rem 1.25rem 1.1rem;
  font-size: .875rem;
  color: var(--text-sub);
  line-height: 1.72;
  border-top: 1px solid var(--border);
}

/* ── Guides ────────────────────────────────────────────── */
#guides {
  padding: 5rem 1.5rem;
}
.guides-inner {
  max-width: 960px;
  margin: 0 auto;
}
.guides-header {
  margin-bottom: 2rem;
}
.guides-header h2 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -.025em;
  margin-bottom: .4rem;
}
.guides-header p {
  color: var(--text-sub);
  font-size: .95rem;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 1rem;
}
.guide-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  transition: border-color var(--trans), transform var(--trans);
}
.guide-card:hover {
  border-color: rgba(99,102,241,.35);
  transform: translateY(-2px);
  text-decoration: none;
}
.guide-tag {
  font-size: .67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent-s);
}
.guide-card h3 {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.45;
}
.guide-card p {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.guide-arrow { font-size: .8rem; color: var(--accent-s); margin-top: auto; }

/* ── Footer ────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: .82rem;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: center;
  margin-top: .75rem;
}
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--text-sub); text-decoration: none; }

/* ── Gate modal ────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.visible { display: flex; }

.modal {
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: calc(var(--radius) + 4px);
  padding: 2.5rem 2rem;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: fadeUp .25s ease both;
}
.modal::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,.65), rgba(139,92,246,.65), transparent);
}
.modal-icon { font-size: 2rem; margin-bottom: 1rem; }
.modal h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: .5rem;
  letter-spacing: -.015em;
}
.modal p {
  color: var(--text-sub);
  font-size: .88rem;
  margin-bottom: 1.5rem;
  line-height: 1.65;
}

.plan-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
  margin-bottom: 1.1rem;
}
.plan-card {
  background: var(--surface2);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  padding: 1.35rem 1rem;
  text-align: left;
  transition: all var(--trans);
}
.plan-card:hover { border-color: rgba(99,102,241,.4); transform: translateY(-2px); }
.plan-card.featured {
  border-color: rgba(99,102,241,.4);
  background: rgba(99,102,241,.08);
}
.plan-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  padding: .18rem .6rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: .45rem;
}
.plan-name {
  font-size: .67rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .09em;
  margin-bottom: .3rem;
}
.plan-price {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: .15rem;
}
.plan-desc {
  font-size: .78rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}
.plan-card .btn { width: 100%; justify-content: center; font-size: .82rem; }

.modal-dismiss {
  font-size: .8rem;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  font-family: inherit;
  transition: color var(--trans);
}
.modal-dismiss:hover { color: var(--text-sub); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Hero animations ───────────────────────────────────── */
#hero .badge    { animation: fadeUp .4s ease both .05s; }
#hero h1        { animation: fadeUp .4s ease both .1s;  }
#hero .hero-subtitle { animation: fadeUp .4s ease both .16s; }
#hero .hero-social-proof { animation: fadeUp .4s ease both .2s; }
#hero .hero-ctas { animation: fadeUp .4s ease both .25s; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 700px) {
  nav { padding: .85rem 1rem; gap: .6rem; }
  .nav-license input { width: 130px; }

  h1 { font-size: 2rem; }
  #hero { padding: 4rem 1.25rem 2rem; }

  .form-row { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
  .plan-cards { grid-template-columns: 1fr; }

  .tool-card { padding: 1.5rem; }
  section { padding: 3.5rem 1rem; }
}

@media (max-width: 480px) {
  nav { padding: .75rem .85rem; }
  .nav-license { display: none; }

  #hero { padding: 3rem 1rem 1.75rem; }
  .hero-subtitle { font-size: .95rem; }
  #hero .hero-ctas .btn { width: 100%; justify-content: center; }
  .hero-ctas { flex-direction: column; }

  .tool-card { padding: 1.25rem; }
  section { padding: 3rem 1rem; }

  .pricing-card--featured::before { font-size: .6rem; }
}

/* ── Form tooltip ───────────────────────────────────────── */
.tip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface3);
  border: 1px solid var(--border-bright);
  color: var(--text-muted);
  font-size: .65rem;
  font-weight: 700;
  cursor: pointer;
  margin-left: .35rem;
  position: relative;
  vertical-align: middle;
  transition: background var(--trans), border-color var(--trans);
  font-style: normal;
  line-height: 1;
  user-select: none;
}
.tip-icon:hover,
.tip-icon:focus {
  background: rgba(99,102,241,.15);
  border-color: rgba(99,102,241,.4);
  color: var(--accent-s);
  outline: none;
}

.tip-bubble {
  display: none;
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  background: var(--surface2);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-sm);
  padding: .85rem 1rem;
  font-size: .79rem;
  font-weight: 400;
  color: var(--text-sub);
  line-height: 1.6;
  width: 260px;
  text-align: left;
  z-index: 50;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  pointer-events: none;
}
.tip-bubble strong { color: var(--text); font-weight: 600; }
/* Arrow */
.tip-bubble::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--border-bright);
}
.tip-bubble::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 1px;
  border: 5px solid transparent;
  border-top-color: var(--surface2);
  z-index: 1;
}

.tip-icon:hover .tip-bubble,
.tip-icon:focus .tip-bubble {
  display: block;
  animation: fadeUp .15s ease;
}

/* On mobile keep bubble inside viewport */
@media (max-width: 480px) {
  .tip-bubble {
    left: 0;
    transform: none;
    width: 230px;
  }
  .tip-bubble::after, .tip-bubble::before { left: 12px; }
}

/* ── Generating progress ────────────────────────────────── */
.generating-state {
  display: none;
  padding: 1.75rem 1.25rem 1.5rem;
}
.generating-state.visible { display: block; }

.gen-steps-list {
  display: flex;
  flex-direction: column;
  gap: .28rem;
  max-width: 400px;
  margin: 0 auto 1.4rem;
}

.gen-step {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .42rem .65rem;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  color: var(--text-muted);
  transition: background .35s ease, color .35s ease;
}
.gen-step-icon {
  font-size: .95rem;
  min-width: 22px;
  text-align: center;
  opacity: .3;
  transition: opacity .3s;
}
.gen-step-label { flex: 1; }
.gen-step-check {
  font-size: .8rem;
  color: var(--success);
  opacity: 0;
  transition: opacity .25s;
}

.gen-step.active {
  background: rgba(99,102,241,.09);
  color: var(--text);
  animation: gen-pulse 2s ease infinite;
}
.gen-step.active .gen-step-icon { opacity: 1; }

.gen-step.done { color: var(--text-sub); }
.gen-step.done .gen-step-icon { opacity: .5; }
.gen-step.done .gen-step-check { opacity: 1; }

@keyframes gen-pulse {
  0%, 100% { background: rgba(99,102,241,.09); }
  50%       { background: rgba(99,102,241,.16); }
}

.gen-bar-track {
  height: 3px;
  background: var(--surface3);
  border-radius: 999px;
  max-width: 400px;
  margin: 0 auto .9rem;
  overflow: hidden;
}
.gen-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  width: 0%;
  transition: width 2.8s cubic-bezier(.25,.46,.45,.94);
}
.gen-note {
  font-size: .77rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 400px;
  margin: 0 auto;
}

/* ── Email capture (during generation) ─────────────────── */
.email-capture {
  display: none;
  position: relative;
  max-width: 400px;
  margin: 1.25rem auto 0;
  padding: .9rem 1.1rem;
  background: var(--surface3);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-sm);
  text-align: center;
  animation: fadeUp .3s ease;
}
.email-capture.visible { display: block; }
.email-dismiss-btn {
  position: absolute;
  top: .45rem; right: .6rem;
  background: none; border: none;
  color: var(--text-muted); font-size: 1.1rem;
  cursor: pointer; line-height: 1; padding: .1rem .25rem;
  transition: color var(--trans);
}
.email-dismiss-btn:hover { color: var(--text-sub); }
.email-capture-text {
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: .65rem;
}
.email-capture-row {
  display: flex;
  gap: .45rem;
}
.email-capture-row input {
  flex: 1;
  background: var(--surface2);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-sm);
  padding: .45rem .75rem;
  color: var(--text);
  font-family: inherit;
  font-size: .82rem;
  outline: none;
  transition: border-color var(--trans);
}
.email-capture-row input:focus { border-color: rgba(99,102,241,.5); }
.email-capture-row input::placeholder { color: var(--text-muted); }
.email-capture-row button {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: .45rem .9rem;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: opacity var(--trans);
}
.email-capture-row button:hover { opacity: .88; }
.email-consent-note {
  font-size: .72rem;
  color: var(--text-muted);
  margin: .5rem 0 0;
  line-height: 1.5;
}
.email-consent-note a { color: var(--text-muted); text-decoration: underline; }

/* ── Star rating (post-generation) ─────────────────────── */
.rating-widget {
  border-top: 1px solid var(--border);
  padding: 1rem 1.25rem .75rem;
  text-align: center;
}
.rating-q {
  font-size: .78rem;
  color: var(--text-muted);
  margin-bottom: .55rem;
}
.rating-stars {
  display: flex;
  justify-content: center;
  gap: .1rem;
}
.star-btn {
  background: none;
  border: none;
  font-size: 1.65rem;
  color: var(--surface3);
  cursor: pointer;
  padding: .15rem .2rem;
  transition: color .12s, transform .12s;
  line-height: 1;
  filter: drop-shadow(0 0 0 transparent);
}
.star-btn.lit,
.star-btn.hovered {
  color: #f59e0b;
  transform: scale(1.18);
  filter: drop-shadow(0 0 6px rgba(245,158,11,.35));
}
.rating-thanks {
  display: none;
  font-size: .8rem;
  color: var(--success);
  margin-top: .4rem;
  animation: fadeUp .2s ease;
}
.rating-thanks.visible { display: block; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3.5rem 1.5rem 1.75rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto 2.5rem;
}
.footer-logo {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  background: linear-gradient(135deg, #818cf8, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: .6rem;
}
.footer-tagline {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: .75rem;
}
.footer-email {
  font-size: .8rem;
  color: var(--accent-s);
  text-decoration: none;
  transition: opacity var(--trans);
}
.footer-email:hover { opacity: .75; }
.footer-col-title {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--text-muted);
  margin-bottom: .9rem;
}
.footer-col a {
  display: block;
  font-size: .82rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: .5rem;
  transition: color var(--trans);
}
.footer-col a:hover { color: var(--text-sub); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.footer-bottom p {
  font-size: .77rem;
  color: var(--text-muted);
}

@media (max-width: 700px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
  }
  .footer-brand-col { grid-column: 1 / -1; }
}
@media (max-width: 440px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ── Search overlay (⌘K) ────────────────────────────────── */
.nav-search-btn {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .38rem .7rem;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: inherit;
  font-size: .78rem;
  cursor: pointer;
  transition: all var(--trans);
  white-space: nowrap;
}
.nav-search-btn:hover {
  background: rgba(255,255,255,.09);
  color: var(--text-sub);
  border-color: var(--border-bright);
}
.nav-search-btn svg {
  width: 13px; height: 13px;
  stroke: currentColor; fill: none; stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}
.nav-search-kbd {
  background: var(--surface3);
  border: 1px solid var(--border-bright);
  border-radius: 3px;
  padding: .08rem .32rem;
  font-size: .62rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: .01em;
}

.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(7,9,15,.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  align-items: flex-start;
  justify-content: center;
  padding: 8vh 1rem 2rem;
}
.search-overlay.visible { display: flex; }

.search-box {
  width: 100%;
  max-width: 560px;
  background: var(--surface2);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0,0,0,.7);
  overflow: hidden;
  animation: fadeUp .18s ease;
}
.search-input-row {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .9rem 1.1rem;
  border-bottom: 1px solid var(--border);
}
.search-input-row svg {
  width: 17px; height: 17px;
  stroke: var(--text-muted); fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}
.search-input-row input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: .95rem;
}
.search-input-row input::placeholder { color: var(--text-muted); }
.search-esc-btn {
  background: var(--surface3);
  border: 1px solid var(--border-bright);
  border-radius: 4px;
  color: var(--text-muted);
  font-size: .67rem;
  padding: .12rem .42rem;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  transition: all var(--trans);
  flex-shrink: 0;
}
.search-esc-btn:hover { color: var(--text); border-color: rgba(255,255,255,.2); }

.search-results { max-height: 360px; overflow-y: auto; }
.search-result {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .72rem 1.1rem;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background var(--trans);
}
.search-result:last-child { border-bottom: none; }
.search-result:hover { background: rgba(99,102,241,.09); }
.sr-icon {
  font-size: 1rem;
  min-width: 24px;
  text-align: center;
  opacity: .65;
}
.sr-body { flex: 1; min-width: 0; }
.sr-title {
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sr-desc {
  font-size: .76rem;
  color: var(--text-muted);
  margin-top: .1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sr-arrow {
  color: var(--text-muted);
  font-size: .9rem;
  opacity: 0;
  transition: opacity var(--trans);
}
.search-result:hover .sr-arrow { opacity: 1; }
.search-empty {
  padding: 2rem 1.1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: .85rem;
}

/* ── Toast ──────────────────────────────────────────────── */
.df-toast {
  position: fixed;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%) translateY(140%);
  background: var(--surface2);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-sm);
  padding: .6rem 1.2rem;
  font-size: .84rem;
  color: var(--text);
  z-index: 300;
  transition: transform .3s cubic-bezier(.175,.885,.32,1.275);
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  pointer-events: none;
}
.df-toast.visible { transform: translateX(-50%) translateY(0); }

@media (max-width: 480px) {
  .nav-search-kbd { display: none; }
  .search-overlay { padding-top: 5vh; }
}
