:root {
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --bg-deep: #0d1b2a;
  --text: #1a2332;
  --text-soft: #5a6778;
  --text-invert: #eef3f9;
  --text-invert-soft: #a8bbd0;
  --accent: #00A8EC;
  --accent-text: #00699a;
  --accent-soft: #e2f4fd;
  --accent-bright: #4cc6f5;
  --border: #e2e8f0;
  --border-deep: #1e3a52;
  --radius: 10px;
  --maxw: 1120px;
  --gutter: 16px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1722;
    --bg-alt: #151f2e;
    --bg-deep: #0a1119;
    --text: #e8eef6;
    --text-soft: #9aabbf;
    --text-invert: #e8eef6;
    --text-invert-soft: #9aabbf;
    --accent: #00A8EC;
    --accent-text: #4cc6f5;
    --accent-soft: #0d2c3d;
    --border: #22303f;
    --border-deep: #22303f;
  }
}

:root[data-theme="dark"] {
  --bg: #0f1722;
  --bg-alt: #151f2e;
  --bg-deep: #0a1119;
  --text: #e8eef6;
  --text-soft: #9aabbf;
  --text-invert: #e8eef6;
  --text-invert-soft: #9aabbf;
  --accent: #00A8EC;
  --accent-text: #4cc6f5;
  --accent-soft: #0d2c3d;
  --border: #22303f;
  --border-deep: #22303f;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 650; }
p { margin: 0 0 1em; }
a { color: var(--accent-text); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
}
.brand span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav a:hover { color: var(--text); }
.nav .btn { color: #fff; }
@media (max-width: 720px) {
  .nav a:not(.btn) { display: none; }
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: filter .15s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-lg { padding: 13px 26px; font-size: 1rem; }

/* ---------- hero ---------- */
.hero {
  padding: clamp(56px, 9vw, 104px) 0 clamp(48px, 7vw, 80px);
  border-bottom: 1px solid var(--border);
}
.hero .eyebrow {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  padding: 5px 13px;
  border-radius: 100px;
  margin-bottom: 22px;
}
.hero p.lede {
  font-size: clamp(1.05rem, 2.2vw, 1.22rem);
  color: var(--text-soft);
  max-width: 62ch;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- sections ---------- */
section { padding: clamp(52px, 8vw, 88px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 62ch; margin-bottom: 44px; }
.section-head p { color: var(--text-soft); margin-bottom: 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.section-alt .card { background: var(--bg); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-soft); margin-bottom: 0; font-size: 0.97rem; }
.card .icon {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  border-radius: 9px;
  margin-bottom: 16px;
}
.card .icon svg { width: 20px; height: 20px; stroke: var(--accent-text); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- approach list ---------- */
.points { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.point h3 { display: flex; align-items: center; gap: 10px; }
.point .num {
  flex: none;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 700;
}
.point p { color: var(--text-soft); margin-bottom: 0; font-size: 0.97rem; }

/* ---------- contact ---------- */
.contact {
  background: var(--bg-deep);
  color: var(--text-invert);
}
.contact h2 { color: var(--text-invert); }
.contact p { color: var(--text-invert-soft); }
.contact a { color: var(--accent-bright); }
.contact-grid {
  display: grid;
  gap: 34px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 40px;
}
.contact-item .label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-invert-soft);
  margin-bottom: 8px;
}
.contact-item .value { font-size: 1.12rem; font-weight: 600; }
.contact-item .value a { text-decoration: none; }
.contact-item .value a:hover { text-decoration: underline; }
.contact-item address { font-style: normal; font-size: 1rem; line-height: 1.55; color: var(--text-invert); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border-deep);
  color: var(--text-invert-soft);
  font-size: 0.87rem;
  padding: 30px 0;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  align-items: center;
  justify-content: space-between;
}
.site-footer a { color: var(--text-invert-soft); }
.site-footer p { margin: 0; }

/* ---------- inner pages ---------- */
.page { padding: clamp(48px, 7vw, 80px) 0; }
.page .prose { max-width: 72ch; }
.page .prose h2 { margin-top: 2em; font-size: 1.35rem; }
.page .prose h2:first-of-type { margin-top: 1em; }
.page .prose ul { color: var(--text-soft); padding-left: 1.2em; }
.page .prose li { margin-bottom: 0.4em; }
.page .prose p { color: var(--text-soft); }
.back-link { display: inline-block; margin-bottom: 20px; font-size: 0.92rem; text-decoration: none; }

/* ---------- logo ---------- */
.brand { line-height: 0; }
.brand img { height: 30px; width: auto; display: block; }
.brand .logo-dark { display: none; }
.site-footer .brand img { height: 26px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand .logo-light { display: none; }
  :root:not([data-theme="light"]) .brand .logo-dark { display: block; }
}
:root[data-theme="dark"] .brand .logo-light { display: none; }
:root[data-theme="dark"] .brand .logo-dark { display: block; }
