:root {
  --bg: #0a0d12;
  --bg-raised: #10141b;
  --fg: #e7ebf0;
  --fg-muted: #8a94a3;
  --accent: #f2b155;
  --accent-dim: #d9770633;
  --border: #ffffff14;
  --error: #f87171;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, Menlo, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-w: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

/* Header */
.site-header {
  position: relative;
  z-index: 2;
  padding: 1.5rem 0;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 1.05rem;
}
.brand-mark { color: var(--accent); }
.site-nav { display: flex; gap: 1.75rem; }
.site-nav a {
  color: var(--fg-muted);
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
.site-nav a:hover, .site-nav a.active { color: var(--fg); }

/* Main sections */
main { position: relative; z-index: 1; }

section { padding: 5rem 0; }

.hero { padding-top: 6rem; padding-bottom: 6rem; }
.eyebrow {
  font-family: var(--mono);
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin: 0 0 1rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.15;
  margin: 0 0 1.25rem;
  max-width: 18ch;
}
.accent { color: var(--accent); }
.lead {
  color: var(--fg-muted);
  font-size: 1.1rem;
  max-width: 56ch;
  margin: 0 0 2rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent);
  color: #2a1a05;
  font-weight: 600;
  padding: 0.8rem 1.4rem;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
}
.cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px var(--accent-dim); }
.cta-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border);
  margin-top: 1.5rem;
}

/* Services */
.services h2, .about h2 {
  font-size: 1.6rem;
  margin: 0 0 2.5rem;
}
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 620px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); }
}
.service-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.service-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-3px);
}
.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1.1rem;
  border-radius: 10px;
  background: var(--accent-dim);
  position: relative;
}
.icon-svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}
.service-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}
.service-card p {
  margin: 0;
  color: var(--fg-muted);
  font-size: 0.92rem;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: start;
}
.about-text p { color: var(--fg-muted); }
.about-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
}

/* Mouse-follow spotlight on card surfaces */
.spot-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(240px circle at var(--x, 50%) var(--y, 50%), var(--accent-dim), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.spot-card:hover::before { opacity: 1; }
.spot-card > * {
  position: relative;
  z-index: 1;
}
.about-card-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.about-card-row:last-of-type { border-bottom: none; }
.about-card-row .label { color: var(--fg-muted); }

/* Contact */
.contact-page { padding-top: 5rem; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
}
.contact-page h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0 0 1rem;
}
.contact-detail {
  margin-top: 1.25rem;
  font-family: var(--mono);
  font-size: 0.95rem;
}
.contact-detail .label {
  display: block;
  color: var(--fg-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--fg-muted);
}
.contact-form input,
.contact-form textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
  color: var(--fg);
  font-family: var(--sans);
  font-size: 0.95rem;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  margin: 0;
  min-height: 1.2rem;
  font-size: 0.85rem;
  color: var(--fg-muted);
}
.form-status.is-success { color: var(--accent); }
.form-status.is-error { color: var(--error); }

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 2rem;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--fg-muted);
  font-size: 0.85rem;
}

@media (max-width: 760px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  section { padding: 3.5rem 0; }
  .hero { padding-top: 3rem; padding-bottom: 3rem; }
  .service-grid { gap: 1rem; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 1.1rem; }
  .site-header .wrap { flex-wrap: wrap; gap: 0.75rem; }
  .site-nav { gap: 1.25rem; }
  .hero { padding-top: 2.25rem; padding-bottom: 2.25rem; }
  .lead { font-size: 1rem; }
  .service-card, .about-card, .contact-form { padding: 1.4rem; }
  .cta { width: 100%; justify-content: center; }
  .site-footer .wrap { flex-direction: column; gap: 0.35rem; }
}
