:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --text: #0f172a;
  --muted: #475569;
  --accent: #0284c7;
  --accent-dark: #0369a1;
  --border: #e2e8f0;
  --radius: 12px;
  --max: 1080px;
  --header-h: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

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

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 720px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--text); color: #fff; padding: .5rem 1rem; z-index: 100;
}
.skip:focus { left: 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.brand {
  font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em;
  color: var(--text); text-decoration: none;
}
.nav-links {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: .25rem; flex-wrap: wrap;
}
.nav-links a {
  display: block; padding: .5rem .75rem; border-radius: 8px;
  color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem;
}
.nav-links a:hover { color: var(--text); background: var(--bg-alt); }

/* Hero */
.hero {
  padding: clamp(4rem, 12vw, 8rem) 0 clamp(3.5rem, 10vw, 6.5rem);
  background:
    radial-gradient(ellipse at top right, rgba(2, 132, 199, .10), transparent 60%),
    var(--bg);
}
.eyebrow {
  margin: 0 0 1rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
}
h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.1rem, 6vw, 3.6rem); line-height: 1.12; letter-spacing: -.025em;
}
h1 span { color: var(--muted); font-weight: 600; }
.lead { margin: 0 0 2rem; max-width: 640px; font-size: 1.15rem; color: var(--muted); }

.actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: .8rem 1.4rem; border-radius: 10px;
  font-weight: 600; text-decoration: none; border: 1px solid transparent;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--text); color: #fff; }
.btn-primary:hover { background: #1e293b; color: #fff; }
.btn-ghost { border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); color: var(--text); }

/* Sections */
.section { padding: clamp(3.5rem, 9vw, 5.5rem) 0; }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
h2 { margin: 0 0 1.25rem; font-size: clamp(1.6rem, 4vw, 2.1rem); letter-spacing: -.02em; }
.section p { color: var(--muted); }

.services {
  list-style: none; margin: 2rem 0 0; padding: 0;
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem;
}
.card h3 { margin: 0 0 .5rem; font-size: 1.1rem; }
.card p { margin: 0; font-size: .98rem; }

.contact { margin: 2rem 0 0; display: grid; gap: 1rem; }
.contact div {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.4rem;
}
.contact dt {
  font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.contact dd { margin: .2rem 0 0; font-size: 1.15rem; font-weight: 600; word-break: break-word; }
.contact a { text-decoration: none; }
.contact a:hover { text-decoration: underline; }

@media (min-width: 640px) {
  .contact { grid-template-columns: 1fr 1fr; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 2rem 0; }
.site-footer p { margin: 0; color: var(--muted); font-size: .9rem; }

@media (max-width: 480px) {
  .nav { padding-block: .5rem; justify-content: center; }
  .nav-links a { padding: .4rem .6rem; }
}
