:root {
  color-scheme: dark;
  --bg: #07090c;
  --bg-2: #0d1218;
  --surface: rgba(16, 22, 29, 0.9);
  --surface-2: #f4f7f5;
  --text: #f4f7f5;
  --ink: #101417;
  --muted: #aab4b1;
  --muted-dark: #5d6966;
  --line: rgba(255, 255, 255, 0.13);
  --accent: #007aff;
  --accent-2: #d6bc73;
  --max: 1180px;
  --radius: 6px;
  --fs-h1: clamp(2.75rem, 7vw, 6rem);
  --fs-h2: clamp(1.9rem, 4vw, 3.6rem);
  --fs-h3: clamp(1.25rem, 2.1vw, 1.8rem);
  --fs-h4: clamp(1.05rem, 1.6vw, 1.3rem);
  --fs-h5: clamp(0.95rem, 1.3vw, 1.1rem);
  --fs-h6: clamp(0.85rem, 1.1vw, 1rem);
  font-family: Onest, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@font-face {
  font-family: Onest;
  src: url("../fonts/OnestRegular1602-hint.ttf") format("truetype");
  font-weight: 400;
}

@font-face {
  font-family: Onest;
  src: url("../fonts/OnestBold1602-hint.ttf") format("truetype");
  font-weight: 700;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
p, h1, h2, h3, h4, h5, h6 { margin-top: 0; }

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 4vw, 56px);
  background: rgba(7, 9, 12, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.brand img,
.logo img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.footer-nav a:hover,
.contact-links a:hover,
.inline-link,
.card-link { color: var(--accent); }

.nav-dropdown {
  position: relative;
}

.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
}

.nav-trigger::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 230px;
  display: grid;
  gap: 6px;
  padding: 10px;
  background: rgba(10, 13, 17, 0.96);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.dropdown-menu a {
  padding: 9px 10px;
  border-radius: 4px;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
  background: rgba(255, 255, 255, 0.07);
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hero {
  min-height: 92vh;
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 132px 0 86px;
}

.hero.short {
  min-height: 58vh;
}

.hero-media,
.hero::after {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  background: linear-gradient(90deg, rgba(7, 9, 12, 0.95), rgba(7, 9, 12, 0.74) 44%, rgba(7, 9, 12, 0.28)), linear-gradient(0deg, var(--bg), rgba(7, 9, 12, 0) 48%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 24px;
  font-size: var(--fs-h1);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 20px;
  font-size: var(--fs-h2);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: var(--fs-h3);
  line-height: 1.16;
}

h4 {
  margin-bottom: 12px;
  font-size: var(--fs-h4);
  line-height: 1.2;
}

h5 {
  margin-bottom: 10px;
  font-size: var(--fs-h5);
  line-height: 1.25;
}

h6 {
  margin-bottom: 10px;
  font-size: var(--fs-h6);
  line-height: 1.3;
}

.lead {
  max-width: 740px;
  color: #dde5e1;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 700;
}

.button.primary { background: var(--text); color: var(--ink); }
.button.secondary { background: rgba(255, 255, 255, 0.06); }

.section { padding: clamp(72px, 10vw, 132px) 0; }
.section.light { background: var(--surface-2); color: var(--ink); }
.section.band { background: var(--bg-2); border-block: 1px solid var(--line); }


.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 7vw, 96px);
}

.split > div:first-child:not(.image-panel) + div {
  padding-top: clamp(34px, 3vw, 48px);
}


.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

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

.card {
  min-height: 260px;
  padding: clamp(24px, 4vw, 38px);
  background: var(--surface);
}

.light .grid { background: rgba(16, 20, 23, 0.14); border-color: rgba(16, 20, 23, 0.14); }
.light .card { background: #ffffff; }
.muted, .card p, .split p, .service-list li { color: var(--muted); }
.light .muted, .light .card p, .light .split p, .light .service-list li { color: var(--muted-dark); }

.image-panel {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.image-panel img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.service-list {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.service-list li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 10px;
  border: 1px solid var(--accent);
  transform: rotate(45deg) translateY(-1px);
}

.numbered-card span {
  display: block;
  margin-bottom: 20px;
  color: var(--accent-2);
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 700;
  line-height: 1;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.partner-card {
  min-height: 180px;
  display: grid;
  place-items: center;
  padding: 28px;
  background: #ffffff;
}

.partner-card img {
  width: min(290px, 100%);
  height: 90px;
  object-fit: contain;
  object-position: center;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form .wide {
  grid-column: 1 / -1;
}

.contact-form .button {
  cursor: pointer;
}

.ecosystem {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.ecosystem-card {
  padding: clamp(24px, 4vw, 42px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 6vw, 80px);
  padding: clamp(28px, 5vw, 56px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
}

.contact-links {
  display: grid;
  align-content: center;
  gap: 12px;
}

.contact-panel .muted,
.contact-panel p,
.contact-panel span {
  color: var(--muted);
}

.contact-panel h2,
.contact-panel h3,
.contact-panel .contact-links a {
  color: var(--text);
}

.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  justify-items: center;
}

.footer-grid p { margin: 0; text-align: center; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 900px) {
  .split > div:first-child:not(.image-panel) + div { padding-top: 0; }
  .site-header { position: static; align-items: center; flex-wrap: wrap; gap: 12px; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .site-nav { width: 100%; display: none; grid-template-columns: 1fr; justify-content: stretch; gap: 8px; }
  .site-header.nav-open .site-nav { display: grid; }
  .site-nav > a,
  .site-nav .nav-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.03);
  }
  .nav-dropdown { width: 100%; padding-bottom: 0; margin-bottom: 0; }
  .hero { min-height: auto; padding-top: 86px; }
  .split, .grid, .grid.two, .grid.four, .partner-grid, .ecosystem, .contact-panel, .contact-form, .footer-grid { grid-template-columns: 1fr; }
  .image-panel img { min-height: 300px; }
  .dropdown-menu { position: static; min-width: 100%; margin-top: 6px; opacity: 1; visibility: visible; transform: none; border-radius: var(--radius); }
}

@media (max-width: 560px) {
  .container { width: min(var(--max), calc(100% - 28px)); }
  .actions { display: grid; }
}
