@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;600;700&display=swap");

:root {
  --bg: #272c2e;
  --bg-soft: #2f3438;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.78);
  --border: rgba(255, 255, 255, 0.16);
  --button: #0964AC;
  --button-hover: #3286d1;
  --button-secondary: #32373b;
  --button-secondary-hover: #3a4044;
  --button-secondary-border: rgba(255, 255, 255, 0.18);
  --shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
}

* {
  -webkit-font-smoothing: antialiased;
  -webkit-overflow-scrolling: touch;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-text-size-adjust: none;
  -webkit-touch-callout: none;
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #2b3034 0%, var(--bg) 100%);
}

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

.cover {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 24px;
  text-align: center;
}

.cover-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.hero-copy {
  max-width: 860px;
  margin: 0 auto;
}

.logo {
  margin: 0 auto 15px;
  width: 180px;
  height: 180px;
}

.logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 4.6rem);
  font-weight: 700;
  line-height: 1.05;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.4;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  width: max-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.download-group {
  position: relative;
  display: inline-block;
}

.btn {
  min-width: 154px;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-size: 1rem;
  border: 1px solid var(--border);
  background: transparent;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

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

.platform-option-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.download-menu {
  position: relative;
}

.download-menu summary {
  list-style: none;
}

.download-menu summary::-webkit-details-marker {
  display: none;
}

.download-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 260px;
  gap: 12px;
  font-weight: 600;
  text-align: center;
}

.download-summary-label {
  flex: 1 1 auto;
  white-space: nowrap;
  font-size: 1.2rem;
  line-height: 1;
}

.download-summary-caret {
  font-size: 0.9em;
  flex: 0 0 auto;
}

.download-options {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 260px;
  padding: 8px;
  border-radius: 16px;
  background: var(--bg-soft);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.35);
  text-align: left;
  z-index: 10;
}

.download-options a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #ffffff;
}

.platform-option-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.download-option-copy {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}

.download-option-label {
  font-weight: 600;
  line-height: 1.25;
}

.download-option-meta {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
  line-height: 1.25;
}

.download-option-badge {
  flex: 0 0 auto;
  align-self: center;
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.download-option-hint {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.85rem;
  line-height: 1.4;
  white-space: nowrap;
}

.download-options a:hover,
.download-options a:focus {
  background: rgba(255, 255, 255, 0.08);
}

.download-options a[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.58;
}

.download-options a[aria-disabled="true"]:hover,
.download-options a[aria-disabled="true"]:focus {
  background: transparent;
}

.download-options a.is-recommended {
  border-color: rgba(255, 255, 255, 0.15);
  border-style: dashed;
}

.btn-primary {
  background: #0964AC;
  border-color: rgba(105, 173, 229, 0.34);
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus {
  background: #2780cf;
  border-color: rgba(130, 191, 240, 0.42);
  color: #ffffff;
}

.btn-outline-secondary {
  background: var(--button-secondary);
  border-color: var(--button-secondary-border);
  color: #ffffff;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  background: var(--button-secondary-hover);
  border-color: rgba(255, 255, 255, 0.26);
  color: #ffffff;
}

.hero-visual {
  margin: 56px auto 0;
  max-width: 900px;
}

.screenshot {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: var(--shadow);
}

@media (max-width: 768px) {
  .cover {
    padding: 36px 18px 24px;
  }

  .logo {
    width: 256px;
    height: 256px;
    margin-bottom: 16px;
  }

  .hero-actions {
    gap: 10px;
  }

  .btn {
    width: 100%;
    min-width: 0;
  }

  .download-group {
    width: 100%;
  }

  .download-menu,
  .download-toggle {
    width: 100%;
  }

  .download-options {
    width: 100%;
    min-width: 0;
  }

  .hero-visual {
    margin-top: 40px;
  }
}

@media (max-width: 560px) {
  .hero-visual {
    display: none;
  }
}
