/* Home page: blurred video hero with the DEUS logo, "What is Deus?", then full-width feature panels:
   trailer stills (title card + UI shot) beside the text, fading into a blurred copy of themselves. */
body.landing { background: #181818; }
.landing main { font-family: "Open Sans", "Segoe UI", Arial, sans-serif; }

/* ---- hero ---- */
.lhero { position: relative; min-height: 720px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #111 url(/static/landing/hero-poster.jpg) center / cover; }
.lhero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(45deg, #0f0f0fb0, #3f3f3f79); z-index: 1; }
.lhero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; filter: brightness(.7) contrast(1.1) blur(4px); transform: scale(1.05); }
.lhero-in { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; padding: 88px 20px 72px; }
.lhero h1 { margin: 0; line-height: 0; }
.lhero h1 img { width: min(84vw, 420px); height: auto; max-height: 320px; object-fit: contain; filter: drop-shadow(0 5px 5px #000); }
.lhero p { width: min(760px, 92vw); max-width: none; margin: 0; color: #f3ede2; font-size: clamp(1rem, 1.2vw + .75rem, 1.35rem); line-height: 1.6; letter-spacing: .015em; text-shadow: 0 2px 14px #000c; }
.lhero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 8px; }

.lbtn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 200px; padding: 13px 32px; border-radius: 4px; border: .15rem solid #ffd700;
  background: linear-gradient(145deg, #ffba08, #ffe066); color: #181818; font: 700 1.05rem/1.2 "Open Sans", Arial, sans-serif; text-transform: uppercase; letter-spacing: 1px;
  box-shadow: 0 5px 10px #00000080; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.lbtn:hover { text-decoration: none; transform: scale(1.04); box-shadow: 0 0 20px #ffba0866; }
.lbtn.discord { background: #7289da; border-color: #5b6eae; color: #fff; text-shadow: 1px 1px 2px #000; }
.lbtn.discord:hover { background: #5b6eae; box-shadow: 0 0 20px #5b6eae; }
.lbtn.ghost { background: #0008; border-color: #ffffff55; color: #fff; }
.lbtn.ghost:hover { border-color: #ffd700; }
.lbtn.outline { background: transparent; color: #ffd700; box-shadow: none; min-width: 0; padding: 9px 24px; font-size: .95rem; text-shadow: none; }
.lbtn.outline:hover { background: #ffd70014; box-shadow: none; }

/* ---- "What is Deus?" ---- */
.lintro { position: relative; padding: clamp(56px, 7vw, 104px) 24px; text-align: center; overflow: hidden;
  background: radial-gradient(ellipse 60% 120% at 50% 0%, #2a2620 0%, #121212 60%, #0b0b0c 100%); border-bottom: 1px solid #ffffff10; }
.lintro::before { content: ""; position: absolute; inset: 0; background: url(/static/landing/trailer/progression-bg.webp) center / cover; opacity: .18; filter: grayscale(1); pointer-events: none; }
.lintro-in { position: relative; max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.lintro h2 { margin: 0; font: 800 clamp(1.9rem, 2.8vw + .6rem, 3rem)/1.1 Cinzel, "Trajan Pro", Georgia, serif; letter-spacing: .06em; text-transform: uppercase;
  background: linear-gradient(180deg, #fff6e0 0%, #e3c48c 45%, #9c7444 70%, #f2dcb0 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 10px #000c); }
.lintro p { margin: 0; max-width: 46em; color: #e8e2d6; font-size: clamp(1.02rem, .4vw + .9rem, 1.2rem); line-height: 1.7; }
.lintro .lbtn { margin-top: 6px; }
.lrule { display: flex; align-items: center; gap: 12px; color: #c9a86a; }
.lrule::before, .lrule::after { content: ""; width: clamp(40px, 8vw, 110px); height: 1px; background: linear-gradient(90deg, #c9a86a00, #c9a86a); }
.lrule::after { transform: scaleX(-1); }
.lrule i { width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid #c9a86a; }

/* ---- feature panels ---- */
.slices { background: #0b0b0c; }
.slice { position: relative; overflow: hidden; border-bottom: 1px solid #ffffff12; color: #fff; }
.slice-text { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; }
.slice-sub { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: .82rem; font-weight: 700; color: #d9b878; text-transform: uppercase; letter-spacing: .16em; }
.slice-sub::before { content: ""; width: 28px; height: 2px; background: linear-gradient(90deg, #d9b87800, #d9b878); }
.slice h2 { font-family: "Open Sans", Arial, sans-serif; font-weight: 700; font-size: clamp(1.9rem, 2.4vw, 2.6rem); margin: 0 0 14px; line-height: 1.1; }
.slice-text p { max-width: none; margin: 0 0 22px; font-size: 1.02rem; line-height: 1.7; color: #ece8e1; }
.slice-sub, .slice h2, .slice-text p { text-shadow: 0 1px 3px #000, 0 0 1px #000; }
.slice-img { opacity: 0; transition: opacity .9s ease; }
.slice-img.on { opacity: 1; }
.slice-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 38px; height: 48px; border: 1px solid #ffffff1f; border-radius: 6px; background: #000a; color: #fff; font-size: 1.1rem; cursor: pointer; transition: background .2s, border-color .2s; }
.slice-nav:hover { background: #000d; border-color: #d9b87880; }
.slice-nav:focus-visible, .slice-dots button:focus-visible { outline: 2px solid #ffd700; outline-offset: 2px; }

/* painted strip behind the text (Classless) */
.slice.cover { --h: clamp(440px, 31vw, 660px); height: var(--h); display: flex; align-items: center; }
.slice-art { position: absolute; inset: 0; z-index: 0; }
.slice.cover .slice-img { position: absolute; inset: 0; background: center / cover no-repeat; }
.slice.cover::before { content: ""; position: absolute; top: 0; bottom: 0; width: min(100%, 900px); z-index: 1; pointer-events: none; }
.slice.cover.text-right::before { right: 0; background: linear-gradient(270deg, #000e, #000c 70%, #0000); }
.slice.cover.text-left::before { left: 0; background: linear-gradient(90deg, #000e, #000c 70%, #0000); }
.slice.cover .slice-text { width: min(100%, 720px); padding: 40px 72px; }
.slice.cover.text-right .slice-text { margin-left: auto; }
.slice.cover .slice-nav.prev { left: 12px; }
.slice.cover .slice-nav.next { right: 12px; }

/* trailer still beside the text: the sharp shot fades into a blurred copy of itself */
.slice.shot { --h: clamp(440px, 31vw, 660px); height: var(--h); background: #0b0b0c; }
.slice-bg { position: absolute; inset: -6%; z-index: 0; background: var(--bg) center / cover no-repeat; filter: brightness(.62) saturate(.85); }
.slice.shot::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.slice.shot.text-right::before { background: linear-gradient(90deg, #0000 25%, #000a 55%, #000e 100%); }
.slice.shot.text-left::before { background: linear-gradient(270deg, #0000 25%, #000a 55%, #000e 100%); }
.slice.shot::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; box-shadow: inset 0 30px 40px -30px #000, inset 0 -30px 40px -30px #000; }
.slice-in { position: relative; z-index: 2; display: flex; align-items: center; gap: clamp(24px, 3.5vw, 72px); width: min(100%, 1760px); height: 100%; margin: 0 auto; }
.slice.text-left .slice-in { flex-direction: row-reverse; }
.slice-shot { position: relative; flex: none; height: 100%; aspect-ratio: 3 / 2; max-width: 60%; }
.slice-shot .slice-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, #0000, #000 11%, #000 89%, #0000), linear-gradient(#0000, #000 4%, #000 96%, #0000);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, #0000, #000 11%, #000 89%, #0000), linear-gradient(#0000, #000 4%, #000 96%, #0000); mask-composite: intersect; }
.slice-shot .slice-img.on { animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.04); } }
.slice.shot .slice-text { flex: 1 1 0; max-width: 640px; padding: 40px 56px 40px 0; }
.slice.shot.text-left .slice-text { padding: 40px 0 40px 56px; }
.slice-shot .slice-nav.prev { left: 6%; }
.slice-shot .slice-nav.next { right: 6%; }
.slice-shot .slice-nav { opacity: 0; }
.slice-shot:hover .slice-nav, .slice-shot .slice-nav:focus-visible { opacity: 1; }
.slice-dots { position: absolute; left: 0; right: 0; bottom: 5%; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.slice-dots button { width: 28px; height: 4px; padding: 0; border: 0; border-radius: 2px; background: #ffffff40; cursor: pointer; transition: background .3s, width .3s; }
.slice-dots button[aria-current="true"] { width: 44px; background: #d9b878; }
@media (hover: none) { .slice-shot .slice-nav { opacity: 1; } }

/* stacked on narrow screens: the picture as a band on top, the text under it */
@media (max-width: 960px) {
  .lhero, .lhero-in { min-height: 600px; }
  .lhero-in { padding: 60px 16px 48px; gap: 14px; }
  .lhero h1 img { max-height: 220px; }
  .slice.cover, .slice.shot { height: auto; display: block; }
  .slice.cover .slice-art { position: relative; height: clamp(180px, 40vw, 320px); }
  .slice.cover .slice-img { background-position: var(--focus, center) center; }
  .slice.cover.text-right .slice-img { --focus: 18%; }
  .slice.cover.text-left .slice-img { --focus: 82%; }
  .slice.cover::before { display: none; }
  .slice.cover .slice-text { width: 100%; padding: 24px 16px 32px; align-items: center; text-align: center; background: linear-gradient(#111, #1b1b1b); }
  .slice.cover .slice-nav { top: calc(clamp(180px, 40vw, 320px) / 2); }
  .slice-in, .slice.text-left .slice-in { display: block; height: auto; }
  .slice.shot::before { background: linear-gradient(#0000 30%, #000c 60%, #000e) !important; }
  .slice-shot { height: auto; width: 100%; max-width: none; }
  .slice-shot .slice-img { -webkit-mask-image: linear-gradient(#000 80%, #0000); mask-image: linear-gradient(#000 80%, #0000); }
  .slice.shot .slice-text, .slice.shot.text-left .slice-text { max-width: none; padding: 4px 18px 36px; align-items: center; text-align: center; }
  .slice-sub::before { display: none; }
  .slice-dots { bottom: 8%; }
  .lbtn { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .slice-img, .lbtn, .slice-dots button { transition: none; }
  .slice-shot .slice-img.on { animation: none; }
}

/* ---- launch countdown: flip cards in the hero, embers drifting up behind ---- */
.lhero-embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.lhero-in { z-index: 3; }
.cd { --fh: clamp(76px, 11vw, 132px); position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 10px 0 6px; }
.cd::before { content: ""; position: absolute; left: 50%; top: 55%; width: 130%; height: 170%; transform: translate(-50%, -50%); z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, #ff9d0030, #ff6a0012 55%, #0000); animation: cd-breathe 4s ease-in-out infinite; }
@keyframes cd-breathe { 50% { opacity: .55; transform: translate(-50%, -50%) scale(.92); } }
.cd-eyebrow { display: flex; align-items: center; gap: 14px; margin: 0; font: 700 clamp(.72rem, .6vw + .55rem, .95rem)/1 "Open Sans", Arial, sans-serif !important;
  letter-spacing: .32em !important; text-transform: uppercase; color: #ffd98a !important; width: auto !important; }
.cd-eyebrow span { display: block; width: clamp(24px, 6vw, 80px); height: 1px; background: linear-gradient(90deg, #0000, #ffd700); }
.cd-eyebrow span:last-child { transform: scaleX(-1); }
.cd-clock { display: flex; align-items: flex-start; gap: clamp(6px, 1.4vw, 18px); }
.cd-unit { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cd-unit small { font: 700 clamp(.6rem, .4vw + .5rem, .78rem)/1 "Open Sans", Arial, sans-serif; letter-spacing: .28em; text-transform: uppercase; color: #cbb98f; text-shadow: 0 1px 4px #000; }
.cd-sep { display: flex; flex-direction: column; justify-content: center; gap: calc(var(--fh) * .16); height: var(--fh); }
.cd-sep b { width: 7px; height: 7px; border-radius: 50%; background: #ffcf4a; box-shadow: 0 0 10px #ffae00, 0 0 22px #ff7b00aa; animation: cd-blink 1s steps(1) infinite; }
@keyframes cd-blink { 50% { opacity: .35; } }

.fc { position: relative; width: calc(var(--fh) * .86); height: var(--fh); perspective: calc(var(--fh) * 4); border-radius: 10px;
  box-shadow: 0 14px 30px #000c, 0 0 0 1px #ffd70038, 0 0 34px #ff9d0026; font: 800 calc(var(--fh) * .62)/1 Cinzel, "Trajan Pro", Georgia, serif; }
.fc span { position: absolute; left: 0; right: 0; height: 50%; overflow: hidden; backface-visibility: hidden;
  background: linear-gradient(#2a241b, #16130e); }
.fc .u, .fc .ft { top: 0; border-radius: 10px 10px 0 0; }
.fc .l, .fc .fb { bottom: 0; border-radius: 0 0 10px 10px; background: linear-gradient(#13100c, #1e1913); }
.fc .u::after, .fc .ft::after { content: ""; position: absolute; inset: 0; background: linear-gradient(#ffffff0d, #0000 60%); }
.fc b { display: block; height: var(--fh); line-height: var(--fh); text-align: center; font-weight: 800; font-variant-numeric: tabular-nums;
  background: linear-gradient(#fff4c2 0%, #ffd34d 38%, #f29a0f 62%, #ffcf5a 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 10px #ffa60055); }
.fc .l b, .fc .fb b { transform: translateY(-50%); }
/* the hinge */
.fc::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; z-index: 5; background: #050403; box-shadow: 0 1px 0 #ffffff10; }
.fc::before { content: ""; position: absolute; top: 50%; width: 5px; height: 12px; margin-top: -6px; left: -2px; right: -2px; z-index: 6; border-radius: 2px;
  background: #3a3226; box-shadow: calc(var(--fh) * .86 - 1px) 0 0 #3a3226; }
.fc .ft { z-index: 3; transform-origin: 50% 100%; animation: fc-top .32s ease-in forwards; }
.fc .fb { z-index: 2; transform-origin: 50% 0; transform: rotateX(90deg); animation: fc-bot .32s .32s ease-out forwards; }
.fc .ft::before, .fc .fb::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.fc .ft::before { background: linear-gradient(#0000, #0009); animation: fc-shade .32s ease-in forwards; opacity: 0; }
@keyframes fc-top { to { transform: rotateX(-90deg); } }
@keyframes fc-bot { to { transform: rotateX(0); } }
@keyframes fc-shade { to { opacity: 1; } }
.fc.tick { animation: fc-glow .7s ease-out; }
@keyframes fc-glow { 30% { box-shadow: 0 14px 30px #000c, 0 0 0 1px #ffd70070, 0 0 46px #ffae0055; } }

.cd-when { margin: 4px 0 0 !important; font-size: clamp(.85rem, .5vw + .7rem, 1rem) !important; color: #e9dcc0 !important; letter-spacing: .04em !important; }
.cd-live { display: none; margin: 0 !important; }

/* the last minute: seconds burn */
.cd.final [data-u="s"] .fc { box-shadow: 0 14px 30px #000c, 0 0 0 1px #ff6a00aa, 0 0 50px #ff4d0077; animation: cd-throb 1s ease-in-out infinite; }
.cd.final [data-u="s"] .fc b { background-image: linear-gradient(#fff1d6, #ff9b3d 45%, #ff3d00 70%, #ffb36b); }
@keyframes cd-throb { 50% { transform: scale(1.06); } }

/* opened */
.cd.open .cd-eyebrow, .cd.open .cd-clock, .cd.open .cd-when { display: none; }
.cd.open .cd-live { display: flex; flex-direction: column; align-items: center; gap: 10px; width: auto !important;
  font: 800 clamp(2rem, 4vw + 1rem, 3.6rem)/1.1 Cinzel, Georgia, serif !important; letter-spacing: .06em !important; text-transform: uppercase;
  background: linear-gradient(#fff4c2, #ffd34d 45%, #f29a0f); -webkit-background-clip: text; background-clip: text; color: transparent !important;
  filter: drop-shadow(0 0 18px #ffa60088); animation: cd-rise .9s cubic-bezier(.2, 1.4, .4, 1) both; }
.cd.open .cd-live em { font: italic 400 clamp(.95rem, .6vw + .8rem, 1.2rem)/1.4 "Open Sans", Arial, sans-serif; letter-spacing: .03em; text-transform: none;
  color: #f3ede2; -webkit-text-fill-color: #f3ede2; filter: none; }
@keyframes cd-rise { from { opacity: 0; transform: scale(.6); } }

@media (max-width: 520px) {
  .cd { --fh: clamp(58px, 17vw, 76px); }
  .cd-sep { width: 4px; } .cd-sep b { width: 5px; height: 5px; }
  .cd-unit small { letter-spacing: .16em; }
  .cd-eyebrow { gap: 8px; letter-spacing: .16em !important; white-space: nowrap; }
  .cd-eyebrow span { width: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .cd::before, .cd-sep b, .fc.tick, .cd.final [data-u="s"] .fc, .cd.open .cd-live { animation: none; }
}
/* Chinese pages: CJK fallbacks behind the Latin landing fonts */
:lang(zh-CN) .landing main, :lang(zh-CN) .slice h2 { font-family: "Open Sans", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
:lang(zh-TW) .landing main, :lang(zh-TW) .slice h2 { font-family: "Open Sans", "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif; }
