/* ===== Color palette ===== */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --text: #1a1a2e;
  --text-muted: #555;
  --accent: #6c5ce7;
  --accent-hover: #5b4bd6;
  --border: #e0e0e0;
  --card-bg: #ffffff;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f1a;
    --bg-alt: #16162a;
    --text: #e8e8f0;
    --text-muted: #999;
    --accent: #a29bfe;
    --accent-hover: #b8b1ff;
    --border: #2a2a40;
    --card-bg: #1a1a2e;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  }
}

/* ===== Reset & base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

a { color: var(--accent); text-decoration: none; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  m5stify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
}

.logo { font-weight: 700; font-size: 1.25rem; color: var(--text); }

.nav-links { list-style: none; display: flex; gap: 2rem; }
.nav-links a { color: var(--text-muted); font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--accent); }

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 { font-size: 2.5rem; line-height: 1.2; margin-bottom: 1.5rem; }

.hero-sub { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 2rem; }

/* ===== Buttons ===== */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s, transform 0.1s;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { transform: scale(0.98); }

/* ===== Sections ===== */
.services, .how-it-works, .contact {
  padding: 4rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.services { background: var(--bg-alt); }
.services > h2, .how-it-works > h2, .contact > h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2.5rem;
}

/* ===== Service grid ===== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow);
}
.service-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; color: var(--accent); }
.service-card p { color: var(--text-muted); }

/* ===== Steps ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.step { text-align: center; }
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.step p { color: var(--text-muted); }

/* ===== Contact ===== */
.contact { text-align: center; }
.contact p { color: var(--text-muted); margin-bottom: 2rem; font-size: 1.1rem; }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== Mobile ===== */
@media (max-width: 640px) {
  .hero h1 { font-size: 1.75rem; }
  .hero-sub { font-size: 1rem; }
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.85rem; }
  .services > h2, .how-it-works > h2, .contact > h2 { font-size: 1.5rem; }
}
