:root {
  --bg: #0f172a;
  --surface: #ffffff;
  --muted: #64748b;
  --text: #0f172a;
  --accent: #6366f1;
  --radius: 1rem;
}

[data-theme="dark"] {
  --bg: #020617;
  --surface: #0f172a;
  --text: #e2e8f0;
  --muted: #94a3b8;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

body {
  background: var(--surface);
  color: var(--text);
  line-height: 1.6;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.section-pad {
  padding: 4rem 0;
}

.topbar {
  background: #eef2ff;
  padding: 0.4rem 0;
  font-size: 0.8rem;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid rgba(100,116,139,0.15);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
}

.logo {
  font-weight: 700;
  font-size: 1.3rem;
  text-decoration: none;
  color: var(--text);
}
.logo span {
  color: var(--accent);
}

nav ul {
  display: flex;
  gap: 1rem;
  list-style: none;
}

nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
}

nav a.active,
nav a:hover {
  color: var(--accent);
}

.has-dropdown {
  position: relative;
}
.dropdown {
  position: absolute;
  background: var(--surface);
  border: 1px solid rgba(100,116,139,0.15);
  border-radius: 0.6rem;
  padding: 0.5rem;
  display: none;
  top: 130%;
  min-width: 180px;
}
.has-dropdown:hover .dropdown {
  display: block;
}
.dropdown a {
  display: block;
  padding: 0.35rem 0.4rem;
}

.nav-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
}

.btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
}
.btn-block {
  width: 100%;
  text-align: center;
}
.btn.ghost {
  background: rgba(99,102,241,0.1);
  color: var(--text);
}

.hero {
  background: radial-gradient(circle at top, #eef2ff, #fff 50%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.1rem;
  color: var(--muted);
}
h1 {
  font-size: clamp(2.4rem, 4vw, 3rem);
  margin: 0.4rem 0 0.6rem;
}
.lead {
  color: var(--muted);
  max-width: 35rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}
.stats-row {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.stats-row h3 {
  font-size: 1.5rem;
}

.hero-card {
  background: var(--surface);
  border: 1px solid rgba(100,116,139,0.1);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 16px 40px rgba(15,23,42,0.08);
}
.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  margin-bottom: 0.7rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(100,116,139,0.35);
  background: transparent;
  color: inherit;
}
.form select {
  cursor: pointer;
}
.form textarea {
  resize: vertical;
}

.section-head {
  margin-bottom: 2rem;
}
.grid-4 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.grid-3 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.grid-2 {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.service-card {
  background: var(--surface);
  border: 1px solid rgba(100,116,139,0.1);
  border-radius: 0.8rem;
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  transition: 0.2s;
}
.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.section-muted {
  background: rgba(99,102,241,0.03);
}

.steps .step {
  background: var(--surface);
  border-radius: 0.8rem;
  border: 1px solid rgba(100,116,139,0.05);
  padding: 1rem;
}

.testimonials .testimonial {
  background: var(--surface);
  border: 1px solid rgba(100,116,139,0.07);
  border-radius: 0.8rem;
  padding: 1rem;
}

.site-footer {
  background: #020617;
  color: #e2e8f0;
  padding: 2.5rem 0 1rem;
  margin-top: 3rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.site-footer a {
  color: inherit;
  text-decoration: none;
  display: block;
  margin-bottom: 0.2rem;
}
.footer-bottom {
  border-top: 1px solid rgba(226,232,240,0.1);
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
  font-size: 0.8rem;
}

.service-layout {
  align-items: flex-start;
}
.service-block {
  background: var(--surface);
  border: 1px solid rgba(100,116,139,0.08);
  border-radius: 0.8rem;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}
.bullets {
  margin-top: 0.7rem;
  padding-left: 1rem;
}
.service-details {
  position: sticky;
  top: 6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accordion {
  border: 1px solid rgba(100,116,139,0.1);
  border-radius: 0.8rem;
  overflow: hidden;
}
.accordion-header {
  width: 100%;
  text-align: left;
  border: none;
  background: rgba(99,102,241,0.06);
  padding: 0.7rem 0.8rem;
  cursor: pointer;
  font-weight: 600;
}
.accordion-body {
  padding: 0.7rem 0.8rem;
  display: none;
}
.accordion-body.show {
  display: block;
}

.case-card {
  background: var(--surface);
  border: 1px solid rgba(100,116,139,0.1);
  border-radius: 0.8rem;
  padding: 1rem 1rem 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid rgba(100,116,139,0.1);
  border-radius: 0.8rem;
  padding: 1rem;
}

@media (max-width: 900px) {
  nav {
    position: fixed;
    inset: 0 0 0 auto;
    background: var(--surface);
    width: 65%;
    max-width: 280px;
    translate: 100% 0;
    transition: 0.25s;
    padding-top: 4.5rem;
  }
  nav.open {
    translate: 0 0;
  }
  nav ul {
    flex-direction: column;
    gap: 1.3rem;
    padding-left: 1.2rem;
  }
  .nav-toggle {
    display: block;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .stats-row {
    flex-wrap: wrap;
  }
  .service-details {
    position: static;
  }
}
