:root {
  color-scheme: dark;
  --bg: #030201;
  --text: #fff8e8;
  --muted: #b9ad92;
  --gold: #C4A35A;
  --gold-deep: #9d7327;
  --hairline: rgba(196, 163, 90, 0.28);
  --font: "Sofia Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Sofia Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  min-height: 100%;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(circle at 50% 50%, rgba(196, 163, 90, 0.16), transparent 30rem),
    radial-gradient(circle at 50% 50%, rgba(255, 240, 183, 0.12), transparent 26rem),
    #030201;
  background-size: 160% 160%, 170% 170%, 100% 100%;
  animation: ambientOrbit 20s linear infinite;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

/* Language switcher */

.language-switcher {
  position: fixed;
  top: 86%;
  right: 0;
  transform: translateY(-50%);
  z-index: 20;
}

.language-toggle,
.language-option {
  color: var(--text);
  border: 1px solid var(--hairline);
  background: rgba(9, 7, 3, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
}

.language-toggle {
  width: 48px;
  height: 96px;
  padding: 12px 7px;
  border-right: 0;
  border-radius: 14px 0 0 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: -8px 8px 28px rgba(0, 0, 0, 0.32);
  transition: border-color 160ms ease, background 160ms ease;
}

.language-toggle:hover,
.language-toggle[aria-expanded="true"] {
  border-color: var(--gold);
  background: rgba(20, 15, 6, 0.96);
}

.language-flag {
  flex: 0 0 auto;
  width: 24px;
  height: 16px;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.flag-bg {
  background-image: linear-gradient(to bottom, #fff 0 33.333%, #00966e 33.333% 66.666%, #d62612 66.666% 100%);
}

.flag-en {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'%3E%3Cpath fill='%23012169' d='M0 0h60v40H0z'/%3E%3Cpath stroke='%23fff' stroke-width='8' d='m0 0 60 40M60 0 0 40'/%3E%3Cpath stroke='%23c8102e' stroke-width='4' d='m0 0 60 40M60 0 0 40'/%3E%3Cpath stroke='%23fff' stroke-width='13' d='M30 0v40M0 20h60'/%3E%3Cpath stroke='%23c8102e' stroke-width='7' d='M30 0v40M0 20h60'/%3E%3C/svg%3E");
}

.flag-tr {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'%3E%3Cpath fill='%23e30a17' d='M0 0h60v40H0z'/%3E%3Ccircle cx='23' cy='20' r='10' fill='%23fff'/%3E%3Ccircle cx='26' cy='20' r='8' fill='%23e30a17'/%3E%3Cpolygon fill='%23fff' points='36,14 37.8,18 42,18.4 38.8,21.2 39.8,25.2 36,23 32.2,25.2 33.2,21.2 30,18.4 34.2,18'/%3E%3C/svg%3E");
}

.language-code {
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.language-chevron {
  width: 10px;
  color: var(--muted);
  transform: rotate(90deg);
  transition: transform 160ms ease;
}

.language-toggle[aria-expanded="true"] .language-chevron {
  transform: rotate(-90deg);
}

.language-menu {
  position: absolute;
  top: 50%;
  right: calc(100% + 10px);
  transform: translateY(-50%);
  width: 174px;
  padding: 6px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: rgba(9, 7, 3, 0.97);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.language-menu[hidden] {
  display: none;
}

.language-option {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-color: transparent;
  border-radius: 9px;
  text-align: left;
  font-size: 14px;
}

.language-option:hover,
.language-option.is-active {
  color: var(--gold);
  background: rgba(196, 163, 90, 0.11);
}

.language-option.is-active::after {
  content: "✓";
  margin-left: auto;
  color: var(--gold);
}

.page {
  position: relative;
  z-index: 1;
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: max(40px, env(safe-area-inset-top)) clamp(18px, 4vw, 44px) max(56px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(48px, 8vw, 80px);
}

/* Hero */

.hero {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: clamp(18px, 3vw, 26px);
  text-align: center;
  padding-top: clamp(8px, 4vw, 24px);
}

.brand-mark {
  width: clamp(96px, 20vw, 152px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.hero-copy {
  max-width: 720px;
  display: grid;
  gap: 14px;
  justify-items: center;
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(34px, 7vw, 64px);
  line-height: 1.1;
  letter-spacing: 0.01em;
  background: linear-gradient(110deg, #fff8e8 0%, #f4ce76 45%, #a77a28 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead {
  max-width: 560px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(15px, 2.6vw, 18px);
  line-height: 1.55;
}

.download-panel {
  width: min(100%, 360px);
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: 6px;
}

.download-caption {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.store-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 10px;
}

.store-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 174px;
  height: 56px;
  border-radius: 9px;
  padding: 0;
  transition: transform 160ms ease, opacity 160ms ease;
  animation: storeBtnGlow 2.4s ease-in-out infinite;
}

.store-btn:active {
  transform: scale(0.97);
  animation-play-state: paused;
}

.store-btn:hover {
  opacity: 0.88;
  animation-play-state: paused;
}

@keyframes storeBtnGlow {
  0%, 100% {
    filter: drop-shadow(0 0 0 rgba(196, 163, 90, 0));
  }
  50% {
    filter: drop-shadow(0 0 10px rgba(196, 163, 90, 0.55));
  }
}

.store-badge {
  width: 100%;
  height: 100%;
  padding: 7px 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  background: #050606;
  border: 1px solid #a6a6a6;
  border-radius: 9px;
  pointer-events: none;
}

.store-logo {
  flex: 0 0 auto;
  width: 31px;
  height: 36px;
}

.play-logo {
  width: 30px;
  height: 34px;
}

.store-copy {
  min-width: 0;
  display: grid;
  justify-items: start;
  line-height: 1;
}

.store-eyebrow {
  min-height: 11px;
  white-space: nowrap;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.035em;
}

.store-name {
  margin-top: 3px;
  white-space: nowrap;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.035em;
}

/* Steps */

.steps {
  width: 100%;
  padding-top: clamp(28px, 6vw, 44px);
  border-top: 1px solid var(--hairline);
}

.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  text-align: center;
}

.step {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 0 clamp(10px, 2.4vw, 24px);
  position: relative;
}

.step + .step {
  border-left: 1px solid var(--hairline);
}

.step-number {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 14px;
  margin-bottom: 4px;
}

.step-icon {
  width: clamp(44px, 8vw, 56px);
  height: clamp(44px, 8vw, 56px);
  color: var(--gold);
  display: grid;
  place-items: center;
}

.step-icon svg {
  width: 100%;
  height: 100%;
}

.step h3 {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(14px, 2vw, 16px);
  color: var(--text);
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(12.5px, 1.9vw, 14px);
  line-height: 1.5;
  max-width: 22ch;
}

@keyframes ambientOrbit {
  0% {
    background-position: 30% 20%, 70% 80%, 0 0;
  }
  25% {
    background-position: 70% 25%, 30% 75%, 0 0;
  }
  50% {
    background-position: 75% 75%, 25% 25%, 0 0;
  }
  75% {
    background-position: 25% 70%, 75% 30%, 0 0;
  }
  100% {
    background-position: 30% 20%, 70% 80%, 0 0;
  }
}

@media (max-width: 900px) {
  .steps-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 32px;
  }

  .step + .step {
    border-left: 1px solid var(--hairline);
  }

  .step:nth-child(3n+1) {
    border-left: none;
  }
}

@media (max-width: 620px) {
  .language-switcher {
    top: 86%;
    right: 0;
  }

  .language-toggle {
    width: 44px;
    height: 88px;
    padding: 10px 6px;
  }

  .page {
    padding-inline: 16px;
    gap: 44px;
  }

  h1 {
    letter-spacing: 0;
  }

  .store-buttons {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .steps-list {
    grid-template-columns: 1fr;
    row-gap: 30px;
  }

  .step + .step {
    border-left: none;
    border-top: 1px solid var(--hairline);
    padding-top: 26px;
  }

  .step:nth-child(3n+1) {
    border-left: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body,
  .store-btn {
    animation: none;
  }
}