/* MS World Class TKD app landing — draft
   Brand: red #BC2028, sky #36C4F2, white, black/dark gray.
   Never navy or cream. */
:root {
  --red: #BC2028;
  --red-dark: #9A1A21;
  --sky: #36C4F2;
  --sky-deep: #1496C4;
  --white: #ffffff;
  --black: #111111;
  --ink: #1a1a1a;
  --gray-800: #2a2a2a;
  --gray-600: #555555;
  --gray-500: #6b6b6b;
  --gray-300: #d4d4d4;
  --gray-200: #e6e8ea;
  --gray-100: #f3f4f6;
  --header-h: 72px;
  --max: 1120px;
  --radius: 14px;
  --shadow: 0 18px 40px rgba(17, 17, 17, 0.14);
  --font-display: "Outfit", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--red);
  color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 1000;
  border-radius: 6px;
}
.skip:focus { top: 1rem; }

/* Top belt stripe — red / black / sky, not a costume graphic */
.belt-stripe {
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--red) 0 28%,
    var(--black) 28% 36%,
    var(--sky) 36% 64%,
    var(--black) 64% 72%,
    var(--red) 72% 100%
  );
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(17, 17, 17, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--white);
  min-width: 0;
}
.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-text strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}
.brand-text span {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}
.nav a:hover { color: var(--sky); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: var(--white) !important;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.nav-cta:hover { background: var(--red-dark); }

/* Hero */
.hero {
  position: relative;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
  padding: 3.5rem 0 4.25rem;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(40px);
}
.hero::before {
  width: 520px;
  height: 520px;
  background: rgba(188, 32, 40, 0.28);
  top: -180px;
  left: -120px;
}
.hero::after {
  width: 480px;
  height: 480px;
  background: rgba(54, 196, 242, 0.16);
  right: -140px;
  bottom: -200px;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }
}

.hero-logo {
  width: 148px;
  height: auto;
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky);
  margin: 0 0 0.75rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.35rem, 5.6vw, 4.15rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}
.hero h1 .dot { color: var(--red); }
.hero .lede {
  font-size: 1.125rem;
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.86);
  margin: 0 0 1.6rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  margin-bottom: 1.15rem;
}
.store-badge {
  display: inline-flex;
  line-height: 0;
}
.store-badge img {
  height: 48px;
  width: auto;
}
.store-badge.play img {
  height: 72px;
  margin: -12px -10px;
}
.store-badge:focus-visible,
.nav a:focus-visible,
.nav-cta:focus-visible,
.btn:focus-visible,
.footer a:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 3px;
}

.rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}
.stars {
  color: var(--sky);
  letter-spacing: 0.12em;
  font-size: 1.05rem;
}
.rating strong { font-weight: 700; }
.rating .meta { color: rgba(255, 255, 255, 0.6); font-size: 0.85rem; }

.hero-shot {
  justify-self: center;
  width: min(340px, 100%);
}
.hero-shot img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

/* Sections */
.section {
  padding: 4.25rem 0;
}
.section.alt { background: var(--gray-100); }
.section-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 0.5rem;
}
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  color: var(--black);
}
.section-intro {
  max-width: 38rem;
  color: var(--gray-600);
  margin: 0 0 2.25rem;
}

/* Benefits */
.benefits-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 800px) {
  .benefits-grid { grid-template-columns: repeat(3, 1fr); }
}
.benefit {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-top: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.6rem;
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.04);
}
.benefit:nth-child(2) { border-top-color: var(--sky); }
.benefit:nth-child(3) { border-top-color: var(--black); }
.benefit .icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--gray-100);
  margin-bottom: 1rem;
}
.benefit h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}
.benefit p { margin: 0; color: var(--gray-600); }

/* Features */
.features-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .features-grid { grid-template-columns: repeat(4, 1fr); }
}
.feature {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.25rem 1.15rem 1.3rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.feature .icon {
  width: 40px;
  height: 40px;
  margin-bottom: 0.85rem;
  color: var(--red);
}
.feature:nth-child(even) .icon { color: var(--sky-deep); }
.feature h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
  letter-spacing: -0.01em;
}
.feature p { margin: 0; font-size: 0.95rem; color: var(--gray-600); }

/* Screenshots */
.shots-scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 1fr);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.25rem 0 1rem;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 1100px) {
  .shots-scroller {
    grid-auto-flow: row;
    grid-template-columns: repeat(5, 1fr);
    overflow: visible;
  }
}
.shot {
  scroll-snap-align: start;
  margin: 0;
  min-width: 0;
}
.shot img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 16px 32px rgba(17, 17, 17, 0.12);
  background: var(--gray-100);
}
.shot figcaption {
  margin-top: 0.7rem;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  color: #2a2a2a;
  text-align: center;
}

/* Download */
.download {
  background: var(--black);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.download::before {
  content: "";
  position: absolute;
  inset: auto -10% -40% 40%;
  height: 480px;
  background: radial-gradient(circle, rgba(188, 32, 40, 0.3), transparent 65%);
  pointer-events: none;
}
.download .wrap { position: relative; z-index: 1; }
.download h2, .download .section-kicker { color: var(--white); }
.download .section-kicker { color: var(--sky); }
.download .section-intro { color: rgba(255, 255, 255, 0.78); }

.smart-wrap {
  margin: 0 0 2.25rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  min-height: 52px;
  min-width: 220px;
  border: 0;
  cursor: pointer;
}
.btn:hover { background: var(--red-dark); color: var(--white); }
.btn-note {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.qr-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 720px) {
  .qr-grid { grid-template-columns: 1fr 1fr; }
}
.qr-card {
  background: var(--white);
  color: var(--ink);
  border-radius: 18px;
  padding: 1.5rem 1.25rem 1.35rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.qr-card h3 {
  font-family: var(--font-display);
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}
.qr-card p {
  margin: 0 0 1rem;
  color: var(--gray-600);
  font-size: 0.92rem;
}
.qr-card img.qr {
  width: 200px;
  height: 200px;
  background: var(--white);
}
.qr-card .store-badge { margin-top: 0.85rem; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
  padding: 2.5rem 0 2rem;
  font-size: 0.92rem;
}
.site-footer .wrap {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 800px) {
  .site-footer .wrap {
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 2rem;
  }
}
.footer-logo {
  width: 88px;
  height: auto;
}
.site-footer strong {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.05rem;
  display: block;
  margin-bottom: 0.25rem;
}
.site-footer a { color: var(--sky); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--sky); }
.footer-org { margin-bottom: 0.85rem; }
.footer-locations {
  display: grid;
  gap: 1rem;
  margin: 0 0 1rem;
}
@media (min-width: 700px) {
  .footer-locations { grid-template-columns: 1fr 1fr; }
}
.footer-locations p,
.footer-support {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}
.footer-locations strong {
  display: block;
  margin-bottom: 0.15rem;
}
.footer-support { margin: 0 0 0.25rem; }
.legal {
  margin-top: 1rem;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .hero { padding: 2.4rem 0 3rem; }
  .hero-logo { width: 120px; }
  .section { padding: 3.25rem 0; }
  .store-badge img { height: 44px; }
  .store-badge.play img { height: 66px; margin: -11px -8px; }
}

/* Mobile hero CTA and store-badge / QR behavior */
.hero-smart { display: none; }
.hero-smart .btn { min-width: 0; }

@media (max-width: 719px) {
  .hero-smart {
    display: block;
    margin: 0 0 1rem;
  }
  .hero-smart .btn {
    width: 100%;
    max-width: 22rem;
  }
  .hero { padding: 1.35rem 0 2.25rem; }
  .hero-logo { width: 92px; margin-bottom: 0.7rem; }
  .hero h1 { margin-bottom: 0.7rem; }
  .hero .lede {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  .hero-shot { margin-top: 0.5rem; }
  .qr-card .qr,
  .qr-card .qr-hint { display: none; }
  .qr-card {
    padding: 1.15rem 1rem 1.05rem;
  }
  .qr-card h3 { margin-bottom: 0.15rem; }
  .download .section-intro { margin-bottom: 1.5rem; }
  .shot figcaption,
  .legal,
  .footer-support,
  .footer-locations p {
    font-size: 14px;
    line-height: 1.45;
  }
  .legal,
  .footer-support,
  .footer-locations p {
    color: rgba(255, 255, 255, 0.82);
  }
  .shot figcaption { color: #2a2a2a; }
}

/* Hidden store badges (set by JS on mobile when the device is known) */
.store-badge[hidden],
.qr-card[hidden] { display: none !important; }
