/* ============================================
   Interactive Brokers Clone - Main Stylesheet
   ============================================ */

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

:root {
  /* Colors - IBKR palette */
  --color-navy: #1a2b5e;
  --color-navy-dark: #0f1d42;
  --color-red: #E4002B;
  --color-red-dark: #c50024;
  --color-white: #ffffff;
  --color-bg: #f5f7fa;
  --color-bg-alt: #eef2f7;
  --color-text: #333333;
  --color-text-light: #5a6577;
  --color-text-muted: #8892a0;
  --color-border: #e0e5ec;
  --color-border-light: #f0f2f5;

  /* Typography */
  --font-primary: 'Source Sans 3', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  --font-size-5xl: 3rem;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Layout */
  --container-max: 1200px;
  --header-height: 64px;
  --utility-height: 36px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
  --shadow-xl: 0 12px 40px rgba(0,0,0,0.12);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

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

/* === Utility Bar === */
.utility-bar {
  background-color: var(--color-navy);
  height: var(--utility-height);
  display: flex;
  align-items: center;
  font-size: var(--font-size-sm);
  position: relative;
  z-index: 100;
}

.utility-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.utility-left {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.utility-tab {
  color: rgba(255,255,255,0.7);
  padding: 6px 14px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.utility-tab:hover {
  color: var(--color-white);
}

.utility-tab.active {
  color: var(--color-white);
  background-color: rgba(255,255,255,0.15);
}

.utility-right {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(255,255,255,0.7);
  font-size: 13px;
}

.utility-link {
  color: rgba(255,255,255,0.7);
  transition: color var(--transition-fast);
}

.utility-link:hover {
  color: var(--color-white);
}

.utility-divider {
  color: rgba(255,255,255,0.3);
}

.language-selector {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  color: rgba(255,255,255,0.7);
}

.language-selector:hover {
  color: var(--color-white);
}

.icon-chevron-down {
  color: currentColor;
}

/* === Main Header === */
.main-header {
  background-color: var(--color-white);
  height: var(--header-height);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 99;
  transition: box-shadow var(--transition-base);
}

.main-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo svg {
  height: 32px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-link {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-navy);
  padding: 8px 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-red);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.nav-link:hover {
  color: var(--color-red);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

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

/* Language Selector */
.language-selector {
  position: relative;
}

.language-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--color-text);
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 600;
}

.language-btn:hover {
  background-color: var(--color-bg);
  border-color: var(--color-primary);
}

.language-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
}

.language-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  min-width: 140px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-fast);
  z-index: 1000;
  overflow: hidden;
}

.language-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-option {
  display: block;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-family);
  font-size: 14px;
  color: var(--color-text);
  transition: background-color var(--transition-fast);
}

.language-option:hover {
  background-color: var(--color-bg);
  color: var(--color-primary);
}

.language-option:first-child {
  border-bottom: 1px solid var(--color-border);
}

.search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: background-color var(--transition-fast);
}

.search-btn:hover {
  background-color: var(--color-bg);
}

.login-link {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-navy);
  padding: 6px 12px;
  transition: color var(--transition-fast);
}

.login-link:hover {
  color: var(--color-red);
}

.btn-open-account {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-white);
  background-color: var(--color-navy);
  padding: 8px 18px;
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.btn-open-account:hover {
  background-color: var(--color-navy-dark);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  gap: 5px;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-navy);
  border-radius: 1px;
  transition: all var(--transition-fast);
}

/* === Mobile Navigation Overlay === */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.5);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  height: 100%;
  background-color: var(--color-white);
  transform: translateX(100%);
  transition: transform var(--transition-base);
  display: flex;
  flex-direction: column;
  padding: var(--space-xl);
  overflow-y: auto;
}

.mobile-nav-overlay.active .mobile-nav-content {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xl);
}

.mobile-nav-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-navy);
}

.mobile-nav-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-xl);
}

.mobile-nav-link {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-navy);
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border-light);
  transition: color var(--transition-fast);
}

.mobile-nav-link:hover {
  color: var(--color-red);
}

.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: auto;
}

.btn-login-mobile {
  text-align: center;
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-navy);
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
}

.btn-open-account-mobile {
  text-align: center;
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-white);
  background-color: var(--color-navy);
  padding: 12px;
  border-radius: 4px;
}

/* === Crypto Ticker Bar === */
.crypto-ticker {
  background: #0d1117;
  border-bottom: 1px solid #21262d;
  overflow: hidden;
  white-space: nowrap;
  height: 40px;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: inline-flex;
  animation: ticker-scroll 30s linear infinite;
  gap: 0;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  font-size: 13px;
  font-family: 'Source Sans 3', sans-serif;
}

.ticker-symbol {
  color: #e6edf3;
  font-weight: 600;
  font-size: 13px;
}

.ticker-price {
  color: #8b949e;
  font-size: 13px;
}

.ticker-change {
  font-size: 13px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

.ticker-change.positive {
  color: #3fb950;
  background: rgba(63, 185, 80, 0.1);
}

.ticker-change.negative {
  color: #f85149;
  background: rgba(248, 81, 73, 0.1);
}

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

/* === Video Showcase Section === */
.video-showcase {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  background: #0a0e1a;
}

.video-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(10, 14, 26, 0.3) 0%, rgba(10, 14, 26, 0.6) 100%);
  pointer-events: none;
}

/* === Hero Section === */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0e1a 0%, #1a2b5e 50%, #0a0e1a 100%);
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-4xl) var(--space-xl);
  gap: var(--space-3xl);
}

.hero-text {
  flex: 1;
  max-width: 540px;
  z-index: 1;
}

.hero-image {
  flex: 1;
  max-width: 600px;
  position: relative;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.hero-title {
  font-size: var(--font-size-5xl);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.15;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  margin-bottom: var(--space-2xl);
  max-width: 480px;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-white);
  background-color: var(--color-red);
  padding: 12px 28px;
  border-radius: 4px;
  transition: all var(--transition-fast);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: var(--color-red-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(228, 0, 43, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-white);
  background-color: transparent;
  padding: 12px 28px;
  border-radius: 4px;
  border: 2px solid rgba(255,255,255,0.6);
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  border-color: var(--color-white);
  background-color: rgba(255,255,255,0.1);
}

.btn-large {
  padding: 16px 36px;
  font-size: var(--font-size-lg);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-white);
  background-color: transparent;
  padding: 16px 36px;
  border-radius: 4px;
  border: 2px solid rgba(255,255,255,0.5);
  transition: all var(--transition-fast);
}

.btn-outline:hover {
  border-color: var(--color-white);
  background-color: rgba(255,255,255,0.1);
}

/* === Section Headers === */
.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-title {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-md);
  line-height: 1.25;
}

.section-desc {
  font-size: var(--font-size-lg);
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* === Why IBKR Section === */
.why-ibkr {
  padding: var(--space-4xl) 0;
  background-color: var(--color-white);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.why-card {
  padding: var(--space-xl);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  transition: all var(--transition-base);
  background-color: var(--color-white);
}

.why-card:hover {
  border-color: var(--color-navy);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.why-icon {
  margin-bottom: var(--space-lg);
}

.why-card-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-sm);
}

.why-card-desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-red);
  transition: gap var(--transition-fast);
}

.card-link:hover {
  gap: 8px;
}

/* === Stats Section === */
.stats-section {
  padding: var(--space-3xl) 0;
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  text-align: center;
}

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

.stat-number {
  font-size: var(--font-size-5xl);
  font-weight: 700;
  color: var(--color-white);
  display: inline;
  line-height: 1;
}

.stat-suffix {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--color-red);
  display: inline;
}

.stat-label {
  font-size: var(--font-size-base);
  color: rgba(255,255,255,0.7);
  margin-top: var(--space-sm);
  font-weight: 500;
}

/* Market Dashboard */
.stats-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.stats-header .section-title {
  color: var(--color-white);
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-sm);
}

.stats-header .section-subtitle {
  color: rgba(255,255,255,0.7);
  font-size: var(--font-size-lg);
}

/* === Stats Showcase === */
.stats-showcase {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  max-width: 800px;
  margin: 0 auto;
}

.showcase-background {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.showcase-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(10,14,26,0.1) 0%, rgba(10,14,26,0.4) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-xl);
}

/* Market Ticker */
.market-ticker {
  display: flex;
  gap: var(--space-lg);
  overflow: hidden;
  padding: var(--space-md) 0;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(10,14,26,0.8);
  backdrop-filter: blur(8px);
  padding: var(--space-sm) var(--space-md);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  white-space: nowrap;
  animation: tickerScroll 20s linear infinite;
}

.ticker-symbol {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-white);
}

.ticker-price {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-white);
}

.ticker-change {
  font-size: var(--font-size-xs);
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.ticker-change.positive {
  color: #00d084;
  background: rgba(0,208,132,0.1);
}

.ticker-change.negative {
  color: #ff4757;
  background: rgba(255,71,87,0.1);
}

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

.live-badge {
  position: absolute;
  top: var(--space-lg);
  left: var(--space-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-white);
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 1px;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--color-red);
  border-radius: 50%;
  animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

/* === Products Section === */
.products-section {
  padding: var(--space-4xl) 0;
  background-color: var(--color-bg);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.product-card {
  background-color: var(--color-white);
  border-radius: 8px;
  padding: var(--space-xl);
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: transparent;
}

.product-icon {
  margin-bottom: var(--space-md);
}

.product-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-sm);
}

.product-desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  line-height: 1.6;
}

/* === Global Markets Section === */
.global-section {
  padding: var(--space-4xl) 0;
  background-color: var(--color-white);
}

.global-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.global-text .section-title {
  text-align: left;
}

.global-text .section-desc {
  text-align: left;
  margin: 0 0 var(--space-xl) 0;
}

.global-features {
  margin-bottom: var(--space-xl);
}

.global-features li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-base);
  color: var(--color-text);
  padding: 8px 0;
  font-weight: 500;
}

.global-features li svg {
  flex-shrink: 0;
}

.global-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.global-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* === IBKR Platforms Section (Dark Theme) === */
.platforms-section {
  padding: var(--space-4xl) 0;
  background-color: #0a0e1a;
  overflow: hidden;
}

.platforms-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.platforms-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: var(--space-lg);
}

.platforms-label svg {
  color: var(--color-red);
}

.platforms-title {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.2;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}

.platforms-subtitle {
  font-size: var(--font-size-lg);
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin-bottom: var(--space-2xl);
}

.platforms-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.platform-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  padding: 8px 4px;
  transition: color var(--transition-fast);
}

.platform-tab:hover,
.platform-tab.active {
  color: var(--color-white);
}

.platform-tab svg {
  width: 18px;
  height: 18px;
  opacity: 0.5;
  transition: opacity var(--transition-fast);
}

.platform-tab:hover svg,
.platform-tab.active svg {
  opacity: 1;
}

.platforms-showcase {
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
}

.platforms-showcase img {
  width: 100%;
  height: auto;
  display: block;
}

/* === Pricing Section === */
.pricing-section {
  padding: var(--space-4xl) 0;
  background-color: var(--color-white);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  align-items: start;
}

.pricing-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: var(--space-2xl);
  text-align: center;
  transition: all var(--transition-base);
  position: relative;
}

.pricing-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.pricing-card.featured {
  border-color: var(--color-navy);
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
}

.pricing-card.featured:hover {
  transform: scale(1.05);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-red);
  color: var(--color-white);
  font-size: var(--font-size-xs);
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-header {
  margin-bottom: var(--space-lg);
}

.pricing-plan {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-xs);
}

.pricing-tagline {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.pricing-price {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--color-border);
}

.price-amount {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  color: var(--color-navy);
}

.price-period {
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
}

.pricing-features {
  text-align: left;
  margin-bottom: var(--space-xl);
}

.pricing-features li {
  font-size: var(--font-size-sm);
  color: var(--color-text);
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
}

.pricing-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 7L5.5 9.5L11 4' stroke='%23E4002B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
}

.btn-pricing {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-white);
  background-color: var(--color-navy);
  padding: 12px 28px;
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.btn-pricing:hover {
  background-color: var(--color-navy-dark);
}

/* === Education Section === */
.education-section {
  padding: var(--space-4xl) 0;
  background-color: var(--color-bg);
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.education-card {
  background-color: var(--color-white);
  border-radius: 8px;
  padding: var(--space-2xl);
  text-align: center;
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

.education-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.education-icon {
  margin-bottom: var(--space-lg);
}

.education-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-sm);
}

.education-desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  line-height: 1.6;
}

/* === CTA Section === */
.cta-section {
  padding: var(--space-4xl) 0;
  background: linear-gradient(135deg, var(--color-navy) 0%, #2a4a8a 100%);
  text-align: center;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-title {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.cta-desc {
  font-size: var(--font-size-lg);
  color: rgba(255,255,255,0.8);
  margin-bottom: var(--space-2xl);
}

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

/* === Footer === */
.main-footer {
  background-color: var(--color-navy-dark);
  padding: var(--space-3xl) 0 var(--space-xl);
  color: rgba(255,255,255,0.7);
}

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

.footer-heading {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.footer-links a {
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,0.6);
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-xl);
}

.footer-legal {
  margin-bottom: var(--space-lg);
}

.footer-legal p {
  font-size: var(--font-size-xs);
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.footer-legal a {
  color: rgba(255,255,255,0.7);
  text-decoration: underline;
}

.footer-legal a:hover {
  color: var(--color-white);
}

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

.footer-copyright p {
  font-size: var(--font-size-xs);
  color: rgba(255,255,255,0.5);
}

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

.footer-legal-links a {
  font-size: var(--font-size-xs);
  color: rgba(255,255,255,0.5);
  transition: color var(--transition-fast);
}

.footer-legal-links a:hover {
  color: var(--color-white);
}

/* === Fade-in Animation === */
.fade-in-element {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Responsive: Tablet === */
@media (max-width: 1024px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

  .market-stats-bar {
    flex-wrap: wrap;
    gap: var(--space-md);
  }

  .market-stat {
    flex: 1;
    min-width: 60px;
  }

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

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

  .global-text .section-title,
  .global-text .section-desc {
    text-align: center;
  }

  .global-text {
    text-align: center;
  }

  .global-features {
    display: inline-block;
    text-align: left;
  }

  .platforms-title {
    font-size: var(--font-size-3xl);
  }

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

  .pricing-card:last-child {
    grid-column: span 2;
    max-width: 400px;
    margin: 0 auto;
  }

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

  .education-card:last-child {
    grid-column: span 2;
    max-width: 400px;
    margin: 0 auto;
  }

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

/* === Responsive: Mobile === */
@media (max-width: 768px) {
  :root {
    --font-size-5xl: 2.25rem;
    --font-size-4xl: 1.75rem;
    --font-size-3xl: 1.5rem;
    --font-size-2xl: 1.25rem;
  }

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

  /* Utility bar mobile */
  .utility-bar {
    display: none;
  }

  /* Header mobile */
  .main-nav {
    display: none;
  }

  .login-link {
    display: none;
  }

  .btn-open-account {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  /* Crypto ticker mobile */
  .crypto-ticker {
    height: 36px;
  }

  .ticker-item {
    padding: 0 16px;
    font-size: 12px;
  }

  /* Video showcase mobile */
  .video-showcase {
    height: 250px;
  }

  /* Hero mobile */
  .hero {
    min-height: 420px;
  }

  .hero-container {
    flex-direction: column;
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
    gap: var(--space-2xl);
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-image {
    max-width: 100%;
  }

  .hero-title {
    font-size: var(--font-size-3xl);
  }

  .hero-subtitle {
    font-size: var(--font-size-base);
    max-width: 100%;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn-primary,
  .hero-cta .btn-secondary {
    width: 100%;
    text-align: center;
  }

  /* Sections mobile */
  .why-ibkr,
  .products-section,
  .global-section,
  .platforms-section,
  .pricing-section,
  .education-section,
  .cta-section {
    padding: var(--space-3xl) 0;
  }

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

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

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

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .stat-number {
    font-size: var(--font-size-3xl);
  }

  .stats-showcase {
    max-width: 100%;
  }

  .showcase-background {
    height: 280px;
  }

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

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

  .global-text .section-title,
  .global-text .section-desc {
    text-align: left;
  }

  .global-text {
    text-align: left;
  }

  .platforms-title {
    font-size: var(--font-size-2xl);
  }

  .platforms-tabs {
    gap: var(--space-sm);
  }

  .platform-tab {
    font-size: var(--font-size-xs);
  }

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

  .pricing-card.featured {
    transform: none;
  }

  .pricing-card.featured:hover {
    transform: translateY(-3px);
  }

  .pricing-card:last-child {
    grid-column: auto;
    max-width: none;
  }

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

  .education-card:last-child {
    grid-column: auto;
    max-width: none;
  }

  .cta-title {
    font-size: var(--font-size-2xl);
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .btn-primary,
  .cta-buttons .btn-outline {
    width: 100%;
    text-align: center;
  }

  /* Footer mobile */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

  .footer-copyright {
    flex-direction: column;
    text-align: center;
  }

  .footer-legal-links {
    justify-content: center;
  }
}

/* === Responsive: Small Mobile === */
@media (max-width: 375px) {
  .container {
    padding: 0 12px;
  }

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

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

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

/* === Detail Pages === */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-lg);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s;
}

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

.dark-breadcrumb {
  color: rgba(255, 255, 255, 0.6);
}

.dark-breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
}

.page-hero {
  padding: 60px 0 40px;
  background: var(--bg-light);
}

.page-hero-content {
  max-width: 700px;
}

.page-hero-icon {
  margin-bottom: var(--space-md);
}

.page-hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.page-hero-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.dark-hero {
  background: var(--primary-dark);
}

.white-title {
  color: #ffffff;
}

.white-desc {
  color: rgba(255, 255, 255, 0.8);
}

.dark-subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.page-content {
  padding: 60px 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
}

.content-block {
  margin-bottom: 40px;
}

.content-block h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.content-block p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.content-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}

.sidebar-card {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.sidebar-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--accent);
}

.sidebar-list {
  list-style: none;
}

.sidebar-list li {
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
  line-height: 1.5;
}

.sidebar-list li:last-child {
  border-bottom: none;
}

/* Account Steps */
.account-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.step-card {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 auto var(--space-md);
}

.step-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Account Features */
.account-features {
  text-align: center;
}

.account-features h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 40px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-item {
  padding: var(--space-lg);
}

.feature-item svg {
  margin-bottom: var(--space-md);
}

.feature-item h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.feature-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Platforms Showcase */
.platforms-showcase {
  background: var(--primary-dark);
  padding: 40px 0 60px;
}

.platform-tabs {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.platform-tab {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s;
}

.platform-tab:hover,
.platform-tab.active {
  color: #ffffff;
}

.platform-tab svg {
  width: 16px;
  height: 16px;
}

.platform-devices-image {
  max-width: 1100px;
  margin: 0 auto;
}

.platform-devices-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

/* Responsive: Detail Pages */
@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .content-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

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

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

@media (max-width: 768px) {
  .page-hero-title {
    font-size: 2rem;
  }

  .content-sidebar {
    grid-template-columns: 1fr;
  }

  .account-steps {
    grid-template-columns: 1fr;
  }

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

  .platform-tabs {
    gap: 16px;
  }

  .platform-tab {
    font-size: 0.9rem;
  }
}

/* === Quantum Effects === */
.quantum-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--color-red);
  border-radius: 50%;
  opacity: 0;
  animation: quantumFloat 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes quantumFloat {
  0%, 100% {
    opacity: 0;
    transform: translate(0, 0) scale(0);
  }
  50% {
    opacity: 0.8;
    transform: translate(var(--tx), var(--ty)) scale(1);
  }
}

.quantum-ripple {
  position: absolute;
  border: 2px solid var(--color-red);
  border-radius: 50%;
  opacity: 0;
  animation: quantumRipple 0.6s ease-out;
  pointer-events: none;
}

@keyframes quantumRipple {
  0% {
    width: 0;
    height: 0;
    opacity: 0.5;
  }
  100% {
    width: 100px;
    height: 100px;
    opacity: 0;
  }
}

.quantum-entangle {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-red), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.quantum-entangle.active {
  opacity: 0.6;
  animation: quantumPulse 1s ease-in-out infinite;
}

@keyframes quantumPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

.why-card.quantum-active {
  position: relative;
  overflow: hidden;
}

.why-card.quantum-active::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(228, 0, 43, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.why-card.quantum-active:hover::before {
  opacity: 1;
}

.quantum-burst {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--color-red);
  border-radius: 50%;
  pointer-events: none;
  animation: quantumBurst 0.8s ease-out forwards;
}

@keyframes quantumBurst {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--bx), var(--by)) scale(0);
    opacity: 0;
  }
}

.quantum-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-red), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.quantum-wave.active {
  opacity: 1;
  animation: quantumWave 1s ease-in-out;
}

@keyframes quantumWave {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}


/* Video Showcase Section */
.video-showcase-section {
  padding: var(--space-3xl) 0;
  background: var(--color-bg-light);
}

.video-showcase-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
  background: #000;
}

.video-showcase-player {
  width: 100%;
  height: auto;
  display: block;
  max-height: 600px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .video-showcase-section {
    padding: var(--space-xl) 0;
  }

  .video-showcase-wrapper {
    margin: 0 16px;
    border-radius: 12px;
  }

  .video-showcase-player {
    max-height: 400px;
  }
}
