:root {
  --ink: #102033;
  --ink-strong: #07111f;
  --ink-muted: #5d6b7c;
  --surface: #ffffff;
  --surface-soft: #f5f7fb;
  --surface-blue: #eaf6ff;
  --line: #d9e1ec;
  --brand: #42a5f5;
  --brand-dark: #0a2e56;
  --mint: #16a67a;
  --mint-soft: #dcf8ee;
  --warm: #f9734d;
  --warm-soft: #fff0e9;
  --focus: #9be7ff;
  --shadow: 0 22px 70px rgba(10, 22, 38, 0.12);
  --max: 1160px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-size: 16px;
  line-height: 1.6;
}

body.splash-page {
  min-height: 100vh;
  overflow: hidden;
  background: #07111f;
}

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

img,
svg {
  display: block;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(calc(100% - 32px), var(--max));
  margin: 14px auto 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(7, 17, 31, 0.68);
  color: #fff;
  backdrop-filter: blur(18px);
  border-radius: 8px;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.solid {
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  border-color: rgba(16, 32, 51, 0.1);
  box-shadow: 0 12px 40px rgba(12, 24, 43, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  line-height: 1;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 7px;
}

.brand span {
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.92rem;
  color: currentColor;
}

.nav a,
.footer nav a {
  opacity: 0.8;
  transition: opacity 160ms ease, color 160ms ease;
}

.nav a:hover,
.footer nav a:hover {
  opacity: 1;
  color: var(--brand);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--brand);
  color: #06111f;
  font-weight: 800;
  font-size: 0.9rem;
}

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: #07111f;
}

.hero-canvas,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.splash {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  overflow: hidden;
  padding: 28px;
  color: #fff;
  background: #07111f;
}

.splash-canvas,
.splash-vignette {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.splash-vignette {
  background:
    radial-gradient(circle at 50% 45%, rgba(66, 165, 245, 0.14), transparent 34%),
    radial-gradient(circle at 50% 50%, rgba(7, 17, 31, 0.18), rgba(7, 17, 31, 0.94) 76%),
    linear-gradient(180deg, rgba(7, 17, 31, 0.22), rgba(7, 17, 31, 0.86));
}

.splash-card {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  width: min(100%, 420px);
  padding: clamp(28px, 6vw, 64px);
  text-align: center;
}

.splash-logo {
  width: clamp(140px, 24vw, 240px);
  height: clamp(140px, 24vw, 240px);
  object-fit: contain;
  border-radius: 0;
  filter: drop-shadow(0 34px 88px rgba(66, 165, 245, 0.32));
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(7, 17, 31, 0.96) 0%, rgba(7, 17, 31, 0.74) 48%, rgba(7, 17, 31, 0.34) 100%),
    linear-gradient(180deg, rgba(7, 17, 31, 0.25) 0%, rgba(7, 17, 31, 0.78) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 145px 0 78px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.legal-content h1 {
  margin: 0;
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 820px;
  font-size: clamp(3rem, 8vw, 6.9rem);
}

.hero-copy {
  max-width: 720px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 850;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.button-primary {
  background: var(--brand);
  color: #06111f;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.legal-content .button-secondary,
.section .button-secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.trust-line {
  max-width: 620px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.98rem;
}

.section {
  padding: 96px 0;
}

.section-inner {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.section-heading {
  max-width: 780px;
}

.section-heading.compact {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}

.section h2 {
  color: var(--ink-strong);
  font-size: clamp(2.1rem, 4vw, 4rem);
}

.section-heading p:not(.eyebrow),
.diagnostic-panel p,
.about-layout p,
.contact-layout p,
.legal-content p {
  color: var(--ink-muted);
  font-size: 1.06rem;
}

.problem-section {
  background: var(--surface);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 42px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.problem-grid article,
.service-card,
.steps article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.problem-grid article {
  min-height: 270px;
  padding: 22px;
}

.problem-grid span,
.steps span {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--brand);
  font-weight: 900;
}

.problem-grid h3,
.service-card h3,
.steps h3 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 1.1rem;
  line-height: 1.2;
}

.problem-grid p,
.service-card p,
.steps p {
  margin: 14px 0 0;
  color: var(--ink-muted);
  font-size: 0.96rem;
}

.services-section {
  background: var(--surface-soft);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  padding: 28px;
  box-shadow: 0 18px 55px rgba(14, 30, 50, 0.06);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 24px;
  border-radius: 8px;
  background: var(--surface-blue);
  color: var(--brand-dark);
}

.service-icon.warm {
  background: var(--warm-soft);
  color: var(--warm);
}

.service-icon.green {
  background: var(--mint-soft);
  color: var(--mint);
}

.service-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card ul,
.check-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.service-card li,
.check-list li {
  position: relative;
  padding-left: 24px;
  color: var(--ink);
  font-size: 0.95rem;
}

.service-card li::before,
.check-list li::before {
  content: "";
  position: absolute;
  top: 0.64em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}

.process-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) 1.1fr;
  gap: 56px;
}

.sticky-heading {
  align-self: start;
  position: sticky;
  top: 120px;
}

.steps {
  display: grid;
  gap: 14px;
}

.steps article {
  padding: 24px;
}

.diagnostic-section {
  background: #0b1829;
  color: #fff;
}

.diagnostic-panel {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 42px;
  align-items: center;
}

.diagnostic-panel h2 {
  color: #fff;
}

.diagnostic-panel p {
  color: rgba(255, 255, 255, 0.74);
}

.diagnostic-panel .button {
  margin-top: 18px;
}

.check-list {
  margin: 0;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.check-list li {
  color: rgba(255, 255, 255, 0.9);
}

.about-section {
  background: var(--surface);
}

.about-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  align-items: center;
}

.about-mark {
  display: grid;
  place-items: center;
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(66, 165, 245, 0.12), rgba(22, 166, 122, 0.12)),
    #fff;
}

.about-mark img {
  width: 122px;
  height: 122px;
}

.about-layout strong {
  display: block;
  margin-top: 22px;
  color: var(--ink-strong);
  font-size: 1.2rem;
}

.contact-section {
  background: var(--surface-soft);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-note {
  display: grid;
  gap: 3px;
  max-width: 420px;
  margin-top: 30px;
  padding: 18px;
  border-left: 4px solid var(--mint);
  background: #fff;
  border-radius: 8px;
}

.contact-note span {
  color: var(--ink-muted);
  font-size: 0.86rem;
}

.contact-note strong {
  color: var(--ink-strong);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 7px;
}

.contact-form label.full,
.contact-form button,
.form-help {
  grid-column: 1 / -1;
}

.contact-form span {
  color: var(--ink-strong);
  font-size: 0.9rem;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fbfdff;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  width: 100%;
  border: 0;
}

.form-help {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.88rem;
}

.footer {
  padding: 34px 0;
  background: var(--ink-strong);
  color: #fff;
}

.footer-inner {
  display: grid;
  grid-template-columns: 170px 1fr auto;
  gap: 26px;
  align-items: center;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  font-size: 0.92rem;
}

.simple-page {
  background: var(--surface-soft);
}

.legal-main {
  padding: 130px 20px 80px;
}

.legal-content {
  width: min(100%, 820px);
  margin: 0 auto;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.legal-content h1 {
  color: var(--ink-strong);
  font-size: clamp(2.3rem, 5vw, 4rem);
}

.legal-content h2 {
  margin: 30px 0 0;
  color: var(--ink-strong);
}

.legal-content .button {
  margin-top: 24px;
}

@media (max-width: 980px) {
  .site-header {
    width: calc(100% - 22px);
  }

  .nav {
    display: none;
  }

  .hero {
    min-height: 700px;
  }

  .hero-shade {
    background: linear-gradient(180deg, rgba(7, 17, 31, 0.92) 0%, rgba(7, 17, 31, 0.72) 100%);
  }

  .service-grid,
  .process-layout,
  .diagnostic-panel,
  .about-layout,
  .contact-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .sticky-heading {
    position: static;
  }

  .footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-header {
    margin-top: 10px;
    padding: 8px;
  }

  .brand span {
    font-size: 0.96rem;
  }

  .header-cta {
    min-height: 36px;
    padding: 0 10px;
    font-size: 0.8rem;
  }

  .hero-inner,
  .section-inner {
    width: min(calc(100% - 28px), var(--max));
  }

  .hero-inner {
    padding-top: 118px;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 13vw, 4.2rem);
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 68px 0;
  }

  .section h2 {
    font-size: clamp(1.9rem, 10vw, 2.7rem);
  }

  .problem-grid {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .problem-grid article {
    min-height: auto;
  }

  .service-card,
  .steps article,
  .contact-form,
  .legal-content {
    padding: 22px;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .about-mark {
    min-height: 190px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .hero-canvas {
    opacity: 0.55;
  }
}
