
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg: #050505;
  --bg-alt: #0b0b0c;
  --panel: #0e0f10;
  --line: #1e1f21;
  --line-soft: #161718;
  --white: #f4f4f4;
  --grey: #9a9a9a;
  --grey-dim: #5c5c5c;
  --accent: #ffffff;
  --danger: #e6e6e6;
  --mono: 'JetBrains Mono', 'Courier New', monospace;
  --sans: 'Space Grotesk', 'Segoe UI', sans-serif;
  --maxw: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--sans);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.014) 0px,
    rgba(255,255,255,0.014) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
}

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

a { color: inherit; text-decoration: none; }

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

#matrix-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.16;
  pointer-events: none;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

section { position: relative; z-index: 1; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--grey);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--grey-dim);
  display: inline-block;
}

header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5,5,5,0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.12em;
}
.brand img { width: 30px; height: 30px; display: block; filter: drop-shadow(0 0 6px rgba(255,255,255,0.35)); }
.brand span.dim { color: var(--grey); font-weight: 400; }

.nav-links {
  display: flex;
  gap: 26px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.nav-links a {
  color: var(--grey);
  position: relative;
  padding: 4px 0;
  transition: color .2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--white);
}

.nav-status {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--grey-dim);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.05em;
}
.dot-live {
  width: 6px; height: 6px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px 2px rgba(255,255,255,0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.25} }

.nav-toggle { display: none; }

.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 32px 80px;
}

.hero-logo {
  width: 108px;
  height: 108px;
  margin-bottom: 34px;
  filter: drop-shadow(0 0 22px rgba(255,255,255,0.25));
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

.hero h1 {
  font-family: var(--mono);
  font-weight: 800;
  font-size: clamp(48px, 9vw, 108px);
  letter-spacing: 0.02em;
  line-height: 1;
  position: relative;
}

.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  overflow: hidden;
  color: var(--white);
  background: var(--bg);
  clip-path: inset(0 0 0 0);
}
.glitch::before {
  animation: glitchTop 4.5s infinite linear;
  text-shadow: -2px 0 rgba(255,255,255,0.7);
}
.glitch::after {
  animation: glitchBottom 4.5s infinite linear;
  text-shadow: 2px 0 rgba(255,255,255,0.5);
}
@keyframes glitchTop {
  0%, 92%, 100% { clip-path: inset(0 0 100% 0); transform: translate(0,0); }
  93% { clip-path: inset(0 0 60% 0); transform: translate(-3px,-1px); }
  95% { clip-path: inset(20% 0 30% 0); transform: translate(3px,1px); }
  97% { clip-path: inset(60% 0 5% 0); transform: translate(-2px,0); }
}
@keyframes glitchBottom {
  0%, 91%, 100% { clip-path: inset(100% 0 0 0); transform: translate(0,0); }
  93% { clip-path: inset(50% 0 20% 0); transform: translate(3px,1px); }
  96% { clip-path: inset(10% 0 65% 0); transform: translate(-3px,0); }
  98% { clip-path: inset(70% 0 2% 0); transform: translate(2px,-1px); }
}

.hero .tagline {
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--grey);
}

.hero p.lede {
  margin-top: 28px;
  max-width: 620px;
  color: var(--grey);
  font-size: 17px;
}

.cta-row {
  margin-top: 44px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 15px 30px;
  border: 1px solid var(--white);
  color: var(--white);
  transition: all .25s ease;
  cursor: pointer;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn:hover { background: var(--white); color: #000; }
.btn.ghost { border-color: var(--line); color: var(--grey); }
.btn.ghost:hover { border-color: var(--white); color: var(--white); background: transparent; }

.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
  background: var(--bg-alt);
  padding: 12px 0;
}
.ticker-track {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--grey-dim);
  animation: scrollTicker 32s linear infinite;
}
.ticker-track span { margin: 0 28px; }
@keyframes scrollTicker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.section {
  padding: 120px 0;
  border-bottom: 1px solid var(--line-soft);
}
.section-head {
  max-width: 720px;
  margin-bottom: 64px;
}
.section-head h2 {
  font-family: var(--mono);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.section-head p {
  margin-top: 18px;
  color: var(--grey);
  font-size: 16px;
  max-width: 600px;
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }

.card {
  background: var(--panel);
  padding: 40px 34px;
  transition: background .25s ease;
}
.card:hover { background: #121314; }
.card .idx {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--grey-dim);
  margin-bottom: 22px;
  letter-spacing: 0.1em;
}
.card h3 {
  font-family: var(--mono);
  font-size: 19px;
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}
.card p { color: var(--grey); font-size: 14.5px; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.stat {
  background: var(--panel);
  padding: 38px 24px;
  text-align: center;
}
.stat .num {
  font-family: var(--mono);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
}
.stat .lbl {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey-dim);
}

.manifesto {
  border: 1px solid var(--line);
  padding: 64px;
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
}
.manifesto .mark {
  font-family: var(--mono);
  font-size: 64px;
  color: var(--grey-dim);
  line-height: 1;
}
.manifesto blockquote {
  font-family: var(--mono);
  font-size: clamp(20px, 3vw, 30px);
  line-height: 1.5;
  margin: 18px 0 26px;
}
.manifesto cite {
  font-style: normal;
  color: var(--grey);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.terminal {
  background: #000;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 13.5px;
  color: #d8d8d8;
  overflow: hidden;
}
.terminal .term-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}
.term-head .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.term-head .title { margin-left: 10px; color: var(--grey-dim); font-size: 12px; }
.terminal .term-body { padding: 22px 24px; }
.terminal .term-body .line { margin-bottom: 8px; }
.term-body .prompt { color: var(--white); }
.term-body .out { color: var(--grey); }
.cursor-blink { display: inline-block; width: 8px; height: 15px; background: var(--white); vertical-align: -2px; animation: blink 1s step-start infinite; }
@keyframes blink { 50% { opacity: 0; } }

.rows { border-top: 1px solid var(--line); }
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  gap: 20px;
}
.row .name { font-family: var(--mono); font-size: 17px; }
.row .role { color: var(--grey); font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase; }
.row .tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--grey-dim);
  border: 1px solid var(--line);
  padding: 5px 10px;
}

form.contact-form { display: grid; gap: 22px; max-width: 640px; }
.field { display: grid; gap: 8px; }
.field label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
}
.field input, .field textarea, .field select {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--white);
  font-family: var(--mono);
  font-size: 14px;
  padding: 14px 16px;
  outline: none;
  transition: border-color .2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--white); }
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; cursor: pointer; }

footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 60px 0 40px;
  background: var(--bg-alt);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-brand { font-family: var(--mono); font-weight: 700; letter-spacing: 0.1em; margin-bottom: 14px; display:flex; align-items:center; gap:10px; }
.footer-brand img { width: 22px; height: 22px; }
.footer-col h4 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey-dim);
  margin-bottom: 16px;
}
.footer-col a, .footer-col p {
  display: block;
  color: var(--grey);
  font-size: 13.5px;
  margin-bottom: 10px;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--grey-dim);
  letter-spacing: 0.05em;
  flex-wrap: wrap;
  gap: 12px;
}

.page-hero {
  padding: 160px 0 90px;
  border-bottom: 1px solid var(--line-soft);
}
.page-hero h1 {
  font-family: var(--mono);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
}
.page-hero p { margin-top: 20px; color: var(--grey); max-width: 620px; font-size: 16.5px; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .manifesto { padding: 36px 24px; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav { padding: 16px 20px; }
  .hero { padding: 100px 20px 60px; }
}

.trap-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  position: relative;
  z-index: 1;
}
.trap-logo {
  width: 170px;
  height: 170px;
  margin-bottom: 40px;
  animation: trapPulse 1.8s ease-in-out infinite;
}
@keyframes trapPulse {
  0%,100% { filter: drop-shadow(0 0 16px rgba(255,255,255,0.35)); transform: scale(1); }
  50% { filter: drop-shadow(0 0 40px rgba(255,255,255,0.75)); transform: scale(1.04); }
}
.trap-page h1 {
  font-family: var(--mono);
  font-size: clamp(34px, 7vw, 88px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.05;
}
.trap-page .sub {
  margin-top: 22px;
  font-family: var(--mono);
  color: var(--grey);
  font-size: 15px;
  letter-spacing: 0.08em;
  max-width: 560px;
}
.trap-page .back {
  margin-top: 46px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.faq-item {
  background: var(--panel);
  padding: 0;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 26px 30px;
  font-family: var(--mono);
  font-size: 15.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 20px;
  color: var(--grey-dim);
  flex-shrink: 0;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body {
  padding: 0 30px 28px;
  color: var(--grey);
  font-size: 14.5px;
  max-width: 640px;
}

.pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  border: 1px solid var(--line);
  padding: 4px 10px;
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.meta-row .date {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--grey-dim);
  letter-spacing: 0.05em;
}

.nda-note {
  margin-top: 60px;
  border: 1px dashed var(--line);
  padding: 26px 30px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.nda-note p {
  color: var(--grey);
  font-size: 13.5px;
  max-width: 520px;
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.quote-card {
  background: var(--panel);
  padding: 34px 30px;
}
.quote-card p {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--white);
  line-height: 1.6;
}
.quote-card .attr {
  margin-top: 18px;
  font-size: 12px;
  color: var(--grey-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.credit-line {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--grey-dim);
  letter-spacing: 0.06em;
}
.credit-line strong {
  color: var(--grey);
  font-weight: 500;
}

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

.access-gate {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(5,5,5,0.97);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.access-panel {
  max-width: 460px;
  width: 100%;
  text-align: center;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 56px 40px;
}
.access-logo {
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
  filter: drop-shadow(0 0 18px rgba(255,255,255,0.3));
}
.access-title {
  font-size: 26px;
  margin-top: 6px;
  letter-spacing: 0.01em;
  font-weight: 700;
}
.access-sub {
  margin-top: 16px;
  color: var(--grey);
  font-size: 13.5px;
  line-height: 1.6;
}
.access-btns {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.access-btns .btn {
  width: 100%;
  justify-content: center;
}

#account-widget:empty { display: none; }
#account-widget {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}
.account-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: block;
}
.account-name {
  color: var(--white);
  font-size: 11px;
}
.account-logout {
  color: var(--grey-dim);
  font-size: 10.5px;
  text-decoration: underline;
}
.account-logout:hover { color: var(--white); }
