:root {
  --bg: #0f1115;
  --bg-alt: #161a21;
  --surface: #1d222c;
  --border: #242b38;
  --text: #e8eaf0;
  --text-dim: #9aa3b2;
  --accent: #28c76f;
  --accent-dark: #1fa35a;
  --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

section[id] { scroll-margin-top: 76px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Shared surface panels */
.hero-stat, .usecase-media, .usecase-body, .card, .spec, .step,
.faq-item, .job-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 17, 21, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

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

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

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--text); }

.nav-links .fb-link {
  color: var(--accent);
  font-weight: 600;
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.85rem;
}

.nav-links .fb-link:hover {
  background: var(--accent);
  color: #0b0d10;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero */
.hero {
  padding: 7rem 0 6rem;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(40, 199, 111, 0.12), transparent);
}

.hero-kicker {
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-sub {
  color: var(--text-dim);
  font-size: 1.15rem;
  max-width: 540px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  max-width: 860px;
  margin: 3.5rem auto 0;
}

.hero-stat {
  padding: 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hero-stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}

.hero-stat-label {
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Use cases */
.usecase {
  display: flex;
  align-items: stretch;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.usecase:nth-of-type(odd) { flex-direction: row-reverse; }

.usecase-media {
  flex: 0 0 38%;
  min-height: 180px;
  overflow: hidden;
}

.usecase-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.usecase-body {
  flex: 1;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.usecase-body h3 {
  margin-bottom: 0.6rem;
  font-size: 1.25rem;
}

.usecase-body p { color: var(--text-dim); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  transition: background 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(40, 199, 111, 0.18);
}

.btn-primary {
  background: var(--accent);
  color: #0b0d10;
}

.btn-primary:hover { background: var(--accent-dark); }

.btn-ghost {
  border: 1px solid #2e3645;
  color: var(--text);
}

.btn-ghost:hover { border-color: var(--accent); }

/* Sections */
.section { padding: 4.5rem 0; }

.section-alt { background: var(--bg-alt); }

.section h2 {
  font-size: 2rem;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.section h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin-top: 0.6rem;
  border-radius: 2px;
  background: var(--accent);
}

.section-intro {
  color: var(--text-dim);
  max-width: 620px;
  margin-bottom: 2.5rem;
}

.section-intro a { color: var(--accent); }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.card { padding: 1.5rem; }

.card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.card p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* Specs */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.spec {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.spec-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
}

.spec-label {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.step { padding: 1.75rem; }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--accent);
  color: #0b0d10;
  font-weight: 700;
  margin-bottom: 1rem;
}

.step h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.step p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* FAQ */
.faq-list {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item { padding: 1rem 1.25rem; }

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 1.5rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  color: var(--accent);
  font-size: 1.2rem;
}

.faq-item[open] summary::after { content: "–"; }

.faq-item p {
  color: var(--text-dim);
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

/* Previous Work gallery */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.job-card { overflow: hidden; }

.job-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.job-card:hover img { transform: scale(1.04); }

.job-card figcaption {
  padding: 0.9rem 1.1rem;
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* Contact */
.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.5rem;
  align-items: start;
}

.quote-form, .quote-aside {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.quote-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.quote-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  border: 1px solid #303846;
  border-radius: 8px;
  background: #11151c;
  color: var(--text);
  font: inherit;
  font-weight: 400;
  padding: 0.75rem 0.85rem;
}

.quote-form textarea { resize: vertical; }

.quote-form input::placeholder,
.quote-form textarea::placeholder {
  color: #737d8e;
}

.quote-form button { align-self: flex-start; }

.form-note {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.mail-fallback {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid #2f5e45;
  border-radius: 8px;
  background: rgba(40, 199, 111, 0.08);
}

.mail-fallback[hidden] { display: none; }

.mail-fallback p {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.mail-fallback strong { color: var(--text); }

.mail-fallback a { color: var(--accent); }

.mail-fallback textarea {
  font-size: 0.85rem;
  resize: vertical;
}

.quote-aside {
  padding: 1.5rem;
}

.quote-aside h3 {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.quote-aside ul {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-left: 1.1rem;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.service-note {
  margin: 1.4rem 0;
  padding: 1rem;
  border: 1px solid #2f5e45;
  border-radius: 8px;
  background: rgba(40, 199, 111, 0.08);
  color: var(--text-dim);
  font-size: 0.95rem;
}

.service-note strong {
  display: block;
  color: var(--text);
}

.contact-email {
  margin-top: 1.25rem;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.contact-email a { color: var(--accent); }

/* Fluid motion */
.card, .spec, .step, .hero-stat, .job-card {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover, .spec:hover, .step:hover, .job-card:hover {
  transform: translateY(-4px);
  border-color: #2f5e45;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .spec, .step, .hero-stat, .job-card, .job-card img, .btn {
    transition: none;
  }
  .card:hover, .spec:hover, .step:hover, .job-card:hover, .btn:hover {
    transform: none;
  }
  .job-card:hover img { transform: none; }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
}

.footer-links a:hover { color: var(--accent); }

/* Mobile */
@media (max-width: 640px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open { display: flex; }

  .nav-links li { border-top: 1px solid var(--border); }

  .nav-links a {
    display: block;
    padding: 1rem 1.25rem;
  }

  .nav-links .fb-link {
    border: none;
    border-radius: 0;
    padding: 1rem 1.25rem;
    font-size: inherit;
  }

  .hero { padding: 4.5rem 0 4rem; }

  .usecase,
  .usecase:nth-of-type(odd) {
    flex-direction: column;
  }

  .usecase-media { min-height: 200px; }

  .quote-layout,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .quote-form button { width: 100%; }
}
