:root {
  --brand-50: #eff6ff;
  --brand-100: #dbeafe;
  --brand-500: #3b82f6;
  --brand-600: #2563eb;
  --brand-700: #1d4ed8;
  --brand-900: #0a1628;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--slate-800);
  line-height: 1.6;
  background: #fff;
}

a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); }

img { max-width: 100%; display: block; }

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--slate-200);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  color: var(--slate-900);
}

.logo img.logo-brand,
.logo-brand {
  width: auto;
  height: 36px;
  object-fit: contain;
}

.site-footer .logo-brand {
  height: 32px;
  background: #fff;
  border-radius: 8px;
  padding: 4px 10px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--slate-600);
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a.active { color: var(--brand-600); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--slate-800);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover { color: #fff; }

.btn-secondary {
  background: #fff;
  color: var(--slate-700) !important;
  border: 1px solid var(--slate-200);
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }

/* Hero */
.hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(160deg, var(--brand-50) 0%, #fff 50%, #eef2ff 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
  color: var(--slate-900);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--brand-600), #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--slate-600);
  margin-bottom: 1.75rem;
  max-width: 32rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.hero-card h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--slate-500); margin-bottom: 1rem; }

.stat-row { display: flex; gap: 1rem; margin-bottom: 1rem; }

.stat {
  flex: 1;
  background: var(--slate-50);
  border-radius: var(--radius);
  padding: 1rem;
}

.stat strong { display: block; font-size: 1.5rem; color: var(--brand-600); }
.stat span { font-size: 0.8rem; color: var(--slate-500); }

/* Sections */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--slate-50); }

.section-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 3rem;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--slate-900);
  margin-bottom: 0.75rem;
}

.section-head p { color: var(--slate-600); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.feature-card:hover {
  border-color: var(--brand-100);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--brand-50);
  color: var(--brand-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.feature-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; color: var(--slate-900); }
.feature-card p { font-size: 0.9rem; color: var(--slate-600); }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.price-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  padding: 2rem;
}

.price-card.featured {
  border-color: var(--brand-500);
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.15);
  position: relative;
}

.price-card .badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-600);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

.price-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.price-card .amount { font-size: 2.5rem; font-weight: 800; color: var(--slate-900); }
.price-card .amount span { font-size: 1rem; font-weight: 500; color: var(--slate-500); }
.price-card ul { list-style: none; margin: 1.5rem 0; }
.price-card li { padding: 0.4rem 0; font-size: 0.9rem; color: var(--slate-600); }
.price-card li::before { content: "✓ "; color: var(--brand-600); font-weight: 700; }

/* CTA */
.cta {
  padding: 4rem 0;
  text-align: center;
  background: linear-gradient(135deg, var(--brand-900), var(--brand-700));
  color: #fff;
}

.cta h2 { font-size: 2rem; margin-bottom: 0.75rem; }
.cta p { opacity: 0.85; margin-bottom: 1.5rem; max-width: 32rem; margin-inline: auto; }

/* Page header (inner pages) */
.page-hero {
  padding: 3rem 0 2rem;
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
}

.page-hero h1 { font-size: 2rem; color: var(--slate-900); margin-bottom: 0.5rem; }
.page-hero p { color: var(--slate-600); }

/* Legal / prose */
.prose {
  max-width: 48rem;
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

.prose h2 { font-size: 1.35rem; color: var(--slate-900); margin: 2rem 0 0.75rem; }
.prose h3 { font-size: 1.1rem; color: var(--slate-800); margin: 1.5rem 0 0.5rem; }
.prose p, .prose li { color: var(--slate-600); margin-bottom: 0.75rem; }
.prose ul, .prose ol { margin: 0.75rem 0 1rem 1.5rem; }
.prose .updated { font-size: 0.875rem; color: var(--slate-500); margin-bottom: 2rem; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 3rem 0 4rem;
}

.contact-info { background: var(--slate-50); border-radius: var(--radius); padding: 2rem; }
.contact-info h3 { margin-bottom: 1rem; }
.contact-info p { margin-bottom: 0.5rem; color: var(--slate-600); }

.contact-form label { display: block; font-weight: 500; font-size: 0.9rem; margin-bottom: 0.35rem; color: var(--slate-700); }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  font: inherit;
  margin-bottom: 1rem;
}

.contact-form textarea { min-height: 140px; resize: vertical; }

.alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* Footer */
.site-footer {
  background: var(--brand-900);
  color: #cbd5e1;
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2rem;
}

.footer-brand p { font-size: 0.9rem; margin-top: 0.75rem; max-width: 20rem; }
.footer-meta { margin-top: 1rem; font-size: 0.8rem; opacity: 0.7; }

.site-footer h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: #94a3b8; font-size: 0.9rem; }
.site-footer a:hover { color: #fff; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid { gap: 1.5rem; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    inset: 64px 0 auto 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border-bottom: 1px solid var(--slate-200);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s, opacity 0.25s;
  }

  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a { padding: 0.75rem; }
  .hero { padding-top: 3rem; }
}
