/* --- Dark theme with live gradient background --- */
:root{
  /* Dark theme with live gradient background */
  --bg:rgba(255,255,255,0.05);
  --bg-soft:rgba(255,255,255,0.08);
  --card:rgba(255,255,255,0.12);
  --glass:rgba(255,255,255,0.1);
  --text:#ffffff;
  --muted:rgba(255,255,255,0.7);
  --primary:#60a5fa;      /* lighter blue for dark theme */
  --accent:#a78bfa;       /* lighter violet for dark theme */
  --ring:linear-gradient(135deg, #60a5fa, #a78bfa 45%, #34d399 100%);
  --maxw:1100px;
  --radius:18px;
  --shadow:0 10px 24px rgba(0, 0, 0, 0.3);
}

*{box-sizing:border-box}
html,body{height:100%}

/* Accessibility */
.skip-link{
  position:absolute; top:-40px; left:6px; z-index:1000;
  padding:8px 16px; background:var(--primary); color:white; text-decoration:none;
  border-radius:4px; font-weight:600;
  transition:top 0.3s ease;
}
.skip-link:focus{
  top:6px;
}

/* Focus styles for keyboard navigation */
*:focus-visible{
  outline:2px solid var(--primary); outline-offset:2px;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #1e1b4b, #312e81, #1e40af, #1d4ed8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-content {
  text-align: center;
  color: white;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(96, 165, 250, 0.3);
  padding: 40px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.loading-logo {
  margin-bottom: 20px;
  animation: pulse 2s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.loading-logo img {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2), 0 0 10px rgba(96, 165, 250, 0.2);
}

.loading-text {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 30px;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4), 0 0 15px rgba(96, 165, 250, 0.3);
}

.loading-bar {
  width: 200px;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

.loading-progress {
  height: 100%;
  background: linear-gradient(90deg, #60a5fa, #a78bfa);
  border-radius: 3px;
  animation: loading 2s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.5), 0 0 20px rgba(139, 92, 246, 0.3);
}

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

@keyframes loading {
  0% { width: 0%; }
  100% { width: 100%; }
}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  color:var(--text);
  background: 
    radial-gradient(ellipse at 20% 80%, rgba(139, 92, 246, 0.3), transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(59, 130, 246, 0.4), transparent 60%),
    radial-gradient(ellipse at 40% 40%, rgba(147, 51, 234, 0.2), transparent 60%),
    radial-gradient(ellipse at 60% 60%, rgba(96, 165, 250, 0.2), transparent 60%),
    linear-gradient(135deg, #1e1b4b 0%, #312e81 25%, #1e40af 50%, #1d4ed8 75%, #1e1b4b 100%);
  background-size: 600% 600%;
  animation: gradientShift 15s ease-in-out infinite;
  will-change: background-position;
  line-height:1.55;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Cosmic background with stars */
.cosmic-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.stars, .stars2, .stars3 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
}

.stars {
  background-image: 
    radial-gradient(2px 2px at 20px 30px, #eee, transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 90px 40px, #fff, transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
    radial-gradient(2px 2px at 160px 30px, #ddd, transparent);
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: sparkle 3s linear infinite;
}

.stars2 {
  background-image: 
    radial-gradient(1px 1px at 50px 20px, rgba(139, 92, 246, 0.8), transparent),
    radial-gradient(1px 1px at 120px 60px, rgba(59, 130, 246, 0.6), transparent),
    radial-gradient(1px 1px at 180px 10px, rgba(147, 51, 234, 0.7), transparent),
    radial-gradient(1px 1px at 30px 90px, rgba(96, 165, 250, 0.5), transparent);
  background-repeat: repeat;
  background-size: 220px 120px;
  animation: sparkle 4s linear infinite reverse;
}

.stars3 {
  background-image: 
    radial-gradient(1px 1px at 70px 40px, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 140px 20px, rgba(139, 92, 246, 0.3), transparent),
    radial-gradient(1px 1px at 10px 70px, rgba(59, 130, 246, 0.4), transparent);
  background-repeat: repeat;
  background-size: 180px 80px;
  animation: sparkle 5s linear infinite;
}

@keyframes sparkle {
  from { transform: translateY(0px); }
  to { transform: translateY(-100px); }
}

/* Animation Classes */
.animate-fade-in-down {
  opacity: 0;
  transform: translateY(-30px);
  animation: fadeInDown 0.8s ease-out forwards;
}

.animate-fade-in-left {
  opacity: 0;
  transform: translateX(-50px);
  animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-fade-in-right {
  opacity: 0;
  transform: translateX(50px);
  animation: fadeInRight 0.8s ease-out forwards;
}

.animate-fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 0%;
  }
  25% {
    background-position: 100% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
  75% {
    background-position: 0% 100%;
  }
  100% {
    background-position: 0% 0%;
  }
}

/* Layout */
.site-head{
  position:sticky; top:0; z-index:20;
  display:flex; align-items:center; justify-content:space-between;
  gap:20px; padding:16px 24px;
  background:rgba(255,255,255,0.15);
  backdrop-filter:saturate(140%) blur(20px);
  -webkit-backdrop-filter:saturate(140%) blur(20px);
  border-bottom:1px solid rgba(255,255,255,0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(96, 165, 250, 0.2);
}
.logo-wrap{
  display:flex; align-items:center; gap:16px;
  flex-shrink: 0;
}
.logo{
  height:40px; width:auto; border-radius:12px; 
  background:#fff; padding:6px; 
  box-shadow: 0 6px 20px rgba(0,0,0,.15), 0 0 15px rgba(96, 165, 250, 0.3);
}
.brand-title{
  font-weight:800; letter-spacing:.5px; font-size:20px;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.brand-sub{
  font-size:13px; color:var(--muted); font-weight:500;
  text-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}



.main-nav{
  display: flex; align-items: center; gap: 8px;
  flex: 1; justify-content: center;
}
.main-nav a{
  color:var(--muted); text-decoration:none; 
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  font-size: 16px; font-weight: 600;
  padding: 10px 16px; border-radius: 8px;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.main-nav a:hover{
  color:var(--text); 
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.5), 0 0 10px rgba(96, 165, 250, 0.3);
  background: rgba(96, 165, 250, 0.1);
  transform: translateY(-1px);
}

.cta-store.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 16px; border-radius:999px;
  background:rgba(96,165,250,.2); color:var(--text); text-decoration:none;
  border:1px solid rgba(96,165,250,.4);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 10px rgba(96, 165, 250, 0.3);
  font-weight: 600;
  flex-shrink: 0;
}
.cta-store.badge em{font-style:normal; background:rgba(250,204,21,.18); padding:.5px 8px; border-radius:999px; font-size:12px}

.section{
  max-width:var(--maxw); margin:0 auto; padding:56px 20px;
  transition: all 0.3s ease;
  position: relative;
}
.section + .section{margin-top:44px}
.section::before{
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.5), transparent);
  transition: width 0.5s ease;
}
.section:hover::before{
  width: 100%;
}
.section-head{margin-bottom:22px}
.section-head h2{margin:0 0 6px; font-size:28px; text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4), 0 0 10px rgba(96, 165, 250, 0.2)}
.lead{color:var(--muted); font-size:18px; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3)}

/* Hero */
.hero{display:grid; grid-template-columns:1.15fr .85fr; align-items:center; gap:28px}
.hero h1{text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4), 0 0 15px rgba(96, 165, 250, 0.3)}
.hero__media img{width:100%; height:auto; border-radius:var(--radius); box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(96, 165, 250, 0.2)}
.hero .mini{margin-top:10px; color:var(--muted); font-size:14px; display:flex; align-items:center; gap:8px; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3)}
.dot{display:inline-block; width:6px; height:6px; border-radius:999px; background:var(--accent)}

.cta-row{display:flex; gap:10px; flex-wrap:wrap; margin:18px 0 4px}
.btn{
  appearance:none; border:none; cursor:pointer;
  padding:12px 20px; border-radius:14px; font-weight:600; text-decoration:none; color:var(--text);
  transition:transform .04s ease, box-shadow .2s ease, background .2s ease, opacity .2s ease;
  box-shadow: 0 8px 25px rgba(0,0,0,.2), 0 0 15px rgba(96, 165, 250, 0.3);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}
.btn.primary{background:var(--ring)}
.btn.ghost{background:var(--card); border:1px solid rgba(255,255,255,0.2); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px)}
.btn.copy{background:rgba(59,130,246,.12); border:1px solid rgba(59,130,246,.35)}
.btn[aria-disabled="true"], .btn.primary[aria-disabled="true"]{opacity:.6; cursor:not-allowed; box-shadow:none}
.btn:hover{
  transform:translateY(-4px) scale(1.05);
  box-shadow: 0 15px 35px rgba(0,0,0,.3), 0 0 25px rgba(96, 165, 250, 0.5);
}

/* Features */
.features .grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:20px;
  align-items: stretch;
}
.card{
  padding:20px; border-radius:var(--radius); background:var(--card);
  border:1px solid rgba(255,255,255,0.1); 
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(96, 165, 250, 0.2);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  transition: all 0.3s ease;
  cursor: pointer;
}
.card:hover{
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(96, 165, 250, 0.4);
  border-color: rgba(96, 165, 250, 0.4);
}
.card h3{margin:0 0 12px; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), 0 0 8px rgba(96, 165, 250, 0.2)}
.card p{text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); line-height: 1.6;}

/* Screens */
.shots{display:grid; grid-template-columns:repeat(3,1fr); gap:16px; align-items: stretch;}
.shot img{width:100%; height:auto; border-radius:14px; border:1px solid rgba(255,255,255,0.1); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(96, 165, 250, 0.2)}

/* Token / CA capsule */
.glass{background:var(--card); border:1px solid rgba(255,255,255,0.1); border-radius:var(--radius); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(96, 165, 250, 0.2); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px)}
.token{padding-top:44px}
.ca-row{display:flex; align-items:center; gap:10px; margin:12px 0 6px}
.capsule{
  display:inline-flex; align-items:center; gap:10px; min-width:240px;
  padding:10px 16px; border-radius:999px; text-decoration:none; color:var(--text);
  border:1px solid rgba(255,255,255,0.2); background:var(--card);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2), 0 0 10px rgba(96, 165, 250, 0.3);
}
.capsule .label{font-size:12px; color:var(--muted); background:rgba(59,130,246,.10); padding:2px 8px; border-radius:999px; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2)}
.capsule .value{font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2)}
.capsule .arrow{opacity:.7}
.pill.soon{font-size:12px; padding:2px 8px; border-radius:999px; background:rgba(245,158,11,.18); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3)}

.token-links{display:flex; gap:14px; list-style:none; padding:0; margin:12px 0 0}
.token-links a{color:var(--text); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2)}

/* Story */
.story{padding:22px}

/* Contact */
.links{display:flex; gap:10px; flex-wrap:wrap}

/* Footer */
.foot{
  max-width:var(--maxw); margin:40px auto; padding:14px 20px;
  border-top:1px solid rgba(255,255,255,0.1); color:var(--muted);
  display:flex; align-items:center; justify-content:space-between
}
.foot-nav a{color:var(--muted); margin:0 12px; text-decoration:none; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); font-weight: 500;}
.foot-nav a:hover{color:var(--text); text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4), 0 0 8px rgba(96, 165, 250, 0.3)}

/* Responsive */
@media (max-width: 960px){
  .hero{grid-template-columns:1fr}
  .features .grid{grid-template-columns:1fr 1fr}
  .shots{grid-template-columns:1fr 1fr}
}
@media (max-width: 620px){
  .main-nav{display:none}
  .features .grid{grid-template-columns:1fr}
  .shots{grid-template-columns:1fr}
}

/* Performance optimization for reduced motion */
@media (prefers-reduced-motion: reduce) {
  body {
    animation: none;
  }
  .stars, .stars2, .stars3 {
    animation: none;
  }
  .brand-title {
    animation: none;
  }
  .loading-screen {
    animation: none;
  }
  .loading-logo {
    animation: none;
  }
  .loading-progress {
    animation: none;
  }
  .animate-fade-in-down,
  .animate-fade-in-left,
  .animate-fade-in-right,
  .animate-fade-in-up {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .card:hover {
    transform: none;
  }
  .btn:hover {
    transform: none;
  }
}
