:root {
  color-scheme: dark;
  --bg: #050816;
  --ink: #f4f7ff;
  --dim: #9ba8bd;
  --muted: rgba(148, 163, 184, .12);
  --ring: rgba(113, 153, 255, .22);
  --g-900: #eaf0ff;
  --g-800: #d8e4ff;
  --g-700: #7ddfd0;
  --g-600: #55d6be;
  --g-500: #63a6ff;
  --g-400: #8ab8ff;
  --g-300: #94f0e1;
  --g-50: #0a1022;
  --surface: rgba(12, 18, 36, .78);
  --surface-solid: #0c1224;
  --surface-raised: #121b33;
  --line: rgba(148, 163, 184, .16);
  --glow: 0 24px 80px rgba(26, 72, 160, .22);
  --sh-1: 0 12px 32px rgba(0, 0, 0, .24);
  --sh-2: 0 28px 70px rgba(0, 0, 0, .38);
  --r-xl: 28px;
  --r-lg: 22px;
}

html { scroll-behavior: smooth; background: var(--bg); }
html body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 5%, rgba(48, 98, 210, .18), transparent 28rem),
    radial-gradient(circle at 86% 22%, rgba(46, 211, 183, .11), transparent 30rem),
    linear-gradient(180deg, #050816 0%, #070b18 42%, #050711 100%);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
}
html body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .18;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}
body ::selection { background: rgba(85, 214, 190, .32); color: #fff; }
body a { color: #91e8d9; }
body .muted, body .side-text { color: var(--dim); }

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  z-index: 120;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, #54d7be, #63a6ff, #af7cff);
  box-shadow: 0 0 18px rgba(99, 166, 255, .72);
}

body .site-header {
  background: rgba(5, 8, 22, .72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(22px) saturate(145%);
  box-shadow: 0 10px 36px rgba(0,0,0,.18);
}
body .nav { height: 78px; }
body .site-header .logo-img {
  max-height: 52px;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.35));
  transition: transform .35s ease, filter .35s ease;
}
body .site-header .brand:hover .logo-img { transform: translateY(-2px) scale(1.025); filter: drop-shadow(0 12px 25px rgba(80,150,255,.24)); }
body .nav-link {
  position: relative;
  color: #dbe5f6;
  padding: 10px 14px;
  border-radius: 999px;
  transition: color .25s ease, background .25s ease, transform .25s ease;
}
body .nav-link::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #55d6be, #72a9ff);
  transform: scaleX(0);
  transition: transform .25s ease;
}
body .nav-link:hover, body .nav-link.active { color: #fff; background: rgba(125, 223, 208, .09); transform: translateY(-1px); }
body .nav-link:hover::after, body .nav-link.active::after { transform: scaleX(1); }
body .nav-toggle, body .drawer-close { color: #f5f7ff; }
body .nav-drawer {
  background:
    radial-gradient(circle at 70% 15%, rgba(86, 167, 255, .2), transparent 22rem),
    linear-gradient(155deg, #080d1d, #050711);
}
body .drawer-link { color: #eef4ff; transition: color .2s ease, transform .2s ease; }
body .drawer-link:hover { color: #7ddfd0; transform: translateX(6px); }
body .nav-scrim { background: rgba(0,0,0,.72); backdrop-filter: blur(5px); }

body #home.hero {
  position: relative;
  isolation: isolate;
  padding: 78px 0 52px;
  overflow: hidden;
}
body #home.hero::before, body #home.hero::after {
  content: "";
  position: absolute;
  width: 34rem;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .2;
  z-index: -1;
  animation: ambient-drift 11s ease-in-out infinite alternate;
}
body #home.hero::before { left: -14rem; top: -18rem; background: #2867e8; }
body #home.hero::after { right: -18rem; bottom: -20rem; background: #2ed3b7; animation-delay: -5s; }
body .hero-stage {
  position: relative;
  padding: clamp(32px, 6vw, 72px);
  border: 1px solid var(--line);
  border-radius: 36px;
  background: linear-gradient(145deg, rgba(18,27,51,.82), rgba(8,13,29,.55));
  box-shadow: var(--glow), inset 0 1px 0 rgba(255,255,255,.06);
  overflow: hidden;
}
body .hero-stage::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(130deg, rgba(126,232,214,.55), transparent 35%, rgba(99,166,255,.42));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
body .hero-logo { display: block; width: min(82%, 920px); margin: auto; filter: drop-shadow(0 24px 45px rgba(0,0,0,.4)); animation: logo-float 6s ease-in-out infinite; }

body .welcome-section {
  padding: 52px 0;
  background: linear-gradient(90deg, rgba(12,18,36,.15), rgba(31,61,112,.22), rgba(12,18,36,.15));
  border-block: 1px solid var(--line);
}
body .welcome-message {
  max-width: 980px;
  margin: auto;
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(1.35rem, 2.6vw, 2.25rem);
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -.025em;
  color: #f7f9ff;
  text-wrap: balance;
  background: linear-gradient(110deg, #fff 20%, #bcd2ff 55%, #75e4d2 88%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body .section { padding: 84px 0; }
body .ad-banner-container { padding: 14px; border-radius: 20px; border: 1px solid var(--line); background: rgba(12,18,36,.62); box-shadow: var(--sh-1); }
body .ad-banner-image { border-radius: 12px; }
body .video-shell { border: 1px solid var(--line); box-shadow: var(--sh-2); background: #080c18; }

body .news-kicker {
  color: #72e2d0;
  letter-spacing: .18em;
  text-shadow: 0 0 24px rgba(85,214,190,.25);
}
body .news-section-title { color: #b9c4d6; font-size: clamp(1.55rem, 3vw, 2.5rem); letter-spacing: -.025em; }
body .news-card-item {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(155deg, rgba(20,30,57,.96), rgba(9,14,30,.96));
  box-shadow: 0 16px 45px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.04);
  overflow: hidden;
  transform: translateZ(0);
  transition: transform .42s cubic-bezier(.2,.8,.2,1), border-color .35s ease, box-shadow .42s ease;
}
body .news-card-item::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 35%, rgba(255,255,255,.09), transparent 65%);
  transform: translateX(-120%);
  transition: transform .7s ease;
}
body .news-card-item:hover { transform: translateY(-10px); border-color: rgba(125,223,208,.42); box-shadow: 0 28px 70px rgba(0,0,0,.38), 0 0 45px rgba(52,121,220,.12); }
body .news-card-item:hover::after { transform: translateX(120%); }
body .news-card-image { transition: transform .7s cubic-bezier(.2,.8,.2,1), filter .4s ease; filter: saturate(.9) contrast(1.03); }
body .news-card-item:hover .news-card-image { transform: scale(1.055); filter: saturate(1.08) contrast(1.05); }
body .news-card-content { position: relative; background: linear-gradient(180deg, rgba(18,27,51,.3), rgba(8,13,28,.9)); }
body .news-card-title { color: #f5f8ff; letter-spacing: -.018em; }
body .news-card-summary { color: #9eabc0; }
body .news-card-date { color: #6ee0cd; }

body .btn {
  border: 1px solid var(--line);
  color: #eef4ff;
  background: rgba(16,24,45,.88);
  box-shadow: 0 10px 26px rgba(0,0,0,.2);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease, background .28s ease;
}
body .btn:hover { color: #fff; transform: translateY(-3px); border-color: rgba(125,223,208,.45); box-shadow: 0 18px 38px rgba(0,0,0,.3); }
body .btn.primary {
  color: #03110e;
  border: 0;
  background: linear-gradient(115deg, #55d6be, #73e6cf 45%, #66a8ff 120%);
  box-shadow: 0 16px 40px rgba(65,188,171,.22);
}
body .btn.primary:hover { background: linear-gradient(115deg, #6fe5d0, #8bf0dc 45%, #79b5ff 120%); box-shadow: 0 22px 52px rgba(65,188,171,.32); }

body .brand-stage {
  width: min(1120px, calc(100% - 40px));
  margin: 32px auto -28px;
  padding: 32px;
  display: flex;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(18,27,51,.68), rgba(8,13,29,.48));
  box-shadow: var(--sh-1), inset 0 1px 0 rgba(255,255,255,.05);
}
body .brand-stage img { max-height: 150px; width: auto; max-width: min(78%, 760px); object-fit: contain; filter: drop-shadow(0 14px 24px rgba(0,0,0,.32)); }
body .brand-stage--light { background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(232,238,250,.94)); }

body .side-block {
  background: linear-gradient(155deg, rgba(17,26,50,.93), rgba(8,13,28,.9));
  border: 1px solid var(--line);
  box-shadow: var(--sh-1), inset 0 1px 0 rgba(255,255,255,.045);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
body .side-block:hover { transform: translateY(-4px); border-color: rgba(99,166,255,.32); box-shadow: var(--sh-2); }
body .side-title { color: #f1f5ff; font-size: 1.08rem; }
body .releases::before { background: linear-gradient(#111a32, transparent); }
body .releases::after { background: linear-gradient(transparent, #0a1022); }
body .release-card {
  background: rgba(7,12,26,.78);
  border-color: var(--line);
  box-shadow: none;
  transition: transform .3s ease, background .3s ease, border-color .3s ease;
}
body .release-card:hover { transform: translateX(5px); background: rgba(23,36,67,.88); border-color: rgba(125,223,208,.36); box-shadow: 0 12px 28px rgba(0,0,0,.24); }
body .release-title { color: #dce6f7; }
body .release-thumb { background: #11192d; box-shadow: inset 0 0 0 2px rgba(125,223,208,.28); }
body .releases::-webkit-scrollbar-track { background: #091020; }
body .releases::-webkit-scrollbar-thumb { background: linear-gradient(#55d6be,#5f93ec); border-color: #091020; }

body .mag-pane {
  background: linear-gradient(145deg, #0c1328, #070b17);
  border: 1px solid rgba(119,155,222,.22);
  box-shadow: var(--sh-2), 0 0 70px rgba(35,86,176,.11), inset 0 1px 0 rgba(255,255,255,.04);
}
body .mag-empty { background: radial-gradient(circle at 50% 35%, rgba(53,105,204,.18), transparent 55%); }
body .focused-view-overlay { background: rgba(1,3,10,.84); backdrop-filter: blur(12px); }
body .exit-focus-btn { background: rgba(6,10,22,.86); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(12px); }

body .hero-only-card {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #f8fafc;
  box-shadow: var(--sh-2);
}
body .releases-modal { background: rgba(1,3,10,.82); backdrop-filter: blur(14px); }
body .releases-modal-content { background: #0b1225; border: 1px solid var(--line); box-shadow: var(--sh-2); }
body .close-btn { color: #fff; background: #141d35; border-color: var(--line); }

body .footer-dark {
  background: linear-gradient(180deg, rgba(8,12,25,.6), #03050c);
  color: #9eabc0;
  border-top: 1px solid var(--line);
}
body .foot { padding-block: 30px; }
body .credit a { color: #73e0cf; }

body .article-header {
  background: rgba(5,8,22,.78);
  border-color: var(--line);
  backdrop-filter: blur(22px) saturate(145%);
  box-shadow: 0 12px 36px rgba(0,0,0,.2);
}
body .article-menu a { color: #dbe5f6; transition: color .25s ease, transform .25s ease; }
body .article-menu a:hover { color: #75e3d1; transform: translateY(-2px); }
body .article-shell { max-width: 980px; }
body .back-link { color: #75e3d1; transition: transform .25s ease, color .25s ease; }
body .back-link:hover { color: #a0f4e6; transform: translateX(-5px); }
body .article-title {
  color: #f7f9ff;
  text-wrap: balance;
  background: linear-gradient(110deg, #fff 15%, #c6d8ff 58%, #7ce4d3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
body .article-summary { color: #a4b0c4; }
body .article-date { color: #6edfcf; }
body .article-image { border-radius: 28px; border: 1px solid var(--line); box-shadow: var(--sh-2); }
body .article-body { color: #c6d0df; }

.motion-ready .reveal-item {
  opacity: 0;
  transform: translateY(34px) scale(.985);
  transition: opacity .75s ease, transform .85s cubic-bezier(.2,.8,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
}
.motion-ready .reveal-item.is-visible { opacity: 1; transform: none; }

@keyframes ambient-drift { to { transform: translate3d(6rem, 3rem, 0) scale(1.12); } }
@keyframes logo-float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

@media (max-width: 980px) {
  body .nav { height: 68px; }
  body #home.hero { padding: 48px 0 32px; }
  body .hero-stage { border-radius: 24px; padding: 28px 18px; }
  body .hero-logo { width: min(92%, 760px); }
  body .section { padding: 58px 0; }
  body .brand-stage { margin-top: 18px; padding: 24px 16px; border-radius: 22px; }
  body .mag-pane { border-radius: 20px; }
}

@media (max-width: 600px) {
  body .container { padding-inline: 16px; }
  body #home.hero { padding-top: 30px; }
  body .hero-stage { border-radius: 20px; }
  body .welcome-section { padding: 38px 0; }
  body .welcome-message { font-size: 1.35rem; }
  body .news-card-item { border-radius: 20px; }
  body .brand-stage { width: calc(100% - 32px); margin-bottom: -18px; }
  body .brand-stage img { max-width: 92%; }
}

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