:root {
  color-scheme: dark;
  --ink: #f6f7f5;
  --muted: #aeb7b5;
  --line: rgba(255, 255, 255, 0.16);
  --surface: #11191a;
  --orange: #ff7417;
  --green: #72ca5b;
  --mint: #65dfbd;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: #0b1112;
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

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

.app-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 max(24px, calc((100vw - 1280px) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 13, 14, 0.72);
  backdrop-filter: blur(14px);
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 19px;
  font-weight: 800;
}

.brand-ball {
  position: relative;
  width: 32px;
  height: 32px;
  overflow: hidden;
  border: 2px solid #11191a;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.brand-ball::before,
.brand-ball::after {
  position: absolute;
  content: "";
  border: 2px solid #11191a;
  border-radius: 50%;
}

.brand-ball::before {
  inset: -7px 8px;
}

.brand-ball::after {
  inset: 8px -7px;
}

.app-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #d7dcda;
  font-size: 14px;
}

.nav-download {
  padding: 11px 17px;
  border: 1px solid rgba(255, 116, 23, 0.7);
  border-radius: 6px;
  color: #ffffff;
}

.app-hero {
  position: relative;
  display: flex;
  min-height: min(920px, calc(100svh - 48px));
  align-items: center;
  overflow: hidden;
  padding: 112px max(24px, calc((100vw - 1280px) / 2)) 92px;
  background-color: #0c1314;
  background-image:
    linear-gradient(90deg, rgba(7, 12, 13, 0.99) 0%, rgba(7, 12, 13, 0.9) 34%, rgba(7, 12, 13, 0.16) 72%),
    linear-gradient(0deg, rgba(7, 12, 13, 0.92) 0%, rgba(7, 12, 13, 0) 35%),
    url("/assets/kaka-promo-04.webp");
  background-position: center, center, 78% 31%;
  background-repeat: no-repeat;
  background-size: cover, cover, min(720px, 54vw) auto;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(590px, 100%);
}

.hero-kicker,
.section-heading > p,
.download-copy > p {
  margin: 0;
  color: var(--mint);
  font-size: 13px;
  font-weight: 800;
}

.app-hero h1 {
  margin: 22px 0 0;
  padding-bottom: 0.2em;
  font-size: clamp(54px, 7vw, 100px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 560px;
  margin: 28px 0 0;
  color: #c9cfcd;
  font-size: 19px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 38px;
}

.primary-action {
  display: flex;
  min-height: 66px;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  padding: 13px 24px;
  border-radius: 6px;
  background: var(--orange);
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  box-shadow: 0 12px 32px rgba(255, 116, 23, 0.24);
}

.primary-action small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  font-weight: 500;
}

.primary-action:hover,
.primary-action:focus-visible,
.nav-download:hover,
.nav-download:focus-visible {
  background: #ff8738;
  outline: none;
}

.hero-qr,
.download-qr {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.hero-qr img,
.download-qr img {
  display: block;
  padding: 7px;
  border-radius: 6px;
  background: #ffffff;
}

.hero-next {
  position: absolute;
  right: max(24px, calc((100vw - 1280px) / 2));
  bottom: 30px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.hero-next span {
  color: var(--orange);
  font-size: 20px;
}

.feature-section {
  padding: 96px max(24px, calc((100vw - 1400px) / 2));
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 10px 40px;
  max-width: 1280px;
  margin: 0 auto 38px;
}

.section-heading > p {
  grid-column: 1 / -1;
  color: var(--green);
}

.section-heading h2,
.download-copy h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: 0;
}

.section-heading > span,
.download-copy > span {
  max-width: 480px;
  color: var(--muted);
  line-height: 1.7;
}

.feature-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 1400px;
  margin: 0 auto;
}

.feature-gallery figure {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.feature-gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.feature-gallery figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px;
  background: rgba(7, 12, 13, 0.88);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 700;
}

.feature-gallery figcaption b {
  color: var(--orange);
}

.download-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 72px;
  padding: 86px max(24px, calc((100vw - 1080px) / 2));
  border-top: 1px solid var(--line);
  background: #121a1b;
}

.download-copy {
  max-width: 650px;
}

.download-copy > p {
  color: var(--orange);
}

.download-copy h2 {
  margin-top: 12px;
}

.download-copy > span {
  display: block;
  margin-top: 18px;
}

.primary-action.compact {
  width: fit-content;
  min-height: 52px;
  margin-top: 28px;
  align-items: center;
  padding: 12px 28px;
}

.app-footer {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding: 22px 24px;
  border-top: 1px solid var(--line);
  color: #85908e;
  font-size: 12px;
}

.app-footer a:hover,
.app-footer a:focus-visible {
  color: #ffffff;
}

@media (max-width: 900px) {
  .app-hero {
    min-height: 780px;
    background-image:
      linear-gradient(0deg, rgba(7, 12, 13, 0.98) 0%, rgba(7, 12, 13, 0.7) 52%, rgba(7, 12, 13, 0.12) 100%),
      url("/assets/kaka-promo-04.webp");
    background-position: center, center 27%;
    background-size: cover, cover;
  }

  .hero-content {
    align-self: flex-end;
  }

  .hero-lead {
    max-width: 620px;
  }

  .feature-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .app-header {
    min-height: 64px;
    padding: 0 16px;
  }

  .app-brand {
    font-size: 16px;
  }

  .brand-ball {
    width: 28px;
    height: 28px;
  }

  .app-nav > a:first-child {
    display: none;
  }

  .nav-download {
    padding: 9px 12px;
    font-size: 12px;
  }

  .app-hero {
    min-height: 760px;
    padding: 92px 18px 72px;
  }

  .app-hero h1 {
    font-size: 52px;
  }

  .hero-lead {
    font-size: 16px;
    line-height: 1.7;
  }

  .hero-actions {
    margin-top: 26px;
  }

  .hero-actions .primary-action {
    width: 100%;
  }

  .hero-qr,
  .hero-next {
    display: none;
  }

  .feature-section {
    padding: 64px 0;
  }

  .section-heading {
    display: block;
    padding: 0 18px;
  }

  .section-heading h2 {
    margin-top: 10px;
  }

  .section-heading > span {
    display: block;
    margin-top: 14px;
  }

  .feature-gallery {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 0 18px 12px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .feature-gallery::-webkit-scrollbar {
    display: none;
  }

  .feature-gallery figure {
    flex: 0 0 min(78vw, 330px);
    scroll-snap-align: center;
  }

  .download-section {
    display: block;
    padding: 60px 18px;
  }

  .download-copy .primary-action {
    width: 100%;
  }

  .download-qr {
    display: none;
  }
}

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