:root {
  --bg: #f3f8fc;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --text: #0f2f46;
  --text-muted: #4a6a80;
  --line: rgba(30, 74, 104, 0.18);
  --blue: #0b78be;
  --green: #59c51e;
  --accent: linear-gradient(105deg, #0887d2 0%, #59c51e 100%);
  --shadow: 0 16px 38px rgba(10, 49, 78, 0.14);
  --header-bg: rgba(255, 255, 255, 0.82);
  --kicker: #0c74b9;
  --metric-line: rgba(38, 91, 125, 0.22);
  --chip-bg: rgba(255, 255, 255, 0.9);
  --chip-text: #1f4d6d;
  --button-secondary-bg: rgba(255, 255, 255, 0.85);
  --button-primary-text: #041320;
  --glow-left: rgba(11, 120, 190, 0.22);
  --glow-right: rgba(89, 197, 30, 0.16);
  --theme-track-bg: rgba(255, 255, 255, 0.9);
  --theme-track-border: rgba(30, 74, 104, 0.22);
  --theme-thumb-bg: #f7fcff;
  --theme-icon-sun: #0f7cc4;
  --theme-icon-moon: rgba(24, 66, 94, 0.52);
  --theme-thumb-offset: 2px;
  --header-tint: linear-gradient(110deg, rgba(10, 128, 193, 0.12) 0%, rgba(255, 255, 255, 0) 48%, rgba(98, 180, 55, 0.1) 100%);
  --header-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  --header-accent: linear-gradient(90deg, rgba(10, 128, 193, 0.36) 0%, rgba(98, 180, 55, 0.34) 100%);
  --menu-panel-bg: rgba(248, 252, 255, 0.96);
  --menu-panel-line: rgba(22, 64, 93, 0.26);
  --menu-panel-shadow: 0 20px 44px rgba(7, 35, 56, 0.26);
  --menu-scrim: rgba(234, 243, 250, 0.56);
}

body[data-theme="dark"] {
  --bg: #061320;
  --surface: rgba(8, 28, 45, 0.72);
  --surface-strong: #0b2439;
  --text: #dbe7f0;
  --text-muted: #9cb0bf;
  --line: rgba(160, 187, 205, 0.22);
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.32);
  --header-bg: rgba(7, 24, 39, 0.7);
  --kicker: #a9dbf8;
  --metric-line: rgba(160, 187, 205, 0.26);
  --chip-bg: rgba(9, 30, 47, 0.65);
  --chip-text: #cde0ed;
  --button-secondary-bg: rgba(9, 34, 52, 0.54);
  --button-primary-text: #041320;
  --glow-left: rgba(11, 120, 190, 0.22);
  --glow-right: rgba(89, 197, 30, 0.18);
  --theme-track-bg: rgba(8, 28, 45, 0.88);
  --theme-track-border: rgba(160, 187, 205, 0.24);
  --theme-thumb-bg: #e1f4ff;
  --theme-icon-sun: rgba(140, 203, 241, 0.5);
  --theme-icon-moon: #95c9e8;
  --theme-thumb-offset: 26px;
  --header-tint: linear-gradient(110deg, rgba(18, 134, 193, 0.18) 0%, rgba(10, 26, 42, 0) 50%, rgba(103, 185, 63, 0.14) 100%);
  --header-highlight: inset 0 1px 0 rgba(180, 214, 237, 0.1);
  --header-accent: linear-gradient(90deg, rgba(32, 171, 232, 0.38) 0%, rgba(114, 210, 60, 0.34) 100%);
  --menu-panel-bg: rgba(8, 23, 37, 0.94);
  --menu-panel-line: rgba(148, 181, 202, 0.3);
  --menu-panel-shadow: 0 24px 52px rgba(0, 0, 0, 0.5);
  --menu-scrim: rgba(2, 10, 16, 0.58);
}

body[data-theme="dark"] {
  background: radial-gradient(circle at 15% 12%, rgba(11, 120, 190, 0.3), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(89, 197, 30, 0.24), transparent 34%),
    var(--bg);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  background: radial-gradient(circle at 15% 12%, rgba(11, 120, 190, 0.15), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(89, 197, 30, 0.13), transparent 34%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--menu-scrim);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 9;
}

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

body[data-theme="dark"] #network-bg {
  opacity: 0.72;
}

h1,
h2,
h3 {
  font-family: "Sora", "Segoe UI", sans-serif;
  margin: 0;
}

p {
  margin: 0;
  color: var(--text-muted);
}

.site-header,
main,
.site-footer {
  width: min(1120px, calc(100% - 2.4rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  padding-right: 4.9rem;
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--header-tint), var(--header-bg);
  backdrop-filter: blur(10px);
  box-shadow: var(--header-highlight);
  overflow: hidden;
  transition: transform 240ms ease;
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 14px;
  right: 14px;
  height: 1px;
  background: var(--header-accent);
  opacity: 0.65;
  pointer-events: none;
}

.brand img {
  width: 220px;
  max-width: 48vw;
}

.main-nav {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
  justify-content: flex-start;
  padding-right: 0.5rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: 0.01em;
  padding: 0.12rem 0.1rem;
  border-bottom: 2px solid transparent;
  transition: border-color 160ms ease, color 160ms ease;
}

.main-nav a:hover {
  color: var(--text);
  border-bottom-color: rgba(84, 173, 88, 0.34);
}

.main-nav a.active {
  border-bottom-color: rgba(53, 148, 178, 0.65);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--button-secondary-bg);
  border-radius: 0.58rem;
  width: 44px;
  height: 38px;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
}

.theme-toggle {
  position: absolute;
  top: 0.78rem;
  right: 1rem;
  border: 0;
  background: transparent;
  padding: 0;
  line-height: 0;
  cursor: pointer;
  transition: transform 160ms ease;
}

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

.theme-toggle-track {
  width: 48px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid var(--theme-track-border);
  background: var(--theme-track-bg);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5px;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.theme-toggle-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--theme-thumb-bg);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  position: absolute;
  top: 2px;
  left: 0;
  transform: translateX(var(--theme-thumb-offset));
  transition: transform 220ms ease;
}

.theme-icon {
  width: 11px;
  height: 11px;
  position: relative;
  z-index: 1;
  opacity: 0.9;
}

.theme-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-icon-sun svg {
  stroke: var(--theme-icon-sun);
}

.theme-icon-sun svg circle {
  fill: var(--theme-icon-sun);
  stroke: none;
}

.theme-icon-moon svg {
  stroke: var(--theme-icon-moon);
  fill: var(--theme-icon-moon);
}

main {
  padding: 3.7rem 0 4rem;
  display: grid;
  gap: 4.3rem;
}

.hero {
  display: grid;
  gap: 1.2rem;
  max-width: 820px;
}

.page-hero {
  max-width: 900px;
}

.legal-hero h1 {
  font-size: clamp(1.55rem, 3.2vw, 2.25rem);
}

.legal-hero .hero-copy {
  font-size: 0.98rem;
  max-width: 640px;
}

.kicker {
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--kicker);
}

.hero h1 {
  font-size: clamp(2rem, 5.7vw, 3.8rem);
  line-height: 1.07;
}

.hero-copy {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  max-width: 720px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.7rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.78rem 1.25rem;
  border: 1px solid transparent;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

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

.button.primary {
  background: linear-gradient(105deg, #2e8eba 0%, #6daf4b 100%);
  color: var(--button-primary-text);
  box-shadow: 0 8px 22px rgba(54, 118, 104, 0.24);
}

.button.secondary {
  border-color: var(--line);
  color: var(--text);
  background: var(--button-secondary-bg);
}

.hero-metrics {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.hero-metrics li {
  color: var(--text-muted);
  border-left: 2px solid var(--metric-line);
  padding-left: 0.72rem;
}

.hero-metrics strong {
  color: var(--text);
  margin-right: 0.4rem;
}

.section {
  display: grid;
  gap: 1.2rem;
}

.section-head {
  display: grid;
  gap: 0.5rem;
  max-width: 760px;
}

.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.2;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.95rem;
}

.card,
.pillars article,
.contact {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 1rem;
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.card h3,
.pillars h3 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

.card p,
.pillars p,
.contact p {
  line-height: 1.6;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.95rem;
}

.industry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.industry-tags span {
  border: 1px solid var(--line);
  color: var(--chip-text);
  border-radius: 100px;
  padding: 0.5rem 0.85rem;
  font-size: 0.92rem;
  background: var(--chip-bg);
}

.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
}

.contact h2 {
  margin-bottom: 0.6rem;
}

.site-footer {
  margin-bottom: 1.4rem;
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer-copy {
  display: grid;
  justify-items: end;
  gap: 0.28rem;
}

.site-footer img {
  width: 250px;
  max-width: 74vw;
}

body[data-theme="dark"] .site-footer img {
  filter: brightness(1.08) contrast(1.08) drop-shadow(0 2px 10px rgba(160, 207, 236, 0.25));
}

.site-footer p {
  font-size: 0.9rem;
}

.footer-legal-link {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
}

.footer-legal-link:hover {
  color: var(--text);
}

.page-glow {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
}

.page-glow-left {
  left: -100px;
  top: 210px;
  background: var(--glow-left);
  animation: drift 12s ease-in-out infinite;
}

.page-glow-right {
  right: -120px;
  top: 75px;
  background: var(--glow-right);
  animation: drift 10s ease-in-out infinite reverse;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes drift {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(15px);
  }
}

@media (max-width: 700px) {
  .site-header {
    align-items: center;
    justify-content: flex-start;
    padding: 0.74rem 0.9rem;
    padding-left: 4rem;
    padding-right: 8rem;
    min-height: 56px;
    overflow: visible;
  }

  .site-header.header-hidden {
    transform: translateY(calc(-100% - 0.9rem));
  }

  body.nav-open .site-header {
    transform: translateY(0);
  }

  body.nav-open::before {
    opacity: 1;
    pointer-events: auto;
  }

  .brand img {
    width: 166px;
  }

  .menu-toggle {
    display: inline-flex;
    position: absolute;
    top: 50%;
    left: 0.9rem;
    transform: translateY(-50%);
    z-index: 12;
  }

  .menu-toggle:hover {
    transform: translateY(-50%);
  }

  .main-nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0.9rem;
    right: 0.9rem;
    z-index: 11;
    background: var(--menu-panel-bg);
    border: 1px solid var(--menu-panel-line);
    border-radius: 0.8rem;
    padding: 0.55rem;
    box-shadow: var(--menu-panel-shadow);
    backdrop-filter: blur(4px);
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
  }

  body.nav-open .main-nav {
    display: flex;
  }

  .main-nav {
    padding-right: 0;
  }

  .main-nav a {
    font-size: 0.98rem;
    padding: 0.72rem 0.72rem;
    border-bottom: 0;
    border-radius: 0.5rem;
  }

  .main-nav a.active {
    background: rgba(53, 148, 178, 0.14);
  }

  .theme-toggle {
    top: 50%;
    right: 0.9rem;
    transform: translateY(-50%);
    z-index: 12;
  }

  .theme-toggle:hover {
    transform: translateY(-50%);
  }

  body.nav-open #network-bg {
    opacity: 0.22;
  }

  body[data-theme="dark"].nav-open #network-bg {
    opacity: 0.18;
  }

  .site-footer img {
    width: 170px;
    max-width: 56vw;
  }

  .site-footer-copy {
    justify-items: start;
  }

  main {
    padding-top: 2.8rem;
    gap: 3.6rem;
  }

  .contact {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .page-glow,
  #network-bg,
  .reveal,
  .reveal.visible,
  .button {
    animation: none;
    transition: none;
    transform: none;
  }

  .reveal {
    opacity: 1;
  }
}
