:root {
  color-scheme: dark;
  --app-background: #000a17;
  --app-surface: #070d16;
  --app-surface-variant: #151d29;
  --bottom-navigation: #08111d;
  --text-primary: #f2f6fb;
  --text-secondary: #b8c2cf;
  --kebab-primary: #ffab00;
  --success: #35c96e;
  --success-border: #219653;
  --reward-blue: #5ba7ff;
  --reward-blue-border: #2d78d6;
  --danger: #d43d36;
  --outline: rgba(184, 194, 207, 0.18);
  --outline-strong: rgba(184, 194, 207, 0.3);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 171, 0, 0.13), transparent 34rem),
    radial-gradient(circle at 85% 10%, rgba(91, 167, 255, 0.12), transparent 28rem),
    var(--app-background);
  color: var(--text-primary);
}

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

a:hover {
  color: var(--kebab-primary);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  padding: 18px 0;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-full {
  display: block;
  width: 176px;
  height: auto;
  filter: drop-shadow(0 10px 22px rgba(255, 255, 255, 0.12));
}

.brand-short {
  display: none;
  align-items: baseline;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  filter: drop-shadow(0 8px 18px rgba(255, 255, 255, 0.16));
}

.brand-k {
  color: var(--kebab-primary);
}

.brand-b {
  color: var(--success);
}

.brand-d {
  color: var(--reward-blue);
}

.main-nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-secondary);
  font-size: 0.94rem;
  font-weight: 700;
}

.main-nav a {
  padding: 10px 12px;
  border-radius: 999px;
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
}

.nav-short {
  display: none;
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  align-items: center;
  width: min(100% - 32px, var(--max-width));
  min-height: 560px;
  margin: 0 auto;
  padding: 70px 0 38px;
}

.hero-copy h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(2.55rem, 7.4vw, 6.15rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-text {
  max-width: 660px;
  margin: 24px 0 0;
  color: var(--text-secondary);
  font-size: clamp(1.25rem, 2.5vw, 1.8rem);
  font-weight: 800;
  line-height: 1.45;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--kebab-primary);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  width: 216px;
  transition: transform 180ms ease, filter 180ms ease;
}

.store-badge:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.3));
}

.store-badge img {
  display: block;
  width: 100%;
  height: auto;
}

.cover-strip-section {
  margin: 0 0 54px;
}

.cover-strip {
  --strip-height: clamp(220px, 34vw, 520px);
  --tile-width: calc(var(--strip-height) * 2.65343);
  width: 100%;
  height: var(--strip-height);
  overflow: hidden;
  border-block: 1px solid var(--outline);
  background-color: #01050c;
  background-image: url("./assets/covers-matrix-marquee-tight.webp");
  background-repeat: repeat-x;
  background-size: var(--tile-width) var(--strip-height);
  background-position: 0 0;
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
  animation: cover-marquee 68s linear infinite;
}

@keyframes cover-marquee {
  from {
    background-position-x: 0;
  }
  to {
    background-position-x: calc(var(--tile-width) * -1);
  }
}

.features {
  display: grid;
  gap: 18px;
  width: min(100% - 32px, 880px);
  margin: 0 auto 86px;
}

.feature-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.feature-row h2 {
  margin: 0 0 6px;
  font-size: clamp(1.18rem, 2.4vw, 1.55rem);
}

.feature-row p,
.site-footer p,
.prose {
  color: var(--text-secondary);
}

.feature-row p {
  margin: 0;
  line-height: 1.7;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  border: 1px solid var(--outline);
  background: rgba(255, 255, 255, 0.045);
}

.feature-icon img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.durum-icon {
  color: var(--kebab-primary);
}

.kebab-icon {
  color: var(--success);
}

.shawarma-icon {
  color: var(--reward-blue);
}

.coin-icon {
  color: var(--kebab-primary);
}

.page-hero,
.legal-section {
  width: min(100% - 32px, 900px);
  margin-inline: auto;
}

.page-hero {
  padding: 64px 0 28px;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(2.3rem, 6vw, 4.8rem);
  line-height: 0.98;
}

.page-hero p {
  max-width: 720px;
  color: var(--text-secondary);
  font-size: 1.08rem;
  line-height: 1.7;
}

.legal-section {
  margin-bottom: 86px;
}

.legal-card {
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--outline);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(21, 29, 41, 0.92), rgba(7, 13, 22, 0.92));
  box-shadow: var(--shadow);
}

.prose {
  line-height: 1.75;
}

.prose h2,
.prose h3 {
  margin: 30px 0 8px;
  color: var(--text-primary);
}

.prose h2:first-child,
.prose h3:first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 16px;
}

.prose ul,
.prose ol {
  margin: 12px 0 20px;
  padding-left: 22px;
}

.prose li {
  margin: 10px 0;
}

.prose strong,
.mail-link {
  color: var(--text-primary);
}

.mail-link,
.prose a {
  color: var(--reward-blue);
  font-weight: 800;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0 !important;
}

.steps li {
  position: relative;
  padding: 13px 0 13px 48px;
  border-bottom: 1px solid var(--outline);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 12px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--kebab-primary);
  color: #201400;
  font-size: 0.9rem;
  font-weight: 900;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - 32px, var(--max-width));
  margin: 30px auto 0;
  padding: 38px 0 54px;
  border-top: 1px solid var(--outline);
}

.site-footer img {
  width: 160px;
  height: auto;
}

.site-footer nav {
  justify-content: flex-end;
  max-width: 640px;
}

@media (max-width: 860px) {
  .site-header {
    position: static;
    align-items: center;
    flex-direction: row;
    justify-content: flex-start;
    width: min(100% - 20px, var(--max-width));
    gap: 10px;
    padding-top: 16px;
  }

  .main-nav {
    flex: 1 1 auto;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 2px;
    overflow-x: auto;
    white-space: nowrap;
    font-size: 0.72rem;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    padding: 8px 2px;
  }

  .nav-full {
    display: none;
  }

  .nav-short {
    display: inline;
  }

  .hero {
    min-height: auto;
    padding-top: 38px;
  }

  .brand-full {
    display: none;
  }

  .brand-short {
    display: inline-flex;
  }

  .site-footer {
    flex-direction: column;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .hero-copy h1 {
    font-size: clamp(2.3rem, 13vw, 3.9rem);
  }

  .store-badge {
    width: 198px;
  }

  .cover-strip {
    --strip-height: clamp(190px, 45vw, 280px);
  }

  .feature-row {
    grid-template-columns: 38px minmax(0, 1fr);
  }

}

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

  .cover-strip {
    animation: none;
  }

  .store-badge {
    transition: none;
  }
}
