:root {
  color-scheme: light;
  --navy-950: #07162f;
  --navy-900: #0b2347;
  --navy-800: #123463;
  --blue-600: #176fe5;
  --blue-500: #2f83f4;
  --blue-100: #eaf3ff;
  --slate-900: #172033;
  --slate-700: #42506a;
  --slate-500: #69758d;
  --slate-300: #cfd7e5;
  --slate-200: #e3e8f1;
  --slate-100: #f4f7fb;
  --white: #ffffff;
  --green: #157d53;
  --red: #b42318;
  --amber: #9a6700;
  --shadow: 0 24px 60px rgba(12, 35, 72, 0.14);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--slate-900);
  background: linear-gradient(180deg, #f7faff 0%, #ffffff 42%, #f4f7fb 100%);
  line-height: 1.55;
}
a { color: inherit; }
button { font: inherit; }
img { max-width: 100%; display: block; }

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(207, 215, 229, 0.8);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
}
.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand img { width: 42px; height: 42px; border-radius: 11px; }
.brand span { font-size: 1.05rem; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a {
  text-decoration: none;
  color: var(--slate-700);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav a:hover { color: var(--blue-600); }

.hero {
  padding: 86px 0 72px;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  right: -190px;
  top: -260px;
  background: radial-gradient(circle, rgba(47, 131, 244, 0.22), rgba(47, 131, 244, 0));
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 64px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--blue-600);
  background: var(--blue-100);
  font-weight: 700;
  font-size: 0.88rem;
}
.hero h1 {
  margin: 22px 0 20px;
  font-size: clamp(2.65rem, 6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  color: var(--navy-950);
}
.hero-copy {
  max-width: 720px;
  color: var(--slate-700);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.badge {
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--slate-700);
  font-size: 0.9rem;
  font-weight: 700;
}
.brand-wide { margin-top: 34px; width: min(440px, 90%); opacity: 0.84; }

.download-card {
  position: relative;
  border: 1px solid rgba(207, 215, 229, 0.9);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  padding: 30px;
}
.app-mark {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}
.app-mark img {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(10, 35, 72, 0.18);
}
.app-mark h2 { margin: 0 0 4px; font-size: 1.55rem; }
.app-mark p { margin: 0; color: var(--slate-500); }
.release-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.release-cell {
  background: var(--slate-100);
  border-radius: var(--radius-sm);
  padding: 12px 13px;
}
.release-cell span { display: block; color: var(--slate-500); font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.release-cell strong { display: block; margin-top: 3px; color: var(--navy-950); }
.release-notes {
  min-height: 48px;
  margin: 0 0 18px;
  color: var(--slate-700);
  white-space: pre-line;
}
.primary-button,
.secondary-button,
.text-button {
  border: 0;
  border-radius: 13px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.primary-button {
  width: 100%;
  padding: 16px 18px;
  color: white;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  font-weight: 800;
  font-size: 1.02rem;
  box-shadow: 0 14px 28px rgba(23, 111, 229, 0.28);
}
.primary-button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 18px 32px rgba(23, 111, 229, 0.34); }
.primary-button:disabled { cursor: wait; opacity: 0.55; box-shadow: none; }
.secondary-button {
  padding: 10px 14px;
  background: var(--slate-100);
  color: var(--slate-700);
  font-weight: 700;
}
.text-button { padding: 0; background: transparent; color: var(--blue-600); font-weight: 700; }
.download-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.status-line {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
  color: var(--slate-500);
  font-size: 0.9rem;
}
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--slate-300); }
.status-dot[data-type="loading"] { background: var(--blue-500); box-shadow: 0 0 0 5px rgba(47, 131, 244, 0.12); }
.status-dot[data-type="success"] { background: var(--green); }
.status-dot[data-type="error"] { background: var(--red); }
.status-line [data-type="error"] { color: var(--red); }
.status-line [data-type="success"] { color: var(--green); }
.progress-box {
  margin-top: 18px;
  padding: 15px;
  border-radius: var(--radius-sm);
  background: var(--slate-100);
}
.progress-track { height: 9px; border-radius: 99px; background: var(--slate-200); overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--blue-600), #57a5ff); transition: width 0.12s linear; }
.progress-meta { display: flex; justify-content: space-between; gap: 14px; margin-top: 9px; color: var(--slate-700); font-size: 0.86rem; }
.progress-meta strong { color: var(--navy-950); }
.warning {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: #6d4b00;
  background: #fff7df;
  font-size: 0.84rem;
}

.section { padding: 82px 0; }
.section-header { max-width: 730px; margin-bottom: 34px; }
.section-kicker { color: var(--blue-600); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.82rem; }
.section h2 { margin: 8px 0 12px; font-size: clamp(2rem, 4vw, 3.15rem); line-height: 1.08; letter-spacing: -0.04em; color: var(--navy-950); }
.section-header p { margin: 0; color: var(--slate-700); font-size: 1.06rem; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card {
  padding: 24px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  background: white;
}
.feature-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--blue-600); background: var(--blue-100); font-weight: 900; }
.feature-card h3 { margin: 18px 0 8px; color: var(--navy-950); }
.feature-card p { margin: 0; color: var(--slate-600, var(--slate-700)); }

.screenshots { background: var(--navy-950); color: white; }
.screenshots .section-kicker { color: #78b8ff; }
.screenshots h2 { color: white; }
.screenshots .section-header p { color: #becae0; }
.screenshot-grid { display: grid; grid-template-columns: 1.35fr 0.65fr; grid-template-rows: repeat(2, minmax(210px, 1fr)); gap: 18px; }
.screenshot-card { margin: 0; overflow: hidden; border-radius: var(--radius-md); background: #0f2b53; border: 1px solid rgba(255,255,255,0.12); }
.screenshot-card:first-child { grid-row: 1 / span 2; }
.screenshot-card img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step-card { counter-increment: step; padding: 25px; border-radius: var(--radius-md); background: white; border: 1px solid var(--slate-200); }
.step-card::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--navy-950); color: white; font-weight: 800; }
.step-card h3 { margin: 17px 0 8px; }
.step-card p { margin: 0; color: var(--slate-700); }
.system-card { margin-top: 26px; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 22px 24px; border: 1px solid var(--slate-200); border-radius: var(--radius-md); background: var(--slate-100); }
.system-card strong { color: var(--navy-950); }
.system-card p { margin: 4px 0 0; color: var(--slate-700); }

.site-footer { padding: 34px 0; border-top: 1px solid var(--slate-200); background: white; color: var(--slate-500); }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.footer-inner strong { color: var(--slate-700); }

[hidden] { display: none !important; }

@media (max-width: 900px) {
  .nav { display: none; }
  .hero { padding-top: 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 42px; }
  .features-grid, .steps-grid { grid-template-columns: 1fr 1fr; }
  .screenshot-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .screenshot-card:first-child { grid-row: auto; }
  .screenshot-card img { min-height: 250px; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 24px, 1180px); }
  .hero { padding: 40px 0 50px; }
  .hero h1 { font-size: 3rem; }
  .download-card { padding: 20px; border-radius: 20px; }
  .app-mark img { width: 68px; height: 68px; }
  .release-grid { grid-template-columns: 1fr; }
  .features-grid, .steps-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .system-card, .footer-inner { flex-direction: column; align-items: flex-start; }
  .download-actions { grid-template-columns: 1fr; }
  .status-line { grid-template-columns: 10px 1fr; }
  .status-line .text-button { grid-column: 2; justify-self: start; }
  .progress-meta { flex-direction: column; gap: 3px; }
}
