:root {
  --ink: #f4efe6;
  --ink-muted: rgba(244, 239, 230, 0.72);
  --ink-faint: rgba(244, 239, 230, 0.45);
  --ember: #ff8a3d;
  --ember-soft: #ffb347;
  --night: #070709;
  --night-mid: #121018;
  --glass: rgba(12, 10, 16, 0.42);
  --line: rgba(244, 239, 230, 0.16);
  --font-display: "Syne", "Noto Sans SC", system-ui, sans-serif;
  --font-body: "Figtree", "Noto Sans SC", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html,
body {
  height: 100%;
  margin: 0;
}

html {
  color-scheme: dark;
}

body {
  min-height: 100%;
  min-height: 100dvh;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--night);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

.page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  isolation: isolate;
}

/* Full-bleed cover */
.cover {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: var(--night);
}

.cover__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  filter: saturate(1.05) contrast(1.05);
  animation: coverDrift 16s var(--ease-out) infinite alternate;
}

.cover__shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 38%, transparent 0%, rgba(7, 7, 9, 0.35) 55%, rgba(7, 7, 9, 0.88) 100%),
    linear-gradient(180deg, rgba(7, 7, 9, 0.55) 0%, rgba(7, 7, 9, 0.2) 35%, rgba(7, 7, 9, 0.75) 78%, rgba(7, 7, 9, 0.95) 100%);
}

.cover__glow {
  position: absolute;
  inset: auto 0 -20% 0;
  height: 45%;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 138, 61, 0.22), transparent 65%);
  pointer-events: none;
}

/* Top bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1.1rem clamp(1.1rem, 3vw, 2rem);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lang-switch button {
  appearance: none;
  border: 0;
  margin: 0;
  cursor: pointer;
  font: 600 0.78rem/1 var(--font-body);
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  background: transparent;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.lang-switch button:hover {
  color: var(--ink);
}

.lang-switch button.is-active {
  color: var(--night);
  background: var(--ink);
}

.topbar__support {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color 0.2s ease;
}

.topbar__support:hover {
  color: var(--ink);
}

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(0.5rem, 2vh, 1.5rem) clamp(1.25rem, 4vw, 2.5rem) clamp(1rem, 3vh, 2rem);
}

.brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 10vw, 5.2rem);
  letter-spacing: -0.06em;
  line-height: 0.92;
  background: linear-gradient(180deg, #fff8ef 0%, #ffd7a8 45%, var(--ember) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transform: translateY(18px);
  animation: riseIn 0.95s var(--ease-out) 0.12s forwards;
}

.headline {
  max-width: 22ch;
  margin: 1.15rem 0 0;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1.2rem, 2.8vw, 1.65rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
  opacity: 0;
  transform: translateY(18px);
  animation: riseIn 0.95s var(--ease-out) 0.28s forwards;
}

.subhead {
  max-width: 36rem;
  margin: 0.85rem 0 0;
  font-size: clamp(0.98rem, 1.7vw, 1.12rem);
  line-height: 1.55;
  color: var(--ink-muted);
  opacity: 0;
  transform: translateY(18px);
  animation: riseIn 0.95s var(--ease-out) 0.4s forwards;
}

.cta {
  margin-top: 1.75rem;
  opacity: 0;
  transform: translateY(18px);
  animation: riseIn 0.95s var(--ease-out) 0.54s forwards;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 1.15rem 0.55rem 0.55rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.25s var(--ease-out), background 0.25s ease, border-color 0.25s ease;
}

.store-badge:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 178, 71, 0.45);
}

.store-badge__app-icon {
  width: 2.85rem;
  height: 2.85rem;
  flex-shrink: 0;
  border-radius: 22%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.store-badge__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  text-align: left;
}

.store-badge__label {
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  line-height: 1;
}

.store-badge__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.store-badge.is-disabled {
  pointer-events: none;
  cursor: default;
  opacity: 0.88;
}

.store-badge.is-disabled:hover {
  transform: none;
}

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 1.1rem;
  padding: 1rem clamp(1.1rem, 3vw, 2rem) 1.35rem;
  font-size: 0.8rem;
  color: var(--ink-faint);
}

.site-footer a {
  color: var(--ink-muted);
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--ember-soft);
}

.site-footer__sep {
  opacity: 0.35;
}

@keyframes riseIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes coverDrift {
  from {
    transform: scale(1.06) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.18) translate3d(0, -2.5%, 0);
  }
}

@media (max-height: 700px) {
  .brand {
    font-size: clamp(2.5rem, 9vw, 3.8rem);
  }

  .headline {
    margin-top: 0.8rem;
  }

  .cta {
    margin-top: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .brand,
  .headline,
  .subhead,
  .cta {
    opacity: 1;
    transform: none;
  }

  .cover__image {
    transform: none;
  }
}
