/* ==========================================================================
   Locosnet — download page. Background + one button. Nothing else.
   ========================================================================== */

:root {
  --bg: #0c0f14;
  --orange: #ff6000;
  --orange-light: #ff9955;
  --orange-dark: #cc4d00;

  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

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

html, body {
  height: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: #fff;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 2px solid var(--orange-light);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------- */
/* Hero — full-bleed photo, Netflix-style radial scrim, text + button    */
/* over it. Nothing else on the page.                                    */
/* --------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% 30%;
  display: block;
}

.hero__scrim {
  position: absolute;
  inset: -15%;
  background: radial-gradient(
    ellipse 85% 65% at 50% 100%,
    rgba(4, 5, 8, 0.97) 0%,
    rgba(4, 5, 8, 0.88) 28%,
    rgba(4, 5, 8, 0.5) 52%,
    rgba(4, 5, 8, 0.1) 74%,
    transparent 88%
  );
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 30rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1.5rem clamp(2.5rem, 9vh, 4.5rem);
  padding-bottom: max(clamp(2.5rem, 9vh, 4.5rem), calc(env(safe-area-inset-bottom) + 1.5rem));
}

.hero__line {
  margin: 0;
  font-size: clamp(1.5rem, 3.4vw + 0.6rem, 2.4rem);
  font-weight: 400;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.94);
  text-wrap: balance;
}

.hero__line strong {
  font-weight: 800;
  color: #fff;
}

.hero__line--brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
}

.hero__logo {
  height: 1.9em;
  width: auto;
  display: block;
}

/* --------------------------------------------------------------------- */
/* Download button — real-time progress fill                             */
/* --------------------------------------------------------------------- */

.download {
  --progress: 0;
  position: relative;
  margin-top: clamp(1.75rem, 4.5vh, 2.5rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  width: min(23rem, calc(100% - 1rem));
  padding: 1.15rem 1.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, var(--orange-light) 0%, var(--orange) 55%, var(--orange-dark) 100%);
  color: #1a0900;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
  isolation: isolate;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 18px 40px -14px rgba(255, 96, 0, 0.55);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.download:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 22px 46px -12px rgba(255, 96, 0, 0.65);
}

.download:active {
  transform: translateY(0) scale(0.985);
}

.download::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(12, 15, 20, 0.32);
  transform: scaleX(var(--progress));
  transform-origin: left center;
  transition: transform 0.18s linear;
}

.download__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.download__label {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.download.is-loading .download__icon {
  animation: icon-drop 1.1s ease-in-out infinite;
}

@keyframes icon-drop {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(2px); }
}

.download.is-done {
  background: linear-gradient(180deg, #4dffb0 0%, #19d98a 55%, #0fa86b 100%);
}

.download.is-error {
  background: linear-gradient(180deg, #ff8a8a 0%, #ff5252 55%, #d43a3a 100%);
}
