/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; }

:root {
  --bg: #0c0e13;
  --bg-alt: #11141b;
  --surface: #161a23;
  --surface-border: #262c3a;
  --text: #eef0f4;
  --text-dim: #9aa2b1;
  --text-faint: #666f82;
  --accent: #d98e4a;
  --accent-bright: #f0a860;
  --accent-dim: #7a5230;

  --font-display: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;

  --wrap: 1120px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: 24px;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.accent-text { color: var(--accent-bright); }

/* ---------- Background gear decoration ---------- */
.bg-gears {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.gear {
  position: absolute;
  fill: none;
  stroke: var(--surface-border);
  stroke-width: 1;
  opacity: 0.35;
}
.gear-a { width: 520px; height: 520px; top: -180px; right: -160px; animation: spin 90s linear infinite; }
.gear-b { width: 320px; height: 320px; bottom: 6%; left: -120px; animation: spin-rev 70s linear infinite; }
.gear-c { width: 180px; height: 180px; top: 55%; right: 8%; animation: spin 50s linear infinite; opacity: 0.2; }

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes spin-rev { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }

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

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 10;
  padding-block: 22px;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  width: 26px;
  height: 26px;
  fill: var(--accent);
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.brand-name.small { font-size: 0.95rem; }
.brand-accent { color: var(--accent); font-weight: 500; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  color: #171208;
  box-shadow: 0 8px 24px -8px rgba(217, 142, 74, 0.55);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 28px -8px rgba(217, 142, 74, 0.7); }
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-ghost {
  border: 1px solid var(--surface-border);
  color: var(--text);
  padding: 10px 18px;
}
.btn-ghost:hover { border-color: var(--accent-dim); background: var(--surface); }
.btn-link {
  color: var(--text-dim);
  font-weight: 500;
  padding: 12px 4px;
}
.btn-link:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  padding-block: 96px 72px;
  max-width: 760px;
}
.eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.12;
  margin-bottom: 22px;
}
.hero-sub {
  color: var(--text-dim);
  font-size: 1.08rem;
  max-width: 560px;
  margin-bottom: 34px;
}
.hero-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
}

/* ---------- Services ---------- */
.services {
  position: relative;
  z-index: 1;
  padding-block: 64px;
}
.section-eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}
.services h2, .approach h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  max-width: 640px;
  margin-bottom: 44px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-2px);
}
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(217, 142, 74, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.card p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* ---------- Approach ---------- */
.approach {
  position: relative;
  z-index: 1;
  padding-block: 40px 80px;
}
.approach-inner {
  max-width: 680px;
}
.approach-copy {
  color: var(--text-dim);
  font-size: 1.02rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
}
.cta-band-inner {
  padding-block: 72px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.cta-band h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}
.cta-band p {
  color: var(--text-dim);
  margin-bottom: 18px;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  padding-block: 32px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-faint);
  font-size: 0.9rem;
}
.footer-inner a { color: var(--text-dim); }
.footer-inner a:hover { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .card-grid { grid-template-columns: 1fr; }
  .hero { padding-block: 64px 48px; }
  .gear-a { width: 360px; height: 360px; }
  .gear-b { width: 220px; height: 220px; }
}
