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

html {
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #fff;
  color: #111;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

#parrotCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.landing {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 4rem 1.5rem 3rem;
  text-align: center;
  pointer-events: none;
}

/* Hovering buttons: lift the whole content layer above the mascot canvas */
body.is-ui-hover .landing,
.landing:has(.btn:hover),
.landing:has(.btn:focus-visible),
.landing:has(.lang-btn:hover),
.landing:has(.lang-btn:focus-visible) {
  z-index: 10;
}

.landing a,
.landing button {
  pointer-events: auto;
}

.hero-tagline {
  margin: 0 0 1.75rem;
  font-size: 0.9375rem;
  font-style: italic;
  color: #d4622a;
  letter-spacing: 0.01em;
}

.hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  max-width: 920px;
  margin-bottom: 1.25rem;
}

.hero-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.title-main {
  display: block;
  color: #111;
}

.title-accent {
  display: block;
  font-style: italic;
  color: #d4622a;
}

.hero-sub {
  margin: 0 0 2.25rem;
  max-width: 28rem;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: #666;
}

.download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 220px;
  padding: 0.875rem 1.5rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.15s;
}

.btn-icon {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}

.btn-mac {
  background: #111;
  color: #fff;
  border: 1px solid #111;
}

.btn-mac:hover {
  opacity: 0.88;
}

.btn-win {
  background: #fff;
  color: #111;
  border: 1px solid #ccc;
}

.btn-win:hover {
  border-color: #111;
}

.btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}

.release-note,
.coming-soon,
.download-hint,
.download-smartscreen,
.download-offline {
  margin: 0.5rem 0 0;
  max-width: 32rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #888;
}

.download-smartscreen {
  color: #b45309;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
}

.download-offline a {
  color: #d4622a;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.coming-soon {
  color: #b45309;
}

.hero-stat {
  margin: 2.5rem 0 0;
  font-size: 0.875rem;
  color: #d4622a;
  letter-spacing: 0.02em;
}

.lang-row {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
}

.lang-btn {
  padding: 0.25rem 0.35rem;
  border: none;
  background: none;
  color: #888;
  cursor: pointer;
  font: inherit;
}

.lang-btn:hover,
.lang-btn.active {
  color: #111;
}

.lang-sep {
  color: #ccc;
}

@media (max-width: 640px) {
  .btn {
    min-width: 100%;
    width: 100%;
    max-width: 320px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}
