:root {
  color-scheme: dark;
  --ink: #f8fbff;
  --muted: rgba(248, 251, 255, 0.74);
  --cyan: #41d8ff;
  --ember: #ff8b3d;
  --line: rgba(248, 251, 255, 0.18);
  --panel: rgba(6, 10, 24, 0.72);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #070a12;
  color: var(--ink);
}

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

button {
  font: inherit;
}

.hero {
  position: relative;
  min-height: min(820px, 88vh);
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 6.5rem clamp(1.25rem, 5vw, 5rem) 5rem;
  isolation: isolate;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  filter: saturate(1.08) contrast(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(4, 6, 14, 0.96) 0%, rgba(5, 8, 18, 0.82) 36%, rgba(5, 8, 18, 0.36) 72%),
    linear-gradient(180deg, rgba(4, 6, 14, 0.44), rgba(4, 6, 14, 0.18) 46%, rgba(4, 6, 14, 0.92));
}

.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  min-height: 76px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem clamp(1.25rem, 5vw, 5rem);
}

.brand,
.nav-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.brand {
  border-radius: 999px;
  padding: 0.52rem 0.86rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.nav-link {
  border-radius: 12px;
  padding: 0.5rem 0.74rem;
  color: var(--muted);
  font-weight: 700;
}

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

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(4.25rem, 12vw, 9rem);
  line-height: 0.86;
  letter-spacing: 0;
}

.lede {
  max-width: 34rem;
  margin: 1.3rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin-top: 2rem;
}

.download-button,
.secondary-link {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-weight: 800;
}

.download-button {
  cursor: pointer;
  border: 0;
  padding: 0.85rem 1.18rem;
  color: #07101d;
  background: linear-gradient(120deg, #ffffff, var(--cyan) 54%, var(--ember));
  box-shadow: 0 14px 32px rgba(65, 216, 255, 0.22);
}

.download-button:hover {
  filter: brightness(1.06) saturate(1.06);
}

.download-button:disabled {
  cursor: wait;
  opacity: 0.74;
}

.secondary-link {
  padding: 0.78rem 1rem;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
}

.download-state {
  min-height: 1.45rem;
  margin: 1rem 0 0;
  color: rgba(248, 251, 255, 0.8);
  font-weight: 700;
}

.download-state.error {
  color: #ffb4aa;
}

.runtime-strip {
  width: min(1120px, 92vw);
  margin: -2.9rem auto 3rem;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: 0 26px 58px rgba(0, 0, 0, 0.36);
  overflow: hidden;
}

.runtime-strip > div {
  display: grid;
  gap: 0.2rem;
  padding: 1rem 1.2rem;
  border-right: 1px solid var(--line);
}

.runtime-strip > div:last-child {
  border-right: 0;
}

.metric {
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 900;
}

.label {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

@media (max-width: 760px) {
  .hero {
    min-height: 86vh;
    padding-top: 6rem;
  }

  .hero-image {
    object-position: 68% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(4, 6, 14, 0.96), rgba(4, 6, 14, 0.66)),
      linear-gradient(180deg, rgba(4, 6, 14, 0.26), rgba(4, 6, 14, 0.9));
  }

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

  .download-button,
  .secondary-link {
    width: 100%;
  }

  .runtime-strip {
    grid-template-columns: 1fr;
    margin-top: -1.8rem;
  }

  .runtime-strip > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .runtime-strip > div:last-child {
    border-bottom: 0;
  }
}
