:root {
  color-scheme: dark;
  --brown-950: #160e0c;
  --brown-900: #24140f;
  --brown-700: #5f3725;
  --cream: #fff4e8;
  --cream-muted: #eed9c6;
  --gold: #f4ba6b;
  --gold-soft: #ffdb9d;
  --focus: #fff0c8;
}

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

html {
  min-width: 320px;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--brown-900);
  color: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  translate: 0 -160%;
  border-radius: 8px;
  background: var(--cream);
  color: var(--brown-900);
  padding: 10px 14px;
  font-weight: 750;
  transition: translate 160ms ease;
}

.skip-link:focus {
  translate: 0;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: max(106px, calc(74px + env(safe-area-inset-top))) clamp(20px, 4vw, 48px)
    max(88px, calc(60px + env(safe-area-inset-bottom)));
  text-align: center;
}

.gradient-background {
  position: absolute;
  inset: 0;
  z-index: -4;
  background:
    radial-gradient(ellipse 75% 75% at 52% 8%, #b87839 0%, transparent 70%),
    radial-gradient(ellipse 65% 80% at 0% 100%, #6b3d27 0%, transparent 75%),
    radial-gradient(ellipse 75% 90% at 100% 75%, #45251b 0%, transparent 70%),
    linear-gradient(145deg, #80512f 0%, #40271e 48%, #1b1311 100%);
}

.gradient-background::before {
  content: "";
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(circle at 35% 40%, #e2a65a55, transparent 30%),
    radial-gradient(circle at 75% 70%, #b76b3c55, transparent 30%);
  filter: blur(55px);
  animation: drift 16s ease-in-out infinite alternate;
  will-change: transform;
}

.gradient-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #1b110b22 0%, #21130d55 60%, #160e0caa 100%);
}

@keyframes drift {
  from { transform: translate3d(-3%, -2%, 0) scale(1); }
  to { transform: translate3d(4%, 3%, 0) scale(1.15); }
}

.media-background {
  position: absolute;
  inset: 0;
  z-index: -3;
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero.has-media .media-background {
  display: block;
}

.hero.has-media .gradient-background {
  opacity: 0.45;
}

.grain {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.14;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

.topbar {
  position: absolute;
  top: env(safe-area-inset-top);
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(24px, 6vw, 100px);
}

.wordmark {
  color: white;
  font-size: clamp(23px, 2.5vw, 30px);
  font-weight: 850;
  letter-spacing: -0.065em;
  text-decoration: none;
}

.wordmark span,
.display-mark span {
  color: var(--gold);
}

.top-tag {
  border: 1px solid #ffddb04a;
  border-radius: 999px;
  color: #f3d4ad;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  padding: 10px 14px;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-content {
  width: min(100%, 900px);
  margin: auto;
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 0 0 26px;
  color: var(--gold-soft);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.23em;
  text-transform: uppercase;
}

.eyebrow::before,
.eyebrow::after {
  width: 24px;
  height: 1px;
  background: #ffce88a0;
  content: "";
}

.display-mark {
  margin: 0 0 26px;
  font-size: clamp(4.75rem, 12vw, 9.5rem);
  font-weight: 900;
  letter-spacing: -0.085em;
  line-height: 0.88;
  text-shadow: 0 8px 50px #120b0a45;
}

h1 {
  max-width: 820px;
  margin: 0 auto 19px;
  font-size: clamp(1.85rem, 4.4vw, 3.5rem);
  font-weight: 760;
  letter-spacing: -0.05em;
  line-height: 1.12;
}

.description {
  max-width: 570px;
  margin: 0 auto 38px;
  color: var(--cream-muted);
  font-size: clamp(0.98rem, 1.7vw, 1.2rem);
  line-height: 1.65;
}

.store-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.store-badge {
  min-width: 178px;
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid #ffffff75;
  border-radius: 11px;
  background: #0b0a0bde;
  color: white;
  padding: 10px 17px;
  text-align: left;
}

.store-badge:disabled {
  cursor: not-allowed;
  opacity: 0.88;
}

.store-badge svg {
  width: 29px;
  height: 32px;
  flex: none;
}

.store-badge small,
.store-badge strong {
  display: block;
}

.store-badge small {
  font-size: 0.625rem;
  line-height: 1.2;
}

.store-badge strong {
  font-size: 1.18rem;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.launch-status {
  margin: 22px 0 0;
  color: #f0c79e;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

footer {
  position: absolute;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  left: max(24px, env(safe-area-inset-left));
  display: flex;
  justify-content: center;
  gap: 14px;
  color: #f0d9c2b8;
  font-size: 0.75rem;
}

footer a {
  color: inherit;
  text-underline-offset: 3px;
}

footer a:hover {
  color: white;
}

@media (max-width: 600px) {
  .hero {
    padding-right: 18px;
    padding-left: 18px;
  }

  .topbar {
    padding-right: 20px;
    padding-left: 20px;
  }

  .top-tag {
    font-size: 0.56rem;
    letter-spacing: 0.14em;
    padding: 8px 10px;
  }

  .display-mark {
    font-size: clamp(4.5rem, 21vw, 7rem);
  }

  h1 {
    font-size: clamp(1.7rem, 8vw, 2.55rem);
  }

  .description {
    margin-bottom: 30px;
  }

  .store-list {
    gap: 10px;
  }

  .store-badge {
    min-width: min(100%, 164px);
    padding: 9px 12px;
  }

  .store-badge strong {
    font-size: 1.05rem;
  }
}

@media (max-width: 370px) {
  .top-tag {
    display: none;
  }

  .topbar {
    justify-content: center;
  }

  .store-list {
    flex-direction: column;
    align-items: stretch;
  }

  .store-badge {
    width: min(100%, 230px);
    margin: 0 auto;
  }
}

@media (min-width: 1400px) {
  .hero-content {
    transform: translateY(10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .gradient-background::before {
    animation: none;
  }

  .skip-link {
    transition: none;
  }
}

@media (forced-colors: active) {
  .store-badge,
  .top-tag {
    border: 1px solid CanvasText;
  }
}
