:root {
  --ink: #12110f;
  --paper: #f3eee6;
  --stone: #c4b49a;
  --accent: #2f6f5e;
  --accent-deep: #1f4f43;
  --muted: rgba(243, 238, 230, 0.72);
  --line: rgba(243, 238, 230, 0.16);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  color: var(--paper);
  font-family: var(--font-body);
  background: var(--ink);
  overflow-x: hidden;
  display: grid;
  grid-template-rows: 1fr auto;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 55% at 18% 12%, rgba(196, 180, 154, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 50% at 88% 78%, rgba(47, 111, 94, 0.28), transparent 50%),
    linear-gradient(160deg, #1a1815 0%, #0e0d0c 48%, #151a18 100%);
  animation: drift 18s ease-in-out infinite alternate;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.stage {
  position: relative;
  z-index: 2;
  width: min(720px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(4.5rem, 14vh, 8rem) 0 3rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.brand {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 10vw, 5.6rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 0.9;
  color: var(--paper);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.headline {
  margin: 0 0 0.85rem;
  max-width: 14ch;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--stone);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.lead {
  margin: 0 0 2.25rem;
  max-width: 34ch;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--muted);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}

.cta {
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.34s both;
}

.download {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.05rem 1.55rem 1.1rem;
  min-width: min(100%, 260px);
  text-decoration: none;
  color: var(--paper);
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-deep) 100%);
  border: 1px solid rgba(243, 238, 230, 0.12);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.download::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.18) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: sheen 4.5s ease-in-out 1.2s infinite;
}

.download:hover,
.download:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
  filter: brightness(1.05);
  outline: none;
}

.download__label {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.download__meta {
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.82;
}

.version-note {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  color: var(--stone);
  letter-spacing: 0.01em;
}

.steps {
  margin: 2.75rem 0 0;
  padding: 0;
  list-style: none;
  width: min(100%, 420px);
  border-top: 1px solid var(--line);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.48s both;
}

.steps li {
  position: relative;
  padding: 0.95rem 0 0.95rem 2.1rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
  counter-increment: step;
}

.steps {
  counter-reset: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 1.4rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--stone);
}

.foot {
  position: relative;
  z-index: 2;
  padding: 1.25rem 1.25rem 1.75rem;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(243, 238, 230, 0.42);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  from {
    transform: scale(1) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.04) translate3d(-1.5%, 1%, 0);
  }
}

@keyframes sheen {
  0%,
  55% {
    transform: translateX(-120%);
  }
  80%,
  100% {
    transform: translateX(120%);
  }
}

@media (max-width: 640px) {
  .stage {
    width: min(100% - 2rem, 720px);
    padding-top: 3.5rem;
  }

  .download {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .atmosphere,
  .brand,
  .headline,
  .lead,
  .cta,
  .steps,
  .download::after {
    animation: none !important;
  }
}
