:root {
  --bg: #fbfcfc;
  --surface: #ffffff;
  --text: #0f1f2b;
  --muted: #4a5b67;
  --border: #e1e7ea;
  --accent: #0b7470;
  --accent-text: #ffffff;
  --hero-bg: #0f2a3d;
  --hero-text: #f2f7f8;
  --hero-muted: #b4c7cf;
  --hero-accent: #46d1c9;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1419;
    --surface: #141e25;
    --text: #e6edf0;
    --muted: #9fb0ba;
    --border: #25333c;
    --accent: #4fd6cf;
    --accent-text: #0d1419;
    --hero-bg: #0a1d2a;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: var(--hero-bg);
  color: var(--hero-text);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--hero-text);
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand .mark { width: 28px; height: 28px; color: var(--hero-accent); flex: none; }
.nav { display: flex; gap: 20px; }
.nav a {
  color: var(--hero-muted);
  text-decoration: none;
  font-size: 15px;
}
.nav a:hover { color: var(--hero-text); }

/* Hero */
.hero {
  background: var(--hero-bg);
  color: var(--hero-text);
  padding: 72px 0 88px;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--hero-accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0 0 16px;
  max-width: 16ch;
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.lead {
  margin: 0 0 32px;
  max-width: 34em;
  color: var(--hero-muted);
  font-size: 1.15rem;
}
.button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  background: var(--hero-accent);
  color: #08202b;
  font-weight: 600;
  text-decoration: none;
}
.button:hover { filter: brightness(1.08); }

/* Sections */
.section { padding: 64px 0; }
.section + .section { border-top: 1px solid var(--border); }
h2 {
  margin: 0 0 24px;
  font-size: 1.6rem;
  letter-spacing: -0.015em;
}
h3 { margin: 0 0 6px; font-size: 1.1rem; }

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.services li {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.services p { margin: 0; color: var(--muted); }

.note { margin: -8px 0 24px; color: var(--muted); }
.note strong { color: var(--text); }

.details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0 0 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.details div {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.details div:nth-child(odd) { border-right: 1px solid var(--border); }
.details div:nth-last-child(-n+2) { border-bottom: 0; }
.details dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.details dd {
  margin: 2px 0 0;
  font-weight: 550;
  overflow-wrap: anywhere;
}

.small { font-size: 15px; color: var(--muted); }

.contact .email { font-size: 1.25rem; font-weight: 600; }

/* Long-form pages */
.prose .wrap { max-width: 720px; }
.prose h1 { margin: 0 0 4px; font-size: 2.2rem; letter-spacing: -0.02em; }
.prose h2 { margin: 36px 0 8px; font-size: 1.25rem; }

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

@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .brand span { font-size: 15px; }
  .nav { gap: 14px; }
  .hero { padding: 48px 0 64px; }
  .section { padding: 48px 0; }
  .details { grid-template-columns: 1fr; }
  .details div:nth-child(odd) { border-right: 0; }
  .details div:nth-last-child(2) { border-bottom: 1px solid var(--border); }
}
