/* ============================================================
   PangziServer · home — atmospheric, no content, no actions
   ============================================================ */

:root {
  --bg:        #05060c;
  --bg-2:      #090c16;
  --line:      rgba(255, 255, 255, 0.09);
  --text:      #e7eefb;
  --muted:     #8b94a8;
  --muted-2:   #5d6478;
  --accent:    #22d3ee;
  --accent-2:  #818cf8;
  --glow:      rgba(34, 211, 238, 0.45);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono",
               "Roboto Mono", Consolas, monospace;

  --gut: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
.mono { font-family: var(--font-mono); letter-spacing: 0.04em; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: clamp(16px, 3vh, 28px) var(--gut);
  background: linear-gradient(180deg, var(--bg) 40%, transparent);
  display: flex; justify-content: flex-end; align-items: center;
  pointer-events: none;
}
.nav__list {
  list-style: none;
  display: flex; align-items: center; gap: clamp(22px, 4vw, 42px);
  pointer-events: auto;
}
.nav__link {
  font-size: 13px; color: var(--muted); text-decoration: none;
  text-transform: uppercase; letter-spacing: 0.12em;
  transition: color .25s;
}
.nav__link:hover,
.nav__link.is-active { color: var(--accent); }
.nav__ext {
  font-size: 11px; display: inline-block; margin-left: 2px;
  opacity: 0.5;
}

/* hamburger */
.nav__toggle {
  display: none;
  pointer-events: auto;
  background: none; border: none; cursor: pointer;
  width: 26px; height: 20px; position: relative; z-index: 110;
  flex-direction: column; justify-content: space-between;
}
.nav__toggle span {
  display: block; height: 2px; background: var(--muted);
  border-radius: 1px; transition: all .3s;
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 640px) {
  .nav { justify-content: flex-end; }
  .nav__toggle { display: flex; }
  .nav__list {
    position: fixed; top: 0; right: 0; bottom: 0; left: 0;
    flex-direction: column; justify-content: center; align-items: center; gap: 32px;
    background: rgba(5, 6, 12, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    pointer-events: auto;
    opacity: 0; visibility: hidden;
    transition: opacity .35s, visibility .35s;
  }
  .nav__list.is-open { opacity: 1; visibility: visible; }
  .nav__link { font-size: 16px; }
  .nav__ext { font-size: 13px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(34,211,238,0.10), transparent 60%),
    radial-gradient(90% 70% at 85% 110%, rgba(129,140,248,0.12), transparent 60%),
    var(--bg);
}
#fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hero__grid {
  position: absolute; inset: 0; z-index: 0; opacity: 0.5;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 50% 45%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 45%, #000 30%, transparent 80%);
}
.hero__inner { position: relative; z-index: 3; width: 100%; padding-inline: var(--gut); }

.hero__mark {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; color: var(--muted);
  margin-bottom: clamp(28px, 5vh, 48px);
}
.hero__mark img { width: 26px; height: 26px; filter: drop-shadow(0 0 10px var(--glow)); }

.hero__title {
  font-size: clamp(44px, 10vw, 128px); line-height: 0.98; font-weight: 800;
  letter-spacing: -0.03em; max-width: 14ch;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero__sub {
  font-size: clamp(15px, 1.7vw, 20px); color: var(--muted);
  max-width: 40ch; margin-top: clamp(24px, 4vh, 38px);
}

/* floating orb (dream.svg) */
.hero__orb {
  position: absolute; right: clamp(-8%, -12vw, 4%); bottom: -10%;
  width: clamp(360px, 52vw, 720px); z-index: 2;
  pointer-events: none; opacity: 0.92;
  animation: float 9s ease-in-out infinite;
}
.hero__orb img { width: 100%; filter: drop-shadow(0 0 80px rgba(34,211,238,0.22)); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }

@media (max-width: 880px) {
  .hero__orb { opacity: 0.32; right: -22%; bottom: -18%; }
}

/* ---------- atmosphere ---------- */
.atmos {
  position: relative; padding: clamp(90px, 16vh, 180px) var(--gut);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  border-top: 1px solid var(--line);
}
.atmos__line {
  width: 1px; height: 64px;
  background: linear-gradient(var(--accent), transparent);
  margin-bottom: clamp(36px, 6vh, 64px);
}
.atmos__quote {
  font-size: clamp(20px, 3.4vw, 40px); font-weight: 300;
  letter-spacing: 0.02em; line-height: 1.4; max-width: 20ch;
}
.atmos__quote .mono {
  display: block; font-size: 12px; color: var(--muted-2);
  margin-bottom: 22px; letter-spacing: 0.18em;
}

/* ---------- footer ---------- */
.foot {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 32px var(--gut); border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted-2);
}
.foot__dot { opacity: 0.6; }

/* ---------- scroll reveal ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(30px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero__orb { animation: none; }
  [data-reveal] { opacity: 1; transform: none; }
}
