/* NOVA Wallet — Global Styles */
/* Theme: Black (#050505), Neon Green (#39FF14) */

/* ===== Reset & Base ===== */
*, *::before, *::after {
  font-family: 'Inter', system-ui, sans-serif;
  box-sizing: border-box;
}

html {
  background: #050505;
  scroll-behavior: smooth;
}

body {
  background: #050505;
  color: #d1d5db;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #050505; }
::-webkit-scrollbar-thumb { background: #1a1a1a; border-radius: 3px; }

/* ===== Scroll Progress Bar ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #39FF14, #00ff88, #39FF14);
  z-index: 9999;
  transition: width 0.05s linear;
  box-shadow: 0 0 10px rgba(57,255,20,0.6), 0 0 30px rgba(57,255,20,0.3);
}

/* ===== Glass Morphism Nav ===== */
.nav-glass {
  background: rgba(5,5,5,0.7);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid rgba(57,255,20,0.08);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.nav-link-hover {
  position: relative;
}

.nav-link-hover::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #39FF14;
  box-shadow: 0 0 8px rgba(57,255,20,0.6);
  transition: width 0.3s ease, left 0.3s ease;
}

.nav-link-hover:hover::after {
  width: 100%;
  left: 0;
}

/* ===== Neon Glow Effects ===== */
.logo-glow {
  text-shadow: 0 0 12px rgba(57,255,20,0.7), 0 0 40px rgba(57,255,20,0.35), 0 0 80px rgba(57,255,20,0.15);
}

.hero-glow {
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(57,255,20,0.12) 0%, rgba(57,255,20,0.04) 35%, transparent 65%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}

.wallet-glow {
  box-shadow:
    0 0 60px rgba(57,255,20,0.1),
    0 0 120px rgba(57,255,20,0.06),
    0 8px 32px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(57,255,20,0.1);
}

.neon-border {
  border: 1px solid rgba(57,255,20,0.35);
  box-shadow: 0 0 20px rgba(57,255,20,0.15), 0 0 50px rgba(57,255,20,0.06), 0 4px 20px rgba(0,0,0,0.3);
}

.neon-text {
  color: #39FF14;
  text-shadow: 0 0 10px rgba(57,255,20,0.5), 0 0 30px rgba(57,255,20,0.2);
}

/* ===== Animated Gradient Blobs ===== */
.gradient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.gradient-blob-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(57,255,20,0.15), transparent 70%);
  top: 10%;
  left: -10%;
  animation: blob-float-1 12s ease-in-out infinite;
}

.gradient-blob-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0,255,136,0.1), transparent 70%);
  bottom: 10%;
  right: -10%;
  animation: blob-float-2 15s ease-in-out infinite;
}

.gradient-blob-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(57,255,20,0.08), transparent 70%);
  top: 40%;
  right: 20%;
  animation: blob-float-3 10s ease-in-out infinite;
}

@keyframes blob-float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, -40px) scale(1.1); }
  66% { transform: translate(-30px, 30px) scale(0.95); }
}

@keyframes blob-float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-50px, 30px) scale(1.05); }
  66% { transform: translate(40px, -50px) scale(0.9); }
}

@keyframes blob-float-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, 40px) scale(1.15); }
}

/* ===== Section Divider ===== */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(57,255,20,0.2), transparent);
  border: none;
}

/* ===== Layered Shadows ===== */
.shadow-layered {
  box-shadow:
    0 2px 4px rgba(0,0,0,0.2),
    0 8px 16px rgba(0,0,0,0.3),
    0 16px 48px rgba(0,0,0,0.4),
    0 0 20px rgba(57,255,20,0.04);
}

/* ===== Card Styles ===== */
.neon-hover {
  border: 1px solid #1a1a1a;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.neon-hover:hover {
  border-color: rgba(57,255,20,0.5);
  box-shadow:
    0 0 25px rgba(57,255,20,0.2),
    0 0 50px rgba(57,255,20,0.08),
    0 8px 30px rgba(0,0,0,0.3);
  transform: translateY(-4px);
}

.glass-card {
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 1rem;
}

.glass-card-strong {
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(57,255,20,0.15);
  border-radius: 1.5rem;
}

.gradient-border {
  position: relative;
  background: #0A0A0A;
  border-radius: 1rem;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(57,255,20,0.3), transparent 50%, rgba(57,255,20,0.1));
  z-index: -1;
}

/* ===== Button Styles ===== */
.btn-neon {
  background: #39FF14;
  color: #050505;
  font-weight: 700;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-neon:hover {
  box-shadow:
    0 0 30px rgba(57,255,20,0.5),
    0 0 60px rgba(57,255,20,0.25),
    0 0 100px rgba(57,255,20,0.1);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1.5px solid #39FF14;
  color: #39FF14;
  font-weight: 600;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-outline:hover {
  background: rgba(57,255,20,0.08);
  box-shadow: 0 0 25px rgba(57,255,20,0.25), 0 0 60px rgba(57,255,20,0.1);
  transform: translateY(-2px);
}

.btn-ghost {
  color: #9ca3af;
  font-weight: 500;
  background: transparent;
  border: 1px solid #1a1a1a;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-ghost:hover {
  color: #39FF14;
  border-color: rgba(57,255,20,0.3);
  background: rgba(57,255,20,0.05);
}

/* ===== Chain Badges ===== */
.chain-hover {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.chain-hover:hover {
  box-shadow: 0 0 16px rgba(57,255,20,0.2);
  transform: translateY(-2px);
}

.chain-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  background: #0A0A0A;
  border: 1px solid #1a1a1a;
  transition: all 0.3s ease;
}

.chain-badge.active,
.chain-badge:hover {
  border-color: rgba(57,255,20,0.4);
  box-shadow: 0 0 12px rgba(57,255,20,0.15);
}

.chain-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
}

/* ===== Wallet Mockup Styles ===== */
.phone-frame {
  position: relative;
  width: 280px;
  background: #111;
  border: 2px solid #222;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(57,255,20,0.08), 0 0 120px rgba(57,255,20,0.04);
}

.phone-notch {
  width: 120px;
  height: 28px;
  background: #050505;
  border-radius: 0 0 16px 16px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.extension-frame {
  width: 340px;
  background: #111;
  border: 1px solid #222;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(57,255,20,0.06), 0 0 80px rgba(57,255,20,0.03);
}

.browser-bar {
  background: #1a1a1a;
  padding: 0.625rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* ===== Transaction List ===== */
.tx-item {
  border-bottom: 1px solid #1a1a1a;
  padding: 0.625rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tx-item:last-child {
  border-bottom: none;
}

/* ===== Security Badges ===== */
.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: rgba(57,255,20,0.05);
  border: 1px solid rgba(57,255,20,0.2);
  font-size: 0.8rem;
  font-weight: 600;
  color: #39FF14;
}

.security-icon {
  transition: transform 0.3s ease;
}

.security-icon:hover {
  transform: scale(1.05);
}

/* ===== Trust Bar ===== */
.trust-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 1rem 1.5rem;
}

/* ===== Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

@keyframes pulse-neon {
  0%, 100% { box-shadow: 0 0 8px rgba(57,255,20,0.3); }
  50% { box-shadow: 0 0 20px rgba(57,255,20,0.6); }
}

.pulse-glow {
  animation: pulse-neon 2s ease-in-out infinite;
}

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

.float-anim {
  animation: float 3s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner {
  animation: spin 1s linear infinite;
}

@keyframes counter-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(57,255,20,0.2); }
  50% { box-shadow: 0 0 40px rgba(57,255,20,0.4), 0 0 80px rgba(57,255,20,0.15); }
}

.glow-pulse {
  animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.slide-up {
  animation: slide-up 0.5s ease forwards;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fade-in 0.5s ease forwards;
}

@keyframes type-cursor {
  0%, 100% { border-color: #39FF14; }
  50% { border-color: transparent; }
}

/* ===== Demo Page Specific ===== */
.demo-wallet {
  background: #111;
  border: 2px solid #222;
  border-radius: 1.5rem;
  max-width: 380px;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: 0 0 80px rgba(57,255,20,0.06);
}

.demo-step {
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.6s ease;
}

.demo-step.active {
  opacity: 1;
  transform: translateY(0);
}

.seed-word {
  background: #0A0A0A;
  border: 1px solid #1a1a1a;
  border-radius: 0.5rem;
  padding: 0.4rem 0.5rem;
  font-size: 0.75rem;
  font-family: monospace;
  color: #39FF14;
  text-align: center;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
}

.seed-word.revealed {
  opacity: 1;
  transform: scale(1);
}

.password-strength {
  height: 4px;
  border-radius: 2px;
  background: #1a1a1a;
  overflow: hidden;
  transition: all 0.3s ease;
}

.password-strength-fill {
  height: 100%;
  border-radius: 2px;
  width: 0%;
  transition: width 0.5s ease, background 0.3s ease;
}

.qr-placeholder {
  width: 160px;
  height: 160px;
  background: white;
  border-radius: 0.75rem;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  gap: 1px;
  padding: 8px;
}

.qr-cell {
  border-radius: 1px;
}

/* ===== How It Works Steps ===== */
.how-it-works-list {
  counter-reset: step;
}

.how-it-works-step {
  counter-increment: step;
  position: relative;
  padding-left: 3.5rem;
}

.how-it-works-step::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: rgba(57,255,20,0.1);
  border: 1px solid rgba(57,255,20,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #39FF14;
  font-weight: 700;
  font-size: 0.875rem;
}

/* ===== FAQ Accordion ===== */
.faq-item {
  border: 1px solid #1a1a1a;
  border-radius: 1rem;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(57,255,20,0.2);
}

.faq-question {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: #0A0A0A;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: #0e0e0e;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.25rem;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-chevron {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

/* ===== Comparison Table ===== */
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.comparison-table th {
  background: #0A0A0A;
  border-bottom: 1px solid #1a1a1a;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
  color: white;
}

.comparison-table td {
  border-bottom: 1px solid #111;
  padding: 0.875rem 1rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

.comparison-table tr:hover td {
  background: rgba(57,255,20,0.02);
}

.comparison-table .nova-col {
  background: rgba(57,255,20,0.03);
  color: #39FF14;
  font-weight: 600;
}

/* ===== Pricing Tiers ===== */
.pricing-card {
  background: #0A0A0A;
  border: 1px solid #1a1a1a;
  border-radius: 1.5rem;
  padding: 2rem;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  border-color: rgba(57,255,20,0.3);
  box-shadow: 0 0 30px rgba(57,255,20,0.08);
}

.pricing-card.featured {
  border-color: rgba(57,255,20,0.4);
  box-shadow: 0 0 40px rgba(57,255,20,0.1);
  position: relative;
}

.pricing-card.featured::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(57,255,20,0.3), transparent 60%);
  z-index: -1;
}

/* ===== Copy Toast ===== */
.copy-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #39FF14;
  color: #050505;
  padding: 0.5rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 200;
  pointer-events: none;
}

.copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== Mobile Nav ===== */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(5,5,5,0.95);
  backdrop-filter: blur(20px);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

/* ===== Architecture Diagram ===== */
.arch-node {
  background: #0A0A0A;
  border: 1px solid #1a1a1a;
  border-radius: 0.75rem;
  padding: 1rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.arch-node:hover {
  border-color: rgba(57,255,20,0.3);
  box-shadow: 0 0 15px rgba(57,255,20,0.1);
}

.arch-connector {
  width: 2px;
  height: 2rem;
  background: linear-gradient(to bottom, rgba(57,255,20,0.3), rgba(57,255,20,0.1));
  margin: 0 auto;
}

.arch-connector-h {
  height: 2px;
  flex: 1;
  background: linear-gradient(to right, rgba(57,255,20,0.3), rgba(57,255,20,0.1));
}

/* ===== Testimonial Cards ===== */
.testimonial-card {
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 1.25rem;
  padding: 2rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(57,255,20,0.3), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.testimonial-card:hover {
  border-color: rgba(57,255,20,0.2);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 20px rgba(57,255,20,0.06);
}

.testimonial-card:hover::before {
  opacity: 1;
}

.testimonial-quote {
  font-style: italic;
  line-height: 1.7;
}

/* ===== Chain Logo Strip ===== */
.chain-logo-strip {
  display: flex;
  align-items: center;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.chain-logo-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.5;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.chain-logo-item:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* ===== ZeDigital Products Grid ===== */
.product-card {
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid #1a1a1a;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.product-card:hover {
  border-color: rgba(57,255,20,0.3);
  background: rgba(57,255,20,0.03);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3), 0 0 15px rgba(57,255,20,0.06);
}

/* ===== Parallax Support ===== */
.parallax-layer {
  will-change: transform;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .phone-frame {
    width: 240px;
  }

  .extension-frame {
    width: 280px;
  }

  .hero-glow {
    width: 300px;
    height: 300px;
  }
}

@media (max-width: 768px) {
  .comparison-table {
    font-size: 0.75rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.625rem 0.5rem;
  }
}
