﻿/* ==========================================================================
   Beeg — join / signup landing replica
   Palette pulled from the live page:
     orange   #ffa31a (buttons, joins)  hover #ff9000
     page     #000
     ink      #fff / #cfcfcf / #8a8a8a
   Type: Inter (stand-in for the site's PH font), heavy weights.
   Layout: 6 stacked full-viewport slides, fixed header, right-hand dot nav.
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --orange: #ffa31a;
  --orange-hi: #ff9000;
  --orange-dark: #e08600;
  --ink: #ffffff;
  --ink-2: #d7d7d7;
  --ink-3: #9a9a9a;
  --ink-4: #6b6b6b;
  --line: rgba(255, 255, 255, 0.18);
  --header-h: 78px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

html[lang="ar"] body {
  font-family: Cairo, "Noto Sans Arabic", "Segoe UI", Tahoma, Inter, system-ui, sans-serif;
}

/* 阿拉伯语标题行高要略放宽，否则 diacritic 会顶到上一行 */
html[lang="ar"] h1,
html[lang="ar"] h2 {
  line-height: 1.35;
}

body {
  margin: 0;
  background: #000;
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 clamp(12px, 4vw, 62px);
  gap: 10px;
  min-width: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
  transition: background 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}
.site-header.is-solid {
  background: rgba(12, 12, 12, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  flex-shrink: 1;
  overflow: hidden;
}
.brand img {
  height: 33px;
  width: auto;
  max-width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
  margin-inline-start: auto;
}
.header-actions + .lang-switch {
  flex-shrink: 0;
}

.btn-join {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  border-radius: 3px;
  background: var(--orange);
  color: #111;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: background 0.15s linear, transform 0.15s var(--ease);
}
.btn-join svg {
  fill: #111;
}
.btn-join:hover {
  background: var(--orange-hi);
  transform: translateY(-1px);
}

.btn-login {
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.15s linear, color 0.15s linear;
}
.btn-login:hover {
  color: var(--orange);
  border-color: var(--orange);
}

/* ==========================================================================
   RIGHT-HAND SECTION NAV
   ========================================================================== */
.section-nav {
  position: fixed;
  right: clamp(12px, 2.4vw, 34px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 55;
}

.section-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 34px;
}

/* the vertical rail */
.section-nav ul::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  right: 4px;
  width: 1px;
  background: rgba(255, 255, 255, 0.34);
}

.section-nav a {
  position: relative;
  display: block;
  padding-right: 22px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #b9b9b9;
  text-align: right;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}
.section-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: #000;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
.section-nav a:hover {
  color: #fff;
}
.section-nav a.is-active {
  color: var(--orange);
}
.section-nav a.is-active::after {
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 163, 26, 0.22);
}

/* ==========================================================================
   SLIDES
   ========================================================================== */
.slides {
  position: relative;
}

.slide {
  position: relative;
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}

.slide-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: -2;
}

/* darkening so the copy always reads */
.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 120% at 50% 45%, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.62) 70%, rgba(0, 0, 0, 0.78) 100%);
}

/* background image per slide */
.slide[data-bg="hero"] .slide-bg {
  background-image: url(../image/hero.jpg);
}
.slide[data-bg="content"] .slide-bg {
  background-image: url(../image/content.jpg);
}
.slide[data-bg="hd"] .slide-bg {
  background-image: url(../image/hd.jpg);
}
.slide[data-bg="vr"] .slide-bg {
  background-image: url(../image/vr.jpg);
}
.slide[data-bg="dvd"] .slide-bg {
  background-image: url(../image/dvd.jpg);
}
.slide[data-bg="faq"] .slide-bg {
  background-image: url(../image/faq.jpg);
}

/* the DVD slide uses a wall of covers — keep it readable */
.slide[data-bg="dvd"]::before {
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.5) 60%, rgba(0, 0, 0, 0.35) 100%);
}

.slide-content {
  position: relative;
  z-index: 2;
  width: min(760px, 92%);
  text-align: center;
  padding: 60px 0;
}

.slide h1,
.slide h2 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.015em;
  line-height: 1.14;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.55);
}

.slide h1 {
  font-size: clamp(1.7rem, 3.6vw, 3rem);
}
.slide h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.7rem);
}

.dvd-title span {
  text-transform: lowercase;
}

.lede {
  margin: 20px auto 0;
  max-width: 34em;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  font-weight: 600;
  line-height: 1.5;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

/* ---- CTA ---- */
.btn-cta {
  display: inline-block;
  margin-top: 34px;
  padding: 16px 44px;
  border-radius: 3px;
  background: var(--orange);
  color: #111;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 10px 28px -12px rgba(255, 163, 26, 0.85);
  transition: background 0.15s linear, transform 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
}
.btn-cta:hover {
  background: var(--orange-hi);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -12px rgba(255, 163, 26, 0.95);
}

/* ==========================================================================
   SLIDE: BEEG CONTENT (text left, artwork right)
   ========================================================================== */
.slide-split {
  justify-content: flex-start;
}
.slide-split::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.7) 38%,
    rgba(0, 0, 0, 0.28) 62%,
    transparent 100%
  );
}
.slide-split .slide-content {
  width: min(560px, 90%);
  margin-left: clamp(0px, 8vw, 130px);
  text-align: left;
}
.slide-split .lede {
  margin-left: 0;
}

.slide-aside {
  position: absolute;
  right: clamp(60px, 10vw, 180px);
  top: 50%;
  transform: translateY(-50%);
  width: min(420px, 36vw);
  text-align: center;
  z-index: 2;
}
.aside-art {
  width: 100%;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.6));
}
.aside-link {
  margin-top: 20px;
  padding: 12px 30px;
  border-radius: 3px;
  background: var(--orange);
  color: #111;
  font-size: 14px;
  font-weight: 800;
  transition: background 0.15s linear;
}
.aside-link:hover {
  background: var(--orange-hi);
}

/* ==========================================================================
   SLIDE: VR support logos
   ========================================================================== */
.vr-support {
  margin-top: 42px;
}
.vr-support span {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}
.vr-support img {
  width: min(560px, 100%);
  margin: 0 auto;
  opacity: 0.92;
}

/* ==========================================================================
   SLIDE: FAQ
   ========================================================================== */
.slide-content-faq {
  width: min(820px, 94%);
  padding: 40px 0 70px;
}
.slide-content-faq h2 {
  margin-bottom: 26px;
}

.faq-list {
  text-align: left;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  font-size: clamp(0.95rem, 1.3vw, 1.06rem);
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  list-style: none;
  transition: color 0.16s linear;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary:hover {
  color: var(--orange);
}

.faq-icon {
  position: relative;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: #fff;
  transition: transform 0.22s var(--ease), background 0.16s linear;
}
.faq-icon::before {
  width: 14px;
  height: 2px;
  margin: -1px 0 0 -7px;
}
.faq-icon::after {
  width: 2px;
  height: 14px;
  margin: -7px 0 0 -1px;
}
.faq-item[open] .faq-icon::after {
  transform: scaleY(0);
}
.faq-item[open] summary {
  color: var(--orange);
}
.faq-item[open] .faq-icon::before {
  background: var(--orange);
}

.faq-body {
  padding: 0 4px 24px;
  max-width: 62em;
}
.faq-body p {
  margin: 0 0 10px;
  font-size: 0.94rem;
  line-height: 1.75;
  color: var(--ink-2);
}
.faq-body p:last-child {
  margin-bottom: 0;
}
.faq-body strong {
  color: #fff;
}

.slide-content-faq .btn-cta {
  margin-top: 34px;
}

.faq-help {
  margin: 22px 0 0;
  font-size: 0.94rem;
  color: #fff;
}
.faq-help a {
  color: var(--orange);
  font-weight: 700;
  border-bottom: 1px solid transparent;
}
.faq-help a:hover {
  border-color: var(--orange);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #0a0a0a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 54px 20px 60px;
  text-align: center;
}
.footer-logo {
  height: 26px;
  margin: 0 auto 18px;
  opacity: 0.9;
}
.footer-rta {
  height: 34px;
  width: auto;
  margin: 0 auto 18px;
}
.footer-legal {
  margin: 0 0 10px;
  font-size: 12.5px;
  color: var(--ink-4);
}
.footer-links {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-3);
}
.footer-links a:hover {
  color: var(--orange);
}


/* ==========================================================================
   LANGUAGE SWITCHER
   ========================================================================== */
.lang-switch {
  position: relative;
  margin-inline-start: 16px;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.28);
  color: #e6e6e6;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: border-color 0.15s linear, background 0.15s linear, color 0.15s linear;
}
.lang-btn:hover,
.lang-btn[aria-expanded="true"] {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.5);
}
.lang-btn svg {
  opacity: 0.85;
  flex: 0 0 auto;
}

.lang-list {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  min-width: 148px;
  margin: 0;
  padding: 5px 0;
  list-style: none;
  background: rgba(16, 16, 16, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  box-shadow: 0 18px 36px -14px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 80;
  animation: langIn 0.14s ease-out;
}
.lang-list[hidden] {
  display: none;
}
@keyframes langIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

.lang-list button {
  display: flex;
  width: 100%;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #d7d7d7;
  text-align: start;
  white-space: nowrap;
  transition: background 0.12s linear, color 0.12s linear;
}
.lang-list button:hover {
  background: rgba(255, 163, 26, 0.16);
  color: #fff;
}
.lang-list button[aria-selected="true"] {
  color: var(--orange);
}
.lang-list button[aria-selected="true"]::after {
  content: "✓";
  margin-inline-start: auto;
  padding-inline-start: 12px;
  color: var(--orange);
}

/* ==========================================================================
   RTL (Arabic)
   ========================================================================== */
html[dir="rtl"] .section-nav {
  right: auto;
  left: clamp(12px, 2.4vw, 34px);
}
html[dir="rtl"] .section-nav a {
  padding-right: 0;
  padding-left: 22px;
  text-align: left;
}
html[dir="rtl"] .section-nav a::after {
  right: auto;
  left: 0;
}
html[dir="rtl"] .slide-split .slide-content {
  margin-left: 0;
  margin-right: clamp(0px, 8vw, 130px);
  text-align: right;
}
html[dir="rtl"] .slide-split::after {
  background: linear-gradient(
    270deg,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.7) 38%,
    rgba(0, 0, 0, 0.28) 62%,
    transparent 100%
  );
}
html[dir="rtl"] .slide-aside {
  right: auto;
  left: clamp(60px, 10vw, 180px);
}
html[dir="rtl"] .faq-list,
html[dir="rtl"] .faq-body {
  text-align: right;
}
html[dir="rtl"] .lang-list button[aria-selected="true"]::after {
  margin-inline-start: auto;
}
html[dir="rtl"] .btn-join,
html[dir="rtl"] .btn-cta {
  letter-spacing: 0;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1280px) {
  .slide-aside {
    display: none;
  }
}

@media (max-width: 1100px) {
  .section-nav {
    display: none;
  }
  .slide-split .slide-content {
    margin-left: 0;
    width: min(680px, 92%);
    text-align: center;
  }
  .slide-split .lede {
    margin-inline: auto;
  }
  .slide-split::after {
    background: radial-gradient(120% 120% at 50% 45%, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.72) 75%);
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 62px;
  }

  .brand img {
    height: 25px;
  }
  .header-actions {
    gap: 12px;
    flex-shrink: 0;
  }
  .btn-join {
    padding: 8px 14px;
    font-size: 12px;
    white-space: nowrap;
  }
  .lang-switch {
    margin-inline-start: 8px;
  }
  .lang-btn {
    padding: 8px 10px;
    gap: 0;
  }
  .lang-current {
    display: none;
  }
  .lang-btn svg {
    width: 16px;
    height: 16px;
  }
  .btn-join-label {
    font-size: 11.5px;
  }

  .slide {
    min-height: auto;
    padding: calc(var(--header-h) + 26px) 0 56px;
  }
  .slide-content {
    width: 92%;
    padding: 20px 0;
  }
  .slide h1,
  .slide h2 {
    font-size: 1.18rem;
    line-height: 1.32;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .slide h1 br {
    display: none;
  }
  .lede {
    font-size: 0.95rem;
    margin-top: 14px;
  }
  .btn-cta {
    margin-top: 26px;
    padding: 14px 30px;
    font-size: 13px;
    width: 100%;
    max-width: 320px;
  }

  .vr-support {
    margin-top: 30px;
  }
  .vr-support img {
    width: 100%;
  }

  .slide-content-faq {
    padding-bottom: 40px;
  }
  .faq-item summary {
    padding: 18px 2px;
    font-size: 0.94rem;
    gap: 14px;
  }
  .faq-body {
    padding: 0 2px 20px;
  }
  .faq-body p {
    font-size: 0.9rem;
  }

  .site-footer {
    padding: 40px 16px 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .slide-bg,
  .slide.is-active .slide-bg {
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   手机端修正（≤760px）
   · 标题在 390px 宽下按原字号会横向溢出，右侧被裁掉
   · 顶部「免费获取应用程序」按钮同样超出屏幕
   · 给 .slide-content 补上内边距并允许长词断行
   ========================================================================== */
@media (max-width: 760px) {
  .slide-content {
    width: 100%;
    max-width: 100%;
    padding: 46px 18px;
    box-sizing: border-box;
  }

  .slide h1 {
    font-size: clamp(1.26rem, 6.1vw, 1.95rem);
    line-height: 1.22;
    letter-spacing: -0.01em;
  }

  .slide h2 {
    font-size: clamp(1.16rem, 5.5vw, 1.75rem);
    line-height: 1.25;
  }

  .slide h1,
  .slide h2,
  .lede,
  .faq-q,
  .faq-a {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .lede {
    font-size: 0.98rem;
    margin-top: 16px;
    padding: 0 4px;
  }

  .btn-cta,
  .btn-join {
    max-width: 100%;
    box-sizing: border-box;
  }

  .btn-cta {
    padding: 15px 26px;
    font-size: 14px;
    margin-top: 26px;
  }

  /* 顶栏那颗「免费获取应用程序」 */
  .btn-join {
    font-size: 12.5px;
    padding: 9px 14px;
    white-space: nowrap;
  }
}

/* ==========================================================================
   手机端背景图
   横图（1500×900）塞进 9:16 竖屏，无论怎么摆都只能二选一：
   填满就裁切，不裁就留空。所以给手机单独准备了竖版图 bg/m-*.jpg
   （从原图按主体位置裁 506×900 再放大到 1080×1920）。
   这样既铺满屏幕、又保住主体，也不用虚化垫底。
   ========================================================================== */
@media (max-width: 760px) {
  .slide-bg {
    background-size: cover;
    background-position: center center;
    filter: none;
    transform: none;
  }

  /* 不再需要叠一层清晰图 */
  .slide::after {
    display: none;
  }

  /* 换用竖版图 */
  .slide[data-bg="hero"] .slide-bg    { background-image: url(../image/m-hero.jpg); }
  .slide[data-bg="content"] .slide-bg { background-image: url(../image/m-content.jpg); }
  .slide[data-bg="hd"] .slide-bg      { background-image: url(../image/m-hd.jpg); }
  .slide[data-bg="vr"] .slide-bg      { background-image: url(../image/m-vr.jpg); }
  .slide[data-bg="dvd"] .slide-bg     { background-image: url(../image/m-dvd.jpg); }
  .slide[data-bg="faq"] .slide-bg     { background-image: url(../image/m-faq.jpg); }
}
