:root {
  --ink: #102033;
  --muted: #5c6b7b;
  --line: #d8e1ec;
  --bg: #f5f8fb;
  --panel: #ffffff;
  --blue: #1268f3;
  --blue-dark: #0b4fd8;
  --green: #19a974;
  --amber: #f5b544;
  --shadow: 0 22px 55px rgba(16, 32, 51, 0.12);
  font-family:
    Avenir Next, Segoe UI, Calibri, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  letter-spacing: 0;
  overflow-x: hidden;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(245, 248, 251, 0.88);
  border-bottom: 1px solid rgba(216, 225, 236, 0.75);
  backdrop-filter: blur(18px);
}

.brand,
.top-nav,
.site-footer div {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.top-nav {
  gap: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

.top-nav a:hover,
.site-footer a:hover {
  color: var(--blue-dark);
}

.nav-login {
  color: var(--ink) !important;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.hero {
  position: relative;
  display: flex;
  min-height: min(760px, calc(100vh - 72px));
  align-items: center;
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 72px) clamp(72px, 9vw, 116px);
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(8, 22, 38, 0.82), rgba(8, 22, 38, 0.5) 42%, rgba(8, 22, 38, 0.06) 78%),
    url("./assets/underground-infra-hero.png") center right / cover no-repeat;
}

.hero-copy {
  width: 100%;
  max-width: min(690px, 100%);
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 16px;
  color: var(--blue-dark);
  font-size: clamp(3.8rem, 11vw, 8.5rem);
  line-height: 0.86;
  font-weight: 900;
}

.hero h1 {
  color: #fff;
  text-shadow: 0 8px 34px rgba(0, 0, 0, 0.34);
}

.hero .eyebrow {
  color: #9cc2ff;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.lead {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.45;
  overflow-wrap: break-word;
}

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

.hero-actions,
.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button,
.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
  font-weight: 800;
}

.button {
  padding: 0 20px;
}

.button-primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 14px 30px rgba(18, 104, 243, 0.26);
}

.button-secondary {
  border: 1px solid var(--line);
  background: var(--panel);
}

.button:hover,
.store-badge:hover,
.link-grid a:hover {
  transform: translateY(-1px);
}

.store-row {
  margin-top: 20px;
}

.store-badge {
  flex-direction: column;
  align-items: flex-start;
  width: 172px;
  padding: 10px 16px;
  color: #fff;
  background: #121923;
}

.store-badge span {
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.76;
}

.store-badge strong {
  font-size: 1.1rem;
}

.store-badge.disabled {
  cursor: not-allowed;
}

.store-note {
  max-width: 420px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: clamp(52px, 8vw, 104px) clamp(20px, 5vw, 72px);
}

.section-quiet {
  background: var(--panel);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

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

.steps article,
.link-grid a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 28px rgba(16, 32, 51, 0.06);
}

.steps article {
  padding: 24px;
}

.steps span {
  display: inline-block;
  margin-bottom: 36px;
  color: var(--green);
  font-weight: 900;
}

.steps p,
.split p,
.final-cta p,
.link-grid span {
  color: var(--muted);
  line-height: 1.55;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
}

.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--ink);
  font-weight: 700;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  content: "";
  border-radius: 50%;
  background:
    linear-gradient(135deg, transparent 46%, #fff 47% 58%, transparent 59%),
    var(--green);
}

.dashboard-preview {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.dashboard-preview img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
}

.split-reverse {
  background: var(--panel);
}

.app-gallery {
  display: grid;
  justify-self: center;
  width: min(100%, 420px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.app-gallery figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #0c1420;
  box-shadow: 0 16px 34px rgba(16, 32, 51, 0.1);
}

.app-gallery img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
}

.app-gallery figcaption {
  padding: 9px 11px 11px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
}

.compact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 28px;
  background: var(--panel);
}

.link-grid {
  display: grid;
  gap: 12px;
}

.link-grid a {
  display: grid;
  gap: 4px;
  padding: 20px;
}

.final-cta {
  margin: clamp(32px, 6vw, 72px) clamp(20px, 5vw, 72px);
  padding: clamp(36px, 6vw, 64px);
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0)),
    #0b4fd8;
}

.final-cta p {
  color: rgba(255, 255, 255, 0.82);
}

.final-cta .button-primary {
  margin-top: 10px;
  color: var(--blue-dark);
  background: #fff;
  box-shadow: none;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer div {
  gap: 16px;
}

.page-main {
  padding: clamp(28px, 5vw, 64px) clamp(20px, 5vw, 72px) clamp(56px, 8vw, 100px);
}

.page-hero {
  max-width: 920px;
  margin-bottom: 28px;
}

.page-hero h1 {
  font-size: clamp(3.2rem, 9vw, 6.5rem);
}

.page-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.5;
}

.page-hero .button {
  margin-top: 12px;
}

.text-panel,
.support-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 28px rgba(16, 32, 51, 0.06);
}

.text-panel {
  max-width: 920px;
  padding: clamp(22px, 4vw, 34px);
  margin-top: 14px;
}

.text-panel h2,
.support-grid h2 {
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.text-panel p,
.text-panel li,
.support-grid p {
  color: var(--muted);
  line-height: 1.6;
}

.text-panel a {
  color: var(--blue-dark);
  font-weight: 800;
}

.text-panel ul {
  margin: 0;
  padding-left: 20px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 980px;
}

.support-grid article {
  padding: clamp(22px, 4vw, 32px);
}

@media (max-width: 860px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .split,
  .compact {
    display: block;
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
    background:
      linear-gradient(180deg, rgba(8, 22, 38, 0.8), rgba(8, 22, 38, 0.52)),
      url("./assets/underground-infra-hero.png") center right 34% / cover no-repeat;
  }

  .hero-copy,
  .lead {
    width: min(340px, calc(100vw - 48px));
    max-width: min(340px, calc(100vw - 48px));
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .app-gallery,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .app-gallery {
    width: 100%;
    margin-top: 32px;
  }

  .app-gallery figure {
    max-width: 340px;
  }

  .split-reverse .dashboard-preview {
    margin-bottom: 32px;
  }
}

@media (max-width: 520px) {
  .site-header {
    align-items: center;
    flex-direction: row;
  }

  .top-nav {
    display: none;
  }

  .hero {
    padding-top: 34px;
    padding-bottom: 34px;
  }

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

  .button,
  .store-badge {
    width: 100%;
  }

  .lead {
    font-size: 1.08rem;
  }

  h2 {
    font-size: 1.72rem;
    line-height: 1.08;
    overflow-wrap: break-word;
  }
}
