/* Base */
*,
*::before,
*::after { box-sizing:border-box; }

:root{
  --bg:#050608;
  --bg-elevated:#090b12;
  --glass:rgba(255,255,255,0.03);
  --border:rgba(255,255,255,0.04);
  --purple:#7B61FF;
  --neon:#00FF9B;
  --hot:#FF4D6D;
  --muted:#9aa0b4;
  --text:#e8ecf7;
  --radius-lg:16px;
  --radius-md:10px;
  --radius-sm:6px;
}

html,body{
  margin:0;
  padding:0;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"SF Pro Text",Inter,Roboto,Arial,sans-serif;
  background:radial-gradient(circle at top,#111428,#050608);
  color:var(--text);
}

body.theme-dark{min-height:100vh;display:flex;flex-direction:column;}

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

/* Header */
.site-header{
  position:sticky;
  top:0;
  z-index:40;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 18px;
  background:rgba(5,6,12,0.92);
  backdrop-filter:blur(12px);
  border-bottom:1px solid var(--border);
}

.logo-area{
  display:flex;
  align-items:center;
  gap:8px;
}
.logo-img{
  height:24px;
  width:auto;
  filter:drop-shadow(0 0 6px rgba(0,255,155,0.2));
}
.logo-text{
  font-weight:800;
  letter-spacing:2px;
  color:var(--purple);
}
.logo-tag{
  font-size:0.75rem;
  color:var(--neon);
  margin-left:4px;
}
.site-nav{
  display:flex;
  gap:18px;
  align-items:center;
}
.site-nav a{
  font-size:0.9rem;
  color:var(--muted);
}
.site-nav a.active{
  color:var(--neon);
}
.nav-toggle{
  display:none;
  border:0;
  background:transparent;
  font-size:1.4rem;
  color:var(--muted);
}
.wallet-btn{
  border-radius:999px;
  border:1px solid var(--purple);
  padding:6px 14px;
  background:linear-gradient(90deg,var(--purple),var(--neon));
  color:#050608;
  font-weight:600;
  cursor:pointer;
}

/* Hero */
.hero{
  display:flex;
  flex-wrap:wrap;
  gap:32px;
  max-width:1120px;
  margin:32px auto;
  padding:0 18px;
  align-items:center;
}
.hero-text{flex:1 1 320px;}
.hero-text h1{
  font-size:2.7rem;
  margin-bottom:10px;
}
.hero-sub{
  max-width:520px;
  color:var(--muted);
}
.hero-sub span{color:var(--neon);}
.hero-cta{margin-top:18px;display:flex;gap:12px;flex-wrap:wrap;}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 18px;
  border-radius:999px;
  border:1px solid transparent;
  cursor:pointer;
  font-weight:600;
  font-size:0.95rem;
}
.btn.primary{
  background:linear-gradient(120deg,var(--purple),var(--neon));
  color:#050608;
}
.btn.secondary{
  background:var(--glass);
  border-color:var(--border);
}
.btn.ghost{
  background:transparent;
  border-color:var(--border);
  color:var(--muted);
}
.btn.full{width:100%;}
.hero-meta{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  margin-top:20px;
}
.hero-meta .label{
  display:block;
  font-size:0.7rem;
  text-transform:uppercase;
  letter-spacing:1px;
  color:var(--muted);
}
.hero-meta .value{
  font-size:0.9rem;
  font-weight:600;
}
.tag-phase{
  padding:4px 10px;
  border-radius:999px;
  background:var(--glass);
  font-size:0.8rem;
  border:1px solid var(--border);
}

.hero-visual{
  flex:1 1 280px;
  position:relative;
  min-height:260px;
}
.orb{
  position:absolute;
  border-radius:50%;
  filter:blur(0.2px);
}
.orb-lg{
  width:260px;height:260px;
  background:radial-gradient(circle,#7B61FF,#050608);
  top:20px;right:10%;
}
.orb-md{
  width:140px;height:140px;
  background:radial-gradient(circle,#00FF9B,#050608);
  bottom:20px;left:5%;
}
.orb-sm{
  width:80px;height:80px;
  background:radial-gradient(circle,#FF4D6D,#050608);
  top:40%;left:45%;
}
.hero-caption{
  position:absolute;
  bottom:0;
  font-size:0.8rem;
  color:var(--muted);
}

/* Sections */
.section{
  max-width:1100px;
  margin:24px auto;
  padding:0 18px 8px;
}
.section-intro{
  max-width:640px;
  color:var(--muted);
}
.two-col{
  display:flex;
  flex-wrap:wrap;
  gap:24px;
}
.cards-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:18px;
}
.card{
  background:var(--bg-elevated);
  border-radius:var(--radius-lg);
  border:1px solid var(--border);
  padding:16px 18px;
}
.card.small{border-radius:var(--radius-md);}
.checklist, .bullets{
  list-style:none;
  padding:0;
  margin:10px 0;
}
.checklist li::before{
  content:"✔";
  color:var(--neon);
  margin-right:6px;
}
.bullets li{
  margin-bottom:6px;
}
.timeline{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:14px;
}
.tl-item{
  border-left:2px solid var(--purple);
  padding-left:10px;
}

/* Community */
.community-links{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:16px;
}

/* Footer */
.site-footer{
  margin-top:auto;
  padding:16px 18px 22px;
  text-align:center;
  color:var(--muted);
  font-size:0.8rem;
  border-top:1px solid var(--border);
}
.footer-content{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:16px;
  flex-wrap:wrap;
}
.footer-socials{
  display:flex;
  gap:12px;
  align-items:center;
}
.social-link{
  display:flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  border-radius:50%;
  background:var(--glass);
  border:1px solid var(--border);
  color:var(--muted);
  transition:all 0.2s ease;
}
.social-link:hover{
  background:var(--purple);
  color:#fff;
  border-color:var(--purple);
  transform:translateY(-2px);
}
.social-link svg{
  width:18px;
  height:18px;
}
.wallet-display{margin-top:4px;color:#636b7e;}

/* Docs layout */
.docs-main{
  max-width:900px;
  margin:20px auto;
  padding:0 16px 24px;
}
blockquote{
  border-left:3px solid var(--purple);
  padding-left:12px;
  color:var(--muted);
  font-style:italic;
}

/* MOBILE */
@media (max-width:900px){
  .site-nav{
    position:absolute;
    top:52px;right:8px;
    background:rgba(5,6,12,0.96);
    padding:8px 10px;
    border-radius:var(--radius-md);
    flex-direction:column;
    align-items:flex-start;
    min-width:160px;
    display:none;
    border:1px solid var(--border);
  }
  .site-nav.open{display:flex;}
  .nav-toggle{display:block;}
  .hero{margin-top:20px;}
  
  .hero{
    padding:0 16px;
    gap:24px;
  }
  
  .hero-visual{
    order:-1;
    min-height:200px;
  }
  
  .orb-lg{width:180px;height:180px;}
  .orb-md{width:100px;height:100px;}
  .orb-sm{width:60px;height:60px;}
  
  .section{
    padding:0 16px 8px;
  }
  
  .cards-grid{
    grid-template-columns:1fr;
  }
  
  .timeline{
    grid-template-columns:1fr;
  }
  
  .community-links{
    flex-direction:column;
  }
  
  .btn{
    width:100%;
    justify-content:center;
  }
  
  .hero-cta{
    flex-direction:column;
    width:100%;
  }
  
  .hero-meta{
    flex-direction:column;
    gap:12px;
    align-items:flex-start;
  }
}

/* Tablet */
@media (max-width:768px){
  .site-header{
    padding:10px 12px;
  }
  
  .logo-text{
    font-size:1.1rem;
  }
  
  .wallet-btn{
    padding:5px 12px;
    font-size:0.85rem;
  }
}

/* very small */
@media (max-width:480px){
  .logo-img{
    height:20px;
  }
  
  .logo-text{
    font-size:0.9rem;
  }
  
  .hero-text h1{
    font-size:2.1rem;
    line-height:1.2;
  }
  
  .hero-sub{
    font-size:0.95rem;
  }
  
  .btn{
    padding:10px 16px;
    font-size:0.9rem;
  }
  
  .section h2{
    font-size:1.5rem;
  }
  
  .card{
    padding:14px 16px;
  }
  
  .orb-lg{width:150px;height:150px;}
  .orb-md{width:80px;height:80px;}
  .orb-sm{width:50px;height:50px;}
}

/* ===========================
   3D ORB ANIMATIONS
   =========================== */

/* Floating animation for orbs */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes float-slow {
  0%, 100% {
    transform: translateY(0px) translateX(0px);
  }
  50% {
    transform: translateY(-15px) translateX(10px);
  }
}

@keyframes float-slower {
  0%, 100% {
    transform: translateY(0px) translateX(0px);
  }
  50% {
    transform: translateY(-10px) translateX(-8px);
  }
}

/* Pulsing glow animation */
@keyframes pulse {
  0%, 100% {
    filter: blur(0.2px) drop-shadow(0 0 20px currentColor);
    opacity: 1;
  }
  50% {
    filter: blur(0.2px) drop-shadow(0 0 40px currentColor);
    opacity: 0.8;
  }
}

@keyframes pulse-strong {
  0%, 100% {
    filter: blur(0.2px) drop-shadow(0 0 30px currentColor);
  }
  50% {
    filter: blur(0.2px) drop-shadow(0 0 60px currentColor);
  }
}

/* Scale breathing effect */
@keyframes breathe {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Apply animations to orbs */
.orb{
  position:absolute;
  border-radius:50%;
  filter:blur(0.2px);
  transition: all 0.3s ease;
}

.orb-lg{
  width:260px;
  height:260px;
  background:radial-gradient(circle at 30% 30%, #9B7DFF, #7B61FF, #050608);
  box-shadow: 0 0 60px rgba(123, 97, 255, 0.5), 
              0 0 100px rgba(123, 97, 255, 0.3),
              inset 0 0 40px rgba(155, 125, 255, 0.2);
  top:20px;
  right:10%;
  animation: float 6s ease-in-out infinite, pulse 4s ease-in-out infinite;
}

.orb-md{
  width:140px;
  height:140px;
  background:radial-gradient(circle at 30% 30%, #33FFB8, #00FF9B, #050608);
  box-shadow: 0 0 40px rgba(0, 255, 155, 0.6), 
              0 0 70px rgba(0, 255, 155, 0.3),
              inset 0 0 30px rgba(51, 255, 184, 0.3);
  bottom:20px;
  left:5%;
  animation: float-slow 8s ease-in-out infinite, pulse-strong 3s ease-in-out infinite;
}

.orb-sm{
  width:80px;
  height:80px;
  background:radial-gradient(circle at 30% 30%, #FF6D8D, #FF4D6D, #050608);
  box-shadow: 0 0 30px rgba(255, 77, 109, 0.6), 
              0 0 50px rgba(255, 77, 109, 0.3),
              inset 0 0 20px rgba(255, 109, 141, 0.3);
  top:40%;
  left:45%;
  animation: float-slower 7s ease-in-out infinite, breathe 5s ease-in-out infinite;
}

/* Enhanced glow on hover */
.orb:hover {
  filter: blur(0.1px) drop-shadow(0 0 50px currentColor) !important;
  transform: scale(1.05);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .orb-lg, .orb-md, .orb-sm {
    animation: none !important;
  }
}
/* ===========================
   SPACE BACKGROUND & DNA HELIX
   =========================== */

/* Background Variables */
:root {
  --space-dark: #0a0e1a;
  --space-darker: #050814;
  --space-accent: #1a1f35;
  --star-color: rgba(255, 255, 255, 0.8);
  --dna-cyan: #00ffcc;
  --dna-teal: #00d9c0;
  --particle-glow: rgba(0, 255, 204, 0.3);
}

/* Base Background Layer */
body.theme-dark {
  position: relative;
  overflow-x: hidden;
  background: var(--space-darker);
}

body.theme-dark::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -2;
  background: radial-gradient(ellipse at top, #1a1f35 0%, #0a0e1a 50%, #050814 100%);
  pointer-events: none;
}

/* Starfield Canvas */
.starfield-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
}

/* DNA Helix Container */
.dna-helix-container {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 400px;
  z-index: -1;
  pointer-events: none;
  opacity: 0.7;
}

/* DNA Helix SVG Animations */
@keyframes dna-float {
  0%, 100% {
    transform: translateY(-10px);
  }
  50% {
    transform: translateY(10px);
  }
}

@keyframes dna-glow {
  0%, 100% {
    filter: drop-shadow(0 0 8px var(--dna-cyan)) drop-shadow(0 0 12px var(--dna-teal));
  }
  50% {
    filter: drop-shadow(0 0 12px var(--dna-cyan)) drop-shadow(0 0 20px var(--dna-teal));
  }
}

@keyframes dna-flow {
  0% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: -200;
  }
}

.dna-helix-container svg {
  width: 100%;
  height: 100%;
  animation: dna-float 8s ease-in-out infinite, dna-glow 4s ease-in-out infinite;
}

.dna-strand {
  fill: none;
  stroke: var(--dna-cyan);
  stroke-width: 2;
  stroke-dasharray: 10 5;
  animation: dna-flow 20s linear infinite;
}

.dna-strand.secondary {
  stroke: var(--dna-teal);
  animation: dna-flow 25s linear infinite reverse;
}

.dna-bond {
  stroke: rgba(0, 217, 192, 0.4);
  stroke-width: 1.5;
  opacity: 0.6;
}

.dna-dot {
  fill: var(--dna-cyan);
  filter: drop-shadow(0 0 6px var(--dna-cyan));
  animation: pulse 3s ease-in-out infinite;
}

.dna-dot.secondary {
  fill: var(--dna-teal);
  filter: drop-shadow(0 0 6px var(--dna-teal));
  animation: pulse 3.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
}

/* Background Particles */
.background-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--star-color);
  border-radius: 50%;
  box-shadow: 0 0 4px var(--star-color);
}

/* Responsive DNA Helix */
@media (max-width: 1024px) {
  .dna-helix-container {
    left: 10px;
    width: 50px;
    height: 350px;
  }
}

@media (max-width: 768px) {
  .dna-helix-container {
    display: none;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .dna-helix-container svg {
    animation: none !important;
  }
  
  .dna-strand,
  .dna-dot {
    animation: none !important;
  }
  
  .starfield-canvas {
    display: none;
  }
}
