:root {
  --bg: #070a0e;
  --bg-1: #0c1117;
  --bg-2: #111820;
  --bg-3: #16202c;

  --surface: rgba(255, 255, 255, 0.025);
  --surface-hover: rgba(255, 255, 255, 0.045);
  --surface-active: rgba(255, 255, 255, 0.07);

  --border: rgba(255, 255, 255, 0.07);
  --border-mid: rgba(255, 255, 255, 0.12);
  --border-hi: rgba(255, 255, 255, 0.2);

  --text: #e8edf2;
  --text-2: #8b98a8;
  /* --text-3: #536070; */
  --text-3: #8491a1;

  --lime: #8fcc44;
  --lime-dim: rgba(143, 204, 68, 0.15);
  --lime-glow: rgba(143, 204, 68, 0.35);

  --cyan: #26d9c7;
  --cyan-dim: rgba(38, 217, 199, 0.1);

  --font: "Inter", system-ui;
  --mono: "JetBrains Mono", monospace;

  --w: 1160px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t1: 0.2s var(--ease);
  --t2: 0.4s var(--ease);
  --t3: 0.7s var(--ease);
}

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

html {
  font-size: 16px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

::selection {
  background: var(--lime);
  color: #000;
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 3px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t1);
}

img,
svg {
  display: block;
  max-width: 100%;
}

.w {
  width: 100%;
  max-width: var(--w);
  margin-inline: auto;
  padding-inline: 24px;
  position: relative;
  z-index: 1;
}

.skip {
  position: absolute;
  top: -100px;
  left: 16px;
  padding: 10px 18px;
  background: var(--lime);
  color: #000;
  font-weight: 700;
  z-index: 9999;
  border-radius: 4px;
  transition: top var(--t1);
}

.skip:focus {
  top: 16px;
}

.accent {
  color: var(--lime);
}

.mono {
  font-family: var(--mono);
}

.tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lime);
  font-family: var(--mono);
}

.chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--lime-dim);
  border: 1px solid rgba(143, 204, 68, 0.3);
  color: var(--lime);
  font-family: var(--mono);
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime-glow);
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.8);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 7px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--t2);
  white-space: nowrap;
}

.btn-lime {
  background: var(--lime);
  color: #060a0d;
  font-weight: 700;
  box-shadow: 0 0 0 rgba(143, 204, 68, 0);
}

.btn-lime:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--lime-glow);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-mid);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: var(--surface-hover);
  border-color: var(--border-hi);
  transform: translateY(-2px);
}

.btn svg,
.btn img {
  flex-shrink: 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: border-color var(--t2), box-shadow var(--t2), transform var(--t2);
}

.card:hover {
  border-color: var(--border-mid);
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
}

#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--lime);
  z-index: 200;
  width: 0%;
  box-shadow: 0 0 10px var(--lime-glow);
  transition: width 80ms linear;
  transform-origin: left;
}

header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 10, 14, 0.82);
  backdrop-filter: blur(20px) saturate(1.4);
  transition: border-color var(--t2), box-shadow var(--t2);
}

header.site-header.scrolled {
  border-bottom-color: var(--border-mid);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  font-family: var(--mono);
}

.brand-mark {
  width: 30px;
  height: 30px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-2);
  padding: 6px 12px;
  border-radius: 6px;
  transition: all var(--t1);
  position: relative;
}

.nav-a:hover {
  color: var(--text);
  background: var(--surface);
}

.nav-a.on {
  color: var(--lime);
}

.nav-sep {
  width: 1px;
  height: 20px;
  background: var(--border);
  margin-inline: 8px;
}

.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px;
  cursor: pointer;
  color: var(--text-2);
  align-items: center;
  justify-content: center;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: #04060a;
  padding: 52px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--text-3);
  margin-top: 12px;
  line-height: 1.65;
  max-width: 380px;
}

.footer-col-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
  font-family: var(--mono);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 0.88rem;
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: color var(--t1);
}

.footer-link:hover {
  color: var(--lime);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-3);
  font-family: var(--mono);
  flex-wrap: wrap;
  gap: 12px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--t3), transform var(--t3);
  will-change: opacity, transform;
}

.reveal.in,
.reveal-l.in,
.reveal-r.in {
  opacity: 1;
  transform: none;
}

.reveal-l {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity var(--t3), transform var(--t3);
}

.reveal-r {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity var(--t3), transform var(--t3);
}

.delay-1 {
  transition-delay: 0.08s;
}

.delay-2 {
  transition-delay: 0.16s;
}

.delay-3 {
  transition-delay: 0.24s;
}

.delay-4 {
  transition-delay: 0.32s;
}

.delay-5 {
  transition-delay: 0.40s;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .reveal-l,
  .reveal-r {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #0c1117;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 20px 24px;
    gap: 4px;
    align-items: flex-start;
  }

  .nav.open,
  .menu-btn {
    display: flex;
  }

  .nav-sep {
    display: none;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}