/* ==========================================================================
   $WAJI (Wajinusmos) - Robinhood Chain (EVM) Official Aesthetic Design System
   Sleek, High-End Fintech Dark Mode with Robinhood Signature Neon Green
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;800&family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;600;700&display=swap');

:root {
  /* Color Palette - Robinhood Brand Theme */
  --rh-black: #050607;
  --rh-bg: #0C0E12;
  --rh-card: #14181F;
  --rh-card-hover: #1C222C;
  --rh-border: rgba(0, 200, 5, 0.25);
  --rh-border-hover: rgba(0, 230, 7, 0.6);
  
  /* Robinhood Green & Accents */
  --rh-green: #00C805;
  --rh-green-bright: #00FF04;
  --rh-green-glow: rgba(0, 200, 5, 0.4);
  --rh-green-dark: #008003;
  --rh-red: #FF3B30;
  
  --text-main: #FFFFFF;
  --text-sub: #9EA8B6;
  --text-muted: #64748B;

  /* Fonts */
  --font-heading: 'Cinzel', serif;
  --font-sans: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Transitions */
  --tr-fast: all 0.2s ease;
  --tr-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--rh-black);
  color: var(--text-main);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at 50% 0%, #061a08 0%, #050607 65%);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--rh-black);
}
::-webkit-scrollbar-thumb {
  background: var(--rh-green);
  border-radius: 4px;
}

/* Utility Layout */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.gradient-text {
  background: linear-gradient(135deg, #FFFFFF 20%, var(--rh-green-bright) 70%, var(--rh-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.sacred-font {
  font-family: var(--font-heading);
  letter-spacing: 1px;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 40px;
  cursor: pointer;
  transition: var(--tr-smooth);
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--rh-green);
  color: #000000;
  box-shadow: 0 0 20px var(--rh-green-glow);
}
.btn-primary:hover {
  background: var(--rh-green-bright);
  box-shadow: 0 0 30px rgba(0, 255, 4, 0.6);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-main);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--rh-green);
  transform: translateY(-2px);
}

/* Glassmorphic Robinhood Cards */
.rh-card {
  background: var(--rh-card);
  border: 1px solid var(--rh-border);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
  transition: var(--tr-smooth);
}
.rh-card:hover {
  border-color: var(--rh-border-hover);
  box-shadow: 0 20px 45px rgba(0, 200, 5, 0.15);
}

/* Canvas Background */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* Navbar */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.2rem 0;
  transition: var(--tr-fast);
}
.header.scrolled {
  background: rgba(5, 6, 7, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rh-border);
  padding: 0.8rem 0;
}
.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-container {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}
.logo-img {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 0 10px var(--rh-green-glow));
}
.logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: #FFFFFF;
}
.evm-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  background: rgba(0, 200, 5, 0.15);
  border: 1px solid var(--rh-green);
  color: var(--rh-green-bright);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-weight: 700;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-sub);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--tr-fast);
}
.nav-links a:hover {
  color: var(--rh-green-bright);
}

/* Hero Section */
.hero {
  padding-top: 10rem;
  padding-bottom: 5rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(0, 200, 5, 0.1);
  border: 1px solid var(--rh-green);
  border-radius: 30px;
  color: var(--rh-green-bright);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--rh-green-bright);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--rh-green-bright);
  animation: pulse-dot 1.5s infinite;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-sub);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 600px;
}

/* EVM Contract Box */
.contract-box {
  display: flex;
  align-items: center;
  background: #000000;
  border: 1px solid var(--rh-border);
  border-radius: 50px;
  padding: 0.4rem 0.5rem 0.4rem 1.2rem;
  max-width: 540px;
  margin-bottom: 2rem;
}
.contract-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--rh-green);
  margin-right: 0.8rem;
  font-weight: 700;
}
.contract-address {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.btn-copy {
  background: var(--rh-green);
  color: #000000;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 40px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--tr-fast);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.btn-copy:hover {
  background: var(--rh-green-bright);
}

/* Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.stat-item {
  border-left: 2px solid var(--rh-green);
  padding-left: 1rem;
}
.stat-value {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--rh-green-bright);
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Portal Symbol Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.portal-glow-ring {
  position: absolute;
  width: 320px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 200, 5, 0.2) 0%, transparent 70%);
  filter: blur(35px);
}
.portal-symbol {
  width: 100%;
  max-width: 320px;
  filter: drop-shadow(0 0 25px var(--rh-green-glow));
  animation: float-symbol 6s ease-in-out infinite;
}

/* Ticker Stream */
.bot-stream-section {
  background: #090B0E;
  border-y: 1px solid var(--rh-border);
  padding: 1rem 0;
  overflow: hidden;
}
.ticker-wrap {
  display: flex;
  align-items: center;
  gap: 2rem;
  white-space: nowrap;
  animation: ticker-slide 30s linear infinite;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--rh-border);
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
}
.ticker-badge {
  background: var(--rh-green);
  color: #000;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
}

/* Section Common */
.section {
  padding: 6rem 0;
}
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem auto;
}
.section-subtitle {
  font-family: var(--font-mono);
  color: var(--rh-green);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.8rem;
}
.section-title {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  margin-bottom: 1rem;
}
.section-description {
  color: var(--text-sub);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Calculator Grid */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.slider-value {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--rh-green-bright);
}
input[type=range] {
  width: 100%;
  height: 6px;
  background: #1C222C;
  border-radius: 5px;
  accent-color: var(--rh-green);
  cursor: pointer;
}
.yield-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}
.yield-card {
  background: #080A0D;
  border: 1px solid var(--rh-border);
  border-radius: 16px;
  padding: 1.2rem;
  text-align: center;
}
.yield-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.yield-amount {
  font-family: var(--font-mono);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--rh-green-bright);
}

/* Swap Widget EVM */
.swap-card {
  max-width: 460px;
  margin: 0 auto;
}
.swap-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.swap-input-group {
  background: #080A0D;
  border: 1px solid var(--rh-border);
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 0.8rem;
}
.swap-input-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.swap-input-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.swap-input-row input {
  background: none;
  border: none;
  color: #FFF;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  outline: none;
  width: 60%;
}
.token-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #1C222C;
  border: 1px solid var(--rh-border);
  padding: 0.4rem 0.8rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.95rem;
}

/* Tabs */
.lore-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.tab-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--rh-border);
  color: var(--text-sub);
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-family: var(--font-sans);
  font-weight: 600;
  cursor: pointer;
  transition: var(--tr-fast);
}
.tab-btn.active, .tab-btn:hover {
  background: var(--rh-green);
  color: #000000;
  border-color: var(--rh-green-bright);
  box-shadow: 0 0 20px var(--rh-green-glow);
}
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}
.lore-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.lore-image-wrapper img {
  max-width: 260px;
  filter: drop-shadow(0 0 20px var(--rh-green-glow));
}

/* Tokenomics */
.tokenomics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.tok-card {
  text-align: center;
}
.tok-percent {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--rh-green-bright);
  margin-bottom: 0.5rem;
}
.tok-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.tok-desc {
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.5;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.gallery-card {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--rh-border);
  background: var(--rh-card);
  padding: 1.5rem;
  text-align: center;
}
.gallery-card img {
  width: 100%;
  max-width: 240px;
  margin-bottom: 1rem;
}

/* Footer */
.footer {
  background: #040506;
  border-top: 1px solid var(--rh-border);
  padding: 4rem 0 2rem 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand p {
  color: var(--text-sub);
  margin-top: 1rem;
  line-height: 1.6;
  max-width: 400px;
}
.footer-title {
  font-family: var(--font-heading);
  color: var(--rh-green-bright);
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.footer-links a {
  color: var(--text-sub);
  text-decoration: none;
  transition: var(--tr-fast);
}
.footer-links a:hover {
  color: var(--rh-green-bright);
}
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Animations */
@keyframes float-symbol {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.2); }
}
@keyframes ticker-slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Toasts */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
}
.toast {
  background: var(--rh-card);
  border: 1px solid var(--rh-green);
  color: var(--text-main);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  font-family: var(--font-mono);
  font-size: 0.88rem;
}

@media (max-width: 1024px) {
  .hero-grid, .calc-grid, .lore-card-grid {
    grid-template-columns: 1fr;
  }
  .tokenomics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero-title { font-size: 2.3rem; }
  .tokenomics-grid, .gallery-grid, .footer-grid { grid-template-columns: 1fr; }
  .contract-box { flex-direction: column; align-items: stretch; border-radius: 20px; }
}
