:root {
  --primary: rgb(68, 241, 166);
  --primary-dark: rgb(48, 201, 136);
  --primary-glow: rgba(68, 241, 166, 0.4);
  --bg-dark: #05070c;
  --bg-card: rgba(12, 16, 28, 0.75);
  --text-light: #eef2ff;
  --text-muted: #b9c3f0;
  --font-mono: 'Space Grotesk', monospace;
}

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

body {
  font-family: var(--font-mono);
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.5;
  overflow-x: hidden;
  cursor: default;
}

/* Canvas background */
#bgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  opacity: 0.6;
  pointer-events: none;
}

.noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: -1;
  opacity: 0.4;
}

/* Custom cursor */
.cursor {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px var(--primary);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 20px;
  left: 20px;
  right: 20px;
  background: rgba(5, 7, 12, 0.6);
  backdrop-filter: blur(12px);
  border-radius: 60px;
  padding: 12px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  border: 1px solid rgba(68, 241, 166, 0.2);
  transition: all 0.3s;
}
.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.logo span {
  color: var(--primary);
}
.nav-menu {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-menu a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  transition: 0.2s;
  position: relative;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.2s;
}
.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}
.nav-menu a:hover {
  color: var(--primary);
}
.nav-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
}

/* Fullscreen hero */
.fullscreen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 80px 20px;
}
.hero {
  text-align: center;
}
.hero-content {
  max-width: 900px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-block;
  background: rgba(68, 241, 166, 0.1);
  padding: 6px 16px;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(68, 241, 166, 0.3);
  color: var(--primary);
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}
.glitch {
  font-size: 5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  position: relative;
  text-shadow: 0.05em 0 0 rgba(255,0,0,0.75), -0.05em -0.025em 0 rgba(0,255,0,0.75);
  animation: glitch 3s infinite;
}
@keyframes glitch {
  0%, 100% { text-shadow: 0.05em 0 0 rgba(255,0,0,0.75), -0.05em -0.025em 0 rgba(0,255,0,0.75); }
  25% { text-shadow: -0.05em 0 0 rgba(255,0,0,0.75), 0.05em 0.025em 0 rgba(0,255,0,0.75); }
  50% { text-shadow: 0.05em 0.025em 0 rgba(255,0,0,0.75), -0.05em -0.025em 0 rgba(0,255,0,0.75); }
  75% { text-shadow: -0.05em -0.025em 0 rgba(255,0,0,0.75), 0.05em 0 0 rgba(0,255,0,0.75); }
}
.hero-desc {
  max-width: 600px;
  margin: 0 auto 32px;
  font-size: 1.1rem;
  color: var(--text-muted);
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.hero-stats div {
  font-size: 0.9rem;
}
.hero-stats span {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}
.hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 40px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s;
}
.btn.primary {
  background: var(--primary);
  color: #05070c;
  box-shadow: 0 4px 12px var(--primary-glow);
}
.btn.primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}
.btn.outline {
  border: 1px solid var(--primary);
  color: var(--primary);
}
.btn.outline:hover {
  background: rgba(68, 241, 166, 0.1);
  transform: translateY(-2px);
}
.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
}
.scroll-hint span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid var(--primary);
  border-radius: 20px;
  position: relative;
}
.scroll-hint span::after {
  content: '';
  width: 4px;
  height: 8px;
  background: var(--primary);
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
  animation: scrollHint 1.5s infinite;
}
@keyframes scrollHint {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(16px); }
}

/* Sections */
.section {
  padding: 120px 0;
  position: relative;
}
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header h2 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.section-header h2 span {
  color: var(--primary);
}
.divider {
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin: 20px auto 0;
  border-radius: 3px;
}

/* Mechanics */
.mechanics-grid {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 80px;
}
.mech-card {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  border-radius: 32px;
  padding: 40px 28px;
  flex: 1;
  min-width: 260px;
  text-align: center;
  border: 1px solid rgba(68, 241, 166, 0.2);
  transition: all 0.3s;
  transform: translateY(30px);
  opacity: 0;
  animation: fadeUp 0.6s forwards;
  animation-delay: calc(var(--delay, 0) * 0.1s);
}
.mech-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 20px 30px -12px rgba(68, 241, 166, 0.2);
}
.mech-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 24px;
}
.mech-card h3 {
  margin-bottom: 16px;
  font-size: 1.6rem;
}
.mech-card p {
  color: var(--text-muted);
  margin-bottom: 20px;
}
.mech-note {
  font-size: 0.8rem;
  color: var(--primary);
  border-top: 1px dashed rgba(68, 241, 166, 0.3);
  padding-top: 16px;
  margin-top: 8px;
}
.mech-visual {
  text-align: center;
  position: relative;
}
.circuit {
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  margin-bottom: 30px;
  animation: pulse 2s infinite;
}
.zk-proof-animation {
  font-family: monospace;
  font-size: 1.2rem;
  letter-spacing: 4px;
  color: var(--primary);
  animation: blink 1.5s step-end infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
@keyframes pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Matrix section */
.matrix {
  background: linear-gradient(135deg, rgba(68,241,166,0.05), transparent);
}
.matrix-header {
  text-align: center;
  margin-bottom: 60px;
}
.matrix-header h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
.matrix-header h2 span {
  color: var(--primary);
}
.matrix-header p {
  color: var(--text-muted);
}
.matrix-grid {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}
.matrix-item {
  text-align: center;
}
.matrix-value {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
}
.matrix-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Manifesto */
.manifesto {
  background: var(--bg-dark);
}
.manifesto-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.manifesto-content h2 {
  font-size: 2.5rem;
  margin-bottom: 32px;
}
.manifesto-content h2 span {
  color: var(--primary);
}
.manifesto-text p {
  margin-bottom: 24px;
  color: var(--text-muted);
  font-size: 1.05rem;
}
.quote {
  background: rgba(68, 241, 166, 0.05);
  padding: 32px;
  border-left: 4px solid var(--primary);
  margin: 40px 0;
  border-radius: 20px;
  text-align: left;
}
.quote i {
  color: var(--primary);
  margin-right: 12px;
}
.quote blockquote {
  font-style: italic;
  font-size: 1.1rem;
}

/* Insights */
.insights-header {
  text-align: center;
  margin-bottom: 60px;
}
.insights-header h2 {
  font-size: 2.5rem;
}
.insights-header h2 span {
  color: var(--primary);
}
.insights-header p {
  color: var(--text-muted);
}
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}
.insight-card {
  background: var(--bg-card);
  border-radius: 28px;
  padding: 32px;
  text-align: center;
  transition: 0.3s;
  border: 1px solid rgba(68, 241, 166, 0.2);
}
.insight-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
}
.insight-card i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
}
.insight-card h3 {
  margin-bottom: 12px;
}
.insight-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* CTA block */
.cta-block {
  text-align: center;
  padding: 100px 20px;
  background: radial-gradient(circle at center, #0a0f20, #010101);
}
.cta-content h3 {
  font-size: 2.2rem;
  margin-bottom: 16px;
}
.cta-content p {
  color: var(--text-muted);
  margin-bottom: 32px;
}
.demo-btn {
  background: var(--primary);
  border: none;
  padding: 14px 32px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.2s;
  color: #05070c;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.demo-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--primary-glow);
}

/* Footer */
footer {
  background: #03050a;
  border-top: 1px solid rgba(68, 241, 166, 0.2);
  padding: 60px 0 30px;
}
.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}
.footer-brand i {
  font-size: 2rem;
  color: var(--primary);
}
.footer-brand span {
  font-weight: 800;
}
.footer-brand p {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-links h4 {
  margin-bottom: 16px;
}
.footer-links ul {
  list-style: none;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  color: #9aa6dd;
  text-decoration: none;
  transition: 0.2s;
}
.footer-links a:hover {
  color: var(--primary);
}
.footer-bottom {
  text-align: center;
  margin-top: 50px;
  font-size: 0.75rem;
  color: #7c85b5;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--primary);
  color: #05070c;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: 0.2s;
  box-shadow: 0 2px 10px var(--primary-glow);
  z-index: 99;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 880px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 20px;
    right: 20px;
    background: rgba(5, 7, 12, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px;
    border-radius: 24px;
    text-align: center;
    gap: 16px;
    border: 1px solid rgba(68, 241, 166, 0.3);
  }
  .nav-menu.active {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
  .glitch {
    font-size: 3rem;
  }
  .hero-stats {
    gap: 24px;
  }
  .section-header h2 {
    font-size: 2.2rem;
  }
  .matrix-value {
    font-size: 2.2rem;
  }
}
@media (max-width: 640px) {
  .container {
    padding: 0 20px;
  }
  .mech-card {
    padding: 30px 20px;
  }
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 38px;
    height: 38px;
  }
}
/* Matrix image */
.matrix-image {
  text-align: center;
  margin: 40px 0 60px;
}
.matrix-image img {
  max-width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 10px 30px -10px rgba(68, 241, 166, 0.2);
  border: 1px solid rgba(68, 241, 166, 0.3);
  transition: transform 0.3s;
}
.matrix-image img:hover {
  transform: scale(1.02);
}

/* CTA image */
.cta-image {
  margin: 32px 0;
  text-align: center;
}
.cta-image img {
  max-width: 280px;
  width: 100%;
  height: auto;
  border-radius: 32px;
  box-shadow: 0 8px 20px rgba(68, 241, 166, 0.15);
  border: 1px solid rgba(68, 241, 166, 0.3);
}