:root {
  --navy: #071b3a;
  --navy-mid: #0a2550;
  --blue: #0b7cff;
  --blue-dark: #0966d4;
  --cyan: #00afc6;
  --green: #12a889;
  --green-dark: #0e8f6f;
  --bg: #f4f7fc;
  --bg-alt: #eef3fb;
  --card: #ffffff;
  --border: #e4eaf3;
  --text: #101828;
  --muted: #667085;
  --shadow-sm: 0 4px 16px rgba(7, 27, 58, 0.06);
  --shadow-md: 0 12px 40px rgba(7, 27, 58, 0.08);
  --shadow-lg: 0 24px 64px rgba(7, 27, 58, 0.1);
  --radius: 16px;
  --radius-sm: 10px;
  --focus: #0b7cff;
  --max-width: 960px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 60% at 50% -15%, rgba(11, 124, 255, 0.11), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 10%, rgba(0, 175, 198, 0.07), transparent 50%),
    radial-gradient(ellipse 45% 35% at 0% 85%, rgba(11, 124, 255, 0.06), transparent 50%),
    linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 40%, #f8faff 100%);
}

.page-bg::before,
.page-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  pointer-events: none;
}

.page-bg::before {
  width: 420px;
  height: 420px;
  top: -120px;
  right: -80px;
  background: rgba(11, 124, 255, 0.12);
}

.page-bg::after {
  width: 360px;
  height: 360px;
  bottom: 10%;
  left: -100px;
  background: rgba(18, 168, 137, 0.08);
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3rem;
}

.top-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 2rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.5rem;
  margin: -0.25rem -0.5rem;
}

.brand-link:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.brand-logo {
  display: block;
  height: 36px;
  width: auto;
  object-fit: contain;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
}

.lang-switch a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.lang-switch a:hover {
  color: var(--navy);
}

.lang-switch a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.lang-switch a[aria-current="page"] {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
}

.lang-switch-sep {
  color: var(--border);
  user-select: none;
}

.hero {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.625rem, 4.5vw, 2.125rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.hero-lead {
  margin: 0 0 1.25rem;
  font-size: clamp(0.9375rem, 2.5vw, 1.0625rem);
  color: var(--muted);
  line-height: 1.6;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.trust-row li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
}

.trust-row svg {
  width: 14px;
  height: 14px;
  color: var(--blue);
  flex-shrink: 0;
}

.packages {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .packages {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

.card--featured {
  border-color: rgba(11, 124, 255, 0.22);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.card--featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.card--android {
  border-color: rgba(18, 168, 137, 0.2);
}

.card-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon--win {
  background: rgba(11, 124, 255, 0.1);
  color: var(--blue);
}

.icon--android {
  background: rgba(18, 168, 137, 0.12);
  color: var(--green);
}

.icon svg {
  width: 28px;
  height: 28px;
}

.card-title-block {
  flex: 1;
  min-width: 0;
}

.card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  line-height: 1.3;
}

.badge--version {
  background: rgba(11, 124, 255, 0.1);
  color: var(--blue-dark);
}

.badge--platform {
  background: rgba(7, 27, 58, 0.06);
  color: var(--navy);
}

.badge--android {
  background: rgba(18, 168, 137, 0.12);
  color: var(--green-dark);
}

.card-desc {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
}

.meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1rem 0 1.25rem;
  list-style: none;
  padding: 0;
}

.meta-chips li {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.3rem 0.55rem;
}

.download-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.download-option {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 44px;
  padding: 0.75rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: box-shadow 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-1px); }
  .btn:active { transform: translateY(0); }
}

.btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  box-shadow: 0 4px 16px rgba(11, 124, 255, 0.3);
}

.btn--primary:hover {
  box-shadow: 0 6px 22px rgba(11, 124, 255, 0.4);
}

.btn--secondary {
  color: var(--navy);
  background: #fff;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn--secondary:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 14px rgba(11, 124, 255, 0.1);
}

.btn--android {
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  box-shadow: 0 4px 16px rgba(18, 168, 137, 0.3);
}

.btn--android:hover {
  box-shadow: 0 6px 22px rgba(18, 168, 137, 0.4);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-hint {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
  padding-left: 0.15rem;
}

.checksum-panel {
  margin-top: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  overflow: hidden;
}

.checksum-panel summary {
  cursor: pointer;
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checksum-panel summary::-webkit-details-marker { display: none; }

.checksum-panel summary::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid var(--muted);
  transition: transform 0.15s ease;
  flex-shrink: 0;
}

.checksum-panel[open] summary::before {
  transform: rotate(90deg);
}

.checksum-panel summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}

.checksum-body {
  padding: 0 1rem 1rem;
  border-top: 1px solid var(--border);
}

.checksum-item {
  margin-top: 0.85rem;
}

.checksum-label {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy);
}

.checksum-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.5rem;
}

.checksum-value {
  flex: 1 1 12rem;
  min-width: 0;
  margin: 0;
  padding: 0.5rem 0.65rem;
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: 0.6875rem;
  line-height: 1.5;
  word-break: break-all;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.copy-btn {
  flex-shrink: 0;
  min-height: 36px;
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.copy-btn:hover {
  border-color: var(--blue);
  background: rgba(11, 124, 255, 0.04);
}

.copy-btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.copy-btn[aria-live] {
  min-width: 4.5rem;
}

.site-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin-bottom: 0.75rem;
}

.site-footer-nav a {
  font-size: 0.8125rem;
  color: var(--blue);
  text-decoration: none;
}

.site-footer-nav a:hover {
  text-decoration: underline;
}

.site-footer-nav a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

.site-footer-copy {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
}

@media (min-width: 540px) {
  .wrap { padding: 2.25rem 1.5rem 3.5rem; }
}

@media (min-width: 768px) {
  .wrap { padding: 2.5rem 2rem 4rem; }
}

@media (max-width: 359px) {
  .top-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .lang-switch {
    justify-content: center;
  }
}
