/* xtbstation Enterprise Design System - Professional FinTech Dark Theme */
:root {
  --primary: #00B050;
  --primary-hover: #009644;
  --primary-focus: #00823B;
  --primary-light: rgba(0, 176, 80, 0.12);
  --primary-glow: rgba(0, 176, 80, 0.35);
  
  --secondary: #1E293B;
  --secondary-hover: #334155;
  
  --bg-main: #0B1118;
  --bg-card: #121B27;
  --bg-card-hover: #162232;
  --bg-elevated: #182536;
  --bg-input: #0F1722;
  
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  
  --border: #1E2D3D;
  --border-subtle: #172330;
  --border-focus: #00B050;
  
  --success: #00B050;
  --success-bg: rgba(0, 176, 80, 0.12);
  --danger: #EF4444;
  --danger-bg: rgba(239, 68, 68, 0.12);
  --warning: #F59E0B;
  --warning-bg: rgba(245, 158, 11, 0.12);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.4), 0 2px 6px -1px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 12px 28px -4px rgba(0, 0, 0, 0.5), 0 4px 12px -2px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 35px -5px rgba(0, 176, 80, 0.25);
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-hover);
}

.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation & Feature SVG Icons */
.nav-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.feature-icon-svg {
  width: 24px;
  height: 24px;
  stroke: var(--primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* Top Navbar */
.navbar {
  background: rgba(11, 17, 24, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.nav-mobile-actions {
  display: none;
  align-items: center;
  gap: 10px;
}

.nav-search-btn {
  background: transparent;
  border: none;
  color: #FFFFFF;
  padding: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color 0.2s ease;
}

.nav-search-btn:hover {
  color: var(--primary);
}

@media (max-width: 900px) {
  .nav-menu {
    display: none !important;
  }
  .nav-auth {
    display: none !important;
  }
  .nav-mobile-actions {
    display: inline-flex !important;
  }
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 2px 0;
}

.nav-brand:hover {
  transform: scale(1.05);
}

.brand-logo-img {
  height: 38px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  border-radius: 0;
  display: block;
  transition: opacity 0.2s ease;
}

.nav-brand:hover .brand-logo-img {
  height: 38px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  border-radius: 0;
  display: block;
}

@media (max-width: 768px) {
  .brand-logo-img {
    height: 34px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    border-radius: 0;
  }
}

.nav-brand img {
  display: block;
}

.nav-brand span {
  display: none !important;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 28px;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: #FFFFFF;
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(0, 176, 80, 0.28);
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(0, 176, 80, 0.42);
  transform: translateY(-1px);
}

.btn-primary:active,
.btn-primary:focus-visible {
  background: var(--primary-focus);
  border-color: var(--primary-focus);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 176, 80, 0.35);
}

.btn-secondary {
  background: var(--secondary);
  border-color: rgba(255, 255, 255, 0.12);
  color: #F8FAFC;
}

.btn-secondary:hover {
  background: var(--secondary-hover);
  border-color: rgba(255, 255, 255, 0.24);
  color: #FFFFFF;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: var(--text-main);
}

.btn-outline:hover {
  background: rgba(0, 176, 80, 0.08);
  border-color: var(--primary);
  color: #FFFFFF;
}

.btn-outline:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 176, 80, 0.25);
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none !important;
  transform: none !important;
}

.btn-success {
  background: var(--success);
  color: #FFFFFF;
}

.btn-success:hover {
  background: #059669;
}

.btn-danger {
  background: var(--danger);
  color: #FFFFFF;
}

.btn-danger:hover {
  background: #DC2626;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 13px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

.btn-block {
  width: 100%;
}

/* Animations & Keyframes */
@keyframes floatSlow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes floatFast {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-7px); }
}

@keyframes pulseLiveDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Official XTB Brand Hero Section & Mobile Presentation
   ========================================================================== */
.xtb-hero-section {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #0E1622;
  border-bottom: 1px solid var(--border);
}

/* Multi-Slide Carousel Architecture */
.hero-slides-wrapper {
  position: relative;
  width: 100%;
  min-height: 82vh;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s ease;
  display: flex;
  align-items: center;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
  z-index: 3;
}

.hero-carousel-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.hero-dot.active {
  width: 30px;
  background: #00B050;
  box-shadow: 0 0 12px rgba(0, 176, 80, 0.5);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(11, 17, 24, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

.hero-arrow:hover {
  background: #00B050;
  border-color: #00B050;
  transform: translateY(-50%) scale(1.08);
}

.hero-arrow.prev { left: 24px; }
.hero-arrow.next { right: 24px; }

@media (max-width: 768px) {
  .hero-arrow { display: none; }
  .hero-carousel-dots { bottom: 14px; }
  .hero-slides-wrapper { min-height: auto; height: auto; }
}

.xtb-hero-picture {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.xtb-hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  display: block;
}

.xtb-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: linear-gradient(
    90deg,
    rgba(11, 17, 24, 0.95) 0%,
    rgba(11, 17, 24, 0.85) 42%,
    rgba(11, 17, 24, 0.4) 70%,
    rgba(11, 17, 24, 0.15) 100%
  );
  pointer-events: none;
}

.xtb-hero-container {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 80px 24px 100px;
}

.xtb-hero-content {
  max-width: 620px;
  text-align: left;
}

.xtb-hero-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.xtb-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.1px;
}

.xtb-hero-title {
  font-size: 64px;
  line-height: 1.05;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -1.8px;
  margin-bottom: 20px;
  text-transform: none;
}

.xtb-hero-risk-note {
  font-size: 14px;
  color: #CBD5E1;
  margin-bottom: 28px;
  line-height: 1.5;
}

.xtb-hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-xtb-green {
  background: #00B050;
  color: #FFFFFF !important;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  box-shadow: 0 4px 18px rgba(0, 176, 80, 0.42);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  text-decoration: none;
}

.btn-xtb-green:hover {
  background: #009644;
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 176, 80, 0.55);
}

.btn-xtb-outline {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  color: #FFFFFF !important;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: all 0.22s ease;
  text-decoration: none;
}

.btn-xtb-outline:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Floating Ask in chat widget */
.xtb-ask-chat-widget {
  position: absolute;
  right: 24px;
  bottom: 28px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  background: #FFFFFF;
  color: #0E1622;
  padding: 6px 6px 6px 16px;
  border-radius: 999px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
}

.xtb-ask-chat-widget:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
}

.xtb-ask-chat-widget .sparkle-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #FF3366, #FF6600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(255, 51, 102, 0.4);
}

/* Regulatory bottom risk banner */
.xtb-risk-footer-banner {
  background: #E2E8F0;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  padding: 9px 16px;
  letter-spacing: -0.1px;
}

/* Tablet Responsive Optimization (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .xtb-hero-section {
    min-height: 580px;
    height: auto;
  }
  .hero-slides-wrapper {
    min-height: 580px;
    height: auto;
  }
  .xtb-hero-container {
    padding: 60px 32px 80px;
    max-width: 100%;
  }
  .xtb-hero-content {
    max-width: 520px;
  }
  .xtb-hero-title {
    font-size: 48px;
    line-height: 1.1;
    letter-spacing: -1.4px;
    margin-bottom: 18px;
  }
  .xtb-hero-risk-note {
    font-size: 13.5px;
    margin-bottom: 22px;
  }
  .xtb-hero-overlay {
    background: linear-gradient(
      90deg,
      rgba(11, 17, 24, 0.96) 0%,
      rgba(11, 17, 24, 0.90) 50%,
      rgba(11, 17, 24, 0.65) 75%,
      rgba(11, 17, 24, 0.35) 100%
    );
  }
  .hero-arrow.prev { left: 12px; }
  .hero-arrow.next { right: 12px; }
  .btn-xtb-green {
    padding: 13px 24px;
    font-size: 15px;
  }
  .btn-xtb-outline {
    padding: 13px 22px;
    font-size: 15px;
  }
}

/* Mobile responsive adjustments eliminating unwanted bottom void */
@media (max-width: 768px) {
  .xtb-hero-section {
    min-height: auto;
    height: auto;
    align-items: center;
  }

  .hero-slides-wrapper {
    min-height: auto;
    height: auto;
  }

  .hero-slide {
    min-height: auto;
  }

  .hero-slide.active {
    position: relative;
    min-height: auto;
  }

  .xtb-hero-bg-img {
    object-position: center right;
  }

  .xtb-hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(11, 17, 24, 0.90) 0%,
      rgba(11, 17, 24, 0.80) 50%,
      rgba(11, 17, 24, 0.92) 100%
    );
  }

  .xtb-hero-container {
    padding: 36px 20px 48px;
  }

  .xtb-hero-title {
    font-size: 46px;
    line-height: 1.08;
    letter-spacing: -1.2px;
    margin-bottom: 24px;
  }

  .btn-xtb-green {
    width: 100%;
    max-width: 280px;
    padding: 13px 24px;
    font-size: 15px;
  }

  .xtb-ask-chat-widget {
    right: 16px;
    bottom: 20px;
    font-size: 13px;
    padding: 5px 5px 5px 14px;
  }
}

@media (max-width: 480px) {
  .xtb-hero-title {
    font-size: 42px;
  }
  .xtb-hero-pill {
    font-size: 12px;
    padding: 5px 12px;
  }
}

/* Hero Section (Atmospheric Dimmed Financial Chart Backdrop) */
.hero {
  position: relative;
  padding: 95px 0 100px;
  text-align: center;
  overflow: hidden;
  background: 
    linear-gradient(180deg, rgba(8, 13, 20, 0.78) 0%, rgba(8, 13, 20, 0.92) 65%, #0B1118 100%),
    url('../img/hero-bg.jpg') center/cover no-repeat;
  border-bottom: 1px solid var(--border);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: radial-gradient(circle at 50% 30%, rgba(255, 83, 56, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
  animation: fadeInUp 0.8s ease-out;
}

/* Institutional Status Badges & Category Labels (Non-AI, Professional) */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: var(--primary);
  padding: 0;
  border-radius: 0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hero-badge .badge-tag,
.hero-badge .badge-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 83, 56, 0.12);
  border: 1px solid rgba(255, 83, 56, 0.25);
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.live-indicator-dot {
  width: 7px;
  height: 7px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
  display: inline-block;
  flex-shrink: 0;
  animation: pulseLiveDot 2s infinite;
}

.hero-title {
  font-size: 58px;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 24px;
  color: #FFFFFF;
}

.hero-title span {
  background: linear-gradient(135deg, #FF5338 0%, #FFA07A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 780px;
  margin: 0 auto 38px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 45px;
}

/* Trust Metric Ribbon */
.hero-trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 45px;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-trust-item strong {
  color: #FFFFFF;
}

/* Hero Mockup Showcase */
.hero-mockup-wrapper {
  position: relative;
  max-width: 1060px;
  margin: 24px auto 0;
  border-radius: 20px;
  padding: 8px;
  background: linear-gradient(135deg, rgba(255, 83, 56, 0.3), rgba(30, 45, 61, 0.8));
  box-shadow: 0 35px 85px -15px rgba(0, 0, 0, 0.8), 0 0 55px -10px rgba(255, 83, 56, 0.25);
  border: 1px solid rgba(255, 83, 56, 0.25);
}

.hero-mockup-window {
  background: #0B1118;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.hero-mockup-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #121B27;
  border-bottom: 1px solid var(--border);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.window-dot.red { background: #EF4444; }
.window-dot.yellow { background: #F59E0B; }
.window-dot.green { background: #10B981; }

.hero-mockup-url {
  font-size: 12px;
  font-family: monospace;
  color: #94A3B8;
  background: #0B1118;
  padding: 4px 14px;
  border-radius: 6px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-mockup-img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 520px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-mockup-wrapper:hover .hero-mockup-img {
  transform: scale(1.01);
}

/* Floating interactive chips */
.floating-chip {
  position: absolute;
  background: rgba(18, 27, 39, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px 18px;
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 25px rgba(255, 83, 56, 0.18);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
  text-align: left;
}

.floating-chip-1 {
  top: 40px;
  right: -24px;
  animation: floatSlow 5s ease-in-out infinite;
}

.floating-chip-2 {
  bottom: 50px;
  left: -28px;
  animation: floatFast 4.5s ease-in-out infinite 0.6s;
}

/* Cards & Grid with Elevation */
.card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, background-color 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 25px -5px rgba(255, 83, 56, 0.12);
  border-color: rgba(255, 83, 56, 0.35);
}

/* Visual Feature Section with Imagery */
.feature-showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.feature-img-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border);
}

.feature-img-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.feature-img-frame:hover img {
  transform: scale(1.03);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 32px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

/* Feature Item */
.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 83, 56, 0.2);
}

.feature-title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #FFFFFF;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text-main);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  outline: none;
  
  box-shadow: 0 0 0 3px rgba(255, 83, 56, 0.2);
}

/* Password Toggle Architecture */
.password-toggle-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-toggle-wrapper .form-control {
  padding-right: 44px;
  width: 100%;
}

.password-toggle-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: #94A3B8;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
  z-index: 2;
}

.password-toggle-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}

.password-toggle-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  display: block;
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.table th {
  background: #0E1622;
  padding: 14px 18px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}

.table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-main);
}

.table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

/* Institutional Quantitative Tags & Edge Highlights */
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

.tag-quant {
  background: linear-gradient(135deg, rgba(255, 83, 56, 0.12), rgba(255, 83, 56, 0.04));
  border: 1px solid rgba(255, 83, 56, 0.35);
  color: #FF7056;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tag-active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(16, 185, 129, 0.04));
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10B981;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tag-metric {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94A3B8;
  font-family: monospace;
}

.badge-primary {
  background: rgba(255, 83, 56, 0.15);
  color: #FF5338;
  
}

.badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Toast Container */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}

.toast {
  background: #141E2E;
  color: #FFFFFF;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  animation: fadeInUp 0.3s ease-out;
}

.toast-success { border-color: #10B981; }
.toast-danger { border-color: #EF4444; }
.toast-warning { border-color: #F59E0B; }
.toast-info { border-color: #3B82F6; }

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  padding: 32px;
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 0.3s ease;
}

/* Footer */
.footer {
  background: #080C12;
  border-top: 1px solid var(--border);
  padding: 70px 0 35px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 18px;
  color: #FFFFFF;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 14px;
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

/* ==========================================================================
   Mobile Navigation & Right-Slide Drawer System
   ========================================================================== */

/* Mobile Hamburger Button */
.nav-hamburger-btn {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  padding: 0;
  cursor: pointer;
  color: #FFFFFF;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.nav-hamburger-btn:hover,
.nav-hamburger-btn:focus {
  background: rgba(255, 83, 56, 0.15);
  
  color: var(--primary);
}

.nav-hamburger-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

/* Mobile Overlay */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 12, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
  z-index: 1998;
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Mobile Right-Slide Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 88vw;
  height: 100vh;
  height: 100dvh;
  background: #0B1118;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  z-index: 1999;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.mobile-nav-drawer.open {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 27, 39, 0.5);
}

.mobile-drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.mobile-drawer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  object-fit: cover;
}

.mobile-drawer-brand span {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #FFFFFF;
}

.mobile-drawer-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-drawer-close:hover {
  background: rgba(255, 83, 56, 0.15);
  
  color: #FFFFFF;
}

.mobile-drawer-close svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
}

.mobile-drawer-body {
  padding: 16px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
}

.mobile-drawer-link:hover,
.mobile-drawer-link.active {
  background: rgba(255, 83, 56, 0.1);
  color: #FFFFFF;
}

.mobile-drawer-link.active {
  color: #FF5338;
}

.mobile-drawer-footer {
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(18, 27, 39, 0.3);
}

/* ==========================================================================
   Fluid Responsiveness Across All Screen Sizes
   ========================================================================== */

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

@media (max-width: 992px) {
  .nav-menu {
    display: none !important;
  }
  .nav-hamburger-btn {
    display: inline-flex !important;
  }
  .nav-auth {
    display: none !important;
  }
  .feature-showcase-row {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  
  .navbar .nav-container {
    height: 60px;
  }

  .ticker-wrapper {
    overflow: hidden;
    max-width: 100vw;
  }

  .hero {
    padding: 48px 0 36px;
  }

  .hero-title {
    font-size: clamp(26px, 7vw, 36px);
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
  }

  .hero-subtitle {
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 24px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-bottom: 32px;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .hero-trust-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
    width: 100%;
  }

  .hero-trust-item {
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 10px;
    font-size: 13px;
  }

  .hero-trust-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .hero-mockup-wrapper {
    margin: 16px auto 0;
    padding: 4px;
    border-radius: 12px;
    max-width: 100%;
  }

  .hero-mockup-bar {
    padding: 8px 10px;
  }

  .hero-mockup-url {
    font-size: 10px;
    padding: 2px 8px;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .grid-3 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .grid-4 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .floating-chip {
    display: none !important;
  }

  .card {
    padding: 20px 16px;
  }

  .table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  .hero-badge {
    font-size: 11px;
    padding: 6px 14px;
    margin-bottom: 16px;
  }

  .btn-lg {
    padding: 12px 18px;
    font-size: 14px;
  }
}

/* Floating Back to Top Button */
.back-to-top-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(18, 27, 39, 0.94);
  border: 1px solid rgba(255, 83, 56, 0.4);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 16px rgba(255, 83, 56, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background: var(--primary);
  color: #FFFFFF;
  
  box-shadow: 0 10px 28px rgba(255, 83, 56, 0.45);
  transform: translateY(-3px);
}

.back-to-top-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  transition: transform 0.2s ease;
}

.back-to-top-btn:hover svg {
  transform: translateY(-2px);
}
