:root {
  --bg: #040609;
  --bg-elevated: rgba(11, 16, 24, 0.74);
  --bg-card-hover: rgba(16, 24, 36, 0.88);
  --border: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(0, 240, 255, 0.35);
  --text: #eef3f8;
  --text-muted: #8b99ab;
  --cyan: #00f0ff;
  --emerald: #00ffa3;
  --danger: #ff4d6d;
  --font-sans: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background: var(--bg);
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: min(1140px, 92vw);
  margin-inline: auto;
}

.hud-grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 30%, black 35%, transparent 85%);
}

.cursor-glow {
  position: fixed;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.08) 0%, rgba(0, 255, 163, 0.03) 35%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  opacity: 0;
}

.topbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1140px, 92vw);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 18px;
  background: rgba(6, 10, 16, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 0.95rem;
}

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

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

.nav-links .nav-cta {
  color: var(--cyan);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--emerald);
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 163, 0.22);
  background: rgba(0, 255, 163, 0.06);
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 110px 4vw 80px;
  overflow: hidden;
}

#quantumCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--cyan);
  padding: 6px 14px;
  border: 1px solid rgba(0, 240, 255, 0.22);
  border-radius: 999px;
  background: rgba(0, 240, 255, 0.05);
}

.hero-title {
  font-size: clamp(4rem, 11vw, 8.2rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
  background: linear-gradient(180deg, #ffffff 15%, rgba(0, 240, 255, 0.85) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 32px rgba(0, 240, 255, 0.16));
}

.hero-subtitle {
  max-width: 540px;
  font-size: clamp(1.02rem, 2vw, 1.24rem);
  color: var(--text-muted);
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--emerald));
  color: #03070b;
  box-shadow: 0 0 28px rgba(0, 240, 255, 0.22);
}

.btn-primary:hover {
  box-shadow: 0 0 38px rgba(0, 240, 255, 0.42);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--border-accent);
  background: rgba(0, 240, 255, 0.06);
}

.hero-telemetry {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1140px, 92vw);
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
}

.telemetry-item {
  display: flex;
  gap: 10px;
}

.t-label {
  color: var(--text-muted);
}

.t-value {
  color: var(--text);
}

.t-value.accent {
  color: var(--cyan);
}

.section {
  position: relative;
  z-index: 2;
  padding: 96px 0;
}

.section-header {
  margin-bottom: 36px;
}

.section-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}

.section-index {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  color: var(--cyan);
  margin-bottom: 8px;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hud-card {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
}

.hud-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.pillar-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.tag-locked {
  color: var(--emerald);
  border: 1px solid rgba(0, 255, 163, 0.25);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
}

.pillar-card h3 {
  font-size: 1.32rem;
  font-weight: 600;
}

.pillar-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.redacted-line {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  color: var(--cyan);
  position: relative;
  height: 32px;
}

.redacted-line .mask,
.redacted-line .reveal-text {
  position: absolute;
  left: 0;
  bottom: 0;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.redacted-line .reveal-text {
  opacity: 0;
  color: var(--emerald);
  transform: translateY(4px);
}

.pillar-card:hover .redacted-line .mask {
  opacity: 0;
  transform: translateY(-4px);
}

.pillar-card:hover .redacted-line .reveal-text {
  opacity: 1;
  transform: translateY(0);
}

.founder-card {
  display: flex;
  flex-direction: column;
  gap: 22px;
  background: linear-gradient(145deg, rgba(10, 16, 25, 0.85), rgba(5, 10, 16, 0.92));
}

.founder-identity {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.founder-avatar-img {
  width: 68px;
  height: 68px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--border-accent);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.12);
  flex-shrink: 0;
}

.founder-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.founder-name-row h3 {
  font-size: 1.45rem;
  font-weight: 700;
}

.abbr-badge {
  font-size: 0.76rem;
  padding: 3px 10px;
  border-radius: 999px;
  color: var(--emerald);
  border: 1px solid rgba(0, 255, 163, 0.3);
  background: rgba(0, 255, 163, 0.08);
}

.founder-role {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.founder-bio {
  max-width: 68ch;
  color: var(--text);
  font-size: 1.02rem;
}

.founder-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.social-link svg {
  width: 18px;
  height: 18px;
  color: var(--cyan);
}

.social-link:hover {
  border-color: var(--cyan);
  background: rgba(0, 240, 255, 0.08);
}

.projects-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

.filter-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.filter-btn.active {
  background: rgba(0, 240, 255, 0.14);
  color: var(--cyan);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 18px;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
}

.project-card:hover {
  transform: translateY(-3px);
}

.project-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.project-cat {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--cyan);
  text-transform: uppercase;
}

.project-status {
  font-size: 0.68rem;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.project-status.is-live {
  color: var(--emerald);
  border-color: rgba(0, 255, 163, 0.3);
  background: rgba(0, 255, 163, 0.07);
}

.project-card h3 {
  font-size: 1.22rem;
  font-weight: 600;
}

.project-summary {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 6px;
}

.project-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
}

.project-stats {
  color: var(--text-muted);
}

.project-links {
  display: flex;
  gap: 12px;
}

.project-links a {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 500;
}

.project-links a:hover {
  text-decoration: underline;
}

.join-card {
  max-width: 780px;
}

.join-lead {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.join-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.field input,
.field textarea {
  width: 100%;
  background: rgba(4, 6, 9, 0.75);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.12);
}

.field input:user-invalid,
.field textarea:user-invalid {
  border-color: var(--danger);
}

.interest-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}

.chip.selected {
  border-color: var(--emerald);
  color: var(--emerald);
  background: rgba(0, 255, 163, 0.08);
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.form-feedback {
  font-size: 0.82rem;
  color: var(--emerald);
}

.form-feedback.is-error {
  color: var(--danger);
}

.footer {
  position: relative;
  z-index: 2;
  padding: 36px 0 48px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.84rem;
}

.footer-left,
.footer-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.footer-right a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.footer-right a svg {
  width: 16px;
  height: 16px;
  color: var(--cyan);
}

.footer-right a:hover {
  color: var(--cyan);
}

.local-tag {
  color: var(--cyan);
  border: 1px solid rgba(0, 240, 255, 0.25);
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.7rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .hero-telemetry {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .pulse-dot {
    animation: none;
  }
}
