:root {
  color-scheme: dark;
  --bg: #050607;
  --panel: #0c0f12;
  --panel-2: #11161a;
  --text: #f4f7f8;
  --page: #eef1f3;
  --ink: #081014;
  --ink-muted: #4f5d66;
  --light-line: rgba(8, 16, 20, 0.14);
  --muted: #9ba6ad;
  --soft: #5d6870;
  --line: rgba(255, 255, 255, 0.13);
  --blue: #39a8ff;
  --blue-soft: rgba(57, 168, 255, 0.14);
  --white-soft: rgba(255, 255, 255, 0.08);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(8,16,20,0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(8,16,20,0.04) 1px, transparent 1px),
    var(--page);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.75), transparent 72%);
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
  padding: 0 clamp(20px, 4vw, 56px);
  border-bottom: 1px solid transparent;
  transition: background 240ms ease, border-color 240ms ease, backdrop-filter 240ms ease;
  color: var(--text);
}

.site-header.is-scrolled {
  background: rgba(5, 6, 7, 0.74);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  background:
    linear-gradient(90deg, transparent 44%, rgba(57,168,255,0.85) 44% 56%, transparent 56%),
    linear-gradient(180deg, transparent 44%, rgba(255,255,255,0.38) 44% 56%, transparent 56%);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.62);
}

.brand-mark::before {
  width: 14px;
  height: 14px;
  transform: rotate(45deg);
}

.brand-mark::after {
  width: 5px;
  height: 20px;
  right: -4px;
  border-left: 0;
  border-radius: 0 10px 10px 0;
  background: var(--blue);
  opacity: 0.9;
}

.brand-mark span {
  position: relative;
  z-index: 1;
  width: 4px;
  height: 4px;
  background: var(--text);
}

.brand-word {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: rgba(244, 247, 248, 0.72);
  font-size: 13px;
  font-weight: 600;
}

.nav a,
.header-cta {
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav a:hover {
  color: var(--text);
}

.header-cta {
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.header-cta:hover {
  border-color: rgba(57, 168, 255, 0.75);
  background: var(--blue-soft);
}

.menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: currentColor;
  transition: transform 220ms ease, top 220ms ease;
}

.menu-toggle span:first-child {
  top: 16px;
}

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

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

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

.mobile-menu {
  position: fixed;
  inset: 76px 0 auto;
  z-index: 45;
  display: none;
  padding: 12px clamp(20px, 4vw, 56px) 22px;
  background: rgba(5, 6, 7, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  transform: translateY(-16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.mobile-menu.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-menu nav {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.mobile-menu a {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 0 16px;
  background: #080a0c;
  color: rgba(244, 247, 248, 0.86);
  font-size: 15px;
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: 86svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  color: var(--text);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 18vh;
  background: linear-gradient(to bottom, transparent, var(--bg));
  z-index: -1;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -4;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04) brightness(0.96);
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(5,6,7,0.88) 0%, rgba(5,6,7,0.62) 42%, rgba(5,6,7,0.2) 74%, rgba(5,6,7,0.58) 100%),
    linear-gradient(180deg, rgba(5,6,7,0.18), rgba(5,6,7,0.62));
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(57,168,255,0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 96px 96px;
  opacity: 0.45;
  mask-image: radial-gradient(circle at 68% 44%, rgba(0,0,0,0.85), transparent 58%);
}

.hero-content {
  width: min(940px, calc(100% - 40px));
  margin-left: clamp(20px, 7vw, 96px);
  padding-top: 80px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: "Space Grotesk", Inter, sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 940px;
  margin-bottom: 24px;
  font-size: 96px;
  line-height: 0.88;
  font-weight: 700;
}

.hero-subtitle {
  max-width: 690px;
  color: rgba(244, 247, 248, 0.78);
  font-size: 23px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 14px;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

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

.button-primary {
  background: var(--text);
  color: #050607;
  border-color: var(--text);
}

.button-primary:hover {
  background: var(--blue);
  border-color: var(--blue);
}

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

.button-secondary:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.hero-meta {
  position: absolute;
  left: clamp(20px, 7vw, 96px);
  right: clamp(20px, 7vw, 96px);
  bottom: 32px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--line);
}

.hero-meta span {
  padding: 18px 18px 0 0;
  color: rgba(244, 247, 248, 0.72);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section {
  padding: clamp(82px, 12vw, 154px) clamp(20px, 5vw, 64px);
}

.why,
.stack,
.sectors,
.infrastructure {
  color: var(--ink);
}

.why,
.stack,
.sectors {
  max-width: calc(var(--max) + 128px);
  margin: 0 auto;
}

.why-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: start;
}

.why h2,
.section-heading h2,
.infra-copy h2,
.final-cta h2 {
  margin-bottom: 0;
  font-size: 74px;
  line-height: 0.98;
  font-weight: 700;
}

.why-copy {
  color: var(--ink-muted);
  font-size: 21px;
  line-height: 1.6;
}

.why-copy p:last-child {
  color: var(--ink);
  font-weight: 800;
}

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

.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--light-line);
  border-left: 1px solid var(--light-line);
}

.stack-card {
  min-height: 260px;
  padding: 28px;
  border-right: 1px solid var(--light-line);
  border-bottom: 1px solid var(--light-line);
  background: rgba(255, 255, 255, 0.64);
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease;
}

.stack-card:hover {
  transform: translateY(-4px);
  background: #ffffff;
  border-color: rgba(57, 168, 255, 0.5);
}

.card-index {
  display: block;
  margin-bottom: 82px;
  color: var(--blue);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 700;
}

.stack-card h3 {
  margin-bottom: 12px;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 24px;
  line-height: 1.05;
}

.stack-card p {
  margin-bottom: 0;
  color: var(--ink-muted);
  line-height: 1.5;
}

.model {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  color: var(--text);
}

.band-image {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8) brightness(0.68) contrast(1.08);
}

.band-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5,6,7,0.96), rgba(5,6,7,0.58), rgba(5,6,7,0.76)),
    linear-gradient(180deg, rgba(5,6,7,0.18), rgba(5,6,7,0.95));
}

.model-content {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(7, minmax(100px, 1fr));
  gap: 0;
  margin: 56px 0 30px;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.36);
}

.timeline li {
  position: relative;
  min-height: 92px;
  padding: 28px 16px 0 0;
  color: rgba(244, 247, 248, 0.8);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}

.timeline li::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  background: var(--text);
}

.timeline li:nth-child(4)::before,
.timeline li:nth-child(5)::before,
.timeline li:nth-child(6)::before {
  background: var(--blue);
  box-shadow: 0 0 24px rgba(57, 168, 255, 0.8);
}

.model-statement {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--text);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 42px;
  font-weight: 700;
}

.sector-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--light-line);
  border: 1px solid var(--light-line);
}

.sector-item {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.14;
  transition: background 180ms ease, color 180ms ease;
}

.sector-item:hover {
  background: #ffffff;
  color: var(--ink);
}

.sector-item span {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(8, 16, 20, 0.34);
  background:
    linear-gradient(90deg, transparent 46%, var(--blue) 46% 54%, transparent 54%),
    linear-gradient(180deg, transparent 46%, rgba(255,255,255,0.36) 46% 54%, transparent 54%);
}

.infrastructure {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.76fr);
  gap: clamp(34px, 6vw, 78px);
  align-items: center;
  max-width: calc(var(--max) + 128px);
  margin: 0 auto;
}

.infra-media {
  overflow: hidden;
  border: 1px solid var(--light-line);
  background: #dfe4e8;
}

.infra-media img {
  width: 100%;
  aspect-ratio: 1.28 / 1;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.04);
  transition: transform 700ms ease;
}

.infra-media:hover img {
  transform: scale(1.035);
}

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

.lab-list span {
  min-height: 56px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--light-line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.final-cta {
  padding: clamp(94px, 13vw, 170px) clamp(20px, 5vw, 64px);
  background:
    linear-gradient(180deg, rgba(8,16,20,0.05), transparent 38%),
    #f8fafb;
  border-top: 1px solid var(--light-line);
}

.final-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 0.75fr);
  gap: clamp(36px, 7vw, 88px);
  align-items: start;
  max-width: var(--max);
  margin: 0 auto;
}

.final-copy {
  text-align: left;
}

.final-cta h2 {
  margin-bottom: 24px;
}

.final-cta p:not(.section-kicker) {
  max-width: 700px;
  margin: 0 0 34px;
  color: var(--ink-muted);
  font-size: 20px;
  line-height: 1.55;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--light-line);
  background: rgba(255, 255, 255, 0.72);
}

.form-row {
  display: grid;
  gap: 8px;
  text-align: left;
}

.form-row-full,
.form-submit {
  grid-column: 1 / -1;
}

.form-row label {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid rgba(8, 16, 20, 0.18);
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  padding: 13px 14px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.form-row input[type="file"] {
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
}

.form-row textarea {
  resize: vertical;
  min-height: 132px;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(57, 168, 255, 0.14);
}

.final-cta .button-primary,
.form-submit {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
  cursor: pointer;
}

.form-submit:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.form-help,
.form-status {
  margin: 0;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.45;
}

.form-status {
  grid-column: 1 / -1;
  min-height: 20px;
  font-weight: 800;
}

.form-status.is-success {
  color: #12734b;
}

.form-status.is-error {
  color: #b42318;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line);
  color: rgba(244, 247, 248, 0.72);
  background: #050607;
}

.footer .brand {
  color: var(--text);
}

.footer p {
  margin: 0;
  font-size: 13px;
}

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

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

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }

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

@media (max-width: 1180px) {
  .site-header {
    gap: 18px;
  }

  .nav {
    gap: 20px;
  }

  h1 {
    font-size: 84px;
  }

  .hero-content {
    width: min(820px, calc(100% - 48px));
  }

  .why h2,
  .section-heading h2,
  .infra-copy h2,
  .final-cta h2 {
    font-size: 64px;
  }

  .stack-card {
    min-height: 240px;
  }

  .sector-item {
    font-size: 20px;
  }
}

@media (max-width: 980px) {
  .site-header {
    height: 70px;
  }

  h1 {
    font-size: 74px;
  }

  .why h2,
  .section-heading h2,
  .infra-copy h2,
  .final-cta h2 {
    font-size: 56px;
  }

  .model-statement {
    font-size: 36px;
  }

  .nav,
  .header-cta {
    display: none;
  }

  .menu-toggle,
  .mobile-menu {
    display: block;
  }

  .mobile-menu {
    top: 70px;
  }

  .why-layout,
  .infrastructure,
  .final-inner {
    grid-template-columns: 1fr;
  }

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

  .model {
    min-height: 640px;
  }

  .timeline {
    grid-template-columns: 1fr;
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.36);
  }

  .timeline li {
    min-height: auto;
    padding: 0 0 28px 28px;
  }

  .timeline li::before {
    top: 4px;
    left: -5px;
  }

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

@media (max-width: 680px) {
  .site-header {
    height: 66px;
    padding: 0 16px;
  }

  .mobile-menu {
    top: 66px;
    padding: 10px 16px 18px;
  }

  .brand-word {
    font-size: 12px;
  }

  .hero {
    min-height: 760px;
    align-items: flex-start;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(5,6,7,0.72), rgba(5,6,7,0.58) 32%, rgba(5,6,7,0.94) 100%),
      linear-gradient(90deg, rgba(5,6,7,0.95), rgba(5,6,7,0.42));
  }

  .hero-content {
    width: calc(100% - 32px);
    margin: 0 16px;
    padding-top: 132px;
  }

  h1 {
    font-size: 54px;
    line-height: 0.94;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .why h2,
  .section-heading h2,
  .infra-copy h2,
  .final-cta h2 {
    font-size: 42px;
  }

  .why-copy,
  .final-cta p:not(.section-kicker) {
    font-size: 18px;
  }

  .model-statement {
    font-size: 30px;
  }

  .hero-meta {
    left: 16px;
    right: 16px;
    bottom: 24px;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 0;
  }

  .hero-meta span {
    padding-top: 12px;
    font-size: 10px;
  }

  .section {
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 74px;
    padding-bottom: 74px;
  }

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

  .stack-grid,
  .sector-grid,
  .lab-list {
    grid-template-columns: 1fr;
  }

  .stack-card,
  .sector-item {
    padding: 20px;
  }

  .stack-card {
    min-height: 190px;
  }

  .card-index {
    margin-bottom: 46px;
  }

  .model {
    min-height: auto;
    padding-top: 92px;
    padding-bottom: 92px;
  }

  .timeline {
    margin-top: 42px;
  }

  .sector-item {
    min-height: 138px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .hero {
    min-height: 780px;
  }

  .hero-content {
    padding-top: 118px;
  }

  h1 {
    font-size: 44px;
    line-height: 0.98;
    overflow-wrap: anywhere;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
    min-height: 50px;
  }

  .hero-meta {
    grid-template-columns: 1fr;
  }

  .hero-meta span {
    padding: 9px 0 0;
  }

  .why h2,
  .section-heading h2,
  .infra-copy h2,
  .final-cta h2 {
    font-size: 35px;
    line-height: 1.04;
    overflow-wrap: anywhere;
  }

  .why-copy,
  .final-cta p:not(.section-kicker) {
    font-size: 17px;
  }

  .stack-card h3 {
    font-size: 22px;
  }

  .sector-item {
    min-height: 118px;
    font-size: 20px;
  }

  .infra-media img {
    aspect-ratio: 1 / 1;
  }

  .contact-form {
    grid-template-columns: 1fr;
    padding: 18px;
  }

}

@media (max-width: 420px) {
  .brand {
    gap: 9px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .brand-word {
    font-size: 11px;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
  }

  .hero-content {
    padding-top: 112px;
  }

  .eyebrow,
  .section-kicker {
    font-size: 11px;
  }

  h1 {
    font-size: 39px;
  }

  .hero-subtitle {
    font-size: 17px;
  }

  .why h2,
  .section-heading h2,
  .infra-copy h2,
  .final-cta h2 {
    font-size: 32px;
  }

  .why-copy,
  .final-cta p:not(.section-kicker) {
    font-size: 17px;
  }

}
