:root {
  --ink: #f6f7f8;
  --muted: #b8c0c4;
  --line: #2d3337;
  --paper: #050607;
  --soft: #111416;
  --white: #171b1e;
  --forest: #e8ecef;
  --moss: #aab3b8;
  --blue: #7d8a91;
  --gold: #d0b36a;
  --coral: #c58f83;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.34);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 6, 7, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px 14px 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  padding: 5px;
  border: 1px solid #3a4146;
  background: #08090a;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--soft);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  padding: 8px 10px;
  border-radius: var(--radius);
  color: var(--muted);
  transition: background 160ms ease, color 160ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  background: #191e21;
  color: var(--ink);
}

.nav-dropdown {
  position: relative;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.nav-dropdown summary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  list-style: none;
  outline: none;
  box-shadow: none;
  transition: color 160ms ease;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown summary::marker {
  content: "";
}

.nav-dropdown summary::after {
  content: "v";
  color: var(--gold);
  font-size: 11px;
  line-height: 1;
}

.nav-dropdown[open] summary::after {
  content: "v";
}

.nav-dropdown summary:hover,
.nav-dropdown[open] summary,
.nav-dropdown summary:focus,
.nav-dropdown summary:focus-visible {
  border: 0;
  background: transparent;
  color: var(--muted);
  outline: none;
  box-shadow: none;
}

.nav-dropdown-menu a.active {
  background: rgba(208, 179, 106, 0.16);
  color: var(--gold);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 260px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 6, 7, 0.97);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  z-index: 40;
}

.nav-dropdown-menu a {
  display: block;
}

.page-menu {
  position: fixed;
  left: max(18px, calc((100vw - var(--max)) / 2 + 24px));
  top: 14px;
  z-index: 25;
  width: 46px;
  border-radius: var(--radius);
  border: 0;
  background: transparent;
  box-shadow: none;
}

.page-menu summary {
  width: 46px;
  height: 46px;
  display: grid;
  place-content: center;
  gap: 5px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 6, 7, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  cursor: pointer;
  list-style: none;
  transition: border-color 160ms ease, background 160ms ease;
}

.page-menu summary::-webkit-details-marker {
  display: none;
}

.page-menu summary span {
  display: block;
  width: 19px;
  height: 2px;
  background: var(--ink);
}

.page-menu-list {
  position: absolute;
  left: 0;
  top: 56px;
  width: 260px;
  max-height: min(68vh, 560px);
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 6, 7, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.page-menu-list a {
  display: block;
  padding: 9px 10px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  transition: background 160ms ease, color 160ms ease;
}

.page-menu-list a:hover {
  background: #191e21;
  color: var(--ink);
}

.page-menu-list a.active {
  background: rgba(208, 179, 106, 0.16);
  color: var(--gold);
}

.page-menu-group {
  border-radius: var(--radius);
  border: 0;
  background: transparent;
  box-shadow: none;
}

.page-menu-group summary {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  padding: 9px 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  outline: none;
  box-shadow: none;
  transition: color 160ms ease;
}

.page-menu-group summary::-webkit-details-marker {
  display: none;
}

.page-menu-group summary::marker {
  content: "";
}

.page-menu-group summary::after {
  content: "v";
  color: var(--gold);
  font-size: 11px;
  line-height: 1;
}

.page-menu-group[open] summary::after {
  content: "v";
}

.page-menu-group summary:hover,
.page-menu-group[open] summary,
.page-menu-group summary:focus,
.page-menu-group summary:focus-visible {
  border: 0;
  background: transparent;
  color: var(--muted);
  outline: none;
  box-shadow: none;
}

.page-menu-children {
  display: grid;
  gap: 2px;
  padding: 4px 0 4px 10px;
  margin-left: 10px;
}

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--ink);
  color: #050607;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

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

.button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.button.gold {
  background: var(--gold);
  color: #070706;
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(115deg, rgba(5, 6, 7, 0.91), rgba(18, 22, 25, 0.74)),
    url("/assets/evolution-map.svg");
  background-size: cover;
  background-position: center;
  color: var(--ink);
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 24px 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(520px, 1fr);
  gap: 38px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 78px);
}

.hero h1 {
  font-size: clamp(40px, 5.4vw, 68px);
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4vw, 48px);
}

h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

p {
  margin: 0 0 18px;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: 19px;
}

.hero .lead {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.86);
}

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

.transition-graphic {
  position: relative;
  width: 100%;
  max-width: 580px;
  margin-inline: auto;
  min-height: 340px;
  padding: 12px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  justify-items: stretch;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.transition-graphic::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 50%;
  height: 2px;
  background:
    linear-gradient(90deg, rgba(184, 192, 196, 0), rgba(208, 179, 106, 0.8), rgba(184, 192, 196, 0));
}

.transition-stage,
.transition-bridge {
  position: relative;
  z-index: 1;
  border-radius: var(--radius);
}

.transition-stage {
  width: 100%;
  padding: 18px;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid #30363a;
  background: rgba(23, 27, 30, 0.94);
}

.transition-stage.future {
  border-color: rgba(208, 179, 106, 0.5);
  background: linear-gradient(160deg, rgba(208, 179, 106, 0.14), rgba(23, 27, 30, 0.96));
}

.transition-stage h3 {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 24px;
}

.stage-label {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lane {
  display: grid;
  gap: 2px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #353c41;
  border-radius: var(--radius);
  background: #0d1012;
}

.lane span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.lane strong {
  color: var(--ink);
  font-size: 15px;
}

.transition-bridge {
  width: 100%;
  min-height: 184px;
  padding: 18px 12px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  text-align: center;
  border: 1px solid rgba(208, 179, 106, 0.5);
  background: #050607;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.34);
}

.transition-bridge img {
  width: 98px;
  height: 76px;
  object-fit: contain;
  object-position: center;
}

.transition-bridge span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.transition-bridge strong {
  color: var(--gold);
  font-size: 15px;
  line-height: 1.2;
}

.section {
  padding: 78px 24px;
}

.home-stats {
  padding-top: 42px;
}

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

.container {
  max-width: var(--max);
  margin: 0 auto;
}

.section-head {
  max-width: 820px;
  margin-bottom: 34px;
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

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

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card,
.stat,
.quote,
.form-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.card {
  padding: 26px;
}

.card-tag {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #242a2e;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.card p,
.stat p,
.quote p {
  color: var(--muted);
}

.card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(208, 179, 106, 0.62);
  border-radius: 999px;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.card-link:hover {
  background: rgba(208, 179, 106, 0.12);
  color: var(--gold);
}

.stat {
  padding: 24px;
}

.stat strong {
  display: block;
  color: var(--ink);
  font-size: 38px;
  line-height: 1;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 42px;
  align-items: center;
}

.timeline {
  border-left: 3px solid var(--moss);
  padding-left: 22px;
}

.timeline-item {
  position: relative;
  margin-bottom: 24px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--paper);
}

.page-hero {
  padding: 70px 24px;
  background:
    linear-gradient(105deg, rgba(5, 6, 7, 0.92), rgba(18, 22, 25, 0.78)),
    url("/assets/evolution-map.svg");
  background-size: cover;
  color: var(--ink);
}

.page-hero .container {
  max-width: 920px;
}

.page-hero .lead {
  color: rgba(255, 255, 255, 0.86);
}

.feature-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

summary {
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 900;
}

details p {
  padding: 0 20px 20px;
  color: var(--muted);
}

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

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 13px;
  color: var(--ink);
  background: #0c0e10;
  font: inherit;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-card {
  padding: 28px;
}

.form-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.form-status.success {
  color: var(--gold);
}

.form-status.error {
  color: #e2a69b;
}

.contact-form button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.site-footer {
  padding: 42px 24px;
  border-top: 1px solid var(--line);
  background: #020303;
  color: rgba(255, 255, 255, 0.82);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-contact-title {
  display: inline-block;
  margin-top: 10px;
  color: var(--ink);
  font-weight: 800;
}

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

  .transition-graphic {
    max-width: 760px;
  }
}

@media (max-width: 1180px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 24px;
    right: 24px;
    top: 70px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .nav-dropdown-menu {
    position: static;
    width: auto;
    margin-top: 8px;
    box-shadow: none;
  }

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

@media (max-width: 980px) {
  .page-menu {
    left: 18px;
    top: 14px;
    right: auto;
    bottom: auto;
    width: 46px;
  }

  .page-menu-list {
    width: min(300px, calc(100vw - 36px));
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 24px;
    right: 24px;
    top: 70px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .nav-dropdown-menu {
    position: static;
    width: auto;
    margin-top: 8px;
    box-shadow: none;
  }

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

  .split,
  .grid.two,
  .grid.three,
  .grid.four {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .nav-wrap,
  .section,
  .page-hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .nav-wrap {
    padding-left: 82px;
  }

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

  .transition-graphic {
    min-height: 310px;
    grid-template-columns: 1fr;
  }

  .transition-graphic::before {
    top: 22%;
    bottom: 22%;
    left: 50%;
    right: auto;
    width: 2px;
    height: auto;
    background:
      linear-gradient(180deg, rgba(184, 192, 196, 0), rgba(208, 179, 106, 0.8), rgba(184, 192, 196, 0));
  }

  .transition-bridge {
    min-height: 150px;
  }

  .transition-bridge img {
    width: 128px;
    height: 96px;
  }
}
