/* ============================================
   STABIL WALLET - Website Design System
   Light Mode Default + Dark Mode Toggle
   ============================================ */

/* --- LIGHT MODE (Default) --- */
:root {
  /* Backgrounds */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f8f9;
  --bg-tertiary: #f0f1f3;
  --bg-elevated: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.8);
  --bg-glass: rgba(0, 0, 0, 0.02);
  --bg-glass-hover: rgba(0, 0, 0, 0.04);
  --bg-glass-border: rgba(0, 0, 0, 0.08);

  /* Text */
  --text-primary: #000000;
  --text-secondary: #555860;
  --text-tertiary: #8a8d95;
  --text-muted: #b0b3ba;

  /* Accent */
  --accent: #000000;
  --accent-hover: #333333;
  --accent-glow: rgba(0, 0, 0, 0.1);
  --accent-subtle: rgba(0, 0, 0, 0.05);
  --accent-blue: #0a84ff;

  /* Semantic */
  --success: #34c759;
  --error: #ff3b30;
  --warning: #ff9500;
  --info: #007aff;
  --purple: #af52de;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #000000 0%, #333333 50%, #555555 100%);
  --gradient-mesh: radial-gradient(ellipse at 20% 50%, rgba(0, 0, 0, 0.03) 0%, transparent 50%),
                   radial-gradient(ellipse at 80% 20%, rgba(175, 82, 222, 0.03) 0%, transparent 50%),
                   radial-gradient(ellipse at 50% 80%, rgba(10, 132, 255, 0.02) 0%, transparent 50%);

  /* Shadows - light mode has visible shadows */
  --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.06);
  --shadow-glow: 0 0 40px rgba(0, 0, 0, 0.04);
  --shadow-elevated: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-screenshot: 0 20px 60px rgba(0, 0, 0, 0.12);

  /* Theme toggle */
  --toggle-bg: #f0f1f3;
  --toggle-icon-show: block;
  --toggle-icon-hide: none;

  /* Screenshot visual */
  --screenshot-shadow: 0 30px 80px rgba(0, 0, 0, 0.15), 0 10px 30px rgba(0, 0, 0, 0.08);
  --phone-frame: #1a1a1a;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- DARK MODE --- */
[data-theme="dark"] {
  --bg-primary: #0a0b0e;
  --bg-secondary: #121317;
  --bg-tertiary: #1b1d22;
  --bg-elevated: #24272e;
  --bg-card: rgba(27, 29, 34, 0.65);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-hover: rgba(255, 255, 255, 0.07);
  --bg-glass-border: rgba(255, 255, 255, 0.08);
  --text-primary: #ffffff;
  --text-secondary: #a0a3ab;
  --text-tertiary: #6b6e76;
  --text-muted: #4a4d55;
  --accent: #0a84ff;
  --accent-hover: #3399ff;
  --accent-glow: rgba(10, 132, 255, 0.25);
  --accent-subtle: rgba(10, 132, 255, 0.1);
  --accent-blue: #0a84ff;
  --success: #34c759;
  --error: #ff453a;
  --warning: #ff9f0a;
  --info: #64d2ff;
  --purple: #bf5af2;
  --gradient-hero: linear-gradient(135deg, #0a84ff 0%, #bf5af2 50%, #ff375f 100%);
  --gradient-mesh: radial-gradient(ellipse at 20% 50%, rgba(10, 132, 255, 0.08) 0%, transparent 50%),
                   radial-gradient(ellipse at 80% 20%, rgba(191, 90, 242, 0.06) 0%, transparent 50%),
                   radial-gradient(ellipse at 50% 80%, rgba(255, 55, 95, 0.04) 0%, transparent 50%);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 40px rgba(10, 132, 255, 0.15);
  --shadow-elevated: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-screenshot: 0 20px 60px rgba(0, 0, 0, 0.4);
  --toggle-bg: #1b1d22;
  --screenshot-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 10px 30px rgba(0, 0, 0, 0.3);
  --phone-frame: #ffffff;
}

/* --- Theme Toggle Button --- */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--bg-glass-border);
  background: var(--toggle-bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  color: var(--text-secondary);
  padding: 0;
}

.theme-toggle:hover {
  border-color: var(--text-tertiary);
  color: var(--text-primary);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* --- Screenshot Showcase --- */
.screenshot-showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  padding: var(--space-2xl) 0;
  perspective: 1200px;
}

.screenshot-phone {
  border-radius: 40px;
  overflow: hidden;
  box-shadow: var(--screenshot-shadow);
  transition: all 0.5s ease;
  flex-shrink: 0;
}

.screenshot-phone img {
  display: block;
  width: 100%;
  height: auto;
}

.screenshot-phone.main {
  width: 280px;
  z-index: 3;
  transform: translateY(0);
}

.screenshot-phone.side {
  width: 230px;
  z-index: 1;
  opacity: 0.7;
  transform: scale(0.9);
  filter: blur(1px);
}

.screenshot-phone.side:hover {
  opacity: 0.9;
  transform: scale(0.93);
  filter: blur(0);
}

.screenshot-phone.main:hover {
  transform: translateY(-8px);
  box-shadow: var(--screenshot-shadow), 0 40px 100px rgba(0, 0, 0, 0.12);
}

/* Hero screenshot carousel */
.hero-screenshots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-3xl);
  perspective: 1400px;
}

.hero-phone {
  border-radius: 36px;
  overflow: hidden;
  box-shadow: var(--screenshot-shadow);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}

.hero-phone img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-phone.center {
  width: 260px;
  z-index: 3;
}

.hero-phone.left,
.hero-phone.right {
  width: 200px;
  z-index: 1;
  opacity: 0.5;
  transform: scale(0.85);
}

.hero-phone.left { transform: scale(0.85) rotateY(8deg); }
.hero-phone.right { transform: scale(0.85) rotateY(-8deg); }

.hero-phone.center:hover {
  transform: translateY(-12px);
}

@media (max-width: 768px) {
  .hero-phone.left,
  .hero-phone.right {
    display: none;
  }
  .hero-phone.center {
    width: 220px;
  }
  .screenshot-phone.side {
    display: none;
  }
  .screenshot-phone.main {
    width: 240px;
  }
}

/* Feature section with screenshot */
.feature-with-screenshot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  padding: var(--space-4xl) 0;
}

.feature-with-screenshot.reverse {
  direction: rtl;
}

.feature-with-screenshot.reverse > * {
  direction: ltr;
}

.feature-screenshot-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-screenshot-wrap .screenshot-phone {
  width: 260px;
}

@media (max-width: 768px) {
  .feature-with-screenshot {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  .feature-with-screenshot.reverse {
    direction: ltr;
  }
  .feature-screenshot-wrap .screenshot-phone {
    width: 220px;
  }
  .feature-screenshot-wrap {
    order: -1;
  }
}

/* App Store badge styling */
.appstore-badge {
  height: 54px;
  transition: all var(--transition-base);
  border-radius: 12px;
}

.appstore-badge:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* Light mode specific card styling */
.glass-card {
  box-shadow: var(--shadow-card);
}

[data-theme="dark"] .glass-card {
  box-shadow: none;
}

/* Navbar light mode */
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--bg-glass-border);
}

[data-theme="dark"] .navbar.scrolled {
  background: rgba(10, 11, 14, 0.85);
}

/* --- App Mockup Components --- */
.mockup-phone {
  width: 280px;
  border-radius: 40px;
  border: 5px solid #1a1a1a;
  background: #ffffff;
  overflow: hidden;
  box-shadow: var(--screenshot-shadow);
  flex-shrink: 0;
  transition: transform 0.5s ease;
  position: relative;
}

[data-theme="dark"] .mockup-phone {
  border-color: #333;
}

.mockup-phone:hover {
  transform: translateY(-8px);
}

.mockup-phone.side-phone {
  width: 220px;
  opacity: 0.6;
  transform: scale(0.88);
  filter: blur(0.5px);
}

.mockup-phone.side-phone:hover {
  opacity: 0.85;
  transform: scale(0.91);
  filter: none;
}

.mockup-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 30px;
  background: #1a1a1a;
  border-radius: 0 0 18px 18px;
  z-index: 5;
}

[data-theme="dark"] .mockup-notch {
  background: #333;
}

.mockup-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 6px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #000;
}

.mockup-screen {
  padding: 0 14px 18px;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
  color: #000;
  background: #fff;
  min-height: 480px;
}

/* Mockup internal elements */
.m-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #000;
  gap: 4px;
  position: relative;
}

.m-back {
  position: absolute;
  left: 0;
  font-size: 1rem;
  color: #000;
}

.m-balance {
  text-align: center;
  padding: 12px 0;
}

.m-balance-label {
  font-size: 0.6875rem;
  color: #8a8d95;
  margin-bottom: 2px;
}

.m-balance-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: #000;
  letter-spacing: -0.02em;
}

.m-balance-value .cents {
  font-size: 1rem;
  font-weight: 600;
  color: #8a8d95;
}

.m-balance-change {
  font-size: 0.625rem;
  color: #ff3b30;
  margin-top: 2px;
}

.m-balance-change.positive {
  color: #34c759;
}

.m-chart {
  height: 50px;
  margin: 4px 0 8px;
  position: relative;
}

.m-chart svg {
  width: 100%;
  height: 100%;
}

.m-periods {
  display: flex;
  justify-content: space-between;
  font-size: 0.5625rem;
  color: #8a8d95;
  padding: 0 4px 10px;
}

.m-periods span.active {
  color: #000;
  font-weight: 700;
  background: #f0f1f3;
  padding: 2px 8px;
  border-radius: 6px;
}

.m-actions {
  display: flex;
  justify-content: center;
  gap: 28px;
  padding: 10px 0 14px;
}

.m-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.5625rem;
  color: #000;
}

.m-action-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f0f1f3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
}

.m-tabs {
  display: flex;
  border-bottom: 1.5px solid #f0f1f3;
  margin-bottom: 8px;
}

.m-tab {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  font-size: 0.6875rem;
  font-weight: 500;
  color: #8a8d95;
}

.m-tab.active {
  color: #000;
  font-weight: 600;
  border-bottom: 2px solid #000;
}

.m-coin-row {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
}

.m-coin-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 10px;
  flex-shrink: 0;
}

.m-coin-info {
  flex: 1;
}

.m-coin-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: #000;
}

.m-coin-symbol {
  font-size: 0.5625rem;
  color: #8a8d95;
}

.m-coin-value {
  text-align: right;
}

.m-coin-usd {
  font-size: 0.75rem;
  font-weight: 600;
  color: #000;
}

.m-coin-amount {
  font-size: 0.5625rem;
  color: #8a8d95;
}

/* Swap mockup */
.m-swap-section {
  padding: 4px 0;
}

.m-swap-card {
  background: #f8f8f9;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 4px;
}

.m-swap-label {
  font-size: 0.5625rem;
  color: #8a8d95;
  margin-bottom: 4px;
}

.m-swap-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.m-swap-token {
  display: flex;
  align-items: center;
  gap: 6px;
}

.m-swap-token-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.m-swap-token-name {
  font-size: 0.75rem;
  font-weight: 600;
}

.m-swap-token-chain {
  font-size: 0.5rem;
  color: #8a8d95;
}

.m-swap-amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: #000;
}

.m-swap-arrow {
  text-align: center;
  color: #8a8d95;
  font-size: 0.875rem;
  padding: 2px 0;
}

.m-swap-rate {
  font-size: 0.5625rem;
  color: #8a8d95;
  padding: 8px 0;
}

.m-btn-full {
  width: 100%;
  padding: 13px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-top: 8px;
}

/* Browser mockup */
.m-search-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f0f1f3;
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 10px;
  font-size: 0.6875rem;
  color: #8a8d95;
}

.m-filter-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}

.m-filter {
  font-size: 0.5625rem;
  padding: 4px 10px;
  border-radius: 999px;
  color: #8a8d95;
  background: none;
  white-space: nowrap;
}

.m-filter.active {
  background: #000;
  color: #fff;
  font-weight: 600;
}

.m-dapp-row {
  display: flex;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f5f5f5;
}

.m-dapp-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #f0f1f3;
  margin-right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  color: #555;
  flex-shrink: 0;
}

.m-dapp-info {
  flex: 1;
}

.m-dapp-name {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #000;
}

.m-dapp-desc {
  font-size: 0.5rem;
  color: #8a8d95;
}

.m-dapp-chains {
  display: flex;
  gap: 2px;
}

.m-dapp-chain-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

/* Settings mockup */
.m-settings-group {
  margin-bottom: 12px;
}

.m-settings-label {
  font-size: 0.5625rem;
  font-weight: 600;
  color: #8a8d95;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 0 6px;
}

.m-settings-row {
  display: flex;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid #f5f5f5;
}

.m-settings-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  font-size: 0.625rem;
  color: #fff;
  flex-shrink: 0;
}

.m-settings-text {
  flex: 1;
  font-size: 0.6875rem;
  font-weight: 500;
  color: #000;
}

.m-settings-chevron {
  color: #ccc;
  font-size: 0.75rem;
}

/* Phone showcase layout */
.phone-showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  padding: var(--space-xl) 0;
  perspective: 1400px;
}

@media (max-width: 768px) {
  .phone-showcase .side-phone {
    display: none;
  }
  .mockup-phone {
    width: 250px;
  }
  .mockup-screen {
    min-height: 420px;
  }
}

@media (max-width: 480px) {
  .mockup-phone {
    width: 230px;
  }
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

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

a:hover {
  color: var(--accent-hover);
}

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

::selection {
  background: var(--accent);
  color: white;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-lg);
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  margin-bottom: var(--space-md);
}

h4 {
  font-size: 1.125rem;
  margin-bottom: var(--space-sm);
}

p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.text-gradient {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

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

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-sm {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-lg {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-4xl) 0;
}

.section-sm {
  padding: var(--space-3xl) 0;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }
.gap-2xl { gap: var(--space-2xl); }

/* --- Grid System --- */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* --- Glass Card --- */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
}

.glass-card:hover {
  background: var(--bg-glass-hover);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.glass-card-static {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.glass-card-accent {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(10, 132, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: 0 0 30px rgba(10, 132, 255, 0.05);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 16px rgba(10, 132, 255, 0.3);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(10, 132, 255, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--bg-glass-border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  padding: 10px 20px;
}

.btn-ghost:hover {
  background: var(--accent-subtle);
  color: var(--accent-hover);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-md) 0;
  transition: all var(--transition-base);
}

.navbar.scrolled {
  background: rgba(10, 11, 14, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--bg-glass-border);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.navbar-brand:hover {
  color: var(--text-primary);
}

.navbar-brand svg {
  width: 32px;
  height: 32px;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
}

.navbar-links a {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--text-primary);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: var(--space-sm);
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 11, 14, 0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.mobile-nav-close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  .navbar-links, .navbar-actions {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: calc(var(--vh, 1vh) * 100); /* Fix for mobile browsers */
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(10, 132, 255, 0.12) 0%, transparent 40%),
              radial-gradient(circle at 70% 60%, rgba(191, 90, 242, 0.08) 0%, transparent 40%);
  animation: heroFloat 20s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(2%, -1%) rotate(1deg); }
  66% { transform: translate(-1%, 1%) rotate(-0.5deg); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 8px 16px;
  background: var(--accent-subtle);
  border: 1px solid rgba(10, 132, 255, 0.2);
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: var(--space-xl);
}

.hero h1 {
  margin-bottom: var(--space-lg);
  line-height: 1.1;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3xl);
  margin-top: var(--space-4xl);
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat-label {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  margin-top: var(--space-xs);
}

@media (max-width: 640px) {
  .hero-stats {
    gap: var(--space-xl);
  }
  .hero-stat-value {
    font-size: 1.5rem;
  }
}

/* --- Section Header --- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-3xl);
}

.section-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: var(--space-md);
}

/* --- Feature Card --- */
.feature-card {
  position: relative;
  overflow: hidden;
}

.feature-card .feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  background: var(--accent-subtle);
  color: var(--accent);
}

.feature-card .feature-icon.purple {
  background: rgba(191, 90, 242, 0.1);
  color: var(--purple);
}

.feature-card .feature-icon.green {
  background: rgba(52, 199, 89, 0.1);
  color: var(--success);
}

.feature-card .feature-icon.orange {
  background: rgba(255, 159, 10, 0.1);
  color: var(--warning);
}

.feature-card .feature-icon.red {
  background: rgba(255, 69, 58, 0.1);
  color: var(--error);
}

.feature-card .feature-icon.blue {
  background: rgba(100, 210, 255, 0.1);
  color: var(--info);
}

.feature-card h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-sm);
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--text-tertiary);
  margin-bottom: 0;
}

/* --- Chain Badge --- */
.chain-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

.chain-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.chain-badge img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

/* --- Chain Logo (larger, for cards) --- */
.chain-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.chain-logo-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.chain-logo-xs {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.feature-icon img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.staking-table td img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 8px;
}

.chain-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

/* --- Big Feature Block --- */
.big-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  padding: var(--space-4xl) 0;
}

.big-feature.reverse {
  direction: rtl;
}

.big-feature.reverse > * {
  direction: ltr;
}

.big-feature-visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.big-feature-content h2 {
  margin-bottom: var(--space-md);
}

.big-feature-content p {
  font-size: 1.0625rem;
  margin-bottom: var(--space-lg);
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.feature-list li .check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(52, 199, 89, 0.15);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  margin-top: 2px;
}

@media (max-width: 768px) {
  .big-feature {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  .big-feature.reverse {
    direction: ltr;
  }
}

/* --- Stat Bar --- */
.stat-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  padding: var(--space-2xl);
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-xl);
}

.stat-item {
  text-align: center;
}

.stat-item-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
}

.stat-item-label {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  margin-top: var(--space-xs);
}

@media (max-width: 640px) {
  .stat-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Network Banner --- */
.network-banner {
  position: relative;
  overflow: hidden;
  padding: var(--space-3xl) 0;
}

.network-scroll {
  display: flex;
  gap: var(--space-md);
  animation: scroll-left 40s linear infinite;
  width: max-content;
}

.network-scroll:hover {
  animation-play-state: paused;
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Security Section --- */
.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 768px) {
  .security-grid {
    grid-template-columns: 1fr;
  }
}

/* --- CTA Section --- */
.cta-section {
  position: relative;
  padding: var(--space-4xl) 0;
  text-align: center;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(10, 132, 255, 0.1) 0%, transparent 60%);
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  margin-bottom: var(--space-md);
}

.cta-content p {
  font-size: 1.125rem;
  max-width: 500px;
  margin: 0 auto var(--space-xl);
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--bg-glass-border);
  padding: var(--space-3xl) 0 var(--space-2xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand p {
  color: var(--text-tertiary);
  font-size: 0.875rem;
  margin-top: var(--space-md);
  max-width: 300px;
}

.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-bottom: var(--space-md);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: var(--space-sm);
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.footer-col a:hover {
  color: var(--text-primary);
}

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

.footer-bottom-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-bottom-links a {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.footer-bottom-links a:hover {
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Page Header (for inner pages) --- */
.page-header {
  padding: calc(80px + var(--space-4xl)) 0 var(--space-3xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
}

.page-header-content {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  margin-bottom: var(--space-md);
}

.page-header p {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Policy Pages --- */
.policy-content {
  padding: var(--space-3xl) 0;
}

.policy-content h2 {
  font-size: 1.5rem;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--bg-glass-border);
}

.policy-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.policy-content h3 {
  font-size: 1.125rem;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.policy-content p, .policy-content li {
  color: var(--text-secondary);
  line-height: 1.8;
}

.policy-content ul, .policy-content ol {
  padding-left: var(--space-xl);
  margin-bottom: var(--space-md);
}

.policy-content li {
  margin-bottom: var(--space-sm);
}

.policy-date {
  display: inline-block;
  padding: 6px 14px;
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  margin-bottom: var(--space-xl);
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
  outline: none;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236b6e76'%3E%3Cpath d='M8 11.4L2.6 6l1.4-1.4L8 8.6l4-4L13.4 6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

/* --- FAQ / Accordion --- */
.accordion {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.accordion-item {
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-base);
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-glass);
  border: none;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.accordion-header:hover {
  background: var(--bg-glass-hover);
}

.accordion-icon {
  transition: transform var(--transition-base);
  font-size: 1.25rem;
  color: var(--text-tertiary);
}

.accordion-item.open .accordion-icon {
  transform: rotate(45deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.accordion-item.open .accordion-body {
  max-height: 500px;
}

.accordion-body-inner {
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* --- Pill / Tag --- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pill-accent {
  background: var(--accent-subtle);
  color: var(--accent);
}

.pill-success {
  background: rgba(52, 199, 89, 0.1);
  color: var(--success);
}

.pill-purple {
  background: rgba(191, 90, 242, 0.1);
  color: var(--purple);
}

/* --- Divider --- */
.divider {
  width: 100%;
  height: 1px;
  background: var(--bg-glass-border);
  margin: var(--space-2xl) 0;
}

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Staking Table --- */
.staking-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-lg);
}

.staking-table th {
  text-align: left;
  padding: var(--space-md);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  border-bottom: 1px solid var(--bg-glass-border);
}

.staking-table td {
  padding: var(--space-md);
  font-size: 0.9375rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.staking-table tr:hover td {
  background: var(--bg-glass);
}

/* --- Shimmer Animation (placeholder visual) --- */
.shimmer {
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-elevated) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
  border-radius: var(--radius-md);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* --- Phone Mockup --- */
.phone-mockup {
  width: 280px;
  height: 560px;
  border-radius: 36px;
  border: 4px solid var(--bg-elevated);
  background: var(--bg-secondary);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-elevated), 0 0 60px rgba(10, 132, 255, 0.08);
}

.phone-mockup-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: var(--bg-primary);
  border-radius: 0 0 16px 16px;
  z-index: 1;
}

.phone-mockup-screen {
  padding: 40px 16px 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* --- Responsive Utils --- */
@media (min-width: 769px) {
  .hide-desktop { display: none !important; }
}

/* ============================================
   COMPREHENSIVE MOBILE & TABLET RESPONSIVE
   ============================================ */

/* === TABLET (768px - 1024px) === */
@media (max-width: 1024px) {
  .container { padding: 0 var(--space-lg); }
  .section { padding: var(--space-3xl) 0; }
  .section-sm { padding: var(--space-2xl) 0; }

  .big-feature {
    gap: var(--space-2xl);
  }

  .stat-bar {
    padding: var(--space-lg);
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-xl);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .glass-card {
    padding: var(--space-lg);
  }
}

/* === MOBILE (max 768px) === */
@media (max-width: 768px) {
  /* --- Hide on mobile --- */
  .hide-mobile { display: none !important; }

  /* --- Base --- */
  html { font-size: 15px; }
  body { overflow-x: hidden; }

  .container,
  .container-sm,
  .container-lg {
    padding: 0 var(--space-md);
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  .section-sm {
    padding: var(--space-xl) 0;
  }

  /* --- Typography mobile --- */
  h1 { font-size: 2rem; line-height: 1.15; }
  h2 { font-size: 1.5rem; margin-bottom: var(--space-md); }
  h3 { font-size: 1.125rem; }
  h4 { font-size: 1rem; }

  .section-header {
    margin-bottom: var(--space-2xl);
  }

  .section-label {
    font-size: 0.75rem;
  }

  /* --- Navbar mobile --- */
  .navbar {
    padding: var(--space-sm) 0;
  }

  .navbar-inner {
    padding: 0 var(--space-md);
  }

  .navbar-links {
    display: none;
  }

  .navbar-actions {
    gap: var(--space-sm);
  }

  .navbar-actions .btn-sm {
    padding: 8px 14px;
    font-size: 0.8125rem;
  }

  .navbar-brand {
    font-size: 1.125rem;
  }

  .navbar-brand img,
  .navbar-brand svg {
    width: 28px;
    height: 28px;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
  }

  /* --- Language Switcher mobile --- */
  .lang-btn {
    padding: 5px 8px;
  }

  .lang-btn .lang-code {
    display: none;
  }

  .lang-dropdown {
    right: -40px;
    min-width: 180px;
  }

  /* --- Hero mobile --- */
  .hero {
    min-height: auto;
    padding: calc(70px + var(--space-2xl)) 0 var(--space-2xl);
  }

  .hero-content {
    padding: 0 var(--space-sm);
  }

  .hero h1 {
    font-size: 2rem;
    margin-bottom: var(--space-md);
  }

  .hero p {
    font-size: 0.9375rem;
    margin-bottom: var(--space-xl);
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 6px 12px;
    margin-bottom: var(--space-md);
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-sm);
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-stat {
    min-width: 70px;
  }

  .hero-stat-value {
    font-size: 1.375rem;
  }

  .hero-stat-label {
    font-size: 0.75rem;
  }

  /* --- Buttons mobile --- */
  .btn {
    padding: 12px 24px;
    font-size: 0.9375rem;
    min-height: 44px; /* iOS tap target */
  }

  .btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
  }

  .btn-sm {
    padding: 10px 16px;
    font-size: 0.8125rem;
    min-height: 40px;
  }

  /* --- Cards mobile --- */
  .glass-card,
  .glass-card-static,
  .glass-card-accent {
    padding: var(--space-md);
    border-radius: var(--radius-md);
  }

  .glass-card:hover {
    transform: none; /* Disable hover lift on touch devices */
  }

  .feature-card .feature-icon {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  /* --- Grids mobile --- */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  /* --- Big Feature blocks mobile --- */
  .big-feature {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    padding: var(--space-2xl) 0;
  }

  .big-feature.reverse {
    direction: ltr;
  }

  .big-feature-visual {
    aspect-ratio: auto;
    min-height: 200px;
  }

  .feature-list li {
    font-size: 0.875rem;
  }

  /* --- Feature with screenshot mobile --- */
  .feature-with-screenshot {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    padding: var(--space-2xl) 0;
  }

  .feature-with-screenshot.reverse {
    direction: ltr;
  }

  .feature-screenshot-wrap {
    order: -1;
  }

  .feature-screenshot-wrap .mockup-phone,
  .feature-screenshot-wrap .screenshot-phone {
    width: 220px;
    margin: 0 auto;
  }

  /* --- Phone Mockups mobile --- */
  .phone-showcase {
    gap: var(--space-md);
    padding: var(--space-lg) 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: var(--space-md);
  }

  .phone-showcase .mockup-phone {
    scroll-snap-align: center;
    flex-shrink: 0;
  }

  .phone-showcase .side-phone {
    display: none;
  }

  .mockup-phone {
    width: 240px;
    border-radius: 32px;
    border-width: 4px;
  }

  .mockup-phone:hover {
    transform: none;
  }

  .mockup-notch {
    width: 90px;
    height: 24px;
    border-radius: 0 0 14px 14px;
  }

  .mockup-screen {
    min-height: 400px;
    padding: 0 12px 14px;
  }

  .mockup-statusbar {
    padding: 12px 16px 4px;
    font-size: 0.625rem;
  }

  /* --- Network scroll banner mobile --- */
  .network-banner {
    padding: var(--space-xl) 0;
  }

  .chain-badge {
    font-size: 0.75rem;
    padding: 5px 10px;
  }

  .chain-badge img {
    width: 16px;
    height: 16px;
  }

  /* --- Stat Bar mobile --- */
  .stat-bar {
    grid-template-columns: repeat(2, 1fr);
    padding: var(--space-md);
    gap: var(--space-md);
  }

  .stat-item-value {
    font-size: 1.375rem;
  }

  .stat-item-label {
    font-size: 0.75rem;
  }

  /* --- Staking Table mobile --- */
  .staking-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    margin: 0 calc(var(--space-md) * -1);
    padding: 0 var(--space-md);
  }

  .staking-table th,
  .staking-table td {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.8125rem;
  }

  .staking-table td img {
    width: 20px;
    height: 20px;
  }

  /* --- Security Grid mobile --- */
  .security-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  /* --- Contact Grid mobile --- */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .form-input,
  .form-textarea,
  .form-select {
    padding: 12px 14px;
    font-size: 16px; /* Prevents iOS zoom on focus */
    min-height: 44px;
    border-radius: var(--radius-sm);
  }

  /* --- CTA mobile --- */
  .cta-content h2 {
    font-size: 1.5rem;
  }

  .cta-content p {
    font-size: 1rem;
  }

  /* --- Footer mobile --- */
  .footer {
    padding: var(--space-2xl) 0 var(--space-xl);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-brand p {
    max-width: none;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .footer-bottom-links {
    justify-content: center;
    flex-wrap: wrap;
  }

  /* --- Page Header (inner pages) mobile --- */
  .page-header {
    padding: calc(70px + var(--space-2xl)) 0 var(--space-2xl);
  }

  .page-header h1 {
    font-size: 1.75rem;
  }

  .page-header p {
    font-size: 0.9375rem;
  }

  /* --- Policy pages mobile --- */
  .policy-content h2 {
    font-size: 1.25rem;
    margin-top: var(--space-xl);
  }

  .policy-content h3 {
    font-size: 1rem;
  }

  .policy-content p,
  .policy-content li {
    font-size: 0.9375rem;
    line-height: 1.7;
  }

  .policy-content ul,
  .policy-content ol {
    padding-left: var(--space-lg);
  }

  /* --- Accordion mobile --- */
  .accordion-header {
    padding: var(--space-md);
    font-size: 0.9375rem;
  }

  .accordion-body-inner {
    padding: 0 var(--space-md) var(--space-md);
    font-size: 0.875rem;
  }

  /* --- Pill/Badge mobile --- */
  .pill {
    font-size: 0.6875rem;
    padding: 3px 10px;
  }

  /* --- Reveal animations: reduce movement --- */
  .reveal {
    transform: translateY(15px);
  }

  /* --- Divider mobile --- */
  .divider {
    margin: var(--space-xl) 0;
  }

  /* --- Screenshot showcase mobile --- */
  .screenshot-showcase {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: var(--space-md);
    padding: var(--space-md) 0;
  }

  .screenshot-phone.main {
    width: 220px;
  }

  .screenshot-phone.side {
    display: none;
  }
}

/* === SMALL PHONES (max 480px) === */
@media (max-width: 480px) {
  html { font-size: 14px; }

  .container,
  .container-sm {
    padding: 0 var(--space-sm);
  }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.375rem; }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero-stats {
    gap: var(--space-md);
  }

  .hero-stat-value {
    font-size: 1.25rem;
  }

  .stat-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
    padding: var(--space-sm);
  }

  .stat-item-value {
    font-size: 1.125rem;
  }

  .glass-card,
  .glass-card-static,
  .glass-card-accent {
    padding: var(--space-sm) var(--space-md);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .mockup-phone {
    width: 220px;
    border-radius: 28px;
    border-width: 3px;
  }

  .mockup-notch {
    width: 80px;
    height: 22px;
  }

  .mockup-screen {
    min-height: 360px;
    padding: 0 10px 12px;
  }

  .navbar-actions .btn-sm {
    padding: 7px 12px;
    font-size: 0.75rem;
  }

  .lang-btn {
    padding: 4px 6px;
  }

  .theme-toggle {
    width: 36px;
    height: 36px;
  }

  .theme-toggle svg {
    width: 16px;
    height: 16px;
  }

  .page-header h1 {
    font-size: 1.5rem;
  }
}

/* === LANDSCAPE PHONE === */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: calc(60px + var(--space-lg)) 0 var(--space-lg);
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero-stats {
    margin-top: var(--space-lg);
  }

  .phone-showcase .mockup-phone {
    width: 180px;
  }

  .phone-showcase .mockup-phone .mockup-screen {
    min-height: 280px;
  }
}

/* === SAFE AREA (iPhone notch/Dynamic Island) === */
@supports (padding: env(safe-area-inset-top)) {
  .navbar {
    padding-top: max(var(--space-sm), env(safe-area-inset-top));
  }

  .footer {
    padding-bottom: max(var(--space-xl), env(safe-area-inset-bottom));
  }

  .mobile-nav {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* === TOUCH DEVICE OPTIMIZATIONS === */
@media (hover: none) and (pointer: coarse) {
  /* Remove hover effects on touch devices */
  .glass-card:hover {
    transform: none;
    box-shadow: var(--shadow-card);
  }

  .btn:hover {
    transform: none;
  }

  .btn-primary:hover {
    transform: none;
  }

  .mockup-phone:hover {
    transform: none;
  }

  /* Make links and buttons easier to tap */
  .footer-col a {
    display: inline-block;
    padding: 4px 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .navbar-links a {
    padding: 8px 4px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .accordion-header {
    min-height: 48px;
  }

  .lang-option {
    min-height: 48px;
    padding: 12px 16px;
  }

  /* Smooth scrolling for carousels */
  .network-scroll {
    -webkit-overflow-scrolling: touch;
  }

  .staking-table {
    -webkit-overflow-scrolling: touch;
  }
}

/* === REDUCED MOTION (accessibility) === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .network-scroll {
    animation: none;
  }

  .hero-bg::before {
    animation: none;
  }
}

/* === PRINT === */
@media print {
  .navbar, .footer, .mobile-nav, .hero-bg,
  .menu-toggle, .theme-toggle, .lang-switcher,
  .btn, .cta-section {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .glass-card, .glass-card-static, .glass-card-accent {
    border: 1px solid #ccc;
    background: white;
    box-shadow: none;
  }
}

/* --- Keyframe Animations --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

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

.animate-fade-in { animation: fadeIn 0.6s ease forwards; }
.animate-slide-up { animation: slideUp 0.6s ease forwards; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }
.animate-float { animation: float 6s ease-in-out infinite; }

/* ============================================
   LANGUAGE SWITCHER & i18n
   ============================================ */

.lang-switcher {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--toggle-bg, var(--bg-tertiary));
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.lang-btn:hover {
  border-color: var(--text-tertiary);
}

.lang-btn .lang-flag {
  font-size: 1rem;
  line-height: 1;
}

.lang-btn .lang-code {
  text-transform: uppercase;
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-elevated);
  min-width: 200px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 1001;
  display: none;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.lang-dropdown.open {
  display: block;
  animation: fadeIn 0.15s ease;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background var(--transition-fast);
  border-bottom: 1px solid var(--bg-glass-border);
  font-size: 0.875rem;
  color: var(--text-primary);
}

.lang-option:last-child {
  border-bottom: none;
}

.lang-option:hover {
  background: var(--bg-glass-hover);
}

.lang-option.active {
  background: var(--accent-subtle);
}

.lang-option .lang-flag {
  font-size: 1.25rem;
}

.lang-option .lang-name {
  flex: 1;
  font-weight: 500;
}

.lang-option .lang-native {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.lang-option .lang-check {
  color: var(--accent);
  font-size: 0.875rem;
}

/* RTL Support */
html[dir="rtl"] {
  direction: rtl;
}

html[dir="rtl"] .navbar-inner {
  flex-direction: row-reverse;
}

html[dir="rtl"] .navbar-links {
  flex-direction: row-reverse;
}

html[dir="rtl"] .navbar-actions {
  flex-direction: row-reverse;
}

html[dir="rtl"] .hero-stats {
  flex-direction: row-reverse;
}

html[dir="rtl"] .feature-list li {
  flex-direction: row-reverse;
  text-align: right;
}

html[dir="rtl"] .feature-list li .check {
  margin-left: var(--space-md);
  margin-right: 0;
}

html[dir="rtl"] .footer-grid {
  direction: rtl;
}

html[dir="rtl"] .footer-bottom {
  flex-direction: row-reverse;
}

html[dir="rtl"] .m-coin-row {
  flex-direction: row-reverse;
}

html[dir="rtl"] .m-coin-icon {
  margin-right: 0;
  margin-left: 10px;
}

html[dir="rtl"] .m-coin-value {
  text-align: left;
}

html[dir="rtl"] .m-settings-row {
  flex-direction: row-reverse;
}

html[dir="rtl"] .m-settings-icon {
  margin-right: 0;
  margin-left: 10px;
}

html[dir="rtl"] .m-settings-text {
  text-align: right;
}

html[dir="rtl"] .btn {
  flex-direction: row-reverse;
}

html[dir="rtl"] .section-header {
  text-align: center;
}

html[dir="rtl"] .lang-dropdown {
  right: auto;
  left: 0;
}

@media (max-width: 768px) {
  html[dir="rtl"] .navbar-inner {
    flex-direction: row;
  }
  .lang-btn .lang-code {
    display: none;
  }
}
