:root {
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --text: #14181f;
  --text-muted: #5b6472;
  --border: #e6e9ef;
  --primary: #3860ff;
  --primary-dark: #2646d1;
  --primary-light: #eef2ff;
  --accent: #12b886;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 24, 31, 0.06);
  --shadow-lg: 0 20px 50px rgba(20, 24, 31, 0.12);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1218;
    --bg-alt: #161b24;
    --text: #eef1f6;
    --text-muted: #9aa4b2;
    --border: #262c38;
    --primary: #5b7fff;
    --primary-dark: #4a6bee;
    --primary-light: #1a2140;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

img { max-width: 100%; }

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

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 12px; font-weight: 800; }
h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 16px; color: var(--text-muted); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(56, 96, 255, 0.35); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); }
.btn-lg { padding: 14px 28px; font-size: 1rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  gap: 16px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 800; }
.logo-mark { flex-shrink: 0; }
.logo-accent { color: var(--primary); }
.nav-links { display: flex; gap: 28px; flex: 1; justify-content: center; }
.nav-links a { font-size: 0.92rem; font-weight: 500; color: var(--text-muted); }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* Hero */
.hero { padding: 90px 0 70px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; }
.hero-copy p { font-size: 1.08rem; max-width: 520px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0; }
.hero-trust { list-style: none; padding: 0; margin: 20px 0 0; display: flex; gap: 20px; flex-wrap: wrap; font-size: 0.88rem; color: var(--text-muted); }

.hero-visual { position: relative; }
.mock-window {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mock-bar { display: flex; gap: 6px; padding: 12px 14px; background: var(--bg); border-bottom: 1px solid var(--border); }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.mock-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.mock-line { height: 10px; border-radius: 6px; background: var(--border); }
.mock-line.w-70 { width: 70%; }
.mock-line.w-40 { width: 40%; }
.mock-line.w-90 { width: 90%; }
.mock-line.w-60 { width: 60%; }
.mock-card { height: 90px; border-radius: 10px; background: linear-gradient(135deg, var(--primary-light), var(--bg-alt)); margin: 6px 0; }
.mock-badge {
  position: absolute;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: var(--shadow);
}
.mock-badge-1 { top: -14px; right: 10%; }
.mock-badge-2 { bottom: -14px; left: 6%; }

/* Logos strip */
.logos { padding: 30px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.logos p { text-align: center; font-size: 0.85rem; margin-bottom: 16px; }
.logos-row { display: flex; justify-content: center; gap: 36px; flex-wrap: wrap; font-weight: 700; color: var(--text-muted); opacity: 0.8; }

/* Sections */
section { padding: 80px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.section-head p { margin-bottom: 0; }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.feature-icon { font-size: 1.8rem; margin-bottom: 12px; }
.feature-card p { margin: 0; font-size: 0.94rem; }

/* Pricing */
.pricing-alt { background: var(--bg-alt); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.price-card.featured { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.price-card .badge {
  position: absolute;
  top: -12px;
  left: 26px;
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}
.price { font-size: 2.2rem; font-weight: 800; margin: 6px 0 20px; color: var(--text); }
.price span:first-child { font-size: 2.2rem; }
.price small { font-size: 0.85rem; font-weight: 500; color: var(--text-muted); }
.price-card ul { list-style: none; padding: 0; margin: 0 0 26px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.price-card li { font-size: 0.92rem; color: var(--text-muted); padding-left: 22px; position: relative; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.price-card .btn { width: 100%; }

/* Testimonials */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonials-grid blockquote { margin: 0; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.testimonials-grid p { font-style: italic; color: var(--text); }
.testimonials-grid cite { font-style: normal; font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }

/* Compare table */
.compare-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 520px; background: var(--bg); }
.compare-table th, .compare-table td { padding: 16px 20px; text-align: left; font-size: 0.92rem; border-bottom: 1px solid var(--border); }
.compare-table th { font-weight: 700; color: var(--text); background: var(--bg-alt); }
.compare-table td { color: var(--text-muted); }
.compare-table td.highlight { color: var(--primary); font-weight: 700; }
.compare-table tr:last-child td { border-bottom: none; }

/* FAQ */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-list details {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
}
.faq-list summary { cursor: pointer; font-weight: 600; }
.faq-list p { margin: 12px 0 0; }

/* CTA */
.cta { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; text-align: center; border-radius: 28px; margin: 0 20px; }
.cta-inner { max-width: 560px; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,0.85); }
.cta-form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.cta-form input {
  flex: 1;
  min-width: 180px;
  padding: 12px 16px;
  border-radius: 999px;
  border: none;
  font-size: 0.95rem;
  font-family: inherit;
}
.cta-form .btn-primary { background: #fff; color: var(--primary-dark); box-shadow: none; }
.form-note { margin-top: 12px; font-size: 0.85rem; color: rgba(255,255,255,0.9); min-height: 1.2em; }

/* Footer */
.site-footer { padding: 60px 0 0; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 14px; }
.footer-grid a { display: block; font-size: 0.9rem; color: var(--text-muted); margin-bottom: 10px; }
.footer-grid a:hover { color: var(--text); }
.footer-bottom { padding: 24px 20px; margin-top: 40px; border-top: 1px solid var(--border); text-align: center; }
.footer-bottom p { margin: 0; font-size: 0.82rem; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .features-grid, .pricing-grid, .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .price-card.featured { transform: none; }
}

@media (max-width: 640px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; }
  .site-header.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 20px;
    gap: 16px;
  }
  .site-header.open .nav-actions {
    display: flex;
    position: absolute;
    top: calc(100% + 190px);
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 0 20px 20px;
    justify-content: center;
    gap: 12px;
  }
  .features-grid, .pricing-grid, .testimonials-grid, .footer-grid { grid-template-columns: 1fr; }
  .cta { margin: 0 12px; border-radius: 20px; }
  section { padding: 56px 0; }
  .hero { padding: 50px 0 40px; }
}
