:root {
  color-scheme: dark;
  --ink: #f7f8fb;
  --bg: #090d12;
  --panel: #111821;
  --panel-2: #17212d;
  --line: #263545;
  --muted: #aab5c2;
  --blue: #1f66ff;
  --blue-strong: #6fa0ff;
  --ember: #ff9f2f;
  --lime: #8fd36b;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
  --grid-line: rgba(255, 255, 255, 0.035);
  --header-bg: rgba(9, 13, 18, 0.88);
  --header-line: rgba(111, 160, 255, 0.16);
  --card-bg: rgba(17, 24, 33, 0.88);
  --section-alt: #0f151d;
  --inverse-bg: #edf1f6;
  --inverse-ink: #121820;
  --inverse-muted: #56616f;
  --toggle-bg: rgba(255, 255, 255, 0.06);
  --toggle-ink: #f7f8fb;
}

html[data-theme="light"] {
  color-scheme: light;
  --ink: #111820;
  --bg: #f5f7fb;
  --panel: #ffffff;
  --panel-2: #eef3f8;
  --line: #d4dde8;
  --muted: #526071;
  --blue: #1358e8;
  --blue-strong: #0d3fa9;
  --ember: #cf6b17;
  --lime: #3d7b30;
  --shadow: 0 24px 72px rgba(17, 24, 32, 0.12);
  --grid-line: rgba(17, 24, 32, 0.055);
  --header-bg: rgba(245, 247, 251, 0.9);
  --header-line: rgba(19, 88, 232, 0.14);
  --card-bg: rgba(255, 255, 255, 0.9);
  --section-alt: #ffffff;
  --inverse-bg: #111820;
  --inverse-ink: #f7f8fb;
  --inverse-muted: #b8c3d0;
  --toggle-bg: #ffffff;
  --toggle-ink: #111820;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    linear-gradient(180deg, var(--grid-line) 1px, transparent 1px),
    var(--bg);
  background-size: 54px 54px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

main {
  overflow: hidden;
}

.section-shell,
.site-header,
.site-footer {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-line);
  backdrop-filter: blur(18px);
}

.brand,
.site-header nav,
.hero-actions,
.button,
.theme-toggle,
.service-card span,
.product-topline,
.contact-card {
  display: flex;
  align-items: center;
}

.brand {
  min-width: 0;
}

.brand-logo {
  display: block;
  width: clamp(178px, 20vw, 236px);
  max-width: 42vw;
  height: auto;
  object-fit: contain;
  filter:
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.62))
    drop-shadow(0 10px 20px rgba(0, 0, 0, 0.22));
}

html[data-theme="light"] .brand-logo {
  filter: drop-shadow(0 10px 18px rgba(17, 24, 32, 0.12));
}

.site-header nav {
  gap: 2px;
}

.site-header nav a {
  padding: 10px 11px;
  color: var(--muted);
  border-radius: 7px;
  font-size: 0.94rem;
  font-weight: 650;
}

.site-header nav a:hover {
  color: var(--ink);
  background: rgba(31, 102, 255, 0.1);
}

.theme-toggle {
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  color: var(--toggle-ink);
  background: var(--toggle-bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 760;
  cursor: pointer;
}

.theme-toggle-icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: #ffffff;
  background: var(--blue);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 900;
}

.theme-toggle:hover {
  border-color: var(--blue);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
  gap: 66px;
  align-items: center;
  min-height: calc(100svh - 78px);
  padding: 54px 0 76px;
}

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

h1,
h2,
h3,
p,
dl {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(4rem, 9vw, 7.1rem);
  line-height: 0.86;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  letter-spacing: 0;
}

.lead,
.section-heading p,
.service-card p,
.product-card p,
.process-list p,
.policy-card p,
.policy-heading p,
.contact-inner p {
  color: var(--muted);
  line-height: 1.72;
}

.lead {
  max-width: 690px;
  margin-bottom: 30px;
  font-size: 1.15rem;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 780;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover,
.contact-card:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #ffffff;
  background: var(--blue);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}

html[data-theme="light"] .button.secondary {
  background: rgba(255, 255, 255, 0.72);
}

.company-panel {
  padding: 24px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.panel-header span {
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 760;
  text-transform: uppercase;
}

.panel-header strong {
  color: var(--lime);
}

.company-facts {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
}

.company-facts div {
  padding: 16px;
  background: color-mix(in srgb, var(--panel-2) 72%, transparent);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.company-facts dt {
  margin-bottom: 7px;
  color: var(--blue-strong);
  font-size: 0.76rem;
  font-weight: 840;
  text-transform: uppercase;
}

.company-facts dd {
  margin: 0;
  font-weight: 740;
}

.company-facts a,
.policy-heading a {
  color: var(--blue-strong);
}

.services-section,
.products-section,
.process-section,
.policy-section {
  padding: 96px 0;
}

.services-section {
  background: var(--section-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 850px;
  margin-bottom: 34px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.service-card,
.product-card,
.process-list article,
.policy-card {
  border-radius: 8px;
}

.service-card {
  min-height: 302px;
  padding: 23px;
  background: var(--card-bg);
  border: 1px solid var(--line);
}

.service-card span {
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 38px;
  color: #ffffff;
  background: var(--blue);
  border-radius: 8px;
  font-weight: 840;
}

.products-section {
  background: var(--inverse-bg);
  color: var(--inverse-ink);
}

.products-section .eyebrow {
  color: var(--ember);
}

.products-section .section-heading p,
.product-card p {
  color: var(--inverse-muted);
}

.products-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
  gap: 56px;
  align-items: start;
}

.product-grid {
  display: grid;
  gap: 14px;
}

.product-card {
  min-height: 250px;
  padding: 24px;
  background: color-mix(in srgb, var(--inverse-bg) 86%, var(--inverse-ink));
  border: 1px solid color-mix(in srgb, var(--inverse-ink) 18%, var(--inverse-bg));
}

.product-topline {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 28px;
}

.product-topline span {
  min-height: 30px;
  padding: 6px 10px;
  color: var(--blue-strong);
  background: rgba(31, 102, 255, 0.1);
  border: 1px solid rgba(31, 102, 255, 0.22);
  border-radius: 7px;
  font-size: 0.76rem;
  font-weight: 840;
  text-transform: uppercase;
}

.product-topline strong {
  color: var(--ember);
}

.product-card h3 {
  font-size: 1.65rem;
}

.process-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(460px, 1.22fr);
  gap: 52px;
  align-items: start;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.process-list article {
  min-height: 210px;
  padding: 22px;
  background: var(--card-bg);
  border: 1px solid var(--line);
}

.process-list span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 28px;
  color: var(--ember);
  border: 1px solid color-mix(in srgb, var(--ember) 52%, transparent);
  border-radius: 8px;
  font-weight: 840;
}

.policy-section {
  background: color-mix(in srgb, var(--section-alt) 88%, var(--bg));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.policy-inner {
  display: grid;
  gap: 34px;
}

.policy-heading {
  max-width: 880px;
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.policy-card {
  min-height: 322px;
  padding: 22px;
  background: var(--card-bg);
  border: 1px solid var(--line);
}

.policy-card p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

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

.contact-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: center;
  padding: 86px 0;
}

.contact-inner > div {
  max-width: 640px;
}

.contact-card {
  gap: 12px;
  min-height: 58px;
  padding: 0 18px;
  color: #ffffff;
  background: var(--blue);
  border-radius: 8px;
  font-weight: 820;
  transition: transform 160ms ease;
  white-space: nowrap;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 38px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

@media (max-width: 1060px) {
  .hero,
  .products-inner,
  .process-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 54px;
  }

  .company-panel {
    max-width: 680px;
  }

  .service-grid,
  .policy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 740px) {
  .section-shell,
  .site-header,
  .site-footer {
    width: min(100% - 28px, 1160px);
  }

  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .site-header nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .site-header nav a {
    padding-inline: 8px;
  }

  .brand-logo {
    max-width: 68vw;
  }

  h1 {
    font-size: 3.7rem;
    line-height: 0.9;
  }

  h2 {
    font-size: 2.05rem;
  }

  .lead {
    font-size: 1.05rem;
  }

  .button,
  .contact-card {
    width: 100%;
    justify-content: center;
  }

  .service-grid,
  .process-list,
  .policy-grid {
    grid-template-columns: 1fr;
  }

  .services-section,
  .products-section,
  .process-section,
  .policy-section {
    padding: 74px 0;
  }

  .contact-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 74px 0;
  }

  .contact-card {
    white-space: normal;
  }

  .site-footer {
    flex-direction: column;
  }
}
