:root {
  --bg: #0a0e14;
  --bg-raised: #10161f;
  --border: #1e2733;
  --blue: #3d7fff;
  --blue-bright: #6ea1ff;
  --text: #e8ecf2;
  --text-dim: #97a3b5;
  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
}

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

a {
  color: var(--blue-bright);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 16px;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(10, 14, 20, 0.9);
  backdrop-filter: blur(6px);
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
}

.logo span {
  color: var(--blue);
}

.logo:hover {
  text-decoration: none;
}

nav a {
  color: var(--text-dim);
  margin-left: 28px;
  font-size: 0.95rem;
}

nav a:hover,
nav a:focus-visible {
  color: var(--text);
}

/* Hero */

.hero {
  padding: 96px 0 80px;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  max-width: 14ch;
  color: var(--text);
}

.hero-sub {
  color: var(--text-dim);
  max-width: 52ch;
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.95rem;
}

.btn:hover,
.btn:focus-visible {
  background: var(--blue-bright);
  text-decoration: none;
}

/* Sections */

section {
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}

section:last-of-type {
  border-bottom: none;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.service-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
}

.service-card h3 {
  font-size: 1.05rem;
  color: var(--text);
}

.service-card p {
  color: var(--text-dim);
  margin: 0;
  font-size: 0.92rem;
}

.about p,
.contact p {
  color: var(--text-dim);
  max-width: 60ch;
}

/* Footer */

.site-footer {
  padding: 32px 0;
}

.site-footer p {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin: 0;
}

/* Accessibility */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 2px;
}

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