:root {
  color-scheme: dark;
  --page: #050c1a;
  --page-soft: #09172e;
  --panel: rgba(9, 22, 43, 0.88);
  --panel-strong: rgba(17, 41, 76, 0.92);
  --line: #314d72;
  --text: #f7f9ff;
  --muted: #a9b8d2;
  --accent: #42e5df;
  --accent-blue: #5b8cff;
  --pink: #ff5f9d;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--page); }

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(21, 48, 91, 0.16) 1px, transparent 1px) 0 0 / 76px 76px,
    radial-gradient(circle at 50% -12%, #142c56 0, #08152c 32%, var(--page) 68%);
}

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

.page-glow {
  position: fixed;
  z-index: -1;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.14;
  pointer-events: none;
}

.page-glow-one { top: 5rem; right: -15rem; background: var(--accent-blue); }
.page-glow-two { bottom: -18rem; left: -12rem; background: var(--pink); }

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 18px;
}

.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand img { border-radius: 16px; box-shadow: 0 12px 34px rgba(255, 74, 145, 0.22); }
.brand-copy { display: flex; align-items: center; gap: 12px; }
.brand-copy strong { font-size: 18px; letter-spacing: 0.04em; }
.brand-copy small {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #d5deed;
  font-size: 13px;
}

.header-action {
  padding: 11px 20px;
  border: 1px solid rgba(66, 229, 223, 0.48);
  border-radius: 999px;
  background: rgba(66, 229, 223, 0.08);
  color: var(--accent);
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease;
}
.header-action:hover { transform: translateY(-2px); background: rgba(66, 229, 223, 0.16); }

main { padding: 62px 0 74px; }

.hero { max-width: 840px; margin: 0 auto 44px; text-align: center; }
.eyebrow { margin: 0 0 14px; color: #7f96bc; font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: clamp(42px, 7vw, 82px); line-height: 1.08; letter-spacing: -0.045em; }
.hero h1 span {
  color: transparent;
  background: linear-gradient(100deg, var(--accent) 15%, #7af7ea 58%, #73a6ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
}
.hero-copy { margin: 22px 0 0; color: var(--muted); font-size: clamp(16px, 2.2vw, 21px); }

.player-shell {
  width: min(100%, 1040px);
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid rgba(89, 123, 170, 0.72);
  border-radius: 30px;
  background: rgba(4, 12, 26, 0.76);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.38), inset 0 1px rgba(255, 255, 255, 0.03);
}

.player-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 0;
  max-height: min(68vh, 620px);
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 48%, rgba(40, 83, 137, 0.74), rgba(7, 18, 36, 0.94) 55%),
    linear-gradient(145deg, #1b385f, #091429);
  isolation: isolate;
  overflow: hidden;
}

.player-stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: transparent;
}

.video-backdrop {
  z-index: 0;
  inset: -8% !important;
  width: 116% !important;
  height: 116% !important;
  object-fit: cover;
  filter: blur(32px) brightness(0.44) saturate(1.4);
  transform: scale(1.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.video-main {
  z-index: 1;
  object-fit: contain;
  background: rgba(1, 5, 13, 0.34) !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease;
  /* Slightly crop the source frame so its embedded bottom caption stays outside the visible area. */
  transform: scale(1.075);
}

.player-stage.has-started .video-backdrop { opacity: 0.88; visibility: visible; }
.player-stage.has-started .video-main { opacity: 1; visibility: visible; }

.player-stage.is-cover .video-main {
  object-fit: cover;
}

.preview-badge {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 18px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(3, 10, 23, 0.72);
  color: #effcff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  backdrop-filter: blur(12px);
}

.video-launch {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  background: radial-gradient(circle at 50% 48%, rgba(40, 83, 137, 0.78), rgba(7, 18, 36, 0.9) 56%);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.video-launch.is-hidden { display: none; }
.video-launch.is-loading { cursor: wait; }
.video-launch.is-loading .play-button { animation: playerPulse 900ms ease-in-out infinite alternate; }

@keyframes playerPulse {
  from { transform: scale(0.94); opacity: 0.78; }
  to { transform: scale(1); opacity: 1; }
}

.player-aura {
  position: absolute;
  width: 156px;
  height: 156px;
  border-radius: 50%;
  background: rgba(56, 223, 221, 0.12);
  box-shadow: 0 0 0 22px rgba(58, 112, 190, 0.14), 0 20px 70px rgba(29, 202, 211, 0.18);
}

.play-button {
  position: relative;
  z-index: 1;
  width: 110px;
  height: 110px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(211, 255, 255, 0.78);
  border-radius: 50%;
  background: linear-gradient(145deg, #45e7df, #20b9ca);
  box-shadow: 0 18px 50px rgba(22, 196, 205, 0.28);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.video-launch:hover .play-button { transform: scale(1.06); box-shadow: 0 24px 68px rgba(22, 196, 205, 0.42); }
.play-button svg { width: 48px; height: 48px; fill: #06152a; transform: translateX(3px); }

.player-message {
  position: absolute;
  bottom: 38px;
  left: 50%;
  transform: translateX(-50%);
  color: #b9c8df;
  font-size: 15px;
  white-space: nowrap;
}

.paywall-overlay {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 3vw, 28px);
  text-align: center;
  overflow-y: auto;
  background: radial-gradient(circle at 50% 26%, rgba(36, 91, 143, 0.97), rgba(3, 9, 20, 0.99) 68%);
}
.paywall-overlay[hidden] { display: none; }
.paywall-card {
  width: min(100%, 560px);
  max-height: 100%;
  padding: clamp(15px, 2.5vw, 24px);
  overflow-y: auto;
  border: 1px solid rgba(120, 228, 233, 0.32);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(10, 29, 54, 0.97), rgba(5, 13, 29, 0.98));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.46), inset 0 1px rgba(255, 255, 255, 0.06);
}
.paywall-card img { width: 50px; height: 50px; border-radius: 15px; box-shadow: 0 18px 54px rgba(255, 77, 145, 0.28); }
.paywall-kicker { margin: 8px 0 2px; color: var(--accent); font-size: 12px; font-weight: 900; letter-spacing: 0.12em; }
.paywall-overlay h2 { margin: 0; font-size: clamp(24px, 3.5vw, 36px); }
.paywall-price { display: flex; align-items: baseline; justify-content: center; gap: 7px; margin: 5px 0 1px; color: #fff; }
.paywall-price strong { font-size: clamp(38px, 6vw, 54px); line-height: 1; color: #70fff3; }
.paywall-price span { font-size: 18px; font-weight: 900; }
.paywall-summary { margin: 0; color: #c9d8ea; font-size: 16px; }
.paywall-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 10px 0; padding: 0; list-style: none; text-align: left; }
.paywall-benefits li { padding: 7px 10px; border-radius: 10px; background: rgba(68, 125, 172, 0.14); color: #d9e8f7; font-size: 12px; line-height: 1.35; }
.paywall-benefits li::before { content: '✓'; margin-right: 7px; color: var(--accent); font-weight: 900; }
.paywall-pay-button {
  display: block;
  margin-top: 10px;
  padding: 12px 24px;
  border-radius: 999px;
  background: linear-gradient(110deg, var(--accent), #73a6ff);
  color: #051329;
  font-weight: 900;
  box-shadow: 0 15px 40px rgba(66, 229, 223, 0.25);
}
.paywall-pay-button:hover { transform: translateY(-1px); filter: brightness(1.06); }

.player-bar {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 28px;
  border-top: 1px solid rgba(65, 91, 127, 0.45);
  color: #bfcaDC;
}
.player-bar p { margin: 0; display: flex; align-items: center; gap: 12px; font-weight: 700; }
.player-status { color: #c8d7eb; font-size: 13px; line-height: 1.45; }
.player-bar time { color: #a8b8d1; font-variant-numeric: tabular-nums; }
.status-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 18px var(--accent); }

.player-actions { display: flex; align-items: center; gap: 10px; }
.player-actions button {
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid rgba(91, 133, 188, 0.55);
  border-radius: 10px;
  color: #dce8fa;
  background: rgba(18, 38, 69, 0.72);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}
.player-actions button:hover {
  transform: translateY(-1px);
  border-color: rgba(66, 229, 223, 0.72);
  background: rgba(29, 63, 106, 0.86);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.feature-grid article {
  min-height: 178px;
  padding: 28px;
  border: 1px solid rgba(70, 101, 145, 0.6);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(10, 23, 44, 0.92), rgba(7, 15, 30, 0.84));
}
.feature-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 14px;
  background: rgba(66, 229, 223, 0.09);
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}
.feature-grid h2 { margin: 0 0 10px; font-size: 21px; }
.feature-grid p { margin: 0; color: var(--muted); line-height: 1.65; }

.reference-gallery {
  width: 100%;
  padding: 22px clamp(14px, 2vw, 30px) 46px;
  overflow: hidden;
  background: #14191e;
}
.reference-poster-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px 18px;
  width: min(100%, 1957px);
  margin: 0 auto;
}
.reference-poster {
  position: relative;
  display: block;
  aspect-ratio: 290 / 500;
  overflow: hidden;
  border-radius: 14px;
  background: #1d2227;
  transition: transform 180ms ease;
}
.reference-poster:hover { transform: translateY(-4px); }
.reference-poster img {
  position: absolute;
  width: 675%;
  max-width: none;
  height: auto;
}
.ref-col-1 img { left: -10.3%; }
.ref-col-2 img { left: -123.1%; }
.ref-col-3 img { left: -235.2%; }
.ref-col-4 img { left: -347.6%; }
.ref-col-5 img { left: -459.7%; }
.ref-col-6 img { left: -571.7%; }
.ref-row-1 img { top: -5.2%; }
.ref-row-2 img { top: -109.4%; }

.membership-banner {
  width: min(100% - 40px, 1080px);
  min-height: 86px;
  margin: 42px auto 18px;
  padding: 18px 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 1px solid rgba(78, 235, 226, 0.48);
  border-radius: 22px;
  background: linear-gradient(110deg, rgba(15, 49, 73, 0.96), rgba(31, 28, 68, 0.98));
  color: #f4fbff;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.25), inset 0 1px rgba(255, 255, 255, 0.06);
}
.membership-price {
  padding: 9px 14px;
  border-radius: 999px;
  background: linear-gradient(110deg, #55efe4, #75a8ff);
  color: #07152a;
  font-size: 19px;
  font-weight: 950;
}
.membership-banner strong { font-size: clamp(20px, 2.6vw, 30px); }
.membership-action { margin-left: auto; color: #78f5eb; font-weight: 900; }

footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 24px 0 38px;
  color: #7587a5;
  font-size: 13px;
}
footer img { border-radius: 8px; }

@media (max-width: 760px) {
  .site-header, main, footer { width: min(100% - 26px, 1180px); }
  .site-header { min-height: 76px; }
  .brand img { width: 44px; height: 44px; border-radius: 13px; }
  .brand-copy { align-items: flex-start; flex-direction: column; gap: 3px; }
  .brand-copy strong { font-size: 15px; }
  .brand-copy small { padding: 0; border: 0; font-size: 11px; }
  .header-action { padding: 9px 13px; font-size: 13px; }
  main { padding-top: 24px; }
  .hero { margin-bottom: 20px; }
  .hero h1 { font-size: clamp(34px, 11vw, 48px); line-height: 1.04; }
  .hero-copy { margin-top: 14px; font-size: 15px; line-height: 1.55; }
  .player-shell { width: min(100%, 380px); border-radius: 20px; }
  .player-stage {
    width: 100%;
    aspect-ratio: 9 / 16;
    min-height: 0;
    max-height: 70svh;
    background: #02060d;
  }
  .player-stage .video-backdrop { display: none; }
  .video-main,
  .player-stage.is-cover .video-main {
    object-fit: cover;
    transform: none;
    background: #02060d !important;
  }
  .play-button { width: 78px; height: 78px; }
  .play-button svg { width: 38px; height: 38px; }
  .player-aura { width: 108px; height: 108px; }
  .player-message { bottom: 26px; width: 100%; padding-inline: 18px; font-size: 13px; text-align: center; white-space: normal; }
  .player-bar { min-height: 0; align-items: flex-start; flex-direction: column; gap: 10px; padding: 12px 14px; font-size: 12px; }
  .player-status { width: 100%; gap: 8px; }
  .status-dot { width: 8px; height: 8px; flex: 0 0 auto; }
  .player-actions { width: 100%; display: grid; grid-template-columns: 1fr auto auto; gap: 8px; }
  .player-actions time { margin-right: auto; }
  .player-actions button { min-height: 44px; padding-inline: 13px; touch-action: manipulation; }
  .preview-badge { top: 12px; left: 12px; }
  .paywall-card { border-radius: 20px; }
  .paywall-benefits { grid-template-columns: 1fr; margin: 12px 0; }
  .paywall-benefits li { padding: 8px 10px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article { min-height: auto; }
  .reference-gallery { padding: 16px 13px 34px; }
  .reference-poster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 11px; }
  .reference-poster { border-radius: 11px; }
  .membership-banner {
    width: calc(100% - 26px);
    min-height: 0;
    margin: 30px auto 14px;
    padding: 16px;
    flex-wrap: wrap;
    gap: 10px;
    border-radius: 17px;
  }
  .membership-price { padding: 7px 11px; font-size: 16px; }
  .membership-banner strong { font-size: 19px; }
  .membership-action { width: 100%; margin: 2px 0 0; text-align: center; }
}

@media (min-width: 761px) and (max-width: 1080px) {
  .reference-poster-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

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

@media (max-width: 760px) and (orientation: landscape) {
  .player-shell { width: min(100%, 920px); }
  .player-stage { aspect-ratio: 16 / 9; max-height: 76svh; }
  .video-main,
  .player-stage.is-cover .video-main { object-fit: contain; }
}
