/* ==========================================================================
   ROYI BlockChain - Core Design System & Styling
   Apertum-Inspired Web Architecture & Aesthetics
   ========================================================================== */

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

:root {
  /* Brand Color Palette - Glowing Cyan/Teal & Gold Biometric Aesthetic */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: #ffffff;
  --bg-subtle: #f0fdfa;
  --bg-gradient: linear-gradient(180deg, #ffffff 0%, #ecfeff 50%, #ffffff 100%);
  --bg-hero: radial-gradient(circle at 50% 0%, rgba(6, 182, 212, 0.14) 0%, rgba(255, 255, 255, 0) 70%);

  /* Primary Accent & Interactivity (Matching Glowing Cyan/Teal Coin Halo) */
  --primary-blue: #06b6d4;
  --primary-blue-hover: #0891b2;
  --primary-blue-dark: #0e7490;
  --primary-glow: rgba(6, 182, 212, 0.38);
  
  /* Highlights & Secondary Accents */
  --cyan-accent: #00f2fe;
  --cyan-glow: rgba(0, 242, 254, 0.35);
  --teal-accent: #0d9488;
  --emerald-green: #10b981;
  --emerald-bg: rgba(16, 185, 129, 0.1);
  --amber-gold: #f59e0b;
  --gold-glow: rgba(245, 158, 11, 0.35);

  /* Typography & Borders */
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-color: rgba(226, 232, 240, 0.9);
  --border-glow: rgba(6, 182, 212, 0.3);

  /* Elevation Shadows & Glassmorphism */
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px rgba(6, 182, 212, 0.15);
  --shadow-glow: 0 0 25px rgba(6, 182, 212, 0.3);
  --glass-bg: rgba(255, 255, 255, 0.92);
  --glass-border: 1px solid rgba(226, 232, 240, 0.8);
  --backdrop-blur: blur(16px);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Theme Overrides (For Block Explorer & Technical Pages) */
body.dark-mode {
  --bg-primary: #0b0f19;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.8);
  --bg-card-hover: #1f2937;
  --bg-subtle: #1e293b;
  --bg-gradient: linear-gradient(180deg, #0b0f19 0%, #0f172a 50%, #0b0f19 100%);
  --bg-hero: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.18) 0%, rgba(11, 15, 25, 0) 70%);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  --border-color: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(17, 24, 39, 0.85);
  --glass-border: 1px solid rgba(255, 255, 255, 0.12);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Reset & Global Elements */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

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

/* Header & Navigation Bar (Professional Apertum-style Glass Floating Header) */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border-bottom: var(--glass-border);
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--text-main);
  white-space: nowrap;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.logo-badge {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary-blue), var(--cyan-accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
  transition: var(--transition);
}

.brand-logo:hover .logo-badge {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  transition: var(--transition);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-blue);
  background: rgba(59, 130, 246, 0.08);
}

.nav-link.active::after {
  display: none; /* Removed underline in favor of clean pill hover background */
}

/* Dropdown Menu Container */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--glass-bg);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border: var(--glass-border);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  min-width: 220px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1100;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(4px);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  transition: var(--transition);
  white-space: nowrap;
}

.dropdown-item i {
  color: var(--primary-blue);
  font-size: 0.95rem;
  width: 18px;
  text-align: center;
}

.dropdown-item:hover {
  background: rgba(59, 130, 246, 0.08);
  color: var(--primary-blue);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
}

/* Mobile Drawer CTA hidden by default on Desktop */
.mobile-drawer-cta {
  display: none !important;
}

/* Dark Mode & Wallet Specific Header Overrides */
body.dark-mode .navbar, .navbar-dark {
  background: rgba(15, 23, 42, 0.92) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

body.dark-mode .brand-logo, .navbar-dark .brand-logo {
  color: #ffffff !important;
}

body.dark-mode .nav-link, .navbar-dark .nav-link {
  color: #94a3b8 !important;
}

body.dark-mode .nav-link:hover, body.dark-mode .nav-link.active,
.navbar-dark .nav-link:hover, .navbar-dark .nav-link.active {
  color: #00f2fe !important;
  background: rgba(6, 182, 212, 0.15) !important;
}

/* Action Buttons for Header */
.btn-nav-secondary {
  background: var(--bg-subtle);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-nav-secondary:hover {
  background: var(--border-color);
  color: var(--primary-blue);
  transform: translateY(-1px);
}

.btn-nav-primary {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-hover));
  color: #ffffff;
  padding: 0.55rem 1.25rem;
  font-size: 0.85rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-nav-primary:hover {
  background: linear-gradient(135deg, var(--primary-blue-hover), var(--primary-blue-dark));
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.45);
}

/* Action Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-hover));
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-blue-hover), var(--primary-blue-dark));
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.45);
}

.btn-secondary {
  background: var(--bg-subtle);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--border-color);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary-blue);
  border: 1.5px solid var(--primary-blue);
}

.btn-outline:hover {
  background: rgba(59, 130, 246, 0.08);
  transform: translateY(-2px);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  padding: 5rem 0 4rem;
  background: var(--bg-hero);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: var(--primary-blue);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--cyan-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
  max-width: 620px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-badges {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.badge-item i {
  color: var(--emerald-green);
  font-size: 1.1rem;
}

/* 3D Orb / Globe Visualization Graphic */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.orb-container {
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #60a5fa 0%, #1d4ed8 60%, #0f172a 100%);
  box-shadow: 0 0 60px rgba(59, 130, 246, 0.4), inset 0 0 30px rgba(255, 255, 255, 0.3);
  position: relative;
  animation: floatOrb 6s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes floatOrb {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(3deg); }
}

.orb-inner {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #ffffff;
  text-align: center;
  backdrop-filter: blur(10px);
}

.orb-logo {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

.orb-sub {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  opacity: 0.9;
  text-transform: uppercase;
}

.orb-ring {
  position: absolute;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 50%;
  animation: spinRing 20s linear infinite;
}

@keyframes spinRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Real-Time Stats Grid (Apertum Active Network Bar) */
.stats-section {
  padding: 3rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  background: var(--bg-card);
  border: var(--glass-border);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-blue);
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  font-family: var(--font-mono);
}

.stat-sub {
  font-size: 0.8rem;
  color: var(--emerald-green);
  font-weight: 600;
  margin-top: 0.25rem;
}

/* Feature & Architecture Section */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.section-subtitle {
  color: var(--primary-blue);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--bg-card);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-blue);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.4rem;
}

.feature-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.feature-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Staking & Real-Yield Calculator Component */
.staking-calculator-box {
  background: var(--bg-card);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  margin-top: 2rem;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.calc-input-group {
  margin-bottom: 1.5rem;
}

.calc-label {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.calc-input {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  outline: none;
  transition: var(--transition);
}

.calc-input:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.range-slider {
  width: 100%;
  margin-top: 0.5rem;
  accent-color: var(--primary-blue);
}

.yield-display-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: var(--radius-md);
  padding: 2rem;
  color: #ffffff;
  box-shadow: var(--shadow-lg);
}

.yield-amount {
  font-size: 2.8rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--emerald-green);
  margin: 0.5rem 0;
}

/* Top Tokens & Ecosystem Table (Explore Ecosystem) */
.tokens-table-container {
  background: var(--bg-card);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: var(--shadow-md);
}

.tokens-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.tokens-table th {
  background: var(--bg-subtle);
  padding: 1.2rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-color);
}

.tokens-table td {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
  font-weight: 600;
}

.tokens-table tr:last-child td {
  border-bottom: none;
}

.tokens-table tr:hover {
  background: rgba(59, 130, 246, 0.04);
}

.token-cell {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.token-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: #ffffff;
}

.badge-green {
  color: var(--emerald-green);
  background: rgba(16, 185, 129, 0.12);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
}

/* Interactive Timeline (Roadmap Page) */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--border-color);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 1.5rem 2.5rem;
}

.timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
}

.timeline-dot {
  position: absolute;
  top: 2rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-blue);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25);
  z-index: 10;
}

.timeline-item.left .timeline-dot {
  right: -9px;
}

.timeline-item.right .timeline-dot {
  left: -9px;
}

.timeline-content {
  background: var(--bg-card);
  border: var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.timeline-status {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.6rem;
}

.status-completed {
  background: var(--emerald-bg);
  color: var(--emerald-green);
}

.status-planned {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-blue);
}

/* Footer Section */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 1rem;
  max-width: 320px;
}

.footer-column h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--primary-blue);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Responsiveness & Mobile Cell Phone Optimization */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-buttons, .hero-badges {
    justify-content: center;
  }
  .hero-description {
    margin: 0 auto 2.25rem;
  }
  .calc-grid {
    grid-template-columns: 1fr;
  }
  .timeline::before {
    left: 20px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 0;
  }
  .timeline-item.left, .timeline-item.right {
    left: 0;
    text-align: left;
  }
  .timeline-item.left .timeline-dot, .timeline-item.right .timeline-dot {
    left: 11px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1300px) {
  .navbar {
    padding: 0.5rem 0;
    background: #0f172a !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    z-index: 100000 !important;
  }

  .nav-container {
    height: 64px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 0.85rem !important;
  }

  .brand-logo {
    color: #ffffff !important;
    flex-shrink: 0 !important;
  }

  .nav-actions {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
  }

  .nav-actions .btn-nav-secondary {
    display: none !important;
  }

  .mobile-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0 !important;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
  }

  .mobile-toggle:hover {
    background: rgba(6, 182, 212, 0.2);
    color: #00f2fe !important;
    border-color: #00f2fe;
  }

  /* Full Screen Corporate Mobile Navigation Drawer Overlay */
  .nav-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100vh - 64px);
    background: rgba(15, 23, 42, 0.98) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.5rem 1.25rem 3rem;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 99999 !important;
    overflow-y: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.95);
  }

  .nav-links.active {
    display: flex !important;
  }

  .nav-link {
    width: 100%;
    padding: 0.85rem 1.1rem;
    font-size: 0.98rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1 !important;
    justify-content: flex-start;
  }

  .nav-link:hover, .nav-link.active {
    background: rgba(6, 182, 212, 0.15) !important;
    color: #00f2fe !important;
    border-color: rgba(6, 182, 212, 0.4) !important;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown .nav-link {
    justify-content: space-between;
  }

  .dropdown-menu {
    position: static;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0.4rem 0 0.4rem 0.8rem;
    min-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .dropdown-item {
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    color: #cbd5e1 !important;
  }

  .dropdown-item:hover {
    color: #00f2fe !important;
    background: rgba(6, 182, 212, 0.12) !important;
  }

  .mobile-drawer-cta {
    display: flex !important;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-drawer-cta .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    font-size: 0.9rem;
    padding: 0.8rem;
  }

  .hero-title {
    font-size: 2.3rem;
    line-height: 1.2;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* Tablet Breakpoint (Under 768px) */
@media (max-width: 768px) {
  .balance-badge {
    display: none !important;
  }
  
  .brand-logo span {
    font-size: 0.95rem;
  }
}

/* Mobile Phone Breakpoint (Under 576px / Cell Phone View) */
@media (max-width: 576px) {
  .balance-badge {
    display: none !important;
  }

  #btnConnectBiometric, .btn-nav-primary {
    padding: 0.45rem 0.7rem !important;
    font-size: 0.82rem !important;
  }

  #btnConnectBiometric span, .btn-nav-primary span {
    display: none !important;
  }
}

  .container {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }

  .hero-section {
    padding: 3rem 0 2.5rem;
  }

  .hero-title {
    font-size: 1.95rem;
    letter-spacing: -0.02em;
  }

  .hero-description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
  }

  /* Full Width Stacked CTA Buttons on Mobile */
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.75rem;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    white-space: normal;
    padding: 0.85rem 1.1rem;
    font-size: 0.9rem;
  }

  .hero-badges {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
  }

  /* Responsive Orb Graphic scaling for small screens */
  .hero-visual {
    max-width: 100%;
    overflow: hidden;
    padding: 1.5rem 0;
  }

  .orb-container {
    width: 250px;
    height: 250px;
  }

  .orb-inner {
    width: 180px;
    height: 180px;
  }

  .orb-logo {
    font-size: 2.3rem;
  }

  .orb-ring {
    width: 300px;
    height: 300px;
  }

  /* Single Column Stats Grid on Mobile */
  .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }

  .stat-card {
    padding: 1.2rem;
  }

  .stat-value {
    font-size: 1.5rem;
    word-break: break-word;
  }

  .feature-grid {
    grid-template-columns: 1fr !important;
    gap: 1.2rem;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .staking-calculator-box {
    padding: 1.25rem;
  }

  .yield-amount {
    font-size: 1.9rem;
  }

  .yield-display-card {
    padding: 1.25rem;
  }

  /* Table Horizontal Scrolling Wrapper */
  .table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@keyframes floatCoin {
  0%, 100% {
    transform: translateY(0px) rotate(-2deg);
    filter: drop-shadow(0 0 35px rgba(16, 185, 129, 0.5));
  }
  50% {
    transform: translateY(-14px) rotate(2deg);
    filter: drop-shadow(0 0 55px rgba(56, 189, 248, 0.7));
  }
}

