:root {
  --orange: #ed563b;
  --orange-hover: #f3543d;
  --dark: #232d39;
  --text: #232d39;
  --muted: #7a7a7a;
  --hero-blue: rgba(8, 26, 48, 0.86);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: Montserrat, Poppins, Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

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

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.center {
  text-align: center;
}

/* ===============================
   Hero video area
================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
  isolation: isolate;
  background: radial-gradient(circle at 50% 50%, #24415f 0%, #081a30 65%, #061425 100%);
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(10%) saturate(0.75) contrast(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--hero-blue);
}

.hero-content {
  width: min(1540px, calc(100% - 80px));
  margin: 0 auto;
  padding: 40px 0;
}

.hero-subtitle {
  margin: 0 0 38px;
  font-size: clamp(16px, 1.35vw, 24px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 70px;
  font-size: clamp(50px, 7.35vw, 112px);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
}

.download-buttons {
  width: min(560px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.store-button {
  min-height: 56px;
  padding: 13px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--orange-hover);
  color: #fff;
  font-size: clamp(15px, 1.1vw, 20px);
  font-weight: 400;
  text-transform: uppercase;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.store-button:hover,
.store-button:focus-visible {
  background: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

.store-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.store-icon.apple {
  width: 16px;
  height: 20px;
}

/* ===============================
   General sections
================================ */
.section {
  padding: 88px 0;
}

.section-white {
  background: #fff;
}

.section h2,
.cta-section h2,
.schedule-section h2 {
  margin: 0;
  color: var(--dark);
  font-size: 30px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.section h2 span,
.cta-section h2 span,
.schedule-section h2 span {
  color: var(--orange);
}

.lead,
.section p,
.cta-section p,
.schedule-section p {
  max-width: 710px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: 0.2px;
}

.line-dec {
  width: 42px;
  height: 4px;
  margin: 22px auto 0;
  border-radius: 99px;
  background: var(--orange);
}

.empty-grid {
  margin-top: 62px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  min-height: 110px;
}

.empty-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 80px;
}

.empty-grid > div {
  min-height: 30px;
}

/* ===============================
   CTA and schedule sections
================================ */
.cta-section,
.schedule-section {
  position: relative;
  padding: 88px 0;
  overflow: hidden;
  color: #fff;
  text-align: center;
  isolation: isolate;
  background: linear-gradient(120deg, #0c2139, #1b334d 48%, #0b1b30);
}

.cta-section {
  background-image:
    linear-gradient(rgba(8, 25, 48, 0.88), rgba(8, 25, 48, 0.88)),
    url('/img/cta-bg.svg');
  background-size: cover;
  background-position: center;
}

.schedule-section {
  background-image:
    linear-gradient(rgba(8, 25, 48, 0.88), rgba(8, 25, 48, 0.88)),
    url('/img/schedule-bg.svg');
  background-size: cover;
  background-position: center;
}

.section-front {
  position: relative;
  z-index: 1;
}

.cta-section h2,
.schedule-section h2,
.cta-section p,
.schedule-section p {
  color: #fff;
}

.small-button {
  display: inline-block;
  margin-top: 32px;
  padding: 13px 22px;
  background: var(--orange);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
  transition: background 0.18s ease, transform 0.18s ease;
}

.small-button:hover,
.small-button:focus-visible {
  background: var(--orange-hover);
  transform: translateY(-2px);
}

/* ===============================
   Story gradient section
================================ */
.story-section {
  padding: 66px 0;
  color: #fff;
  background: linear-gradient(135deg, #eb4d3b 0%, #f16242 45%, #ff7a4c 100%);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr;
  gap: 42px;
  align-items: center;
}

.story-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-logo {
  width: min(210px, 70%);
  height: auto;
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.18));
}

.story-text h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1;
  font-weight: 900;
}

.story-text h3 {
  margin: 12px 0 4px;
  color: #fff;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.1;
  font-weight: 700;
}

.story-text p,
.story-action p {
  margin: 0;
  color: #fff;
  font-size: 19px;
  line-height: 1.4;
}

.story-action {
  text-align: right;
}

.story-action p {
  margin-bottom: 24px;
}

.dark-button {
  display: inline-block;
  padding: 13px 23px;
  background: var(--dark);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  transition: transform 0.18s ease, background 0.18s ease;
}

.dark-button:hover,
.dark-button:focus-visible {
  background: #111927;
  transform: translateY(-2px);
}

/* ===============================
   Footer
================================ */
.footer {
  padding: 70px 0 74px;
  background: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 46px;
}

.footer h2 {
  margin: 0;
  color: var(--dark);
  font-size: 22px;
  line-height: 1.25;
  font-weight: 800;
  text-transform: uppercase;
}

.footer-line {
  width: 58px;
  height: 2px;
  margin: 18px 0 22px;
  background: var(--orange);
}

.footer p {
  margin: 0;
  color: #555;
  font-size: 14px;
  line-height: 1.9;
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--orange);
}

.share-links {
  display: flex;
  gap: 12px;
  align-items: center;
}

.share-links a {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f1f1;
  color: var(--dark);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.share-links a:hover,
.share-links a:focus-visible {
  background: var(--orange);
  color: #fff;
  transform: translateY(-2px);
}

/* ===============================
   Responsive
================================ */
@media (max-width: 1024px) {
  .hero-content {
    width: min(100%, calc(100% - 48px));
  }

  .hero h1 {
    margin-bottom: 52px;
  }
}

@media (max-width: 820px) {
  .hero {
    min-height: 760px;
  }

  .hero-subtitle {
    margin-bottom: 28px;
  }

  .download-buttons {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .store-button {
    min-height: 54px;
  }

  .empty-grid,
  .empty-grid.three,
  .story-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .empty-grid {
    margin-top: 36px;
    min-height: 0;
    gap: 8px;
  }

  .story-section {
    text-align: center;
  }

  .story-action {
    text-align: center;
  }

  .footer {
    text-align: center;
  }

  .footer-line {
    margin-left: auto;
    margin-right: auto;
  }

  .share-links {
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100%, calc(100% - 28px));
  }

  .hero-content {
    width: min(100%, calc(100% - 28px));
  }

  .hero h1 {
    font-size: clamp(42px, 13vw, 58px);
    letter-spacing: 0.5px;
  }

  .section,
  .cta-section,
  .schedule-section {
    padding: 70px 0;
  }
}
