:root {
  --bg: #ffffff;
  --bg-alt: #f4f6fb;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #1a2233;
  --text-muted: #5a6579;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-contrast: #ffffff;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 8px 24px rgba(16, 24, 40, 0.06);
  --radius: 14px;
  --maxw: 1040px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1117;
    --bg-alt: #131824;
    --surface: #171d2b;
    --border: #262e3f;
    --text: #e7ebf3;
    --text-muted: #9aa6bd;
    --primary: #4b8bff;
    --primary-hover: #6ba0ff;
    --primary-contrast: #0e1117;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
}
.brand:hover { text-decoration: none; }

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--primary);
  color: var(--primary-contrast);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero {
  padding: 84px 0 64px;
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0 0 28px;
  max-width: 62ch;
  font-size: 1.12rem;
  color: var(--text-muted);
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.05s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

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

.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* Sections */
.section { padding: 62px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }

.section h2 {
  margin: 0 0 14px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.01em;
}

.section-text {
  margin: 0 0 34px;
  max-width: 68ch;
  color: var(--text-muted);
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.stat-num {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}
.stat-label { color: var(--text-muted); font-size: 0.95rem; }

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}
.card p { margin: 0; color: var(--text-muted); font-size: 0.97rem; }

/* Services */
.services {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}
.services li {
  position: relative;
  padding: 14px 16px 14px 42px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-muted);
}
.services li::before {
  content: "✓";
  position: absolute;
  left: 16px;
  top: 13px;
  color: var(--primary);
  font-weight: 700;
}

/* Tools */
.tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}
.tool-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.06s ease;
}
.tool-card:hover {
  text-decoration: none;
  border-color: var(--primary);
  transform: translateY(-2px);
}
.tool-icon { font-size: 1.9rem; line-height: 1; }
.tool-body { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.tool-title { font-weight: 700; font-size: 1.05rem; }
.tool-desc { color: var(--text-muted); font-size: 0.93rem; }
.tool-arrow { color: var(--primary); font-size: 1.2rem; font-weight: 700; }

.lock-note {
  display: block;
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

/* Contact */
.contact-line { font-size: 1.1rem; font-weight: 600; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 26px 0;
  background: var(--bg-alt);
}
.site-footer p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }

@media (max-width: 620px) {
  .nav { gap: 14px; width: 100%; }
  .hero { padding: 56px 0 44px; }
}
