:root {
  --bg: #06101b;
  --bg-deep: #030912;
  --surface: #0c1b2b;
  --surface-soft: #11263a;
  --ink: #f5f9ff;
  --muted: #9bb0c5;
  --cyan: #66e2f1;
  --blue: #4c8ff7;
  --violet: #8e70ff;
  --gold: #f4c76a;
  --line: rgba(134, 201, 235, 0.18);
  --shadow: 0 26px 90px rgba(0, 7, 18, 0.58);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 94px; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--bg-deep);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.65;
}
body::selection { color: #06101b; background: var(--cyan); }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }

.page-noise {
  position: fixed;
  z-index: 60;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image:
    linear-gradient(rgba(255, 255, 255, .18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .12) 1px, transparent 1px);
  background-size: 4px 4px;
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 18px;
  left: 50%;
  width: min(1180px, calc(100% - 36px));
  height: 72px;
  padding: 0 18px 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(159, 224, 246, .18);
  border-radius: 38px;
  background: rgba(4, 13, 25, .66);
  box-shadow: 0 16px 56px rgba(0, 0, 0, .28);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
  transition: .25s ease;
}
.site-header.is-scrolled {
  top: 9px;
  width: min(1120px, calc(100% - 26px));
  background: rgba(4, 12, 23, .92);
  box-shadow: 0 18px 65px rgba(0, 0, 0, .48);
}
.brand { display: flex; align-items: center; gap: 18px; white-space: nowrap; }
.brand strong {
  font-family: Georgia, "STKaiti", serif;
  font-size: 26px;
  letter-spacing: .08em;
  background: linear-gradient(110deg, #f8fdff, #92eafa 48%, #a791ff);
  color: transparent;
  background-clip: text;
}
.brand span {
  padding-left: 18px;
  border-left: 1px solid var(--line);
  color: #7290a7;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
}
.main-nav { display: flex; align-items: center; gap: 27px; color: #b6c7d8; font-size: 13px; font-weight: 700; }
.main-nav a { transition: color .2s, transform .2s; }
.main-nav a:not(.nav-play):hover,
.main-nav a.is-active:not(.nav-play) { color: var(--cyan); }
.nav-play {
  padding: 11px 23px;
  border: 1px solid rgba(130, 225, 242, .55);
  border-radius: 24px;
  background: linear-gradient(120deg, rgba(42, 129, 196, .75), rgba(104, 77, 193, .8));
  box-shadow: 0 9px 30px rgba(63, 121, 218, .24), inset 0 1px rgba(255, 255, 255, .2);
}
.nav-play:hover { transform: translateY(-2px); }
.nav-toggle { display: none; border: 0; background: transparent; cursor: pointer; }
.nav-toggle span { display: block; width: 23px; height: 2px; margin: 5px; background: #dcecff; }

.hero {
  position: relative;
  min-height: 100svh;
  padding: 150px 24px 90px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: url("assets/ckwy-login.jpg") center center / cover no-repeat;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 68% 44%, transparent 0 22%, rgba(3, 10, 19, .12) 50%),
    linear-gradient(90deg, rgba(3, 10, 20, .92) 0%, rgba(4, 13, 26, .72) 36%, transparent 72%),
    linear-gradient(180deg, rgba(2, 8, 16, .1), rgba(2, 8, 16, .1) 65%, #06101b 100%);
}
.hero-content {
  position: relative;
  z-index: 3;
  width: min(1180px, 100%);
  margin: 0 auto;
}
.hero-content > * { max-width: 610px; }
.hero-kicker,
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #9deaf4;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
}
.hero-kicker span { width: 36px; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan)); }
.hero h1 {
  margin: 18px 0 0;
  font-family: Georgia, "STKaiti", serif;
  font-size: clamp(70px, 9vw, 128px);
  line-height: .86;
  letter-spacing: .05em;
  text-shadow: 0 10px 35px rgba(0, 0, 0, .5);
}
.hero h1 span { display: block; color: #f5fcff; }
.hero h1 strong {
  display: block;
  margin-left: .6em;
  color: transparent;
  background: linear-gradient(110deg, #70e2f3, #7ea8ff 56%, #a789ff);
  background-clip: text;
  font-weight: 700;
}
.hero-slogan { margin: 25px 0 8px; color: #d9e9f6; font: 600 18px/1.5 Georgia, "STKaiti", serif; letter-spacing: .12em; }
.hero-copy { margin: 0; color: #a8bbcc; font-size: 14px; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; }
.button {
  min-height: 50px;
  padding: 0 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .06em;
  transition: transform .2s, filter .2s, box-shadow .2s;
}
.button:hover { transform: translateY(-3px); filter: brightness(1.08); }
.button-primary {
  color: #f8fdff;
  border-color: rgba(117, 230, 244, .55);
  background: linear-gradient(110deg, #267bb7, #5367c8 55%, #7858c0);
  box-shadow: 0 16px 40px rgba(61, 105, 210, .35), inset 0 1px rgba(255,255,255,.22);
}
.button-secondary { border-color: rgba(218, 238, 255, .24); background: rgba(5, 16, 29, .34); backdrop-filter: blur(10px); }
.hero-facts { display: flex; margin-top: 35px; color: #acc2d3; }
.hero-facts span { min-width: 120px; padding: 0 23px; border-left: 1px solid rgba(119, 201, 231, .22); }
.hero-facts span:first-child { padding-left: 0; border-left: 0; }
.hero-facts b { display: block; color: #e8f7ff; font: 700 21px/1 Georgia, serif; }
.hero-facts small { display: block; margin-top: 7px; color: #718ba0; font-size: 10px; letter-spacing: .12em; }
.scroll-cue {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 25px;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: rgba(209, 236, 248, .48);
  font-size: 8px;
  letter-spacing: .22em;
  transform: translateX(-50%);
}
.scroll-cue i { width: 1px; height: 34px; background: linear-gradient(var(--cyan), transparent); animation: scrollPulse 1.8s ease-in-out infinite; }
@keyframes scrollPulse { 50% { transform: scaleY(.55); opacity: .45; } }

.section { padding: 112px 24px; }
.world { position: relative; background: radial-gradient(circle at 50% 35%, rgba(42, 104, 156, .17), transparent 42%), var(--bg); }
.section-heading { width: min(760px, 100%); margin: 0 auto 58px; text-align: center; }
.section-heading-left { width: min(1180px, 100%); margin-left: auto; margin-right: auto; text-align: left; }
.section-heading .eyebrow { justify-content: center; }
.section-heading-left .eyebrow { justify-content: flex-start; }
.section-heading h2,
.heroes h2,
.final-cta h2 {
  margin: 9px 0 15px;
  font-family: Georgia, "STKaiti", serif;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.15;
  letter-spacing: .04em;
}
.section-heading > p:last-child,
.heroes-copy > p { color: var(--muted); }

.world-showcase {
  position: relative;
  width: min(1180px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(125, 208, 235, .2);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.world-showcase::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2, 10, 18, .88), transparent 67%); pointer-events: none; }
.world-showcase img { width: 100%; aspect-ratio: 2.1 / 1; object-fit: cover; }
.world-caption { position: absolute; z-index: 2; left: clamp(25px, 6vw, 70px); bottom: clamp(24px, 6vw, 68px); width: min(440px, calc(100% - 48px)); }
.world-caption p { margin: 0; color: var(--cyan); font-size: 10px; font-weight: 800; letter-spacing: .2em; }
.world-caption h3 { margin: 8px 0 10px; font: 700 clamp(28px, 4vw, 46px)/1.15 Georgia, "STKaiti", serif; }
.world-caption span { color: #a5bbce; font-size: 13px; }

.feature-grid { width: min(1180px, 100%); margin: 25px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feature-card {
  position: relative;
  min-height: 230px;
  padding: 29px 24px;
  overflow: hidden;
  border: 1px solid rgba(117, 198, 229, .14);
  border-radius: 18px;
  background: linear-gradient(150deg, rgba(17, 39, 57, .88), rgba(7, 18, 31, .92));
  transition: transform .3s, border-color .3s, background .3s;
}
.feature-card:hover { transform: translateY(-8px); border-color: rgba(107, 222, 240, .38); background: linear-gradient(150deg, #153149, #091728); }
.feature-card > span { position: absolute; top: 17px; right: 21px; color: rgba(219, 241, 255, .08); font: 800 43px/1 Georgia, serif; }
.feature-card i { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(110, 223, 239, .36); border-radius: 50%; color: var(--cyan); background: rgba(79, 151, 210, .1); font-style: normal; }
.feature-card h3 { margin: 24px 0 8px; font-family: Georgia, "STKaiti", serif; font-size: 22px; }
.feature-card p { margin: 0; color: #8fa6ba; font-size: 13px; }

.heroes { position: relative; padding: 120px 24px; overflow: hidden; background: #080d1c; }
.heroes::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 75% 50%, rgba(111, 85, 211, .22), transparent 38%); }
.heroes-inner { position: relative; width: min(1180px, 100%); margin: 0 auto; display: grid; grid-template-columns: .82fr 1.18fr; align-items: center; gap: 70px; }
.heroes-copy .eyebrow { margin-bottom: 8px; }
.heroes-copy ul { margin: 28px 0; padding: 0; list-style: none; }
.heroes-copy li { padding: 13px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid rgba(136, 183, 219, .12); }
.heroes-copy li b { color: #dceeff; font-size: 14px; }
.heroes-copy li span { color: #7790a7; font-size: 12px; }
.text-link { display: inline-flex; gap: 16px; align-items: center; color: var(--cyan); font-weight: 800; font-size: 13px; }
.hero-card-stack { position: relative; min-height: 520px; }
.squad-card {
  position: absolute;
  width: min(560px, 88%);
  overflow: hidden;
  border: 1px solid rgba(137, 213, 239, .25);
  border-radius: 24px;
  background: #091523;
  box-shadow: var(--shadow);
}
.squad-card img { width: 100%; aspect-ratio: 1.52 / 1; object-fit: cover; }
.squad-card span { position: absolute; left: 18px; bottom: 16px; padding: 6px 12px; border: 1px solid rgba(255,255,255,.15); border-radius: 20px; background: rgba(4, 12, 24, .72); color: #d8edfb; font-size: 11px; backdrop-filter: blur(12px); }
.squad-card-back { right: 0; top: 0; opacity: .58; transform: rotate(5deg); }
.squad-card-front { left: 0; bottom: 0; transform: rotate(-3deg); }

.gallery-section { background: radial-gradient(circle at 15% 30%, rgba(48, 117, 167, .14), transparent 30%), #07111e; }
.gallery { width: min(1180px, 100%); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 16px; }
.gallery-main { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: #0a1826; box-shadow: var(--shadow); }
.gallery-main img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; transition: opacity .18s ease; }
.gallery-main img.is-changing { opacity: .18; }
.gallery-caption {
  position: absolute;
  right: 22px;
  bottom: 20px;
  left: 22px;
  padding: 13px 16px;
  display: flex;
  justify-content: space-between;
  border: 1px solid rgba(172, 225, 242, .14);
  border-radius: 13px;
  background: rgba(3, 13, 24, .72);
  backdrop-filter: blur(14px);
}
.gallery-caption span { color: #6d8ba2; font-size: 10px; letter-spacing: .15em; }
.gallery-caption b { color: #eaf8ff; font-family: Georgia, "STKaiti", serif; }
.gallery-thumbs { display: grid; grid-template-rows: repeat(4, 1fr); gap: 10px; }
.thumb { padding: 0; overflow: hidden; border: 1px solid transparent; border-radius: 14px; background: #0a1826; cursor: pointer; opacity: .48; transition: opacity .2s, border-color .2s, transform .2s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover,
.thumb.is-active { opacity: 1; border-color: var(--cyan); transform: translateX(-4px); }

.final-cta { position: relative; min-height: 600px; padding: 100px 24px; display: grid; place-items: center; overflow: hidden; text-align: center; }
.final-cta-bg { position: absolute; inset: 0; background: linear-gradient(rgba(3, 9, 18, .42), rgba(3, 9, 18, .9)), url("assets/ckwy-loading.jpg") center 42% / cover no-repeat; }
.final-cta-content { position: relative; z-index: 2; }
.final-cta-content .eyebrow { justify-content: center; }
.final-cta-content p:not(.eyebrow) { margin: 0 0 28px; color: #adbed0; }

.back-top {
  position: fixed;
  z-index: 40;
  right: 22px;
  bottom: 22px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(8, 24, 40, .88);
  box-shadow: 0 10px 35px rgba(0,0,0,.3);
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transform: translateY(12px);
  transition: .25s;
}
.back-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
footer { padding: 52px 24px; display: grid; justify-items: center; gap: 12px; text-align: center; background: #02070e; border-top: 1px solid rgba(133, 190, 219, .1); }
.footer-brand span { color: #60768a; }
footer p { margin: 7px 0 0; color: #72879a; font-size: 12px; }
footer small { color: #415568; font-size: 10px; }
.license-info { display: grid; gap: 4px; color: #60768a; }
.license-info p { margin: 0; line-height: 1.65; }
.license-info a { color: #839caf; text-decoration: none; }
.license-info a:hover { color: #b7d3e5; text-decoration: underline; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .main-nav { gap: 16px; }
  .main-nav a:not(.nav-play) { display: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .heroes-inner { grid-template-columns: 1fr; }
  .hero-card-stack { min-height: 500px; }
}

@media (max-width: 680px) {
  .site-header { height: 62px; padding: 0 12px 0 18px; }
  .brand strong { font-size: 22px; }
  .brand span { display: none; }
  .main-nav {
    position: absolute;
    top: 70px;
    right: 0;
    left: 0;
    padding: 18px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(4, 13, 25, .97);
    box-shadow: var(--shadow);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a:not(.nav-play) { display: block; padding: 10px 12px; }
  .nav-play { text-align: center; }
  .nav-toggle { display: block; }
  .hero { min-height: 760px; padding: 118px 20px 75px; align-items: flex-end; background-position: 62% center; }
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(3, 9, 18, .1), rgba(3, 9, 18, .46) 44%, #06101b 93%),
      linear-gradient(90deg, rgba(3, 9, 18, .68), transparent);
  }
  .hero h1 { font-size: clamp(64px, 21vw, 92px); }
  .hero-copy { font-size: 13px; }
  .hero-actions { flex-direction: column; width: min(330px, 100%); }
  .hero-facts span { min-width: 0; flex: 1; padding: 0 13px; }
  .section { padding: 82px 18px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 190px; }
  .world-showcase img { min-height: 520px; aspect-ratio: auto; object-position: 64% center; }
  .world-showcase::after { background: linear-gradient(0deg, rgba(2, 10, 18, .94), transparent 78%); }
  .world-caption { left: 22px; bottom: 25px; }
  .heroes { padding: 85px 18px; }
  .heroes-copy li { align-items: flex-start; flex-direction: column; gap: 3px; }
  .hero-card-stack { min-height: 360px; }
  .squad-card { width: 90%; border-radius: 16px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-main img { min-height: 410px; }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); grid-template-rows: 70px; }
  .thumb:hover,
  .thumb.is-active { transform: translateY(-3px); }
  .final-cta { min-height: 520px; }
}

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