:root {
  --blue: #0055a3;
  --pink: #bc007e;
  --light-blue: #88ccea;
  --ink: #10233b;
  --muted: #64748b;
  --surface: rgba(255, 255, 255, 0.82);
  --border: rgba(0, 85, 163, 0.12);
  --shadow: 0 22px 60px rgba(16, 35, 59, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(136, 204, 234, 0.28), transparent 38%),
    linear-gradient(135deg, #f8fbff 0%, #ffffff 48%, #fff7fc 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.38;
  background-image:
    linear-gradient(rgba(0, 85, 163, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 85, 163, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.background-glow {
  position: fixed;
  z-index: -1;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  animation: floatGlow 11s ease-in-out infinite alternate;
}

.background-glow--blue {
  top: -10rem;
  left: -8rem;
  background: var(--blue);
}

.background-glow--pink {
  right: -9rem;
  bottom: -12rem;
  background: var(--pink);
  animation-delay: -4s;
}

.page-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 72px 0 34px;
}

.hero {
  max-width: 760px;
  margin: 0 auto 52px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  margin-bottom: 18px;
  border: 1px solid rgba(0, 85, 163, 0.14);
  border-radius: 999px;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 24px rgba(0, 85, 163, 0.08);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 6px rgba(188, 0, 126, 0.1);
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.35rem, 5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
  background: linear-gradient(115deg, var(--blue), #213d65 54%, var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.75;
}

.download-grid {
  display: grid;
  grid-template-columns: 1fr 1.16fr 1fr;
  align-items: center;
  gap: 24px;
}

.download-card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transform-style: preserve-3d;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.download-card:hover {
  border-color: rgba(0, 85, 163, 0.28);
  box-shadow: 0 28px 70px rgba(16, 35, 59, 0.18);
}

.download-card--featured {
  padding: 30px;
  border-color: rgba(188, 0, 126, 0.2);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.76)),
    linear-gradient(135deg, rgba(0, 85, 163, 0.12), rgba(188, 0, 126, 0.12));
}

.download-card--featured::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(0, 85, 163, 0.32), rgba(188, 0, 126, 0.34));
  filter: blur(16px);
  opacity: 0.28;
}

.featured-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), #de279b);
  box-shadow: 0 10px 24px rgba(188, 0, 126, 0.25);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logo-frame {
  display: grid;
  place-items: center;
  width: 100%;
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid rgba(0, 85, 163, 0.1);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.96), rgba(240,248,255,0.82));
}

.logo-frame--small {
  min-height: 190px;
}

.logo-frame--large {
  min-height: 260px;
}

.logo-frame img {
  display: block;
  width: min(76%, 240px);
  max-height: 150px;
  object-fit: contain;
  transition: transform 350ms cubic-bezier(.2,.8,.2,1);
}

.download-card:hover .logo-frame img {
  transform: scale(1.055);
}

.card-content h2 {
  margin-bottom: 10px;
  font-size: 1.4rem;
  letter-spacing: -0.025em;
}

.card-content p {
  min-height: 52px;
  margin-bottom: 22px;
  color: var(--muted);
  line-height: 1.65;
}

.download-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(0, 85, 163, 0.14);
  border-radius: 15px;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.download-button:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 12px 28px rgba(0, 85, 163, 0.14);
}

.download-button--primary {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--pink));
  box-shadow: 0 14px 30px rgba(0, 85, 163, 0.2);
}

.download-button--primary:hover {
  background: linear-gradient(135deg, #0064bd, #d0008c);
  box-shadow: 0 16px 34px rgba(188, 0, 126, 0.24);
}

.download-button svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms ease;
}

.download-button:hover svg {
  transform: translateY(2px);
}

.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  color: var(--muted);
  font-size: 0.93rem;
}

.footer p {
  margin: 0;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--light-blue);
  box-shadow: 0 0 0 6px rgba(136, 204, 234, 0.18);
  animation: pulse 2.2s ease-in-out infinite;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease var(--delay, 0s), transform 700ms ease var(--delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  max-width: min(360px, calc(100% - 44px));
  padding: 14px 16px;
  border: 1px solid rgba(0, 85, 163, 0.16);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.72); opacity: 0.65; }
}

@keyframes floatGlow {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(42px, 28px, 0) scale(1.14); }
}

@media (max-width: 940px) {
  .download-grid {
    grid-template-columns: 1fr;
    max-width: 620px;
    margin: 0 auto;
  }

  .download-card--featured {
    order: -1;
  }

  .logo-frame--large,
  .logo-frame--small {
    min-height: 220px;
  }

  .card-content p {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 22px, 1180px);
    padding-top: 44px;
  }

  .hero {
    margin-bottom: 34px;
  }

  .download-card,
  .download-card--featured {
    padding: 18px;
    border-radius: 22px;
  }

  .featured-badge {
    top: 12px;
    right: 12px;
  }

  .logo-frame--large,
  .logo-frame--small {
    min-height: 180px;
  }
}

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