:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --surface: #111111;
  --surface-2: #171717;
  --text: #f5f5f5;
  --muted: #b3b3b3;
  --line: #2a2a2a;
  --line-strong: #3a3a3a;
  --easing-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-soft: 0 8px 28px rgba(0, 0, 0, 0.24);
  --shadow-card: 0 14px 38px rgba(0, 0, 0, 0.26);
}

:root[data-theme='light'] {
  color-scheme: light;
  --bg: #f6f6f6;
  --surface: #ffffff;
  --surface-2: #f0f0f0;
  --text: #0e0e0e;
  --muted: #4f4f4f;
  --line: #dddddd;
  --line-strong: #c8c8c8;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: 'SF Pro Text', 'SF Pro Display', 'Segoe UI', sans-serif;
  background:
    radial-gradient(1200px 700px at 20% -10%, rgba(255, 255, 255, 0.05), transparent 60%),
    radial-gradient(1000px 600px at 90% 10%, rgba(255, 255, 255, 0.035), transparent 62%),
    var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

html {
  scroll-padding-top: 88px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.34s var(--easing-smooth);
}

main {
  overflow: clip;
}

.nav-shell {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(14px) saturate(120%);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-link {
  position: relative;
  width: min(44vw, 230px);
  height: clamp(44px, 7vw, 62px);
  display: block;
}

.logo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.45s var(--easing-smooth);
}

.logo-dark {
  opacity: 1;
}

:root[data-theme='light'] .logo-light {
  opacity: 1;
}

:root[data-theme='light'] .logo-dark {
  opacity: 0;
}

:root:not([data-theme='light']) .logo-light {
  opacity: 0;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  transition: color 0.28s var(--easing-smooth);
}

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

.mobile-toggle {
  display: none;
}

.theme-toggle,
.primary-btn,
.ghost-btn,
button {
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  padding: 0.56rem 0.96rem;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  color: var(--text);
  cursor: pointer;
  transition:
    transform 0.34s var(--easing-smooth),
    background-color 0.34s var(--easing-smooth),
    border-color 0.34s var(--easing-smooth),
    color 0.34s var(--easing-smooth),
    opacity 0.34s var(--easing-smooth),
    box-shadow 0.34s var(--easing-smooth);
}

.primary-btn,
.contact-form button {
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  border-color: transparent;
}

.primary-btn:hover,
.contact-form button:hover {
  opacity: 0.94;
  transform: translateY(-1px);
}

.ghost-btn:hover,
.theme-toggle:hover,
button:hover {
  border-color: color-mix(in srgb, var(--line-strong) 60%, var(--text));
  transform: translateY(-1px);
}

.hero {
  min-height: 82vh;
  display: grid;
  place-items: center;
  padding: 3.2rem 1rem;
  position: relative;
  overflow: clip;
}

.orb {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 66%);
  pointer-events: none;
  filter: blur(10px);
  z-index: 0;
  opacity: 0.55;
}

.hero-inner {
  max-width: 1200px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}

h1 {
  font-size: clamp(2rem, 6vw, 4.1rem);
  line-height: 1.04;
  margin: 0.3rem 0 1rem;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  line-height: 1.14;
}

p,
li,
address {
  color: var(--muted);
  line-height: 1.6;
}

.hero-cta-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.hero-image-wrap img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  transition: transform 0.55s var(--easing-smooth), box-shadow 0.55s var(--easing-smooth);
}

.hero-image-wrap:hover img {
  transform: translateY(-3px) scale(1.006);
  box-shadow: var(--shadow-card);
}

.section,
.page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1rem;
}

.section-head {
  margin-bottom: 1.2rem;
}

.kpi-strip {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.kpi-strip article,
.card {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  transition:
    transform 0.4s var(--easing-smooth),
    border-color 0.4s var(--easing-smooth),
    box-shadow 0.4s var(--easing-smooth),
    background-color 0.4s var(--easing-smooth);
}

.card:hover,
.kpi-strip article:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--line) 35%, var(--text));
  box-shadow: var(--shadow-soft);
}

.kpi-strip strong {
  display: block;
  color: var(--text);
  font-size: 1.8rem;
}

.service-grid,
.reference-grid,
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 0.8rem;
}

.chip-row {
  display: flex;
  gap: 0.65rem;
  margin: 1rem 0 1.2rem;
  flex-wrap: wrap;
}

.chip {
  background: transparent;
}

.chip:hover {
  background: color-mix(in srgb, var(--surface-2) 65%, transparent);
}

.chip.active {
  background: var(--text);
  color: var(--bg);
  border-color: transparent;
}

.more-btn {
  margin-top: 0.65rem;
}

.service-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.service-modal {
  width: min(920px, 100%);
  max-height: 86vh;
  overflow: auto;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  box-shadow: var(--shadow-card);
}

.service-modal-head {
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
}

.service-modal-head h3 {
  margin: 0;
  font-size: 1.2rem;
}

.service-modal-close {
  white-space: nowrap;
}

.service-modal-body {
  padding: 1rem;
}

.service-modal-body ul {
  margin: 0.5rem 0 0;
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
}

.faq-item button {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--text);
  font-size: 1.02rem;
  border-radius: 0;
}

.faq-item p {
  margin: 0.75rem 0 0;
  max-width: 78ch;
}

.testimonial-card {
  display: grid;
  gap: 0.9rem;
}

.testimonial-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.testimonial-rating {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.1rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  line-height: 1;
}

.testimonial-metric {
  color: var(--text);
  font-weight: 600;
}

.faq-item p {
  margin: 0.75rem 0 0;
  max-width: 78ch;
}

.testimonial-card {
  display: grid;
  gap: 0.9rem;
}

.testimonial-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.testimonial-rating {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.1rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  line-height: 1;
}

.testimonial-metric {
  color: var(--text);
  font-weight: 600;
}

.cta-band {
  max-width: 1200px;
  margin: 2rem auto 4rem;
  padding: 2rem 1rem;
  border-radius: 20px;
  background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface-2) 70%, transparent));
  border: 1px solid var(--line);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  margin-top: 1.2rem;
}

.contact-panel,
.contact-cards {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}

.contact-cards {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.contact-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem;
  background: var(--surface-2);
}

.contact-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.contact-link {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-word;
  transition: opacity 0.3s var(--easing-smooth);
}

.contact-link:hover {
  opacity: 0.78;
}

.contact-form {
  display: grid;
  gap: 0.55rem;
  margin: 0;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  padding: 0.8rem;
}

.cookie-box {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 1rem;
  z-index: 45;
  max-width: 820px;
  margin: 0 auto;
  box-shadow: var(--shadow-card);
}

.cookie-box h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}

.cookie-actions {
  display: flex;
  gap: 0.55rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.cookie-muted {
  background: transparent;
  color: var(--text);
}

.floating-cta {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 39;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.34s var(--easing-smooth), box-shadow 0.34s var(--easing-smooth);
}

.floating-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.site-footer {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(900px 360px at 20% 0%, rgba(255, 255, 255, 0.04), transparent 60%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 94%, transparent), var(--bg));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.8fr;
  gap: 1rem;
  align-items: start;
}

.footer-brand,
.footer-nav,
.footer-contact {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: var(--shadow-soft);
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.footer-brand h2,
.footer-nav h3,
.footer-contact h3 {
  margin-top: 0;
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-contact p:last-of-type {
  margin-bottom: 1rem;
}

.footer-contact .primary-btn {
  display: inline-flex;
  margin-top: auto;
  align-self: flex-start;
}

.footer-bottom {
  padding: 0 1rem 2rem;
  text-align: center;
}

@media (max-width: 980px) {
  .hero-inner,
  .service-grid,
  .reference-grid,
  .testimonial-grid,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .kpi-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .mobile-toggle {
    display: inline-flex;
  }

  .logo-link {
    width: min(56vw, 220px);
    height: 52px;
  }

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

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

  .hero-inner,
  .service-grid,
  .reference-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 2rem;
  }

  .hero-cta-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
