:root {
  color-scheme: light;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-strong: #f0f2f5;
  --silver: #d7dce3;
  --silver-dark: #9aa3af;
  --text: #17202a;
  --muted: #606b78;
  --line: #dfe3e8;
  --accent: #2563eb;
  --accent-dark: #1e4fc2;
  --success: #16a34a;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.09);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 80% 10%, rgba(37, 99, 235, 0.08), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 42%, #eef1f5 100%);
  color: var(--text);
}

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

button {
  font: inherit;
}

body.modal-open {
  overflow: hidden;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(223, 227, 232, 0.9);
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  left: 0;
  min-height: 4.25rem;
  padding: 0 5vw;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand,
.nav-links,
.hero-actions,
.panel-top,
.support-band {
  align-items: center;
  display: flex;
}

.brand {
  font-size: 1rem;
  font-weight: 800;
  gap: 0.75rem;
  white-space: nowrap;
}

.brand-mark {
  background: #ffffff;
  border: 1px solid var(--silver);
  border-radius: 0.875rem;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.07);
  display: block;
  height: 2.5rem;
  object-fit: cover;
  width: 2.5rem;
}

.nav-links {
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 700;
  gap: 0.375rem;
}

.nav-links a {
  border-radius: 999px;
  padding: 0.625rem 0.875rem;
}

.nav-links a:hover {
  background: var(--surface-strong);
  color: var(--text);
}

main {
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 5vw 4rem;
}

.hero {
  align-items: center;
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 1.08fr) minmax(19rem, 0.72fr);
  min-height: calc(100vh - 4.25rem);
  padding: 4.75rem 0 3.5rem;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 800;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
}

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

h1 {
  font-size: 4rem;
  line-height: 1.08;
  margin-bottom: 1.5rem;
  max-width: 13ch;
}

h2 {
  font-size: 2rem;
  line-height: 1.18;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.08rem;
  line-height: 1.25;
  margin-bottom: 0.45rem;
}

p {
  color: var(--muted);
  line-height: 1.68;
}

.hero-text {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  max-width: 40rem;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 0.65rem;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.75rem 1.05rem;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

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

.button.primary {
  background: var(--accent);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.2);
  color: white;
}

.button.primary:hover {
  background: var(--accent-dark);
}

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

.button.secondary:hover {
  background: white;
  border-color: var(--silver-dark);
}

.button.block {
  width: 100%;
}

.status-panel {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(238, 241, 245, 0.92));
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  box-shadow: var(--shadow);
  padding: 1rem;
}

.panel-top {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
  gap: 0.55rem;
  padding: 0.35rem 0.4rem 1rem;
}

.status-dot {
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(22, 163, 74, 0.12);
  display: inline-block;
  height: 0.65rem;
  width: 0.65rem;
}

.device-frame {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), transparent 42%),
    #ffffff;
  border: 1px solid var(--line);
  border-radius: 1rem;
  min-height: 25rem;
  overflow: hidden;
  padding: 1.1rem;
  position: relative;
}

.device-bar {
  background: linear-gradient(90deg, #e5e9ef, #bfc7d2, #eef1f5);
  border-radius: 999px;
  height: 0.5rem;
  margin-bottom: 2rem;
  width: 52%;
}

.signal-stack {
  display: grid;
  gap: 0.85rem;
  margin: 2rem 0 2.4rem;
}

.signal-stack span {
  background: linear-gradient(90deg, #d6dce5, #ffffff);
  border: 1px solid var(--line);
  border-radius: 999px;
  display: block;
  height: 1.15rem;
}

.signal-stack span:nth-child(1) {
  width: 88%;
}

.signal-stack span:nth-child(2) {
  width: 70%;
}

.signal-stack span:nth-child(3) {
  width: 50%;
}

.metric {
  align-items: center;
  background: rgba(247, 248, 250, 0.88);
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 0.75rem;
  padding: 0.9rem;
}

.metric span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.metric strong {
  font-size: 0.92rem;
  text-align: right;
}

.section {
  padding: 4.5rem 0 1.5rem;
}

.section.compact {
  padding-top: 3.5rem;
}

.section-heading {
  margin-bottom: 1.65rem;
  max-width: 42rem;
}

.download-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.download-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  min-height: 20rem;
  padding: 1.25rem;
}

.download-card.featured {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.11);
}

.card-icon {
  align-items: center;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  color: var(--text);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  height: 3rem;
  justify-content: center;
  margin-bottom: 1.25rem;
  width: 3rem;
}

.download-card p {
  flex: 1;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.steps {
  display: grid;
  gap: 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  display: flex;
  gap: 1rem;
  padding: 1.15rem;
}

.step-number {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--silver);
  border-radius: 50%;
  color: var(--accent);
  display: inline-flex;
  flex: 0 0 auto;
  font-weight: 900;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}

.steps h3 {
  margin-bottom: 0.2rem;
}

.steps p {
  margin-bottom: 0;
}

.support-band {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
  gap: 2rem;
  justify-content: space-between;
  margin-top: 3rem;
  padding: 1.5rem;
}

.support-band p {
  margin-bottom: 0;
  max-width: 45rem;
}

.modal-backdrop {
  align-items: center;
  background: rgba(23, 32, 42, 0.38);
  backdrop-filter: blur(10px);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 1.25rem;
  position: fixed;
  z-index: 20;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  background: linear-gradient(160deg, #ffffff, #f3f5f8);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
  max-width: 34rem;
  padding: 1.5rem;
  position: relative;
  width: min(100%, 34rem);
}

.modal h2 {
  margin-bottom: 1rem;
}

.modal-close {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  font-size: 1.35rem;
  font-weight: 700;
  height: 2.25rem;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 2.25rem;
}

.modal-close:hover {
  color: var(--text);
  border-color: var(--silver-dark);
}

.command-box {
  background: #17202a;
  border: 1px solid #2a3542;
  border-radius: 0.7rem;
  color: #f7f8fa;
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
  overflow-x: auto;
  padding: 1rem;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  h1 {
    font-size: 3.1rem;
  }

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

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
    padding-bottom: 0.85rem;
    padding-top: 0.85rem;
    position: static;
  }

  .nav-links {
    flex-wrap: wrap;
    width: 100%;
  }

  .nav-links a {
    background: var(--surface-strong);
    flex: 1 1 auto;
    text-align: center;
  }

  .hero {
    padding-top: 3rem;
  }

  h1 {
    font-size: 2.45rem;
    max-width: 12ch;
  }

  h2 {
    font-size: 1.65rem;
  }

  .hero-text {
    font-size: 1.02rem;
  }

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

  .download-card {
    min-height: auto;
  }

  .support-band {
    align-items: stretch;
    flex-direction: column;
  }
}
