:root {
  --bg: #ffffff;
  --bg-subtle: #f8fafc;
  --text: #0f172a;
  --text-muted: #64748b;
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --border: #e2e8f0;
  --radius: 8px;
}

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

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

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

/* Nav */
nav {
  border-bottom: 1px solid var(--border);
  height: 60px;
  position: sticky;
  top: 0;
  background: white;
  z-index: 10;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}

.nav-logo span { color: var(--text); }
.nav-logo .primary { color: var(--primary); }

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-links a:hover { color: var(--text); text-decoration: none; }

/* Container */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero */
.hero {
  padding: 96px 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.hero-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
  max-width: 700px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.btn {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  transition: background 0.15s;
  border: none;
  cursor: pointer;
  font-family: inherit;
  appearance: none;
}

.btn:hover { background: var(--primary-dark); text-decoration: none; }

/* Sections */
section {
  padding: 80px 24px;
}

section.alt {
  background: var(--bg-subtle);
}

section h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

section .section-sub {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 48px;
  max-width: 500px;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

@media (max-width: 640px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Use cases */
.use-cases {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.use-case {
  padding: 16px 20px;
  border-radius: 10px;
  background: white;
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

/* CTA band */
.cta-band {
  background: var(--text);
  color: white;
  padding: 80px 24px;
  text-align: center;
}

.cta-band h2 {
  color: white;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.cta-band p {
  color: #94a3b8;
  margin-bottom: 32px;
  font-size: 17px;
}

.btn-white {
  background: white;
  color: var(--text);
}

.btn-white:hover { background: #f1f5f9; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  list-style: none;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
}

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

/* Legal pages */
.legal-hero {
  padding: 64px 24px 40px;
  border-bottom: 1px solid var(--border);
  max-width: 1080px;
  margin: 0 auto;
}

.legal-hero h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.legal-hero p {
  color: var(--text-muted);
  font-size: 14px;
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

.legal-content h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 40px 0 12px;
  color: var(--text);
}

.legal-content p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 14px;
}

.legal-content ul {
  padding-left: 20px;
  margin-bottom: 14px;
}

.legal-content li {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 6px;
}

.legal-content a { color: var(--primary); }

/* Mobile */
@media (max-width: 640px) {
  .nav-inner { padding: 0 16px; }
  .nav-links { display: none; }
  .hero { padding: 60px 16px; }
  .hero-label { font-size: 11px; letter-spacing: 0.04em; }
  section { padding: 56px 16px; }
  section h2 { font-size: 24px; }
  .cta-band { padding: 56px 16px; }
  .cta-band h2 { font-size: 26px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-links { gap: 10px 16px; }
  .legal-hero { padding: 48px 16px 32px; }
  .legal-hero h1 { font-size: 28px; }
}

/* Contact Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}
.modal[hidden] { display: none; }
.modal-box {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  width: 100%;
  max-width: 480px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-box h2 { font-size: 22px; margin: 0 0 8px; }
.modal-box > p { color: #64748b; font-size: 15px; margin: 0 0 24px; }
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #64748b;
  line-height: 1;
  padding: 4px 8px;
}
.modal-close:hover { color: #0f172a; }

/* Form fields */
.cf-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.cf-group label { font-size: 13px; font-weight: 600; color: #374151; }
.cf-group input {
  padding: 10px 14px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  color: #0f172a;
  transition: border-color 0.15s;
  width: 100%;
  box-sizing: border-box;
}
.cf-group input:focus { outline: none; border-color: var(--primary); }
#contactForm .btn { width: 100%; margin-top: 8px; justify-content: center; }
.cf-status { font-size: 14px; min-height: 20px; margin-bottom: 4px; }
.cf-status--error { color: #dc2626; }
.cf-status--success { color: #16a34a; }

@media (max-width: 640px) {
  .modal-box { padding: 28px 20px; }
}
