/* Zeno — clean blue/black, glass UI, night-sky atmosphere */
:root {
  --bg: #050810;
  --bg-2: rgba(13, 18, 28, 0.6);
  --surface: rgba(20, 28, 42, 0.45);
  --surface-2: rgba(28, 38, 56, 0.55);
  --border: rgba(120, 160, 220, 0.12);
  --border-strong: rgba(120, 160, 220, 0.28);
  --fg: #e8eef7;
  --fg-muted: #8a99b3;
  --fg-dim: #4a5570;
  --accent: #5b9bff;
  --accent-hover: #7eb1ff;
  --accent-strong: #3b82f6;
  --accent-soft: rgba(91, 155, 255, 0.12);
  --ok: #34d399;
  --warn: #f59e0b;
  --danger: #ef4444;
  --display: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --glass-blur: blur(20px) saturate(140%);
}

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

html, body {
  background: #050810;
  color: var(--fg);
  font-family: var(--display);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

body {
  overflow-x: hidden;
  position: relative;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(91, 155, 255, 0.06), transparent 70%),
    url("assets/bg-night.png");
  background-size: cover;
  background-attachment: fixed;
  background-position: center top;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  background: linear-gradient(180deg, rgba(5,8,16,0.3) 0%, rgba(5,8,16,0.85) 60%, #050810 100%);
  z-index: 0;
  pointer-events: none;
}
#root { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* Twinkle stars overlay */
@keyframes twinkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* Nav — glass */
.nav {
  position: sticky; top: 16px; z-index: 100;
  margin: 16px auto 0;
  max-width: 1100px;
  padding: 0 20px;
}
.nav-inner {
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  background: rgba(15, 22, 36, 0.55);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 14px 10px 20px;
  display: flex; align-items: center; gap: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.04);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; letter-spacing: -0.01em;
  font-size: 15px;
}
.brand-mark {
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
}
.brand-mark img {
  width: 100%; height: 100%;
  filter: drop-shadow(0 0 8px rgba(91,155,255,0.4));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-2px) rotate(2deg); }
}
.nav-links {
  display: flex; gap: 2px;
  font-size: 13.5px;
}
.nav-links a {
  padding: 7px 14px;
  color: var(--fg-muted);
  border-radius: 100px;
  transition: all 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--fg); }
.nav-links a.active {
  color: var(--fg);
  background: rgba(91, 155, 255, 0.1);
}
.nav-right {
  margin-left: auto;
  display: flex; align-items: center; gap: 8px;
}
.nav-icon-btn {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  background: rgba(20, 28, 42, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--fg-muted);
  transition: all 0.2s;
}
.nav-icon-btn:hover {
  color: var(--fg);
  border-color: var(--accent);
  background: rgba(91, 155, 255, 0.12);
  transform: translateY(-1px);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  background: rgba(20, 28, 42, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--fg);
  transition: all 0.2s;
}
.btn:hover {
  border-color: rgba(120, 160, 220, 0.45);
  background: rgba(30, 42, 64, 0.6);
  transform: translateY(-1px);
}
.btn-primary {
  background: linear-gradient(180deg, #6ba6ff, #3b82f6);
  border: 1px solid rgba(150, 190, 255, 0.4);
  color: #fff;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #7fb3ff, #4d8ff7);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5), inset 0 1px 0 rgba(255,255,255,0.3);
}

/* Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Type */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.h-display {
  font-size: clamp(48px, 7vw, 84px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.h-section {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.muted { color: var(--fg-muted); }

/* Glass card */
.glass {
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  background: rgba(15, 22, 36, 0.45);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255,255,255,0.05);
}

/* Footer */
.footer {
  margin-top: 120px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  font-size: 13px;
  color: var(--fg-muted);
  font-family: var(--mono);
}

/* Chips */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--fg-muted);
  backdrop-filter: blur(8px);
  background: rgba(15,22,36,0.4);
}
.chip-accent { color: var(--accent); border-color: rgba(91,155,255,0.35); background: rgba(91,155,255,0.1); }
.chip-ok { color: var(--ok); border-color: rgba(52,211,153,0.3); background: rgba(52,211,153,0.08); }
.chip-warn { color: var(--warn); border-color: rgba(245,158,11,0.3); background: rgba(245,158,11,0.08); }
.chip-dot { width: 5px; height: 5px; background: currentColor; border-radius: 50%; box-shadow: 0 0 6px currentColor; }

/* Page header */
.page-head {
  padding: 96px 0 48px;
  text-align: center;
}
.page-head h1 {
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.035em;
}
.page-head p {
  margin: 16px auto 0;
  color: var(--fg-muted);
  font-size: 17px;
  max-width: 540px;
}

.mono-caption {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-muted);
}

@media (max-width: 880px) {
  .nav-links { display: none; }
}

/* Particle network background */
.particle-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Reveal-on-scroll utility */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Magnetic press feedback */
.btn:active, .nav-icon-btn:active { transform: scale(0.96); }
