:root {

  --bg: #000000;
  --bg-elev: #0a0712;
  --bg-elev-2: #120a1f;
  --bg-glass: rgba(18, 10, 31, 0.55);

  --primary: #8000ff;
  --primary-bright: #a259ff;
  --primary-dim: rgba(128, 0, 255, 0.14);
  --primary-faint: rgba(128, 0, 255, 0.07);

  --text: #f3f0f8;
  --text-muted: #9b93a8;
  --text-faint: #6b6478;

  --border: rgba(128, 0, 255, 0.16);
  --border-soft: rgba(255, 255, 255, 0.07);
  --hairline: rgba(255, 255, 255, 0.045);

  --ok: #5be39a;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Host Grotesk", "Space Grotesk", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SFMono-Regular", monospace;

  --pad: 1.25rem;
  --maxw: 1600px;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; }
::selection { background: var(--primary); color: #fff; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--primary-bright); outline-offset: 3px; border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }

* { scrollbar-width: thin; scrollbar-color: var(--primary-dim) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--primary-dim); border-radius: 99px; border: 3px solid var(--bg); }
*::-webkit-scrollbar-thumb:hover { background: var(--primary); }

.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary-bright);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow .dot { color: var(--text-faint); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.04; letter-spacing: -0.02em; }
.display {
  font-size: clamp(2.05rem, 7.4vw, 5.4rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.98;
  overflow-wrap: break-word;
}
.h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); letter-spacing: -0.03em; }
.h3 { font-size: clamp(1.15rem, 1.8vw, 1.45rem); }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.28rem); color: var(--text-muted); line-height: 1.55; }
.mono { font-family: var(--font-mono); }

.btn {
  --bh: 2.9rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  height: var(--bh); padding-inline: 1.3rem;
  font-family: var(--font-display); font-weight: 500; font-size: 0.95rem;
  letter-spacing: -0.01em;
  border-radius: 99px;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.35s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn svg { width: 1.05em; height: 1.05em; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06) inset, 0 6px 20px -10px rgba(128,0,255,0.45);
}
.btn-primary:hover { background: var(--primary-bright); box-shadow: 0 0 0 1px rgba(255,255,255,0.1) inset, 0 10px 28px -12px rgba(128,0,255,0.55); transform: translateY(-2px); }

.btn-ghost {
  background: rgba(255,255,255,0.02);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--primary-faint); border-color: var(--primary); transform: translateY(-2px); }

.btn-sm { --bh: 2.4rem; font-size: 0.86rem; padding-inline: 1rem; }
.btn-block { width: 100%; }

.pill {
  display: inline-flex; align-items: center; gap: 0.45em;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.32em 0.7em;
  border: 1px solid var(--border-soft);
  border-radius: 99px;
  background: rgba(255,255,255,0.015);
}
.pill .led { width: 6px; height: 6px; border-radius: 99px; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.pill.violet { color: var(--primary-bright); border-color: var(--border); }
.pill.violet .led { background: var(--primary-bright); box-shadow: 0 0 8px var(--primary-bright); }

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 3, 9, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  height: 4.6rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand img { width: 1.85rem; height: 1.85rem; }
.brand .wordmark {
  font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; letter-spacing: -0.03em;
}
.nav-links { display: flex; align-items: center; gap: 0.4rem; }
.nav-links a {
  font-size: 0.92rem; color: var(--text-muted);
  padding: 0.5rem 0.85rem; border-radius: 99px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-cta { display: flex; align-items: center; gap: 0.7rem; }

.nav-toggle { display: none; width: 2.6rem; height: 2.6rem; border-radius: 10px; border: 1px solid var(--border-soft); align-items: center; justify-content: center; }
.nav-toggle svg { width: 1.3rem; height: 1.3rem; stroke: var(--text); }

.avatar {
  width: 2.1rem; height: 2.1rem; border-radius: 99px; object-fit: cover;
  border: 1px solid var(--border); background: var(--bg-elev-2);
}

.footer {
  border-top: 1px solid var(--hairline);
  margin-top: 6rem;
  padding-block: 4rem 3rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem;
}
.footer .brand { margin-bottom: 1rem; }
.footer-tag { color: var(--text-muted); font-size: 0.92rem; max-width: 28ch; }
.footer h5 { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 1.1rem; font-weight: 400; }
.footer-col a { display: block; color: var(--text-muted); font-size: 0.92rem; padding: 0.32rem 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--primary-bright); }
.footer-bottom {
  margin-top: 3.5rem; padding-top: 1.6rem; border-top: 1px solid var(--hairline);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-faint); letter-spacing: 0.04em;
}

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(3, 1, 7, 0.92);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  display: flex; flex-direction: column; justify-content: center; gap: 0.5rem;
  padding: var(--pad);
  opacity: 0; pointer-events: none; transform: translateY(-8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; transform: none; }
.mobile-menu a { font-family: var(--font-display); font-size: 1.8rem; color: var(--text); padding: 0.6rem 0; border-bottom: 1px solid var(--hairline); }
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu .btn { margin-top: 1.5rem; }

@media (min-width: 560px)  { :root { --pad: 2rem; } }
@media (min-width: 900px)  { :root { --pad: clamp(3rem, 7vw, 5rem); } }
@media (min-width: 1100px) { :root { --pad: clamp(4rem, 11vw, 10rem); } }

@media (max-width: 1000px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col.wide { grid-column: 1 / -1; }
}

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