:root {
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --text: #1a2233;
  --text-muted: #5a6478;
  --border: #e4e9f0;
  --primary: #2456e6;
  --primary-dark: #1a44c2;
  --accent: #0e9f8a;
  --radius: 12px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.02em;
}

.logo span { color: var(--primary); }
.logo-sm { font-size: 1.1rem; }

.nav { display: flex; gap: 28px; align-items: center; }

.nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

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

.nav-cta {
  color: var(--primary) !important;
  border: 1px solid var(--primary);
  padding: 8px 16px;
  border-radius: 8px;
}

.nav-cta:hover { background: var(--primary); color: #fff !important; }

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

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

/* Hero */
.hero {
  padding: 96px 0 72px;
  text-align: center;
  background:
    radial-gradient(600px 300px at 20% 0%, rgba(36, 86, 230, 0.08), transparent),
    radial-gradient(600px 300px at 80% 10%, rgba(14, 159, 138, 0.08), transparent);
}

.hero-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(36, 86, 230, 0.08);
  border: 1px solid rgba(36, 86, 230, 0.2);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--primary);
}

.hero-sub {
  max-width: 640px;
  margin: 0 auto 32px;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.hero-stats div { display: flex; flex-direction: column; }

.hero-stats strong {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.hero-stats span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }

.section h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 48px;
}

/* Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(26, 34, 51, 0.08);
}

.card-icon { font-size: 1.8rem; margin-bottom: 14px; }

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.card p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Steps */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.steps li {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.steps h3 { font-size: 1.05rem; margin-bottom: 6px; }
.steps p { font-size: 0.92rem; color: var(--text-muted); }

.state-flow {
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.state-flow span {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  color: var(--accent);
  font-weight: 600;
}

/* CTA */
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  text-align: center;
}

.cta-section h2 { color: #fff; }
.cta-section .section-sub { color: rgba(255, 255, 255, 0.85); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

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

.btn-primary {
  background: var(--primary);
  color: #fff;
}

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

.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.1rem;
  background: #fff;
  color: var(--primary);
}

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

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 720px) {
  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    gap: 16px;
    align-items: flex-start;
  }

  .nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero { padding: 64px 0 48px; }
  .hero-stats { gap: 28px; }
  .section { padding: 56px 0; }
}