:root {
  color-scheme: dark;
  --bg: #07111e;
  --panel: rgba(9, 19, 33, 0.78);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #a8b3c4;
  --mint: #2dd4bf;
  --blue: #60a5fa;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px clamp(18px, 5vw, 64px);
  background: rgba(7, 17, 30, 0.72);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  backdrop-filter: blur(18px);
}

.brand,
nav,
.hero-actions,
footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
}

.brand img {
  width: 34px;
  height: 34px;
}

nav {
  gap: clamp(12px, 3vw, 28px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

nav a {
  text-decoration: none;
}

.nav-app {
  color: #ccfbf1;
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 132px clamp(20px, 7vw, 90px) clamp(44px, 8vh, 72px);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.42;
  transform: scale(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 17, 30, 0.96), rgba(7, 17, 30, 0.68) 46%, rgba(7, 17, 30, 0.25)),
    linear-gradient(0deg, rgba(7, 17, 30, 0.92), transparent 46%);
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--mint);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 16px;
  font-size: clamp(58px, 12vw, 132px);
  line-height: 0.88;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 0.98;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

.hero-copy,
.section p {
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.5;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: linear-gradient(135deg, #5eead4, #14b8a6);
  color: #042f2e;
  border-color: rgba(45, 212, 191, 0.7);
}

.button.secondary {
  background: rgba(15, 23, 42, 0.6);
  color: #dbeafe;
}

.section {
  padding: clamp(58px, 9vw, 110px) clamp(20px, 7vw, 90px);
}

.section-head {
  width: min(740px, 100%);
  margin-bottom: 28px;
}

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

.feature-grid article,
.pro-section,
.install-card,
.download-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 20px 70px rgba(2, 6, 23, 0.34);
}

.feature-grid article {
  min-height: 260px;
  padding: 24px;
  border-radius: 18px;
}

.feature-grid span {
  display: block;
  margin-bottom: 42px;
  color: var(--blue);
  font-weight: 900;
}

.feature-grid p,
.download-copy p,
.pro-section p {
  font-size: 16px;
}

.install-section {
  background: rgba(15, 23, 42, 0.36);
}

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

.install-card {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding: 26px;
  border-radius: 20px;
}

.install-card-head {
  display: grid;
  gap: 8px;
}

.install-card-head span {
  color: var(--mint);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.install-card-head strong {
  font-size: 26px;
}

.install-card ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.install-card .button {
  margin-top: auto;
}

.pro-section,
.download-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
}

.pro-section {
  margin: 0 clamp(20px, 7vw, 90px);
  padding: 28px;
  border-radius: 22px;
}

.download-card {
  display: grid;
  justify-items: start;
  gap: 10px;
  width: min(310px, 100%);
  padding: 24px;
  border-radius: 20px;
}

.download-card img {
  width: 64px;
  height: 64px;
}

.download-card strong {
  font-size: 22px;
}

.download-card span {
  color: var(--muted);
}

.download-card .button[aria-disabled="true"] {
  width: 100%;
  margin-top: 8px;
  opacity: 0.72;
  pointer-events: none;
}

footer {
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 7vw, 90px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

footer span {
  color: var(--text);
  font-weight: 900;
}

.install-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
}

.install-modal.is-open {
  display: block;
}

.install-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 6, 23, 0.68);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.install-sheet {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  gap: 22px;
  min-height: min(72svh, 620px);
  padding: clamp(28px, 5vw, 48px);
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 28px 28px 0 0;
  background: #202020;
  box-shadow: 0 -30px 80px rgba(0, 0, 0, 0.45);
}

.install-sheet h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.08;
}

.install-sheet p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: rgba(248, 250, 252, 0.76);
  font-size: clamp(20px, 3.8vw, 34px);
  line-height: 1.42;
}

.install-close {
  position: absolute;
  top: 22px;
  right: 24px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(248, 250, 252, 0.78);
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
}

.install-visual {
  display: grid;
  justify-items: center;
  gap: 16px;
  margin: 10px 0;
}

.install-arrow {
  position: relative;
  width: 18px;
  height: 150px;
  background: #10b981;
}

.install-arrow::after {
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 0;
  border-right: 34px solid transparent;
  border-left: 34px solid transparent;
  border-top: 48px solid #10b981;
  content: "";
  transform: translateX(-50%);
}

.install-visual span {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 28px;
  border: 1px solid rgba(248, 250, 252, 0.24);
  border-radius: 999px;
  color: rgba(248, 250, 252, 0.9);
  font-size: 18px;
  font-weight: 800;
}

.install-sheet .button {
  width: min(100%, 420px);
}

@media (max-width: 820px) {
  .site-header {
    position: absolute;
  }

  nav a:not(.nav-app) {
    display: none;
  }

  .feature-grid,
  .install-grid,
  .pro-section,
  .download-section {
    grid-template-columns: 1fr;
  }

  .download-card {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .brand span {
    display: none;
  }

  .hero {
    min-height: 88svh;
  }

  h1 {
    font-size: clamp(52px, 18vw, 86px);
  }

  .install-sheet {
    min-height: 68svh;
  }
}
