:root {
  color-scheme: dark;
  --bg: #0c0b12;
  --surface: #171620;
  --surface-soft: #1f1d29;
  --line: rgba(255, 255, 255, 0.1);
  --text: #ffffff;
  --muted: #9a96a9;
  --red: #ff1717;
  --red-hot: #ff4554;
  --radius: 14px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 4%, rgba(105, 57, 110, 0.12), transparent 28rem),
    var(--bg);
  color: var(--text);
  padding-bottom: 76px;
}

button, a { -webkit-tap-highlight-color: transparent; }

button { font: inherit; }

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

.site-header {
  min-height: 78px;
  display: grid;
  place-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.45));
}

.brand-logo {
  display: block;
  width: clamp(218px, 50vw, 286px);
  max-width: calc(100vw - 32px);
  height: auto;
}

.announcement {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 58px;
  padding: 12px 48px 12px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

.announcement p { margin: 0; font-size: 0.83rem; line-height: 1.55; }

.icon-button {
  border: 0;
  background: transparent;
  color: #aba7b8;
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
}

.icon-button:hover { color: white; }

.announcement-close {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
}

.page-shell {
  width: min(1180px, calc(100% - 28px));
  max-width: 100%;
  margin: 0 auto;
}

.hero { padding: 22px 0 18px; }

.hero h1 {
  margin: 0;
  font-size: clamp(1.58rem, 5.4vw, 2.55rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
  font-weight: 900;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}

.hero p {
  margin: 18px 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.13rem);
  line-height: 1.5;
}

.primary-cta {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  border-radius: 14px;
  background: linear-gradient(105deg, var(--red), var(--red-hot));
  box-shadow: 0 10px 28px rgba(255, 24, 38, 0.22), inset 0 1px rgba(255, 255, 255, 0.18);
  color: #fff;
  font-weight: 850;
  transition: transform 160ms ease, filter 160ms ease;
}

.primary-cta:hover { transform: translateY(-2px); filter: brightness(1.08); }
.primary-cta:active { transform: translateY(0); }

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.video-card {
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #17151e;
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.04);
}

.video-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border: 0;
  padding: 0;
  color: white;
  cursor: pointer;
  text-align: left;
  background: var(--card-bg);
}

.video-preview::before,
.video-preview::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(1px);
}

.card-video {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 180ms ease;
}

.video-preview.has-media .card-video { opacity: 1; }
.video-preview.has-media::before,
.video-preview.has-media::after { opacity: 0; }

.video-preview::before {
  width: 82%;
  height: 48%;
  left: -13%;
  top: 14%;
  transform: rotate(-20deg);
  background: rgba(255, 215, 178, 0.43);
  box-shadow: 45px 58px 0 rgba(53, 20, 33, 0.5);
}

.video-preview::after {
  width: 55%;
  height: 42%;
  right: -17%;
  top: 4%;
  background: rgba(25, 13, 34, 0.52);
}

.video-preview:hover .preview-shine { opacity: 1; }

.preview-shine {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.6;
  background:
    radial-gradient(circle at 48% 28%, rgba(255,255,255,.26) 0 2px, transparent 3px),
    radial-gradient(circle at 64% 19%, rgba(255,255,255,.17) 0 1px, transparent 2px),
    linear-gradient(180deg, transparent 45%, rgba(5, 4, 8, 0.9) 100%);
  transition: opacity 160ms ease;
}

.live-badge {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  padding: 5px 8px;
  border-radius: 5px;
  background: #f10b11;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
  font-size: 0.69rem;
  font-weight: 950;
  letter-spacing: 0.02em;
}

.card-copy {
  position: absolute;
  z-index: 2;
  left: 12px;
  right: 12px;
  bottom: 12px;
}

.card-copy h3 {
  overflow: hidden;
  margin: 0 0 6px;
  font-size: 0.9rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.views { color: #c0bdc9; font-size: 0.77rem; }

.load-more {
  display: block;
  width: auto;
  max-width: calc(100% - 24px);
  min-height: 51px;
  margin: 36px auto 0;
  padding: 13px 34px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: var(--surface-soft);
  color: white;
  cursor: pointer;
  font-weight: 750;
}

.load-more:hover { background: #2b2838; }

.site-footer {
  width: 100%;
  margin-top: clamp(2.5rem, 1.5rem + 4vw, 5rem);
  padding: 28px 24px;
  border-top: 1px solid #2a2a38;
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.5;
  text-align: center;
}

.site-footer p { margin: 0; }

.scrim {
  position: fixed;
  z-index: 20;
  inset: 0;
  background: rgba(0,0,0,.79);
  backdrop-filter: blur(6px);
}

.download-modal {
  position: fixed;
  z-index: 21;
  top: 50%;
  left: 50%;
  width: min(400px, calc(100% - 42px));
  transform: translate(-50%, -50%);
  padding: 44px 30px 29px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 22px;
  background: #191821;
  box-shadow: 0 30px 90px rgba(0,0,0,.62);
  text-align: center;
}

.download-modal[hidden], .scrim[hidden] { display: none; }

.download-modal .modal-close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #101016;
}

.app-icon {
  display: block;
  margin: 0 auto 22px;
  font-size: 2.7rem;
  line-height: 1;
}

.download-modal h2 {
  margin: 0 0 12px;
  font-size: 1.34rem;
  letter-spacing: -0.02em;
}

.download-modal p {
  margin: 0 auto 24px;
  color: var(--muted);
  line-height: 1.55;
}

.modal-cta { min-height: 54px; width: min(100%, 176px); margin: 0 auto; }

.ios-runtime-modal {
  position: fixed;
  z-index: 999999;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, .55);
}

.ios-runtime-modal[hidden] { display: none; }

.ios-runtime-panel {
  width: min(420px, 100%);
  padding: 24px 22px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .25);
  color: #111827;
  text-align: center;
}

.ios-runtime-panel p {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.7;
}

.ios-runtime-panel button {
  min-width: 120px;
  height: 42px;
  margin-top: 18px;
  border: 0;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
  font-size: 15px;
}

.download-bar {
  position: fixed;
  z-index: 60;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  overflow: hidden;
  background: rgba(22, 22, 31, .94);
  backdrop-filter: blur(10px);
}

.download-bar-icon {
  flex: 0 0 auto;
  font-size: 1.7rem;
  line-height: 1;
}

.download-bar-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; line-height: 1.25; }
.download-bar-copy strong { overflow: hidden; font-size: .95rem; text-overflow: ellipsis; white-space: nowrap; }
.download-bar-copy span { overflow: hidden; color: var(--muted); font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }

.download-bar-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  border-radius: 10px;
  background: #e10600;
  font-size: .88rem;
  font-weight: 600;
  white-space: nowrap;
}

.download-bar-close { flex: 0 0 auto; padding: 0; font-size: 1.4rem; }

@media (max-width: 420px) {
  .download-bar { gap: 9px; padding: 10px 12px; }
  .download-bar-btn { padding: 9px 13px; }
  .download-bar-icon { font-size: 1.45rem; }
}

@media (max-width: 360px) {
  .download-bar { gap: 7px; padding-inline: 9px; }
  .download-bar-copy span { display: none; }
  .download-bar-btn { padding-inline: 10px; font-size: .82rem; }
}

@media (min-width: 700px) {
  .site-header { min-height: 92px; }
  .announcement p { font-size: .9rem; }
  .hero { display: grid; grid-template-columns: 1fr minmax(290px, 36%); align-items: end; gap: 34px; padding: 42px 0 28px; }
  .hero p { margin-bottom: 0; }
}

@media (min-width: 900px) {
  .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
