/* glacion.lol */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
html[lang="zh"] body { font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* hero title, split into lines by main.js */
.ln { display: block; overflow: clip; overflow-clip-margin: 0.12em; padding-bottom: 0.04em; }
.ln-in { display: inline-block; will-change: transform; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

:root {
  --bg: #000;
  --ink: #f5f5f7;
  --muted: #86868b;
  --ice: #66bef2;
  --lilac: #b7a8ff;
  --glass: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.1);
}
body { background: var(--bg); color: var(--ink); font-size: 17px; line-height: 1.6; }

/* floating pill header */
.p-bar {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 50;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(1080px, calc(100% - 24px));
  padding: 8px 8px 8px 14px;
  border-radius: 999px;
  background: rgba(22, 22, 24, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  overflow: hidden;
  font-size: 14px;
}
.p-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; text-decoration: none; }
.p-brand img { border-radius: 50%; }
.p-nav { position: relative; display: flex; gap: 2px; margin-left: auto; }
.p-nav a { position: relative; z-index: 1; padding: 7px 12px; border-radius: 999px; color: #f5f5f7; opacity: 0.72; text-decoration: none; transition: opacity 0.3s; }
.p-nav a:hover, .p-nav a.is-active { opacity: 1; }
.p-nav-pill { position: absolute; left: 0; top: 0; height: 100%; width: 0; border-radius: 999px; background: rgba(102, 190, 242, 0.2); opacity: 0; }
.p-cta { padding: 9px 16px; border-radius: 999px; background: var(--ice); color: #04263b; font-weight: 600; text-decoration: none; }
.p-progress { position: absolute; left: 28px; right: 28px; bottom: 0; height: 2px; }
.p-progress i { display: block; height: 100%; border-radius: 2px; background: var(--ice); transform-origin: 0 50%; transform: scaleX(0); }
@media (max-width: 860px) { .p-nav { display: none; } .p-cta { margin-left: auto; } }

.p-eyebrow {
  margin-bottom: 14px;
  background: linear-gradient(90deg, var(--ice), var(--lilac));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.05rem;
  font-weight: 600;
}
h1, h2 { letter-spacing: -0.045em; font-weight: 700; }
h2 { font-size: clamp(2.6rem, 6.6vw, 5.8rem); line-height: 1.02; }
.p-grad { background: linear-gradient(180deg, #fff 30%, #9aa3ad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.08em; }
.p-sub { max-width: 38em; margin-top: 18px; color: var(--muted); font-size: 1.2rem; }
.p-wrap { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }
.p-center { text-align: center; }
.p-center .p-sub { margin-inline: auto; }
.p-note { margin-top: 26px; color: var(--muted); font-size: 0.92rem; }
.p-sec { padding: 20vh 0 12vh; }

.p-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s, transform 0.3s;
}
.p-btn:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); }
.p-btn-solid { background: var(--ink); border-color: var(--ink); color: #000; }
.p-btn-solid:hover { background: #fff; box-shadow: 0 0 40px rgba(102, 190, 242, 0.5); }

/* hero: giant word + pointer glow; it sinks back as the next chapter covers it */
.p-hero { position: relative; height: 100vh; height: 100svh; }
.p-hero-card {
  position: relative;
  height: 100%;
  overflow: hidden;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--bg);
  transform-origin: 50% 30%;
  will-change: transform;
}
.p-glow {
  position: absolute;
  left: 50%;
  top: 45%;
  z-index: 1;
  width: 64vmax;
  height: 64vmax;
  margin: -32vmax 0 0 -32vmax;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(102, 190, 242, 0.3), rgba(143, 140, 245, 0.12) 55%, transparent);
  filter: blur(24px);
  pointer-events: none;
  will-change: transform;
}
.p-giant {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 27vw;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  white-space: nowrap;
  background: linear-gradient(180deg, rgba(102, 190, 242, 0.3), rgba(102, 190, 242, 0.02));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
  pointer-events: none;
}
.p-hero-copy { position: relative; z-index: 2; padding: 0 20px; }
.p-hero h1 { max-width: 13em; margin: 0 auto 22px; font-size: clamp(2.8rem, 8vw, 7rem); line-height: 1; }
.p-hero h1 .ln:first-child .ln-in { background: linear-gradient(180deg, #fff, #b9c2cc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.p-hero h1 .ln:last-child .ln-in {
  padding-bottom: 0.06em;
  background: linear-gradient(90deg, #66bef2, #c9e9ff 30%, #a9a6ff 55%, #66bef2 80%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: p-sheen 7s linear infinite;
}
@keyframes p-sheen { to { background-position: -200% 0; } }
.p-lead { max-width: 30em; margin: 0 auto 32px; color: var(--muted); font-size: 1.25rem; }
.p-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.p-scrollhint { position: absolute; bottom: 32px; left: 50%; z-index: 2; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255, 255, 255, 0.3); border-radius: 14px; }
.p-scrollhint span { position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: p-hint 1.6s ease-in-out infinite; }
@keyframes p-hint { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* the chapter after the hero covers it */
#vdma { position: relative; z-index: 2; background: var(--bg); }
.p-head { max-width: 900px; }
.p-head .p-sub { font-size: 1.25rem; }

/* vDMA bento grid */
.p-bento-sec { padding: 20vh 0 12vh; }
.p-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(320px, auto);
  gap: 16px;
  margin-top: 8vh;
  perspective: 1400px;
}
.p-bx {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  border-radius: 28px;
  background: linear-gradient(180deg, #111215, #0a0a0c);
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}
.p-bx-wide { grid-column: span 2; }
.p-bx::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 1px;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, -999px) var(--my, -999px), rgba(102, 190, 242, 0.95), rgba(183, 168, 255, 0.4) 20%, transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.p-bx::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(520px circle at var(--mx, -999px) var(--my, -999px), rgba(102, 190, 242, 0.09), transparent 45%);
  pointer-events: none;
}
.p-bx-n { margin-bottom: 8px; color: var(--ice); font-size: 0.95rem; font-weight: 600; }
.p-bx h3 { margin: 0 0 8px; font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.05; letter-spacing: -0.035em; }
.p-bx p { max-width: 26em; color: var(--muted); }
.p-bx-art { position: relative; flex: 1; min-height: 150px; margin-bottom: 26px; }
.p-bx-art i { position: absolute; display: block; font-style: normal; }

.art-nocard .hw { left: 50%; top: 50%; width: 62%; height: 52%; transform: translate(-50%, -50%) rotate(-6deg); transition: opacity 0.6s 1.1s; animation: p-float 5s ease-in-out infinite; }
.art-nocard .board { inset: 0 0 24% 0; border-radius: 8px; border: 1.5px dashed rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.04); }
.art-nocard .board::before { content: ""; position: absolute; left: 32%; top: 24%; width: 30%; height: 44%; border-radius: 4px; background: rgba(255, 255, 255, 0.2); }
.art-nocard .pins { left: 10%; right: 34%; bottom: 0; height: 24%; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.45) 0 3px, transparent 3px 6px); }
.art-nocard .strike { left: 14%; right: 14%; top: 50%; height: 3px; border-radius: 3px; background: #ff6b7a; box-shadow: 0 0 14px rgba(255, 107, 122, 0.8); transform: rotate(-24deg) scaleX(0); transition: transform 0.45s ease-out 0.5s; }
.is-in .art-nocard .strike { transform: rotate(-24deg) scaleX(1); }
.is-in .art-nocard .hw { opacity: 0.35; }
@keyframes p-float { 50% { margin-top: -8px; } }

.art-tiers { display: flex; align-items: flex-end; gap: 14px; padding: 0 4%; }
.p-bx-art.art-tiers .bar { position: relative; flex: 1; border-radius: 14px; transform: scaleY(0); transform-origin: 50% 100%; transition: transform 1s cubic-bezier(0.2, 1.2, 0.3, 1); }
.art-tiers .bar span { position: absolute; left: 14px; top: 12px; font-size: 13px; font-weight: 600; }
.art-tiers .bar.a { height: 46%; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); }
.art-tiers .bar.b { height: 88%; background: linear-gradient(180deg, rgba(102, 190, 242, 0.45), rgba(183, 168, 255, 0.15)); border: 1px solid rgba(102, 190, 242, 0.6); box-shadow: 0 0 50px rgba(102, 190, 242, 0.3); transition-delay: 0.2s; }
.is-in .art-tiers .bar { transform: scaleY(1); }

.p-bx-note { justify-content: center; background: linear-gradient(150deg, rgba(102, 190, 242, 0.16), rgba(183, 168, 255, 0.08) 45%, #0a0a0c); }
.p-bx-note p { position: relative; z-index: 1; max-width: 22em; color: var(--ink); font-size: clamp(1.5rem, 2.8vw, 2.4rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.025em; }
.p-orb { position: absolute; right: -10%; top: -40%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(from 0deg, var(--ice), var(--lilac), #4fd6c8, var(--ice)); filter: blur(70px); opacity: 0.35; animation: p-orb 14s linear infinite; }
@keyframes p-orb { to { transform: rotate(360deg); } }

@media (max-width: 860px) {
  .p-bento { grid-template-columns: 1fr; }
  .p-bx-wide { grid-column: auto; }
}

/* showcases */
.p-videos { display: grid; gap: 8vh; width: min(1180px, calc(100% - 32px)); margin: 8vh auto 0; }
.p-video { margin: 0; }
.p-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  overflow: hidden;
  background: #0b0b0d;
  box-shadow: 0 0 0 1px var(--line), 0 50px 140px rgba(102, 190, 242, 0.16);
}
.p-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.p-video figcaption { display: flex; gap: 12px; align-items: baseline; margin-top: 16px; font-size: 1.05rem; }
.p-video figcaption span { color: var(--ice); }

/* pricing */
.p-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px; text-align: left; }
.p-plan { display: flex; flex-direction: column; padding: 34px; border-radius: 30px; background: linear-gradient(180deg, #111215, #0a0a0c); border: 1px solid var(--line); }
.p-plan-plus { position: relative; border-color: transparent; background: linear-gradient(#0d0e11, #0d0e11) padding-box, linear-gradient(140deg, var(--ice), var(--lilac) 50%, rgba(255, 255, 255, 0.1)) border-box; box-shadow: 0 30px 100px rgba(102, 190, 242, 0.18); }
.p-tier { color: var(--ice); font-size: 14px; font-weight: 600; }
.p-plan h3 { margin: 4px 0 6px; font-size: 2.2rem; letter-spacing: -0.03em; }
.p-cap, .p-fee { color: var(--muted); font-size: 0.95rem; }
.p-prices { display: flex; gap: 28px; margin: 26px 0 10px; }
.p-prices span { display: block; color: var(--muted); font-size: 0.9rem; }
.p-prices strong { font-size: 3.6rem; line-height: 1; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.p-plan-plus .p-prices strong { background: linear-gradient(90deg, #fff, var(--ice)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.p-plan ul { margin: 22px 0 28px; display: grid; gap: 9px; }
.p-plan li { position: relative; padding-left: 24px; color: #d2d2d7; }
.p-plan li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(var(--ice), var(--lilac)); }
.p-plan .p-btn { margin-top: auto; }
@media (max-width: 760px) { .p-plans { grid-template-columns: 1fr; } }

/* faq */
.p-faq-wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 6vw; align-items: start; }
.p-faq-head { position: sticky; top: 120px; }
.p-faq details { border-bottom: 1px solid var(--line); }
.p-faq summary { display: flex; justify-content: space-between; gap: 18px; padding: 24px 0; font-size: 1.25rem; font-weight: 600; cursor: pointer; list-style: none; }
.p-faq summary::-webkit-details-marker { display: none; }
.p-faq summary::after { content: "+"; color: var(--ice); transition: transform 0.3s; }
.p-faq details[open] summary::after { transform: rotate(45deg); }
.p-faq details p { margin: 0; padding-bottom: 24px; color: var(--muted); }
@media (max-width: 760px) { .p-faq-wrap { grid-template-columns: 1fr; } .p-faq-head { position: static; } }

.p-footer { padding: 60px 0 130px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.p-footer p + p { margin-top: 8px; }
.p-foot-brand { color: var(--ink); font-weight: 700; font-size: 1.1rem; }
.p-legal { font-size: 0.8rem; }

/* secondary device: particle canvas */
.p-bx-art.p-particles { min-height: 280px; }
.p-particles canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }

/* anti-cheats: tier tags */
.t-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.t-tags em { padding: 4px 9px; border-radius: 999px; background: rgba(102, 190, 242, 0.16); color: var(--ice); font-size: 11px; font-style: normal; font-weight: 600; white-space: nowrap; }
.t-tags em::before { content: "\2713  "; }
.t-tags em.off { background: rgba(255, 255, 255, 0.06); color: var(--muted); text-decoration: line-through; }
.t-tags em.off::before { content: "\2715  "; }

/* anti-cheats: tiles that assemble into a grid */
.pz { position: relative; margin-top: 48px; perspective: 1400px; }
.pz-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; transform-style: preserve-3d; }
.pz-tile { transform-style: preserve-3d; will-change: transform; }
.pz-in {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 190px;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(170deg, #15171b, #0a0a0c);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.pz-in:hover { border-color: rgba(102, 190, 242, 0.5); box-shadow: 0 0 40px rgba(102, 190, 242, 0.2); }
.pz-code { font-size: 2.2rem; font-weight: 800; line-height: 1; letter-spacing: -0.045em; }
.pz-in strong { font-size: 1rem; line-height: 1.25; color: #d2d2d7; }
.pz-in .t-tags { margin-top: auto; }
.pz-tile.hot .pz-in { border-color: transparent; background: linear-gradient(#0f1013, #0f1013) padding-box, linear-gradient(140deg, var(--lilac), var(--ice) 60%, rgba(255, 255, 255, 0.1)) border-box; box-shadow: 0 0 60px rgba(183, 168, 255, 0.25); }
.pz-tile.hot .pz-code { background: linear-gradient(90deg, #fff, var(--lilac)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pz-tile.hot small { color: var(--lilac); font-size: 0.8rem; }
.pz-clip { position: absolute; inset: 0; display: block; overflow: hidden; border-radius: 22px; pointer-events: none; }
.pz-sweep { position: absolute; display: block; top: 0; bottom: 0; left: 0; width: 30%; background: linear-gradient(100deg, transparent, rgba(215, 240, 255, 0.14), transparent); transform: translateX(-120%) skewX(-12deg); pointer-events: none; }
@media (max-width: 760px) {
  .pz-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pz-in { min-height: 150px; padding: 16px; }
  .pz-code { font-size: 1.7rem; }
  .pz-in strong { font-size: 0.88rem; }
}

/* language switcher */
.lang-dock {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: flex;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(22, 22, 24, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 13px;
  font-weight: 500;
}
.lang-dock button { padding: 8px 12px; border: 0; border-radius: 999px; background: none; cursor: pointer; }
.lang-dock button:hover { background: rgba(255, 255, 255, 0.1); }
.lang-dock button[aria-pressed="true"] { background: var(--ink); color: #000; }
@media (max-width: 760px) { .lang-dock { right: 50%; transform: translateX(50%); bottom: 12px; } }

/* 404 */
.p-missing { display: grid; place-content: center; justify-items: center; gap: 22px; min-height: 100vh; min-height: 100svh; padding: 24px; text-align: center; background: radial-gradient(60vmax 60vmax at 50% 40%, rgba(102, 190, 242, 0.16), transparent 70%), var(--bg); }
.p-missing h1 { font-size: clamp(2.4rem, 7vw, 5rem); line-height: 1.05; }

@media (prefers-reduced-motion: reduce) {
  .p-hero h1 .ln:last-child .ln-in, .p-orb, .art-nocard .hw, .p-scrollhint span { animation: none; }
  .p-bento * { transition-duration: 1ms !important; transition-delay: 0s !important; }
}
