/* ==========================================================================
   RIXOR WEB3 LAB — SHARED LUXURY DESIGN SYSTEM
   ========================================================================== */
:root {
  --bg-base: #06080F;
  --bg-surface: #0B0E18;
  --bg-card: rgba(16, 21, 34, 0.75);
  --bg-card-hover: rgba(22, 29, 48, 0.92);
  --bg-glass: rgba(11, 14, 24, 0.88);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.12);
  --border-accent: rgba(0, 229, 153, 0.35);
  --border-purple: rgba(167, 139, 250, 0.35);

  --accent-emerald: #00E599;
  --accent-emerald-dark: #00B377;
  --accent-cyan: #38BDF8;
  --accent-purple: #A78BFA;
  --accent-purple-deep: #7C3AED;
  --accent-red: #FF4D6D;
  --accent-amber: #F59E0B;

  --text-white: #FFFFFF;
  --text-main: #F1F5F9;
  --text-muted: #94A3B8;
  --text-dim: #64748B;

  /* Strictly NO GLOW / NO NEON BLUR - High End Editorial Gradients */
  --grad-emerald: linear-gradient(135deg, #FFFFFF 15%, #A7F3D0 55%, #00E599 100%);
  --grad-purple: linear-gradient(135deg, #FFFFFF 20%, #DDD6FE 60%, #A78BFA 100%);
  --grad-cyan: linear-gradient(135deg, #FFFFFF 25%, #BAE6FD 65%, #38BDF8 100%);
  --grad-gold: linear-gradient(135deg, #FFFFFF 20%, #FDE68A 65%, #F59E0B 100%);
  --grad-btn-primary: linear-gradient(135deg, #00E599 0%, #00B377 100%);
  --grad-btn-purple: linear-gradient(135deg, #A78BFA 0%, #7C3AED 100%);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-base);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-base);
  background-image:
    radial-gradient(circle at 50% 0%, rgba(0, 229, 153, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 10% 30%, rgba(167, 139, 250, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 90% 65%, rgba(56, 189, 248, 0.06) 0%, transparent 45%);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Subtle luxury mesh grid overlay */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
}

/* WIDE & ATMOSPHERIC PC CONTAINER */
.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) { .container { padding: 0 32px; } }
@media (min-width: 1200px) { .container { padding: 0 48px; } }

.section-wrap {
  padding: 70px 0;
  position: relative;
}
@media (min-width: 992px) { .section-wrap { padding: 95px 0; } }

/* ==========================================================================
   BREATHING EFFECT ON EVERY BUTTON
   ========================================================================== */
@keyframes btnBreatheEmerald {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 18px rgba(0, 229, 153, 0.28), 0 0 0 0 rgba(0, 229, 153, 0.35);
  }
  50% {
    transform: scale(1.025);
    box-shadow: 0 8px 28px rgba(0, 229, 153, 0.45), 0 0 0 6px rgba(0, 229, 153, 0);
  }
}

@keyframes btnBreathePurple {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 18px rgba(167, 139, 250, 0.28), 0 0 0 0 rgba(167, 139, 250, 0.35);
  }
  50% {
    transform: scale(1.025);
    box-shadow: 0 8px 28px rgba(167, 139, 250, 0.45), 0 0 0 6px rgba(167, 139, 250, 0);
  }
}

@keyframes btnBreatheGhost {
  0%, 100% {
    transform: scale(1);
    border-color: rgba(255, 255, 255, 0.16);
  }
  50% {
    transform: scale(1.02);
    border-color: rgba(0, 229, 153, 0.45);
    box-shadow: 0 4px 16px rgba(0, 229, 153, 0.12);
  }
}

/* Universal breathing button styles */
button,
.btn-primary,
.btn-purple,
.btn-secondary,
.btn-ghost,
.demo-chip,
.tab-btn,
.swiper-arrow,
.modal-close-btn,
.submit-cta-btn,
.lang-opt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  border: 1px solid transparent;
  user-select: none;
  white-space: nowrap;
  animation: btnBreatheEmerald 2.8s ease-in-out infinite;
}

.btn-primary {
  background: var(--grad-btn-primary);
  color: #041B11;
  border-color: rgba(255, 255, 255, 0.2);
}
.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-2px) scale(1.03);
}

.btn-purple,
button.btn-purple {
  background: var(--grad-btn-purple);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.25);
  animation: btnBreathePurple 3s ease-in-out infinite;
}
.btn-purple:hover {
  filter: brightness(1.08);
  transform: translateY(-2px) scale(1.03);
}

.btn-secondary,
.btn-ghost,
button.btn-secondary,
button.btn-ghost,
.demo-chip,
.tab-btn,
.swiper-arrow,
.modal-close-btn,
.lang-opt-btn {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
  animation: btnBreatheGhost 3.2s ease-in-out infinite;
}
.btn-secondary:hover,
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  border-color: var(--accent-emerald);
  transform: translateY(-2px);
}

/* GRADIENTS (NO GLOW) */
.grad-emerald {
  background: var(--grad-emerald);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none !important;
}
.grad-purple {
  background: var(--grad-purple);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none !important;
}
.grad-cyan {
  background: var(--grad-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none !important;
}
.grad-gold {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none !important;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-emerald);
  background: rgba(0, 229, 153, 0.08);
  border: 1px solid rgba(0, 229, 153, 0.25);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.5px;
  color: var(--text-white);
  margin-bottom: 16px;
}
@media (min-width: 768px) { .section-title { font-size: 38px; letter-spacing: -0.8px; } }
@media (min-width: 1200px) { .section-title { font-size: 44px; } }

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 780px;
  margin: 0 auto 40px;
}
.text-center { text-align: center; }

/* LAZY CARD FADE-IN */
.lazy-card {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.lazy-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.card-glass {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 26px;
  backdrop-filter: blur(14px);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease, box-shadow 0.28s ease;
  position: relative;
  overflow: hidden;
}
.card-glass:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

/* TOP ALERT BANNER */
.alert-ticker-bar,
.top-alert-bar {
  background: rgba(255, 77, 109, 0.12);
  border-bottom: 1px solid rgba(255, 77, 109, 0.25);
  color: #FFA3B3;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  position: relative;
  z-index: 60;
  width: 100%;
}
.pulse-dot-red,
.badge-pulsing {
  width: 8px;
  height: 8px;
  background: var(--accent-red);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-red);
  animation: pulseAlert 1.6s infinite;
  flex-shrink: 0;
  display: inline-block;
}
@keyframes pulseAlert {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

/* STICKY NAVBAR */
.site-header {
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s ease;
  width: 100%;
}
.nav-inner,
.header-inner,
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  width: 100%;
}
.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-white);
}
.brand-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(0, 229, 153, 0.3);
  object-fit: cover;
  display: block;
}
.brand-logo-text {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.3px;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-logo-text small {
  font-size: 10px;
  font-weight: 600;
  color: var(--accent-emerald);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 24px;
}
@media (min-width: 1024px) { .desktop-nav { display: flex; } }

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-link:hover,
.nav-link.active {
  color: var(--text-white);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0; right: 0;
  height: 2px;
  background: var(--accent-emerald);
  border-radius: 2px;
}

.badge-hot {
  font-size: 10px;
  font-weight: 800;
  background: linear-gradient(135deg, #FF4D6D, #F59E0B);
  color: #FFFFFF;
  padding: 2px 6px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

@media (max-width: 1023px) {
  .header-actions .btn-primary {
    display: none !important;
  }
  .site-header {
    height: 64px;
  }
  .nav-inner {
    height: 64px;
  }
  .mobile-drawer {
    top: 64px;
  }
}

.lang-toggle-wrap {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
}
.lang-opt-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 5px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  animation: none !important;
}
.lang-opt-btn.active {
  background: var(--accent-emerald);
  color: #041B11;
}

.mobile-menu-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(0, 229, 153, 0.4);
  border-radius: 10px;
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
  padding: 0;
  position: relative;
}
.mobile-menu-btn svg {
  width: 24px !important;
  height: 24px !important;
  display: block !important;
  stroke: #FFFFFF !important;
  stroke-width: 2.2px !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  pointer-events: none;
}
.mobile-menu-btn:hover,
.mobile-menu-btn.active {
  background: rgba(0, 229, 153, 0.15);
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
  box-shadow: 0 0 16px rgba(0, 229, 153, 0.25);
}
.mobile-menu-btn:hover svg,
.mobile-menu-btn.active svg {
  stroke: var(--accent-emerald) !important;
}
.mobile-menu-btn .icon-close {
  display: none !important;
}
.mobile-menu-btn.active .icon-hamburger {
  display: none !important;
}
.mobile-menu-btn.active .icon-close {
  display: block !important;
}
@media (min-width: 1024px) { .mobile-menu-btn { display: none !important; } }

.mobile-drawer {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  width: 100vw;
  height: calc(100vh - 64px);
  background: #06080F;
  z-index: 999999;
  padding: 24px 20px 48px;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  border-top: 1px solid var(--border-subtle);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95);
}
.mobile-drawer.open {
  display: flex !important;
  animation: drawerSlideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes drawerSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.mobile-drawer .nav-link {
  font-size: 16px;
  font-weight: 600;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  transition: all 0.2s ease;
}
.mobile-drawer .nav-link:hover,
.mobile-drawer .nav-link.active {
  background: rgba(0, 229, 153, 0.12);
  border-color: rgba(0, 229, 153, 0.3);
  color: var(--accent-emerald);
}

/* HERO SECTION */
.hero-section {
  padding: 60px 0 80px;
  text-align: center;
  position: relative;
}
@media (min-width: 992px) { .hero-section { padding: 90px 0 110px; } }

.hero-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-emerald);
  background: rgba(0, 229, 153, 0.08);
  border: 1px solid rgba(0, 229, 153, 0.3);
  padding: 7px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}
.pulse-dot-green {
  width: 8px;
  height: 8px;
  background: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulseAlert 1.8s infinite;
}

.hero-h1 {
  font-size: 34px;
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -1px;
  color: var(--text-white);
  max-width: 1100px;
  margin: 0 auto 24px;
}
@media (min-width: 768px) { .hero-h1 { font-size: 50px; letter-spacing: -1.5px; } }
@media (min-width: 1200px) { .hero-h1 { font-size: 62px; letter-spacing: -2px; } }

.hero-h2 {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 860px;
  margin: 0 auto 36px;
  font-weight: 400;
}
@media (min-width: 768px) { .hero-h2 { font-size: 19px; } }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.trust-badges-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 600;
}
.trust-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.trust-badge-item svg {
  color: var(--accent-emerald);
  flex-shrink: 0;
}

/* HARDCORE METRICS */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 40px;
}
@media (min-width: 992px) {
  .metrics-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}
.metric-card {
  background: rgba(16, 21, 35, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  backdrop-filter: blur(10px);
}
.metric-num {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 6px;
  font-family: var(--font-mono);
}
@media (min-width: 768px) { .metric-num { font-size: 42px; } }
.metric-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

/* TICKER & MARKET UI */
.ticker-stream-wrap {
  background: rgba(11, 15, 24, 0.95);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 12px 20px;
  margin-bottom: 32px;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-scroll-content {
  display: inline-flex;
  gap: 28px;
  animation: tickerMarquee 35s linear infinite;
}
@keyframes tickerMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  font-family: var(--font-mono);
}
.price-up { color: var(--accent-emerald); }
.price-down { color: var(--accent-red); }

.terminal-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 32px;
}
@media (min-width: 1024px) {
  .terminal-feature-grid {
    grid-template-columns: 1.25fr 1fr;
  }
}

.btc-hero-card {
  background: linear-gradient(145deg, rgba(19, 25, 42, 0.85) 0%, rgba(13, 17, 28, 0.9) 100%);
  border: 1px solid rgba(0, 229, 153, 0.25);
  border-radius: var(--radius-lg);
  padding: 30px;
}
.btc-live-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.crypto-pair-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 800;
}
.live-feed-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-emerald);
  background: rgba(0, 229, 153, 0.1);
  border: 1px solid rgba(0, 229, 153, 0.3);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}
.btc-main-price {
  font-size: 44px;
  font-weight: 900;
  font-family: var(--font-mono);
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 24px;
}
.change-pill {
  font-size: 16px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}
.change-pill.down {
  background: rgba(255, 77, 109, 0.15);
  color: var(--accent-red);
  border: 1px solid rgba(255, 77, 109, 0.3);
}
.change-pill.up {
  background: rgba(0, 229, 153, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(0, 229, 153, 0.3);
}
.svg-sparkline {
  width: 100%;
  height: 90px;
  margin-bottom: 24px;
}
.btc-meta-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  font-size: 13.5px;
  font-family: var(--font-mono);
}

.six-coins-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 640px) { .six-coins-grid { grid-template-columns: repeat(3, 1fr); } }

.mini-coin-card {
  background: rgba(16, 21, 35, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  transition: all 0.25s ease;
}
.mini-coin-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}
.coin-sym {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
}
.coin-val {
  font-size: 18px;
  font-weight: 800;
  font-family: var(--font-mono);
  margin-bottom: 2px;
}
.coin-delta {
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-mono);
}

/* MATRICES */
.matrices-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 992px) { .matrices-grid { grid-template-columns: repeat(3, 1fr); } }

.matrix-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
.matrix-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.matrix-icon-emerald {
  background: rgba(0, 229, 153, 0.12);
  border: 1px solid rgba(0, 229, 153, 0.35);
  color: var(--accent-emerald);
}
.matrix-icon-purple {
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.35);
  color: var(--accent-purple);
}
.matrix-icon-cyan {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--accent-cyan);
}
.matrix-h3 {
  font-size: 21px;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.matrix-p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 24px;
  flex-grow: 1;
}

/* ALLOCATION & SCANNER TERMINAL BOX */
.scanner-terminal-box {
  background: linear-gradient(145deg, rgba(16, 20, 34, 0.9) 0%, rgba(10, 13, 22, 0.95) 100%);
  border: 1px solid var(--border-purple);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  position: relative;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}
@media (min-width: 768px) { .scanner-terminal-box { padding: 48px; } }

.terminal-meta-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}
.terminal-tag {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-purple);
  display: flex;
  align-items: center;
  gap: 8px;
}

.input-action-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}
@media (min-width: 768px) { .input-action-row { flex-direction: row; } }

.input-address-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}
.input-address-icon {
  position: absolute;
  left: 18px;
  color: var(--text-muted);
  pointer-events: none;
}
.wallet-input {
  width: 100%;
  height: 56px;
  background: rgba(8, 10, 18, 0.85);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0 20px 0 52px;
  color: var(--text-white);
  font-size: 15px;
  font-family: var(--font-mono);
  outline: none;
  transition: all 0.25s ease;
}
.wallet-input:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2);
}

.quick-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  align-items: center;
}
.chips-label {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.demo-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-family: var(--font-mono);
  cursor: pointer;
}

.tech-specs-trio {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}
@media (min-width: 768px) { .tech-specs-trio { grid-template-columns: repeat(3, 1fr); } }
.spec-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: var(--text-muted);
}
.spec-item svg {
  color: var(--accent-purple);
  flex-shrink: 0;
}

/* PAIN POINTS & SOLUTIONS */
.pain-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 60px;
}
@media (min-width: 768px) { .pain-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .pain-grid { grid-template-columns: repeat(4, 1fr); } }

.pain-card {
  background: rgba(26, 17, 24, 0.6);
  border: 1px solid rgba(255, 77, 109, 0.2);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.pain-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 77, 109, 0.4);
}
.pain-card h4 {
  font-size: 17px;
  font-weight: 800;
  color: #FF8BA0;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pain-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.solution-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 992px) { .solution-grid { grid-template-columns: repeat(3, 1fr); } }

.solution-card {
  background: rgba(14, 25, 22, 0.65);
  border: 1px solid rgba(0, 229, 153, 0.25);
  border-radius: var(--radius-lg);
  padding: 30px;
}
.solution-card:hover {
  border-color: rgba(0, 229, 153, 0.5);
  transform: translateY(-4px);
}
.solution-card h4 {
  font-size: 19px;
  font-weight: 800;
  color: var(--accent-emerald);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.solution-card p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* SWIPER FOR CASES */
.swiper-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-bottom: 40px;
}
.swiper-track {
  display: flex;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.swiper-slide {
  flex: 0 0 100%;
  padding: 0 8px;
}
@media (min-width: 768px) { .swiper-slide { flex: 0 0 50%; } }
@media (min-width: 1200px) { .swiper-slide { flex: 0 0 33.333%; } }

.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.case-card:hover {
  border-color: var(--accent-emerald);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}
.case-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #090C14;
  overflow: hidden;
  position: relative;
}
.case-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.case-badge-overlay {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(6, 8, 15, 0.85);
  border: 1px solid rgba(0, 229, 153, 0.4);
  color: var(--accent-emerald);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  backdrop-filter: blur(8px);
}
.case-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}
.case-h4 {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 10px;
}
.case-p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}
.case-stat-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 13.5px;
}
.swiper-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}
.swiper-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  padding: 0;
}
.swiper-dots {
  display: flex;
  gap: 8px;
}
.swiper-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.25s ease;
}
.swiper-dot.active {
  width: 24px;
  border-radius: 10px;
  background: var(--accent-emerald);
}

/* OFFER BOX & VALUE ANCHOR */
.offer-box {
  background: linear-gradient(145deg, rgba(17, 24, 40, 0.85) 0%, rgba(10, 14, 24, 0.95) 100%);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: 36px 24px;
}
@media (min-width: 768px) { .offer-box { padding: 56px 48px; } }

.offer-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
@media (min-width: 992px) { .offer-columns { grid-template-columns: 1fr 1fr; } }

.offer-list-card {
  background: rgba(8, 11, 20, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.offer-list-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.offer-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 14.5px;
}
.offer-item:last-child { margin-bottom: 0; }
.offer-item svg {
  color: var(--accent-emerald);
  flex-shrink: 0;
  margin-top: 3px;
}
.val-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  background: rgba(0, 229, 153, 0.15);
  color: var(--accent-emerald);
  padding: 2px 7px;
  border-radius: 6px;
  margin-left: 6px;
  font-family: var(--font-mono);
}

.anchor-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 36px;
  font-size: 14.5px;
}
.anchor-table th,
.anchor-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}
.anchor-table th {
  color: var(--text-muted);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.02);
}
.anchor-table td:last-child {
  text-align: right;
  font-family: var(--font-mono);
  font-weight: 800;
}

.scarcity-countdown-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(255, 77, 109, 0.08);
  border: 1px dashed rgba(255, 77, 109, 0.35);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 36px;
  text-align: center;
}
.countdown-display {
  display: flex;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 900;
  color: #FFA3B3;
}
.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.countdown-unit small {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* LEAD FORM */
.lead-form-box {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 36px 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
}
@media (min-width: 768px) { .lead-form-box { padding: 48px; } }

.form-group {
  margin-bottom: 22px;
  text-align: left;
}
.form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 8px;
}
.form-input,
.form-select {
  width: 100%;
  height: 52px;
  background: rgba(8, 10, 18, 0.85);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0 18px;
  color: var(--text-white);
  font-size: 15px;
  outline: none;
  transition: all 0.25s ease;
  font-family: var(--font-sans);
}
.form-input:focus {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 0 3px rgba(0, 229, 153, 0.2);
}
.budget-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.budget-pill-label {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-mono);
}
.budget-pill-input { display: none; }
.budget-pill-input:checked + .budget-pill-label {
  border-color: var(--accent-emerald);
  background: rgba(0, 229, 153, 0.15);
  color: var(--accent-emerald);
}
.ps-statement {
  margin-top: 32px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--accent-emerald);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.65;
  text-align: left;
}

/* NEWS ARTICLES */
.news-tabs-wrap {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.tab-btn {
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 14px;
}
.tab-btn.active {
  background: var(--accent-purple);
  color: #FFFFFF;
  border-color: var(--accent-purple);
}

.news-article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 36px 24px;
  display: none;
}
@media (min-width: 768px) { .news-article-card { padding: 48px; } }
.news-article-card.active { display: block; }

.article-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}
.article-tag {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-purple);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.article-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text-white);
  margin-bottom: 12px;
}
@media (min-width: 768px) { .article-title { font-size: 30px; } }
.article-meta {
  display: flex;
  gap: 16px;
  color: var(--text-dim);
  font-size: 13px;
}
.article-body-text {
  color: var(--text-main);
  font-size: 15.5px;
  line-height: 1.8;
  margin-bottom: 28px;
}
.article-body-text p { margin-bottom: 18px; }
.article-body-text h4 {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-white);
  margin: 28px 0 14px;
}
.article-cta-box {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.1) 0%, rgba(0, 229, 153, 0.1) 100%);
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* ABOUT & LAB PRINCIPLES */
.principles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 60px;
}
@media (min-width: 992px) { .principles-grid { grid-template-columns: repeat(3, 1fr); } }

.principle-card {
  background: rgba(14, 18, 30, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.principle-card h4 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.principle-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 40px;
}
@media (min-width: 768px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }

.team-card {
  background: rgba(16, 21, 35, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
}
.team-card h5 {
  font-size: 16px;
  font-weight: 800;
  color: var(--accent-emerald);
  margin-bottom: 8px;
}
.team-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

.nodes-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.node-city {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--text-white);
}

/* MODALS */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(4, 6, 12, 0.88);
  backdrop-filter: blur(16px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
.modal-overlay.open { display: flex; }

.modal-dialog {
  background: linear-gradient(145deg, #0E121E 0%, #080A12 100%);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 640px;
  padding: 36px 28px;
  position: relative;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7);
  animation: modalSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  padding: 0;
}

.progress-bar-track {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 24px 0 16px;
}
.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00E599 0%, #38BDF8 50%, #A78BFA 100%);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}
.progress-log-list {
  background: rgba(6, 8, 14, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  text-align: left;
}
.log-line {
  display: flex;
  align-items: center;
  gap: 8px;
}
.log-line.active {
  color: var(--accent-emerald);
  font-weight: 700;
}

/* TOOL MODAL (IFRAME) */
.modal-dialog-large {
  max-width: 1200px;
  width: 95%;
  height: 85vh;
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.tool-iframe-wrap {
  flex: 1;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  margin-top: 16px;
}
.tool-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* TOAST NOTIFICATION */
.web3-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 100000;
  background: rgba(14, 18, 30, 0.96);
  border: 1px solid var(--accent-emerald);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 20px rgba(0, 229, 153, 0.2);
  backdrop-filter: blur(18px);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  color: var(--text-white);
  font-size: 14.5px;
  font-weight: 600;
  max-width: 440px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.web3-toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.web3-toast.error {
  border-color: var(--accent-red);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 20px rgba(255, 77, 109, 0.2);
}
.web3-toast .toast-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}
.web3-toast .toast-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  flex-shrink: 0;
}
.web3-toast.error .toast-dot {
  background: var(--accent-red);
  box-shadow: 0 0 10px var(--accent-red);
}

/* FOOTER */
.site-footer {
  background: #04050A;
  border-top: 1px solid var(--border-subtle);
  padding: 70px 0 30px;
  position: relative;
  z-index: 10;
}
.footer-top-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
@media (min-width: 768px) {
  .footer-top-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}
.footer-col h5 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--accent-emerald); }

.disclaimer-card {
  background: rgba(10, 13, 22, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 36px;
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.65;
}
.disclaimer-card h6 {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.disclaimer-card p { margin-bottom: 12px; }
.disclaimer-card p:last-child { margin-bottom: 0; }

.footer-bottom-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 12px;
  color: var(--text-dim);
}


/* ==========================================================================
   BLOG / NEWS LISTING ARCHITECTURE (STANDARD BLOG LAYOUT)
   ========================================================================== */
.blog-toolbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-bottom: 48px;
  width: 100%;
}

.blog-search-wrap {
  position: relative;
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
}
.blog-search-input {
  width: 100%;
  background: rgba(14, 18, 30, 0.85);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-full);
  padding: 14px 22px 14px 48px;
  color: var(--text-white);
  font-size: 15px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.blog-search-input:focus {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 20px rgba(0, 229, 153, 0.25);
}
.blog-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

.blog-filter-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}
.filter-pill {
  background: rgba(18, 24, 38, 0.7);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}
.filter-pill:hover,
.filter-pill.active {
  background: rgba(0, 229, 153, 0.12);
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
  box-shadow: 0 4px 14px rgba(0, 229, 153, 0.2);
}

/* Featured Hero Blog Card */
.blog-hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 50px;
  display: grid;
  grid-template-columns: 1fr;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}
@media (min-width: 992px) {
  .blog-hero-card {
    grid-template-columns: 1.15fr 1fr;
  }
}
.blog-hero-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-emerald);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55), 0 0 24px rgba(0, 229, 153, 0.14);
}
.blog-hero-img-wrap {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  background: #090c15;
}
.blog-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.blog-hero-card:hover .blog-hero-img {
  transform: scale(1.04);
}
.blog-hero-content {
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (min-width: 992px) {
  .blog-hero-content {
    padding: 48px 42px;
  }
}

/* Standard Blog Grid (2-3 Columns) */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 60px;
}
@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1200px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}
.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 229, 153, 0.45);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 229, 153, 0.1);
}

.blog-card-img-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0c101c;
}
.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.blog-card:hover .blog-card-img {
  transform: scale(1.06);
}

.blog-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(10, 14, 24, 0.88);
  border: 1px solid var(--accent-emerald);
  color: var(--accent-emerald);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
}
.blog-card-badge.red {
  border-color: var(--accent-red);
  color: var(--accent-red);
}
.blog-card-badge.purple {
  border-color: var(--accent-purple);
  color: var(--accent-purple);
}
.blog-card-badge.cyan {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}
.blog-card-badge.amber {
  border-color: var(--accent-amber);
  color: var(--accent-amber);
}

.blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.blog-card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-white);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
  cursor: pointer;
}
.blog-card:hover .blog-card-title {
  color: var(--accent-emerald);
}

.blog-card-excerpt {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.blog-author-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-dim);
}
.blog-author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-emerald), #1e293b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: #06080F;
}

/* Pagination */
.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 40px 0 60px;
}
.page-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}
.page-btn:hover,
.page-btn.active {
  background: var(--accent-emerald);
  color: #041B11;
  border-color: var(--accent-emerald);
  box-shadow: 0 4px 16px rgba(0, 229, 153, 0.35);
}

/* Article Reader Modal */
.article-reader-dialog {
  max-width: 920px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  background: rgba(11, 14, 24, 0.98);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 229, 153, 0.15);
}
@media (min-width: 768px) {
  .article-reader-dialog {
    padding: 48px;
  }
}
.article-reader-cover {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: 28px;
  border: 1px solid var(--border-subtle);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

