/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-light: #e0e7ff;
  --text: #111827;
  --text-muted: #6b7280;
  --bg: #ffffff;
  --bg-subtle: #f9fafb;
  --border: #e5e7eb;
  --red: #ef4444;
  --yellow: #eab308;
  --green: #22c55e;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

a { text-decoration: none; color: inherit; }

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}

.nav-links a { color: var(--text-muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

.btn-nav {
  background: var(--primary) !important;
  color: white !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s !important;
}
.btn-nav:hover { background: var(--primary-dark) !important; }

/* ===== Buttons ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  transition: background 0.2s, transform 0.1s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-primary.btn-lg { padding: 16px 32px; font-size: 17px; border-radius: 14px; }
.btn-primary.btn-full { width: 100%; justify-content: center; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--primary);
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  border: 2px solid var(--primary);
  transition: background 0.2s;
  cursor: pointer;
}
.btn-secondary:hover { background: var(--primary-light); }
.btn-secondary.btn-full { width: 100%; }

/* ===== Section labels ===== */
.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--primary);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 12px auto 0;
}

/* ===== Hero ===== */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  background: linear-gradient(180deg, #f5f3ff 0%, #ffffff 60%);
}

.badge-top {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.highlight {
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 52px;
}

.cta-note {
  font-size: 13px;
  color: var(--text-muted);
}

/* Demo card */
.demo-card {
  max-width: 680px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  text-align: left;
  border: 1px solid var(--border);
}

.demo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.demo-title { font-weight: 600; color: var(--text); }
.demo-doc { color: var(--text-muted); font-size: 12px; }

.demo-score {
  padding: 20px;
  margin: 16px 20px 0;
  border-radius: 10px;
}

.demo-score.high { background: #fee2e2; color: #991b1b; }

.demo-score-num {
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
}

.demo-score-num span { font-size: 18px; font-weight: 400; opacity: 0.7; }
.demo-score-label { font-size: 14px; font-weight: 700; margin: 4px 0 8px; }
.demo-score-summary { font-size: 12px; line-height: 1.5; opacity: 0.85; }

.demo-clauses { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 10px; }

.clause-demo {
  padding: 12px 14px;
  border-radius: 8px;
  border-left: 4px solid;
}

.clause-demo.red { border-color: var(--red); background: #fff5f5; }
.clause-demo.yellow { border-color: var(--yellow); background: #fefce8; }
.clause-demo.green { border-color: var(--green); background: #f0fdf4; }

.clause-demo-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.5px; margin-bottom: 4px; }
.clause-demo-title { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.clause-demo-body { font-size: 12px; color: #4b5563; line-height: 1.5; }
.clause-demo-tip { font-size: 11px; color: var(--primary); margin-top: 6px; padding-top: 6px; border-top: 1px dashed #e0e7ff; }

/* ===== Proof bar ===== */
.proof-bar {
  background: var(--text);
  color: white;
  padding: 32px 0;
}

.proof-items {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.proof-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 40px;
}

.proof-item strong { font-size: 26px; font-weight: 800; }
.proof-item span { font-size: 13px; color: rgba(255,255,255,0.6); }
.proof-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.15); }

/* ===== Problem ===== */
.problem {
  padding: 96px 0;
  text-align: center;
}

.problem h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.problem-item {
  background: var(--bg-subtle);
  padding: 32px 24px;
  border-radius: var(--radius);
  text-align: center;
}

.problem-icon { font-size: 36px; margin-bottom: 14px; }
.problem-item h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.problem-item p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ===== Features ===== */
.features {
  padding: 96px 0;
  background: var(--bg-subtle);
  text-align: center;
}

.features h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 48px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: white;
  padding: 28px 24px;
  border-radius: var(--radius);
  text-align: left;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature-icon { font-size: 28px; margin-bottom: 14px; }
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ===== How it works ===== */
.how-it-works {
  padding: 96px 0;
  text-align: center;
}

.how-it-works h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 52px;
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.step {
  flex: 1;
  max-width: 280px;
  padding: 0 24px;
}

.step-num {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  color: white;
  font-size: 20px;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.step p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

.step-arrow {
  font-size: 24px;
  color: var(--border);
  padding-top: 14px;
  flex-shrink: 0;
}

/* ===== Testimonials ===== */
.testimonials {
  padding: 96px 0;
  background: var(--bg-subtle);
  text-align: center;
}

.testimonials h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 48px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial {
  background: white;
  padding: 28px 24px;
  border-radius: var(--radius);
  text-align: left;
  border: 1px solid var(--border);
}

.testimonial-stars { color: #f59e0b; font-size: 16px; margin-bottom: 12px; }
.testimonial p { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; font-style: italic; }

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 36px;
  height: 36px;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-author strong { display: block; font-size: 14px; }
.testimonial-author span { font-size: 12px; color: var(--text-muted); }

/* ===== Pricing ===== */
.pricing {
  padding: 96px 0;
  text-align: center;
}

.pricing h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 720px;
  margin: 48px auto 0;
}

.pricing-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  text-align: left;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.pricing-popular {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.pricing-name { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.pricing-price { font-size: 40px; font-weight: 800; line-height: 1; margin-bottom: 8px; }
.pricing-price span { font-size: 16px; font-weight: 400; color: var(--text-muted); }
.pricing-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }

.pricing-features {
  list-style: none;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-features li { font-size: 14px; }

.pricing-note { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 10px; }

.pricing-disclaimer {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 36px auto 0;
  line-height: 1.6;
}

/* ===== FAQ ===== */
.faq {
  padding: 96px 0;
  background: var(--bg-subtle);
}

.faq h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 48px;
  text-align: center;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-q {
  padding: 18px 20px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-q::after { content: '+'; font-size: 20px; color: var(--text-muted); transition: transform 0.2s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }

.faq-a {
  display: none;
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-item.open .faq-a { display: block; }

/* ===== Final CTA ===== */
.final-cta {
  padding: 96px 0;
  text-align: center;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: white;
}

.final-cta h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.final-cta p {
  font-size: 18px;
  opacity: 0.85;
  max-width: 500px;
  margin: 0 auto 36px;
}

.final-cta .btn-primary {
  background: white;
  color: var(--primary);
  font-size: 18px;
}

.final-cta .btn-primary:hover { background: #f0f0ff; }
.final-cta .cta-note { margin-top: 14px; font-size: 13px; opacity: 0.7; }

/* ===== Footer ===== */
.footer {
  background: var(--text);
  color: white;
  padding: 48px 0 24px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.footer-brand .nav-logo { color: white; font-size: 16px; }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 8px; }

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a { font-size: 13px; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-links a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links a:not(.btn-nav) { display: none; }
  .problem-grid, .features-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); padding: 0; margin: 8px 0; }
  .proof-items { gap: 24px; }
  .proof-divider { display: none; }
  .hero { padding: 52px 0 40px; }
}
