:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --primary: #0ea5e9;
  --primary-strong: #0284c7;
  --border: #dbeafe;
  --shadow: 0 10px 25px rgba(2, 132, 199, 0.08);
}

:root.theme-dark {
  --bg: #020617;
  --surface: #0f172a;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --primary: #38bdf8;
  --primary-strong: #0ea5e9;
  --border: #1e293b;
  --shadow: 0 10px 25px rgba(15, 23, 42, 0.5);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background-color .25s ease, color .25s ease;
}
a { color: var(--primary-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(1100px, 92%); margin: 0 auto; }
.section { padding: 4rem 0; }
.section.alt { background: color-mix(in srgb, var(--surface) 80%, var(--bg) 20%); }

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 0; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--text); }
.logo { display: none; border-radius: 8px; }
.theme-light .logo-light, .theme-dark .logo-dark { display: inline-block; }
nav ul { list-style: none; display: flex; gap: 1rem; margin: 0; padding: 0; flex-wrap: wrap; }
nav a { color: var(--muted); font-weight: 500; }

.hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.2; margin: .5rem 0 1rem; }
.lead { color: var(--muted); max-width: 65ch; }
.lead-small { color: var(--muted); margin-top: -.5rem; }
.eyebrow { color: var(--primary-strong); text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; }

.grid { display: grid; gap: 1rem; }
.cards { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.two-col { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.portfolio-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card, .portfolio-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: var(--shadow);
}
.portfolio-item img {
  width: 100%; height: auto; border-radius: 10px; display: block; margin-bottom: .8rem;
}
.result { color: var(--primary-strong); font-weight: 600; }

.cta-row { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.25rem; }
.btn {
  border: 1px solid var(--primary-strong);
  border-radius: 999px;
  padding: .6rem 1rem;
  font-weight: 600;
  cursor: pointer;
}
.btn-primary { background: var(--primary-strong); color: white; }
.btn-outline { background: transparent; color: var(--primary-strong); }

.contact-form { display: grid; gap: .75rem; max-width: 540px; margin-top: 1rem; }
.contact-form label { display: grid; gap: .35rem; color: var(--muted); }
input, textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  padding: .65rem .75rem;
}

.site-footer { border-top: 1px solid var(--border); padding: 1.25rem 0; color: var(--muted); }

@media (max-width: 820px) {
  nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
