:root {
  --bg: #eff3f8;
  --bg-gradient-start: #f4f6fa;
  --bg-gradient-mid: #eef2f7;
  --bg-gradient-end: #ebeff5;
  --bg-soft: #f7f9fc;
  --surface: rgba(255, 255, 255, 0.64);
  --surface-strong: rgba(255, 255, 255, 0.8);
  --surface-stroke: rgba(255, 255, 255, 0.62);
  --line: rgba(28, 45, 74, 0.12);
  --line-strong: rgba(28, 45, 74, 0.2);
  --text: #0c1424;
  --muted: #3f4d66;
  --muted-strong: #223149;
  --accent: #2a6df6;
  --accent-strong: #1348bf;
  --accent-soft: rgba(42, 109, 246, 0.12);
  --warm: #a77431;
  --shadow-lg: 0 28px 80px rgba(18, 29, 48, 0.12);
  --shadow-md: 0 20px 48px rgba(18, 29, 48, 0.08);
  --shadow-sm: 0 12px 24px rgba(18, 29, 48, 0.06);
  --radius-xl: 34px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --container: 1180px;
  --section-space: clamp(5rem, 8vw, 8rem);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0b1220;
  --bg-gradient-start: #0d1624;
  --bg-gradient-mid: #0c1420;
  --bg-gradient-end: #0a111c;
  --bg-soft: #0f1b30;
  --surface: rgba(12, 24, 42, 0.7);
  --surface-strong: rgba(15, 29, 50, 0.82);
  --surface-stroke: rgba(154, 183, 227, 0.16);
  --line: rgba(166, 190, 228, 0.2);
  --line-strong: rgba(166, 190, 228, 0.3);
  --text: #f5f8ff;
  --muted: #c4d0e4;
  --muted-strong: #e3ebf8;
  --accent: #73a4ff;
  --accent-strong: #9dc0ff;
  --accent-soft: rgba(115, 164, 255, 0.18);
  --warm: #e3c58e;
  --shadow-lg: 0 28px 80px rgba(2, 8, 20, 0.44);
  --shadow-md: 0 20px 48px rgba(2, 8, 20, 0.34);
  --shadow-sm: 0 12px 24px rgba(2, 8, 20, 0.24);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html.menu-open,
html.menu-open body {
  overflow: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(77, 151, 255, 0.1), transparent 22%),
    radial-gradient(circle at 85% 12%, rgba(255, 255, 255, 0.4), transparent 16%),
    linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 42%, var(--bg-gradient-end) 100%);
  overflow-x: hidden;
  transition: background-color 220ms ease, color 220ms ease, background 220ms ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.35) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.8), transparent 80%);
  opacity: 0.26;
}

img {
  max-width: 100%;
  display: block;
}

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

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-wrap: balance;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(42, 109, 246, 0.28);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  background: #ffffff;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.skip-link:focus {
  top: 16px;
}

.page-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(24px);
  pointer-events: none;
  opacity: 0.75;
  z-index: 0;
}

.page-glow-one {
  top: 7rem;
  left: -7rem;
  width: 18rem;
  height: 18rem;
  background: rgba(88, 150, 255, 0.14);
}

.page-glow-two {
  right: -4rem;
  top: 24rem;
  width: 14rem;
  height: 14rem;
  background: rgba(255, 255, 255, 0.72);
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: 16px;
}

.nav-shell {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem 0.9rem 1.25rem;
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
  border: 1px solid var(--surface-stroke);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(22px) saturate(150%);
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  width: clamp(170px, 23vw, 300px);
  height: auto;
}

.brand-logo-light {
  display: none;
}

:root[data-theme="light"] .brand-logo-dark,
:root:not([data-theme="dark"]) .brand-logo-dark {
  display: none;
}

:root[data-theme="light"] .brand-logo-light,
:root:not([data-theme="dark"]) .brand-logo-light {
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-nav a {
  padding: 0.75rem 1rem;
  color: var(--muted-strong);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--text);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--surface);
}

.nav-cta {
  color: #f7fbff;
  background: linear-gradient(180deg, rgba(52, 110, 215, 0.96), rgba(32, 82, 177, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 12px 24px rgba(22, 53, 110, 0.16);
  border: 1px solid rgba(43, 93, 188, 0.72);
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: linear-gradient(180deg, rgba(58, 117, 221, 0.98), rgba(34, 87, 184, 0.98));
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 16px 28px rgba(22, 53, 110, 0.2);
}

:root[data-theme="dark"] .nav-cta {
  color: #eef5ff;
  background: linear-gradient(180deg, rgba(66, 118, 213, 0.94), rgba(42, 85, 168, 0.96));
  border-color: rgba(120, 160, 234, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 28px rgba(6, 14, 30, 0.34);
}

.nav-cta:hover,
.nav-cta:focus-visible,
.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-strong);
  position: relative;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  min-width: 68px;
  padding: 0.35rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

:root[data-theme="dark"] .theme-toggle {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

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

.theme-toggle-track {
  position: relative;
  width: 56px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.18), rgba(15, 23, 40, 0.06));
  border: 1px solid rgba(37, 99, 235, 0.12);
}

:root[data-theme="dark"] .theme-toggle-track {
  background: linear-gradient(180deg, rgba(148, 187, 255, 0.24), rgba(15, 23, 40, 0.34));
  border-color: rgba(148, 187, 255, 0.16);
}

.theme-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff, #dfe7f3);
  box-shadow: 0 6px 14px rgba(17, 24, 39, 0.18);
  transition: transform 220ms ease, background 220ms ease;
}

:root[data-theme="dark"] .theme-toggle-thumb {
  transform: translateX(24px);
  background: linear-gradient(180deg, #dfe9ff, #8db1ff);
}

.theme-icon {
  position: relative;
  z-index: 1;
  font-size: 0.82rem;
  line-height: 1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-toggle span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2px;
  background: var(--text);
  transition: transform 180ms ease, top 180ms ease, opacity 180ms ease;
}

.nav-toggle span:first-child {
  top: 18px;
}

.nav-toggle span:last-child {
  top: 26px;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  top: 22px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  top: 22px;
  transform: rotate(-45deg);
}

.section {
  padding: var(--section-space) 0;
  scroll-margin-top: 112px;
}

.hero {
  padding-top: clamp(3.5rem, 7vw, 6.5rem);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 2rem);
  align-items: center;
}

.eyebrow,
.mini-label,
.statement-kicker,
.card-index,
.fact-card dt {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 700;
}

.eyebrow,
.statement-kicker {
  color: var(--warm);
}

.hero-copy h1 {
  max-width: 10.5ch;
  margin-top: 1rem;
  font-size: clamp(3.35rem, 8vw, 6.6rem);
}

.lede {
  max-width: 57ch;
  margin-top: 1.35rem;
  font-size: 1.08rem;
  color: var(--muted-strong);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.9rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #2f6ff0 0%, #1e56cf 100%);
  box-shadow: 0 18px 34px rgba(42, 109, 246, 0.24);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(28, 45, 74, 0.08);
}

.glass {
  position: relative;
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
  border: 1px solid var(--surface-stroke);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(22px) saturate(132%);
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.08) 34%, rgba(120, 170, 255, 0.03) 100%);
  pointer-events: none;
}

:root[data-theme="dark"] .glass::before {
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03) 36%, rgba(120, 170, 255, 0.04) 100%);
}

.fact-card,
.mini-card,
.statement-card,
.service-card,
.process-card,
.value-card,
.contact-panel {
  padding: clamp(1.3rem, 2vw, 2rem);
}

.service-card h3,
.process-card h3,
.value-card h3 {
  font-size: 1.14rem;
  color: var(--text);
}

.fact-card dd,
.contact-note {
  color: var(--muted);
}

.section-copy p,
.contact-copy p,
.contact-actions p,
.hero-facts dd,
.strip-grid p,
.service-card p,
.process-card p,
.value-card p,
.statement-card p,
.footer-inner p {
  color: var(--muted);
}

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

.fact-card {
  margin: 0;
}

.fact-card dt {
  color: var(--muted-strong);
  margin-bottom: 0.65rem;
}

.fact-card dd {
  margin: 0;
  line-height: 1.68;
}

.strip {
  padding-top: 0.4rem;
}

.strip-grid,
.cards-grid {
  display: grid;
  gap: 1.25rem;
}

.strip-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mini-card {
  min-height: 100%;
}

.mini-label,
.card-index {
  color: var(--muted-strong);
  margin-bottom: 0.85rem;
}

.section-grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}

.about-grid {
  grid-template-columns: minmax(0, 1.18fr) minmax(240px, 0.62fr);
}

.section-copy,
.section-heading {
  max-width: 760px;
}

.section-copy {
  display: grid;
  gap: 1rem;
}

.section-heading {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.section-copy h2,
.section-heading h2,
.contact-copy h2 {
  max-width: 12ch;
  font-size: clamp(2.15rem, 4.6vw, 4rem);
}

.statement-card {
  align-self: start;
  display: grid;
  align-content: start;
  gap: 0.65rem;
  max-width: 320px;
  margin-left: auto;
  padding: 1.05rem 1.15rem;
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}

.statement-card p {
  max-width: 28ch;
}

.statement-kicker {
  font-size: 0.69rem;
  letter-spacing: 0.12em;
}

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

.cards-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-card,
.process-card,
.value-card {
  min-width: 0;
}

.service-card p,
.process-card p,
.value-card p,
.mini-card p,
.statement-card p {
  max-width: 34ch;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(290px, 0.9fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
}

.contact-copy {
  display: grid;
  gap: 0.9rem;
}

.contact-actions {
  margin-top: 0;
  align-items: flex-start;
}

.contact-note {
  max-width: 26ch;
  font-size: 0.95rem;
}

.site-footer {
  padding: 0 0 2.5rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(28, 45, 74, 0.1);
}

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

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

.reveal-child {
  transition: transform 500ms ease, opacity 500ms ease;
}

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

  .reveal,
  .reveal-child,
  .button,
  .site-nav a,
  .nav-toggle span,
  .theme-toggle,
  .theme-toggle-thumb {
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1080px) {
  .hero-layout,
  .about-grid,
  .contact-panel,
  .cards-grid-four,
  .cards-grid-three,
  .strip-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  :root {
    --section-space: 4.5rem;
    --radius-lg: 24px;
    --radius-md: 18px;
  }

  .container,
  .nav-shell {
    width: min(calc(100% - 20px), var(--container));
  }

  .site-header {
    padding-top: 10px;
  }

  .nav-shell {
    border-radius: 26px;
    padding: 0.8rem 0.85rem 0.8rem 1rem;
    flex-wrap: wrap;
  }

  .nav-actions {
    gap: 0.5rem;
  }

  .nav-toggle {
    display: inline-block;
    flex: 0 0 auto;
  }

  .site-nav {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding-top: 0.75rem;
    margin-top: 0.35rem;
    border-top: 1px solid rgba(28, 45, 74, 0.08);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.95rem 0.9rem;
    border-radius: 18px;
  }

  .brand-logo {
    width: clamp(132px, 42vw, 190px);
  }

  .section {
    scroll-margin-top: 92px;
  }

  .hero-copy h1 {
    max-width: 9.5ch;
    font-size: clamp(2.7rem, 12vw, 4rem);
  }

  .lede {
    font-size: 1rem;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .hero-facts,
  .cards-grid-two {
    grid-template-columns: 1fr;
  }

  .section-copy h2,
  .section-heading h2,
  .contact-copy h2 {
    font-size: clamp(2rem, 10vw, 2.9rem);
    max-width: 11ch;
  }

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

@media (max-width: 540px) {
  p {
    font-size: 0.98rem;
    line-height: 1.66;
  }

  .hero {
    padding-top: 2.6rem;
  }

  .hero-copy h1 {
    max-width: 9ch;
    font-size: clamp(2.35rem, 12vw, 3.15rem);
  }

  .fact-card,
  .mini-card,
  .statement-card,
  .service-card,
  .process-card,
  .value-card,
  .contact-panel {
    padding: 1.1rem;
  }
}
