:root {
  --bg: #07090c;
  --surface: #0e1217;
  --surface-2: #131920;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef1f4;
  --muted: #8d97a3;
  --accent: #5ef0b4;
  --accent-2: #5ab8ff;
  --accent-ink: #03150d;
  --radius: 18px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--accent); color: var(--accent-ink); }
.dim { color: var(--muted); }

.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  width: 520px;
  height: 520px;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(94, 240, 180, 0.07), transparent 65%);
  transform: translate3d(var(--gx, -999px), var(--gy, -999px), 0);
}

.top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px max(24px, calc((100vw - var(--maxw)) / 2));
  transition: background 0.3s, border-color 0.3s, padding 0.3s;
  border-bottom: 1px solid transparent;
}
.top.scrolled {
  padding-top: 12px;
  padding-bottom: 12px;
  background: rgba(7, 9, 12, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-color: var(--border);
}
.logo { display: inline-flex; align-items: center; gap: 12px; font: 500 17px var(--mono); }
.logo-mark {
  display: grid;
  grid-template-columns: repeat(2, 7px);
  gap: 3px;
}
.logo-mark i { width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
.logo-mark i:nth-child(2), .logo-mark i:nth-child(3) { opacity: 0.35; }
.logo:hover .logo-mark i { animation: blink 0.9s var(--ease); }
.logo:hover .logo-mark i:nth-child(2) { animation-delay: 0.1s; }
.logo:hover .logo-mark i:nth-child(3) { animation-delay: 0.2s; }
.logo:hover .logo-mark i:nth-child(4) { animation-delay: 0.3s; }
@keyframes blink { 50% { opacity: 1; transform: scale(1.3); } }

.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav a { color: var(--muted); transition: color 0.2s; }
.nav a:hover { color: var(--text); }
.nav .nav-cta {
  padding: 8px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text);
}

main, .foot {
  position: relative;
  z-index: 1;
}
.section, .foot {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-weight: 600;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.3s var(--ease);
}
.btn span { position: relative; z-index: 1; }
.btn-ghost:hover { border-color: var(--text); }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 0 0 rgba(94, 240, 180, 0.4), 0 10px 40px -10px rgba(94, 240, 180, 0.6);
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}
.btn-primary:hover::before { transform: translateX(120%); }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; filter: none; }

.foot {
  display: flex;
  justify-content: space-between;
  padding-top: 32px;
  padding-bottom: 44px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 760px) {
  .top { padding: 14px 16px; }
  .nav a:not(.nav-cta) { display: none; }
  .section, .foot { padding-left: 16px; padding-right: 16px; }
  .cursor-glow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
}
