:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --text: #0f172a;
  --muted: #5b6475;
  --line: #e4e8f0;
  --brand: #2563eb;
  --brand-2: #7c3aed;
  --card: #ffffff;
  --radius: 16px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020;
    --bg-alt: #111831;
    --text: #e8ecf6;
    --muted: #9aa4ba;
    --line: #232c47;
    --brand: #5b8cff;
    --brand-2: #a78bfa;
    --card: #121a33;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.muted { color: var(--muted); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand b { color: var(--brand); }
nav { display: flex; align-items: center; gap: 22px; }
nav a { color: var(--muted); font-weight: 500; font-size: 15px; }
nav a:hover { color: var(--text); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff !important; font-weight: 600; border: 0;
  box-shadow: 0 6px 20px -8px var(--brand);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 10px 24px -8px var(--brand); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--text) !important; border: 1px solid var(--line); box-shadow: none; }
.btn-ghost:hover { box-shadow: none; border-color: var(--muted); }

/* Hero */
.hero {
  padding: 96px 0 88px;
  background:
    radial-gradient(600px 300px at 85% 0%, color-mix(in srgb, var(--brand-2) 18%, transparent), transparent 70%),
    radial-gradient(500px 280px at 10% 10%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%);
}
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 14px; }
h1 { font-size: clamp(40px, 7vw, 68px); line-height: 1.05; letter-spacing: -.03em; margin: 0 0 20px; }
.grad { background: linear-gradient(135deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 600px; margin: 0 0 32px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Sections */
.section { padding: 80px 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(28px, 4vw, 36px); letter-spacing: -.02em; margin: 0 0 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 32px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h3 { margin: 16px 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); }
.icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
}
.icon svg { width: 22px; height: 22px; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps .num { font-weight: 700; font-size: 14px; letter-spacing: .08em; background: linear-gradient(135deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps h3 { margin: 8px 0 6px; font-size: 18px; }
.steps p { margin: 0; color: var(--muted); }

/* Contact */
.contact { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.contact-card {
  display: flex; flex-direction: column; gap: 4px; min-width: 260px; padding: 22px 26px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--text);
  transition: border-color .15s ease, transform .15s ease;
}
.contact-card:hover { text-decoration: none; border-color: var(--brand); transform: translateY(-2px); }
.contact-card .label { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.contact-card .addr { font-size: 18px; font-weight: 600; color: var(--brand); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer p { margin: 0; }

/* Legal page */
.legal { max-width: 760px; padding: 56px 20px 80px; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); }
.legal h2 { font-size: 22px; margin-top: 36px; }
.legal p, .legal li { color: var(--text); }
.legal .muted { color: var(--muted); }

@media (max-width: 560px) {
  nav a:not(.btn) { display: none; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 56px 0; }
  .contact-card { min-width: 0; width: 100%; }
}
