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

:root {
  --primary: #7c3aed;
  --primary-dark: #6d28d9;
  --primary-light: #ede9fe;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #ffffff;
  --bg2: #f9fafb;
  --radius: 12px;
}

body { font-family: 'Inter', system-ui, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }

/* NAV */
nav { position: sticky; top: 0; background: rgba(255,255,255,0.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); z-index: 100; }
.nav-inner { max-width: 1100px; margin: 0 auto; padding: 0.875rem 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.logo { font-weight: 700; font-size: 1.1rem; text-decoration: none; color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 0.9rem; }
.nav-links a:hover { color: var(--text); }
.btn-nav { background: var(--primary); color: white !important; padding: 0.4rem 1rem; border-radius: 6px; font-weight: 500; }

/* HERO */
.hero { text-align: center; padding: 5rem 1.5rem 3rem; background: linear-gradient(160deg, #f5f3ff 0%, #ffffff 60%); }
.badge { display: inline-block; background: var(--primary-light); color: var(--primary); padding: 0.35rem 1rem; border-radius: 20px; font-size: 0.85rem; font-weight: 600; margin-bottom: 1.5rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; line-height: 1.15; margin-bottom: 1.25rem; }
.highlight { color: var(--primary); }
.hero-sub { font-size: 1.15rem; color: var(--muted); max-width: 580px; margin: 0 auto 1.5rem; }
.hero-stats { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.hero-stats span { display: flex; align-items: center; gap: 0.3rem; }

/* TOOL */
.tool { padding: 3rem 1.5rem; }
.tool-inner { max-width: 760px; margin: 0 auto; }
.tool-form h2 { font-size: 1.5rem; margin-bottom: 1.5rem; }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.4rem; }
.req { color: var(--primary); }
.field input, .field textarea, .field select {
  width: 100%; padding: 0.65rem 0.9rem;
  border: 1px solid var(--border); border-radius: 8px;
  font-size: 0.95rem; font-family: inherit;
  transition: border-color 0.15s;
  background: var(--bg);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}
.field textarea { resize: vertical; }
.char-count { font-size: 0.75rem; color: var(--muted); float: right; margin-top: 0.25rem; }

.btn-primary {
  width: 100%; padding: 0.875rem; background: var(--primary); color: white;
  border: none; border-radius: var(--radius); font-size: 1rem; font-weight: 600;
  cursor: pointer; transition: background 0.15s;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.free-note { text-align: center; font-size: 0.8rem; color: var(--muted); margin-top: 0.75rem; }
.free-note a { color: var(--primary); text-decoration: none; }

/* RESULT */
.tool-result { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.result-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; flex-wrap: wrap; gap: 0.75rem; }
.result-header h3 { font-size: 1.1rem; }
.result-actions { display: flex; gap: 0.5rem; }
.btn-secondary { padding: 0.4rem 0.875rem; background: white; border: 1px solid var(--border); border-radius: 6px; font-size: 0.85rem; cursor: pointer; }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.result-text { white-space: pre-wrap; font-size: 0.95rem; line-height: 1.8; color: var(--text); margin-bottom: 1.25rem; }
.btn-outline { padding: 0.5rem 1rem; background: transparent; border: 1px solid var(--border); border-radius: 6px; cursor: pointer; font-size: 0.875rem; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.error-box { background: #fef2f2; border: 1px solid #fecaca; border-radius: var(--radius); padding: 1rem 1.25rem; color: #dc2626; font-size: 0.9rem; }

/* HOW IT WORKS */
.how { padding: 5rem 1.5rem; background: var(--bg2); text-align: center; }
.how h2 { font-size: 2rem; font-weight: 700; margin-bottom: 2.5rem; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; max-width: 900px; margin: 0 auto; }
.step { padding: 1.5rem; background: white; border-radius: var(--radius); box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.step-num { width: 42px; height: 42px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; margin: 0 auto 1rem; }
.step h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.step p { font-size: 0.9rem; color: var(--muted); }

/* TESTIMONIALS */
.testimonials { padding: 5rem 1.5rem; text-align: center; }
.testimonials h2 { font-size: 2rem; margin-bottom: 2.5rem; }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; max-width: 1000px; margin: 0 auto; }
.testimonial { padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius); text-align: left; }
.testimonial p { font-style: italic; color: var(--text); margin-bottom: 0.75rem; line-height: 1.7; }
.author { font-size: 0.85rem; font-weight: 600; color: var(--muted); }

/* PRICING */
.pricing { padding: 5rem 1.5rem; background: var(--bg2); text-align: center; }
.pricing h2 { font-size: 2rem; margin-bottom: 0.5rem; }
.pricing-sub { color: var(--muted); margin-bottom: 2.5rem; }
.plans { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
.plan { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; width: 280px; text-align: left; position: relative; }
.plan.featured { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary); }
.popular-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary); color: white; font-size: 0.75rem; font-weight: 600; padding: 0.25rem 0.75rem; border-radius: 20px; white-space: nowrap; }
.plan h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.price { font-size: 2.25rem; font-weight: 800; margin-bottom: 1.25rem; }
.price span { font-size: 0.9rem; font-weight: 400; color: var(--muted); }
.plan ul { list-style: none; margin-bottom: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.9rem; }
.btn-primary.plan-btn, .plan .btn-primary { padding: 0.75rem; font-size: 0.95rem; }
.btn-outline-full { display: block; width: 100%; padding: 0.75rem; text-align: center; border: 1px solid var(--border); border-radius: 8px; text-decoration: none; font-size: 0.95rem; font-weight: 500; cursor: pointer; background: transparent; }
.btn-outline-full:hover { border-color: var(--primary); color: var(--primary); }

/* FAQ */
.faq { padding: 5rem 1.5rem; max-width: 760px; margin: 0 auto; }
.faq h2 { font-size: 2rem; margin-bottom: 2rem; text-align: center; }
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
details { border: 1px solid var(--border); border-radius: 8px; padding: 1rem 1.25rem; }
details[open] { background: var(--bg2); }
summary { font-weight: 500; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
summary::after { content: '+'; font-size: 1.25rem; color: var(--muted); }
details[open] summary::after { content: '−'; }
details p { margin-top: 0.75rem; color: var(--muted); font-size: 0.9rem; line-height: 1.7; }

/* FOOTER */
footer { border-top: 1px solid var(--border); padding: 2rem 1.5rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: 0.85rem; color: var(--muted); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

@media (max-width: 600px) {
  .hero { padding: 3rem 1rem 2rem; }
  .nav-links a:not(.btn-nav):not(:last-child) { display: none; }
  .hero-stats { gap: 0.75rem; font-size: 0.8rem; }
}
