:root {
  --bg: #fbfbfd;
  --surface: #ffffff;
  --surface-2: #f2f4f8;
  --text: #0f172a;
  --muted: #5b6477;
  --line: #e3e7ef;
  --accent: #2f5bea;
  --accent-ink: #ffffff;
  --accent-soft: #e8eeff;
  --ok: #157f3c;
  --err: #b42318;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --max: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f19;
    --surface: #121827;
    --surface-2: #182033;
    --text: #e8ecf5;
    --muted: #9aa4b8;
    --line: #232c40;
    --accent: #6d8dff;
    --accent-ink: #0b0f19;
    --accent-soft: #1b2545;
    --ok: #4ade80;
    --err: #f87171;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 750; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 650; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-size: .8rem; font-weight: 800;
}
.brand small { display: block; font-weight: 500; color: var(--muted); font-size: .72rem; letter-spacing: .02em; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--muted); font-size: .95rem; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px; font-weight: 600; font-size: .98rem;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); }
.nav .btn { padding: 8px 14px; font-size: .9rem; color: var(--accent-ink); }
.nav .btn:hover { color: var(--accent-ink); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* Hero */
.hero { padding: 96px 0 72px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(closest-side, var(--accent-soft), transparent 70%);
  z-index: -1;
}
.hero p.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 640px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.tag {
  font-size: .82rem; padding: 6px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted);
}

/* Sections */
section { padding: 80px 0; }
section.alt { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 44px; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.card p { color: var(--muted); margin: 0; }
.card ul { margin: 14px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .94rem; }
.card li { padding-left: 22px; position: relative; margin: 6px 0; }
.card li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
.icon {
  width: 44px; height: 44px; border-radius: 11px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 18px;
}

.step { position: relative; }
.step-num { font-size: .8rem; font-weight: 700; color: var(--accent); letter-spacing: .06em; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .95rem; }

.stack { display: flex; flex-wrap: wrap; gap: 10px; }
.stack span {
  padding: 8px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line);
  font-size: .9rem; font-weight: 500;
}

.cta {
  background: var(--accent); color: var(--accent-ink); border-radius: 20px; padding: 56px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta h2 { margin: 0 0 6px; }
.cta p { margin: 0; opacity: .85; }
.cta .btn { background: var(--accent-ink); color: var(--accent); }

/* Contact */
.contact-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 6px; }
label .opt { color: var(--muted); font-weight: 400; }
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font: inherit; font-size: 1rem;
}
textarea { min-height: 160px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { font-size: .95rem; min-height: 1.4em; margin: 0; }
.status.ok { color: var(--ok); }
.status.err { color: var(--err); }
.info-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; }
.info-list .icon { margin: 0; flex: none; width: 40px; height: 40px; }
.info-list strong { display: block; }
.info-list span { color: var(--muted); font-size: .94rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .grid-3, .grid-4, .grid-2, .form .row { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 48px; }
  section { padding: 56px 0; }
  .nav a:not(.btn) { display: none; }
  .brand small { display: none; }
  .cta { padding: 36px 24px; }
}

/* ---- Multi-page additions ---- */
.skip { position: absolute; left: -9999px; top: 8px; z-index: 20; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 16px; }
.menu-toggle {
  display: none; background: transparent; border: 1px solid var(--line); color: var(--text);
  border-radius: 8px; padding: 6px 12px; font: inherit; font-size: .9rem; cursor: pointer;
}
.nav { gap: 18px; }

.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
.hero-img, .rounded { width: 100%; height: auto; border-radius: 16px; box-shadow: var(--shadow); }
.page-hero { padding: 56px 0 40px; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
.page-hero .lead { font-size: clamp(1.05rem, 1.8vw, 1.18rem); color: var(--muted); max-width: 680px; }
.page-hero .actions { margin-top: 24px; }

.crumbs { display: flex; gap: 8px; font-size: .85rem; color: var(--muted); padding-top: 20px; }
.crumbs a { color: var(--muted); }

.service-card { display: flex; flex-direction: column; color: inherit; padding: 0; overflow: hidden; transition: transform .15s ease; }
.service-card:hover { text-decoration: none; transform: translateY(-2px); }
.service-card img { width: 100%; height: auto; aspect-ratio: 14 / 9; object-fit: cover; border-bottom: 1px solid var(--line); }
.service-card h3 { margin: 22px 24px 8px; }
.service-card p { margin: 0 24px; }
.service-card .more { margin: 16px 24px 24px; color: var(--accent); font-weight: 600; font-size: .95rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.steps { list-style: none; padding: 0; margin: 0; }
.narrow { max-width: 820px; }
.faq { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 650; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq[open] summary::after { content: "−"; }
.faq p { color: var(--muted); margin: 12px 0 0; }

.prose-section { padding-top: 24px; }
.prose { max-width: 820px; }
.prose h2 { margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 8px 0; }
.feature-list { gap: 8px 32px; margin: 8px 0 0; }
.feature-list h3 { font-size: 1.02rem; margin: 12px 0 4px; }
.feature-list p { margin: 0 0 8px; font-size: .96rem; }
.related .card { color: inherit; }
.related .card:hover { text-decoration: none; border-color: var(--accent); }
.related h3 { margin-bottom: 6px; }
section.alt h2:first-child { margin-bottom: 24px; }
.facts { display: grid; gap: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; color: var(--muted); }
.h3 { font-size: 1.15rem; }
.small { font-size: .9rem; }

.site-footer { padding: 48px 0 28px; }
.site-footer .wrap { display: grid; }
.footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-grid p { margin: 0 0 8px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: 6px 0; }
.footer-name, .footer-head { font-weight: 700; color: var(--text); }
.footer-base { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }

@media (max-width: 960px) {
  .menu-toggle { display: inline-block; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 16px 20px; gap: 4px;
  }
  .nav-open .nav { display: flex; }
  .nav a, .nav a:not(.btn) { display: block; padding: 10px 4px; font-size: 1rem; }
  .nav .btn { margin-top: 8px; text-align: center; padding: 12px; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .page-hero { padding: 36px 0 24px; }
}
.nav .btn[aria-current="page"] { color: var(--accent-ink); }
.contact-layout .info-list { margin-bottom: 24px; }
