/* ========================================
   Interactive Brokers Landing Page Replica
   Global Stylesheet
   ======================================== */

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

:root {
  /* IB Brand Colors */
  --ib-navy: #101673;
  --ib-navy-dark: #0a0e4a;
  --ib-blue: #0062e2;
  --ib-blue-hover: #0050c0;
  --ib-red: #e4002b;
  --ib-red-hover: #c50025;
  --ib-green: #00875c;

  /* Neutrals */
  --color-bg: #ffffff;
  --color-bg-alt: #f5f7fa;
  --color-bg-dark: #0d1117;
  --color-text: #333333;
  --color-text-secondary: #5a6270;
  --color-text-light: #8b919a;
  --color-border: #d9dce1;
  --color-border-light: #e8eaed;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  /* Spacing */
  --container-max: 1200px;
  --header-height: 64px;

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

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
}

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

body {
  font-family: var(--font-family);
  font-size: 16px;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul { list-style: none; }
img { max-width: 100%; display: block; height: auto; }
sup { font-size: 0.7em; vertical-align: super; }

/* ---------- Container ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Common ---------- */
.text-center { text-align: center; }

.section {
  padding: 80px 0;
}

.section-alt {
  background: #f8fafc;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--ib-navy);
  margin-bottom: 16px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 17px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 640px;
}

.section-intro {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ib-blue);
  margin-bottom: 12px;
}

.link-arrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ib-blue);
  margin-top: 16px;
  transition: color var(--transition-fast);
}
.link-arrow:hover { color: var(--ib-blue-hover); }

.link-arrow-sm {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ib-blue);
  margin-top: 8px;
}
.link-arrow-sm:hover { color: var(--ib-blue-hover); }

/* ========================================
   UTILITY BAR
   ======================================== */
.utility-bar {
  background: var(--ib-navy-dark);
  padding: 6px 0;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}

.utility-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.utility-text { opacity: 0.7; }

.utility-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.utility-link {
  color: rgba(255,255,255,0.8);
  font-size: 12px;
}
.utility-link:hover { color: #fff; }

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

/* ========================================
   HEADER
   ======================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
  transition: box-shadow var(--transition-base);
}

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

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

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--ib-navy);
  letter-spacing: -0.01em;
}

/* Desktop Nav */
.nav-desktop,
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  transition: color var(--transition-fast);
  position: relative;
  padding: 4px 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--ib-blue);
  transition: width var(--transition-base);
}
.nav-link:hover {
  color: var(--ib-blue);
}
.nav-link:hover::after {
  width: 100%;
}

/* Nav Dropdown */
.nav-dropdown {
  position: relative;
}
.nav-dropdown > a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition-fast);
  padding: 8px 0;
  display: block;
  cursor: pointer;
}
.nav-dropdown > a:hover {
  color: var(--ib-blue);
}
.nav-dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  min-width: 200px;
  padding: 8px 0;
  z-index: 1000;
  margin-top: 8px;
}
.nav-dropdown .dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--color-text);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-dropdown .dropdown-menu a:hover {
  background: var(--color-bg-alt);
  color: var(--ib-blue);
}
.nav-dropdown:hover .dropdown-menu {
  display: block;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-login {
  font-size: 14px;
  font-weight: 500;
  color: var(--ib-navy);
  padding: 8px 16px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  transition: all var(--transition-fast);
}
.btn-login:hover {
  border-color: var(--ib-navy);
  background: var(--color-bg-alt);
}

.btn-open-account {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--ib-red);
  padding: 8px 20px;
  border-radius: 4px;
  border: 1px solid var(--ib-red);
  transition: all var(--transition-fast);
}
.btn-open-account:hover {
  background: var(--ib-red-hover);
  border-color: var(--ib-red-hover);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition-fast);
}
.mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  padding: 16px 24px;
  box-shadow: var(--shadow-lg);
}
.mobile-menu.active {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu-link {
  padding: 12px 0;
  font-weight: 500;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border-light);
  font-size: 15px;
}
.mobile-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.btn--full { width: 100%; text-align: center; }

/* ========================================
   HERO BANNER
   ======================================== */
.hero-banner {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-banner-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(16,22,115,0.85) 0%, rgba(0,98,226,0.6) 100%);
}

.hero-banner-content {
  position: relative;
  z-index: 1;
  padding: 80px 0;
}

.hero-banner-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-banner-title {
  font-size: 44px;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
  max-width: 600px;
  letter-spacing: -0.02em;
}

.hero-banner-desc {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-banner-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: var(--ib-red);
  border-radius: 4px;
  transition: all var(--transition-fast);
}
.btn-cta-primary:hover {
  background: var(--ib-red-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(228,0,43,0.3);
}

.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 4px;
  transition: all var(--transition-fast);
}
.btn-cta-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

/* ========================================
   PREDICTION TICKER
   ======================================== */
.prediction-ticker {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border-light);
  padding: 32px 0;
}

.prediction-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.prediction-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.prediction-badge {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: var(--ib-red);
  padding: 2px 8px;
  border-radius: 3px;
  text-transform: uppercase;
}

.prediction-header h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ib-navy);
}

.prediction-cards {
  display: flex;
  gap: 12px;
  flex: 1;
}

.prediction-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 12px 16px;
  flex: 1;
  min-width: 200px;
}

.prediction-q {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.prediction-options {
  display: flex;
  gap: 8px;
}

.pred-yes {
  font-size: 12px;
  font-weight: 600;
  color: var(--ib-green);
  background: rgba(0,135,92,0.08);
  padding: 2px 8px;
  border-radius: 4px;
}

.pred-no {
  font-size: 12px;
  font-weight: 600;
  color: var(--ib-red);
  background: rgba(228,0,43,0.08);
  padding: 2px 8px;
  border-radius: 4px;
}

.prediction-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--ib-blue);
  flex-shrink: 0;
}

/* ========================================
   VALUE PROPS (4 Cards)
   ======================================== */
.value-props {
  padding: 48px 0;
}

.value-props-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.value-prop-card {
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  overflow: hidden;
  transition: all var(--transition-base);
  background: #fff;
}
.value-prop-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--ib-blue);
}

.value-prop-img {
  height: 160px;
  overflow: hidden;
}
.value-prop-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}
.value-prop-card:hover .value-prop-img img {
  transform: scale(1.03);
}

.value-prop-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ib-navy);
  padding: 16px 16px 8px;
}

.value-prop-desc {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  padding: 0 16px 16px;
}

/* ========================================
   AWARDS SECTION
   ======================================== */
.awards {
  padding: 56px 0;
  background: var(--color-bg-alt);
}

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

.award-badge {
  text-align: center;
  padding: 24px 16px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--color-border-light);
}

.award-icon {
  margin-bottom: 12px;
}

.award-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ib-navy);
  line-height: 1.4;
}

.awards-cta {
  text-align: center;
  margin-top: 24px;
}

/* ========================================
   SECTION ALTERNATING (Split Layout)
   ======================================== */
.section-alt {
  padding: 64px 0;
  background: var(--color-bg-alt);
}

.section-white {
  padding: 64px 0;
  background: #fff;
}

.section-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.section-split--reverse {
  direction: rtl;
}
.section-split--reverse > * {
  direction: ltr;
}

.section-split-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.section-split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}

/* Feature List */
.feature-list {
  margin-bottom: 8px;
}
.feature-list li {
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.7;
  padding: 10px 0;
  padding-left: 24px;
  position: relative;
  border-bottom: 1px solid var(--color-border-light);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 8px;
  height: 8px;
  background: var(--ib-blue);
  border-radius: 50%;
}
.feature-list li a {
  color: var(--ib-blue);
  font-weight: 500;
}
.feature-list li a:hover { text-decoration: underline; }
.feature-list li strong { font-weight: 600; }

/* Global Stats */
.global-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 16px;
}

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

.global-stat-num {
  display: block;
  font-size: 36px;
  font-weight: 800;
  color: var(--ib-navy);
  line-height: 1.1;
}

.global-stat-label {
  font-size: 13px;
  color: var(--color-text-secondary);
  font-weight: 500;
}

/* Platform List */
.platform-list {
  margin-bottom: 8px;
}

.platform-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border-light);
}
.platform-item:last-child { border-bottom: none; }

.platform-item h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ib-navy);
  margin-bottom: 4px;
}

.platform-item p {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* ========================================
   FEATURE CARDS (5 Cards)
   ======================================== */
.feature-cards-section {
  padding: 56px 0;
  background: #fff;
}

.feature-cards-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.feature-card {
  padding: 24px 16px;
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  text-align: center;
  transition: all var(--transition-base);
}
.feature-card:hover {
  border-color: var(--ib-blue);
  box-shadow: var(--shadow-sm);
}

.feature-card-icon {
  margin-bottom: 12px;
}

.feature-card h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--ib-navy);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* ========================================
   TESTIMONIAL
   ======================================== */
.testimonial {
  padding: 56px 0;
  background: var(--ib-navy);
}

.testimonial-inner {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.testimonial-quote {
  font-size: 22px;
  font-weight: 400;
  color: #fff;
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 16px;
}

.testimonial-cite {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  font-style: normal;
}

/* ========================================
   TRUST SECTION
   ======================================== */
.trust-section {
  padding: 64px 0;
  background: var(--color-bg-alt);
}

.trust-header {
  text-align: center;
  margin-bottom: 40px;
}

.trust-intro {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto 20px;
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.trust-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--ib-navy);
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 6px 16px;
  border-radius: 100px;
}

.trust-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.trust-stat {
  text-align: center;
  padding: 24px 12px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--color-border-light);
}

.trust-stat-value {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--ib-navy);
  line-height: 1.2;
  margin-bottom: 4px;
}

.trust-stat-label {
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.3;
}

.trust-cta {
  text-align: center;
  margin-top: 24px;
}

/* ========================================
   ACCOUNT TYPES
   ======================================== */
.account-types {
  padding: 56px 0;
  background: #fff;
}

.account-types-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.account-type-card {
  text-align: center;
  padding: 24px 12px;
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  transition: all var(--transition-base);
}
.account-type-card:hover {
  border-color: var(--ib-blue);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.account-type-icon {
  margin-bottom: 12px;
}

.account-type-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ib-navy);
}

/* ========================================
   3-STEP PROCESS
   ======================================== */
.steps-section {
  padding: 56px 0;
  background: var(--color-bg-alt);
}

.steps-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 32px;
}

.step {
  text-align: center;
  padding: 32px 24px;
  flex: 1;
}

.step-number {
  font-size: 12px;
  font-weight: 700;
  color: var(--ib-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.step-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ib-navy);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 14px;
  color: var(--color-text-secondary);
}

.step-connector {
  width: 60px;
  height: 2px;
  background: var(--color-border);
  flex-shrink: 0;
}

.steps-cta {
  text-align: center;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--color-bg-dark);
  padding: 48px 0 24px;
  color: rgba(255,255,255,0.6);
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition-fast);
}
.footer-links a:hover {
  color: #fff;
}

.footer-middle {
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-memberships {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.membership-badge {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 3px 10px;
  border-radius: 3px;
}

.footer-regulatory {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
  margin-bottom: 8px;
}

.footer-address {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}
.footer-address strong { color: rgba(255,255,255,0.5); }

.footer-disclaimer {
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-disclaimer p {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  line-height: 1.6;
}

.footer-bottom {
  padding-top: 16px;
}
.footer-bottom p {
  font-size: 11px;
  color: rgba(255,255,255,0.25);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .value-props-grid { grid-template-columns: repeat(2, 1fr); }
  .awards-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-cards-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-stats-grid { grid-template-columns: repeat(3, 1fr); }
  .account-types-grid { grid-template-columns: repeat(3, 1fr); }
  .section-split { grid-template-columns: 1fr; gap: 32px; }
  .section-split--reverse { direction: ltr; }
}

@media (max-width: 768px) {
  .utility-bar { display: none; }

  .nav,
  .nav-desktop,
  .header-actions {
    display: none;
  }

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

  .hero-banner { min-height: 360px; }
  .hero-banner-title { font-size: 32px; }
  .hero-banner-desc { font-size: 16px; }
  .hero-banner-content { padding: 48px 0; }

  .prediction-inner { flex-direction: column; align-items: flex-start; }
  .prediction-cards { flex-direction: column; width: 100%; }

  .value-props-grid { grid-template-columns: 1fr; }
  .awards-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .account-types-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: repeat(2, 1fr); }

  .steps-grid { flex-direction: column; gap: 0; }
  .step-connector { width: 2px; height: 24px; }

  .global-stats { gap: 20px; }
  .global-stat-num { font-size: 28px; }

  .section-title { font-size: 24px; }
}

@media (max-width: 480px) {
  .hero-banner-cta { flex-direction: column; }
  .hero-banner-cta .btn-cta-primary,
  .hero-banner-cta .btn-cta-secondary { width: 100%; }

  .feature-cards-grid { grid-template-columns: 1fr; }
  .trust-stats-grid { grid-template-columns: 1fr; }
  .account-types-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}

/* ---------- Product Mockup Section ---------- */
.product-mockup-section {
  padding: 60px 0 0;
  background: linear-gradient(180deg, #f0f4ff 0%, #fff 100%);
}

.product-mockup-img {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  box-shadow: 0 -8px 40px rgba(16, 22, 115, 0.12);
}

.product-mockup-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* ========================================
   Account Page Styles
   ======================================== */

/* ---------- Page Hero ---------- */
.page-hero {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  margin-top: var(--header-height);
  background: linear-gradient(135deg, #0a1250 0%, #101673 30%, #0062e2 100%);
  display: flex;
  align-items: center;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: transparent;
}

.page-hero__content {
  position: relative;
  z-index: 2;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  color: #fff;
  padding: 60px 0;
}

.page-hero__text {
  flex: 1;
  max-width: 520px;
}

.page-hero__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
}

.page-hero__title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.page-hero__subtitle {
  font-size: 18px;
  opacity: 0.9;
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.page-hero__image {
  flex: 1;
  max-width: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* ---------- Advantage Grid ---------- */
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 48px;
}

.advantage-item {
  text-align: left;
  padding: 40px 32px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.advantage-item:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

.advantage-item__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 98, 226, 0.1), rgba(16, 22, 115, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 20px;
  font-size: 24px;
}

.advantage-item h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ib-navy);
  margin-bottom: 10px;
}

.advantage-item p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin: 0;
}

.advantage-item__link {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ib-blue);
  text-decoration: none;
  transition: color 0.2s;
}

.advantage-item__link:hover {
  color: var(--ib-navy);
}

/* ---------- Feature Cards (HS style) ---------- */
.feature-cards-section {
  padding: 80px 0;
  background: #fff;
}

.feature-cards-section .section-header {
  text-align: center;
  margin-bottom: 56px;
}

.feature-cards-section .section-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--ib-navy);
  margin-bottom: 12px;
}

.feature-cards-section .section-header p {
  font-size: 16px;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.feature-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  background: #f8fafc;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.feature-card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.feature-card__content {
  padding: 28px 24px;
}

.feature-card__content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ib-navy);
  margin-bottom: 10px;
}

.feature-card__content p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* ---------- Pricing Features ---------- */
.pricing-features {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pricing-feature {
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  border-left: 3px solid var(--ib-blue);
}

.pricing-feature h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ib-navy);
  margin-bottom: 6px;
}

.pricing-feature p {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

.text-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--ib-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.text-link:hover {
  color: var(--ib-blue-hover);
  text-decoration: underline;
}

/* ---------- Global Stats ---------- */
.global-stats {
  display: flex;
  gap: 32px;
  margin: 24px 0;
}

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

.global-stat__number {
  display: block;
  font-size: 36px;
  font-weight: 700;
  color: var(--ib-blue);
  line-height: 1.2;
}

.global-stat__label {
  display: block;
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-top: 4px;
}

/* ---------- Feature Grid (4 cols) ---------- */
.feature-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ---------- Feature Card Horizontal ---------- */
.feature-card--horizontal {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  text-align: left;
}

.feature-card--horizontal .feature-card__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(0, 98, 226, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card--horizontal .feature-card__title {
  font-size: 16px;
}

.feature-card--horizontal .feature-card__desc {
  font-size: 13px;
}

/* ---------- Trust Badges ---------- */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 24px 0;
}

.trust-badge {
  padding: 8px 20px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  color: rgba(255,255,255,0.9);
  font-size: 14px;
  font-weight: 500;
}

/* ---------- Stats Grid 3x2 ---------- */
.stats-grid--3x2 {
  grid-template-columns: repeat(3, 1fr);
}

.stat-card--light {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
}

.stat-card--light .stat-card__number {
  color: #fff;
}

.stat-card--light .stat-card__label {
  color: rgba(255,255,255,0.7);
}

/* ---------- Education Tags ---------- */
.education-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.education-tag {
  padding: 10px 24px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ib-navy);
  transition: all var(--transition-fast);
}

.education-tag:hover {
  background: var(--ib-blue);
  color: #fff;
  border-color: var(--ib-blue);
}

/* ---------- Account Type Cards ---------- */
.account-types-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.account-type-card {
  text-align: center;
  padding: 32px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.account-type-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.account-type-card__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(16, 22, 115, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.account-type-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ib-navy);
  margin-bottom: 8px;
}

.account-type-card p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* ---------- Account Info Box ---------- */
.account-info-box {
  margin-top: 40px;
  padding: 32px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.account-info-box h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--ib-navy);
  margin-bottom: 20px;
}

.account-info-box h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ib-navy);
  margin-bottom: 8px;
}

.account-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.account-info-grid p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.account-requirements {
  padding-top: 20px;
  border-top: 1px solid var(--color-border-light);
}

.account-requirements ul {
  list-style: none;
  margin-top: 12px;
}

.account-requirements li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border-light);
}

.account-requirements li:last-child {
  border-bottom: none;
}

/* ---------- CTA Buttons (Account page) ---------- */
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.btn--lg {
  padding: 16px 40px;
  font-size: 16px;
}

/* ---------- Open Account Guides ---------- */
.open-account-guides {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 24px;
}

.guide-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--transition-fast);
}

.guide-link:hover {
  color: #fff;
}

/* ---------- Section CTA (Account page) ---------- */
.section--cta {
  background: linear-gradient(135deg, var(--ib-navy) 0%, var(--ib-blue) 100%);
  color: #fff;
  text-align: center;
  padding: 80px 0;
}

/* ---------- Responsive: Account Page ---------- */
@media (max-width: 1024px) {
  .advantage-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .account-types-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid--3x2 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .page-hero { height: 260px; }
  .page-hero__title { font-size: 30px; }
  .page-hero__subtitle { font-size: 16px; }

  .advantage-grid { grid-template-columns: 1fr; }
  .feature-grid--4 { grid-template-columns: 1fr; }
  .account-types-grid { grid-template-columns: 1fr; }
  .stats-grid--3x2 { grid-template-columns: 1fr 1fr; }
  .account-info-grid { grid-template-columns: 1fr; }
  .global-stats { flex-wrap: wrap; gap: 20px; }

  .cta-buttons { flex-direction: column; align-items: center; }
  .open-account-guides { flex-direction: column; align-items: center; gap: 16px; }
  .trust-badges { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .stats-grid--3x2 { grid-template-columns: 1fr; }
  .account-types-grid { grid-template-columns: 1fr; }
}

/* ============================================
   PRODUCTS PAGE STYLES
   ============================================ */

/* Product Category Navigation */
.product-nav {
  background: #fff;
  border-bottom: 1px solid #e8ecf1;
  padding: 16px 0;
  position: sticky;
  top: 65px;
  z-index: 90;
}

.product-nav__list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.product-nav__list::-webkit-scrollbar {
  display: none;
}

.product-nav__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 24px;
  background: #f5f7fa;
  color: #1a2340;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.product-nav__item:hover {
  background: #0062e2;
  color: #fff;
}

.product-nav__item:hover svg {
  stroke: #fff;
}

.product-nav__item svg {
  flex-shrink: 0;
}

/* Product Section */
.product-section {
  padding: 80px 0;
}

.product-section--alt {
  background: #f5f7fa;
}

.product-section--reverse .product-section__grid {
  direction: rtl;
}

.product-section--reverse .product-section__grid > * {
  direction: ltr;
}

.product-section__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.product-section__grid--center {
  grid-template-columns: 1fr;
  max-width: 900px;
  margin: 0 auto;
}

.product-section__text--full {
  text-align: center;
}

.product-section__tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(0, 98, 226, 0.1);
  color: #0062e2;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.product-section__title {
  font-size: 32px;
  font-weight: 700;
  color: #1a2340;
  margin-bottom: 24px;
  line-height: 1.3;
}

.product-section__desc {
  font-size: 16px;
  color: #5a6577;
  line-height: 1.7;
  margin-bottom: 32px;
}

.product-section__features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}

.product-section__features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 15px;
  color: #3a4557;
  line-height: 1.5;
}

.product-section__features li svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.product-section__image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.product-section__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Product Pricing Row */
.product-section__pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.product-section__price-item {
  background: #f5f7fa;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
}

.product-section__price-label {
  display: block;
  font-size: 12px;
  color: #5a6577;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-section__price-value {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #0062e2;
}

.product-section__price-value span {
  font-size: 13px;
  font-weight: 400;
  color: #5a6577;
}

/* Options Levels */
.product-section__levels {
  margin-top: 24px;
}

.product-section__levels h4 {
  font-size: 14px;
  font-weight: 600;
  color: #1a2340;
  margin-bottom: 12px;
}

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

.level-item {
  background: #f5f7fa;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
}

.level-num {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #0062e2;
  margin-bottom: 4px;
}

.level-desc {
  font-size: 12px;
  color: #5a6577;
}

/* Futures Asset Tags */
.product-section__asset-classes {
  margin-top: 24px;
}

.product-section__asset-classes h4 {
  font-size: 14px;
  font-weight: 600;
  color: #1a2340;
  margin-bottom: 12px;
}

.asset-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.asset-tag {
  padding: 8px 16px;
  background: #f5f7fa;
  border: 1px solid #e8ecf1;
  border-radius: 20px;
  font-size: 13px;
  color: #3a4557;
  transition: all 0.2s ease;
}

.asset-tag:hover {
  background: #0062e2;
  color: #fff;
  border-color: #0062e2;
}

/* Currency Grid */
.currency-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.currency-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.currency-flag {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #101673, #0062e2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.currency-item span {
  font-size: 14px;
  color: #3a4557;
}

/* Stats Mini Row */
.product-section__stats-row {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 32px;
}

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

.stat-mini__value {
  display: block;
  font-size: 36px;
  font-weight: 700;
  color: #0062e2;
}

.stat-mini__label {
  font-size: 14px;
  color: #5a6577;
}

/* Bond Types */
.bond-types {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.bond-type {
  text-align: center;
  padding: 24px 16px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bond-type:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.bond-type svg {
  margin-bottom: 12px;
}

.bond-type h4 {
  font-size: 15px;
  font-weight: 600;
  color: #1a2340;
  margin-bottom: 8px;
}

.bond-type p {
  font-size: 13px;
  color: #5a6577;
}

/* Fund Features */
.fund-features {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 40px;
}

.fund-feature {
  text-align: center;
}

.fund-feature__num {
  display: block;
  font-size: 42px;
  font-weight: 700;
  color: #0062e2;
  margin-bottom: 8px;
}

.fund-feature__label {
  font-size: 15px;
  color: #5a6577;
}

/* Comparison Table */
.comparison-table-wrapper {
  overflow-x: auto;
  margin-top: 40px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.comparison-table th {
  background: #1a2340;
  color: #fff;
  padding: 16px 20px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
}

.comparison-table td {
  padding: 16px 20px;
  border-bottom: 1px solid #e8ecf1;
  font-size: 14px;
  color: #3a4557;
}

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

.comparison-table tr:hover td {
  background: #f8fafc;
}

/* Platform Cards */
.platform-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.platform-card {
  background: #fff;
  padding: 32px 24px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.platform-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.platform-card__icon {
  width: 64px;
  height: 64px;
  background: rgba(0, 98, 226, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.platform-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1a2340;
  margin-bottom: 12px;
}

.platform-card p {
  font-size: 14px;
  color: #5a6577;
  line-height: 1.6;
}

/* Products Page Responsive */
@media (max-width: 1024px) {
  .product-section__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .product-section--reverse .product-section__grid {
    direction: ltr;
  }

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

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

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

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

/* Hide mobile-only nav footer on desktop */
.mobile-nav-footer {
  display: none;
}

/* ============================================
   BACK BUTTON
   ============================================ */
.back-btn {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
  color: #333;
  font-size: 18px;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.back-btn:hover {
  background: #fff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
  transform: scale(1.05);
}

.back-btn:active {
  transform: scale(0.95);
  background: #f5f5f5;
}

.back-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

@media (max-width: 768px) {
  .back-btn {
    top: 10px;
    left: 10px;
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 768px) {
  .product-nav {
    top: 60px;
  }

  .product-section {
    padding: 48px 0;
  }

  .product-section__title {
    font-size: 24px;
  }

  .product-section__pricing {
    grid-template-columns: 1fr;
  }

  .platform-cards {
    grid-template-columns: 1fr;
  }

  .bond-types {
    grid-template-columns: 1fr;
  }

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

  .fund-features {
    flex-direction: column;
    gap: 24px;
  }

  .product-section__stats-row {
    flex-direction: column;
    gap: 24px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 12px;
    font-size: 13px;
  }
}

/* ============================================
   下拉导航菜单
   ============================================ */
.nav-dropdown {
  position: relative;
}

.nav-dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  z-index: 1000;
  padding: 8px 0;
}

.nav-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 8px 16px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s;
}

.dropdown-menu a:hover {
  background: #f5f7fa;
  color: var(--primary-blue);
}

/* ============================================
   页内锚点高亮
   ============================================ */
.product-category-nav a.active {
  background: var(--primary-blue);
  color: #fff;
}

/* ============================================
   子页面通用 Hero 调整
   ============================================ */
.page-hero .hero-content {
  max-width: 800px;
}

.page-hero h1 {
  font-size: 2.5rem;
}

@media (max-width: 768px) {
  .nav-dropdown .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 16px;
  }
  
  .nav-dropdown:hover .dropdown-menu {
    display: none;
  }
  
  .nav-dropdown .dropdown-menu.show {
    display: block;
  }
}

/* ============================================
   COMPREHENSIVE MOBILE STYLES
   ============================================ */

/* Base mobile improvements */
@media (max-width: 768px) {
  /* Global */
  html { font-size: 15px; }
  body { -webkit-text-size-adjust: 100%; }
  
  .container { padding: 0 16px; }
  
  /* Header */
  .header { padding: 0 16px; height: 56px; }
  .logo { font-size: 18px; }
  .header-actions { gap: 8px; }
  .header-actions .btn { padding: 6px 12px; font-size: 13px; }
  
  /* Utility bar - hide on mobile */
  .utility-bar { display: none; }
  
  /* Hero section */
  .hero-banner { min-height: 400px; padding: 60px 0 40px; }
  .hero-banner h1 { font-size: 28px; line-height: 1.3; }
  .hero-banner p { font-size: 15px; }
  .hero-banner .btn { width: 100%; max-width: 280px; text-align: center; }
  
  /* Page hero (sub-pages) */
  .page-hero { height: auto; min-height: 200px; padding: 60px 0 40px; }
  .page-hero h1 { font-size: 26px; line-height: 1.3; margin-bottom: 12px; }
  .page-hero .page-hero-desc { font-size: 14px; line-height: 1.6; }
  .page-hero .page-hero-tag { font-size: 11px; }
  .page-hero .btn { width: 100%; max-width: 240px; margin-top: 16px; }
  
  /* Sections */
  .section { padding: 40px 0; }
  .section-alt { padding: 40px 0; }
  .section-title { font-size: 22px; margin-bottom: 8px; }
  .section-subtitle { font-size: 14px; margin-bottom: 24px; }
  
  /* Split section - stack vertically */
  .split-section { grid-template-columns: 1fr; gap: 24px; }
  .split-section.split-reverse { grid-template-columns: 1fr; }
  .split-section .split-image { order: -1; }
  .split-section .split-image img { height: 200px; }
  
  /* Product mockup */
  .product-mockup-section { padding: 24px 0; }
  .product-mockup-img img { border-radius: 8px; }
  
  /* Advantage grid - single column */
  .advantage-grid { grid-template-columns: 1fr; gap: 16px; }
  .advantage-item { padding: 20px; }
  .advantage-item h3 { font-size: 16px; }
  .advantage-item p { font-size: 14px; }
  .advantage-item__icon { width: 44px; height: 44px; font-size: 20px; }
  
  /* Info tables - horizontal scroll */
  .info-table { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -16px; padding: 0 16px; }
  .info-table table { min-width: 500px; font-size: 13px; }
  .info-table th, .info-table td { padding: 10px 12px; }
  
  /* Product category nav - horizontal scroll */
  .product-cat-nav { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .product-cat-nav .container { 
    display: flex; 
    flex-wrap: nowrap; 
    gap: 4px;
    padding: 8px 16px;
  }
  .product-cat-nav a { 
    white-space: nowrap; 
    font-size: 13px; 
    padding: 6px 12px;
    flex-shrink: 0;
  }
  
  /* CTA section */
  .cta-section { padding: 40px 0; }
  .cta-section h2 { font-size: 22px; }
  .cta-section p { font-size: 14px; }
  .cta-buttons { flex-direction: column; align-items: center; gap: 12px; }
  .cta-buttons .btn { width: 100%; max-width: 280px; text-align: center; }
  
  /* Footer */
  .footer { padding: 32px 0 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-col h4 { font-size: 14px; margin-bottom: 12px; }
  .footer-col a { font-size: 13px; padding: 4px 0; display: block; }
  .footer-disclaimer { font-size: 11px; line-height: 1.6; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  
  /* Login page */
  .login-container { padding: 20px 16px; }
  .login-form { padding: 24px 20px; }
  .login-form h2 { font-size: 20px; }
  .login-form .form-group { margin-bottom: 16px; }
  .login-form label { font-size: 14px; }
  .login-form input { 
    height: 48px; 
    font-size: 16px; /* Prevents iOS zoom */
    border-radius: 6px;
  }
  .login-form .btn { height: 48px; font-size: 16px; }
  .login-links { flex-direction: column; gap: 8px; }
  .login-links a { font-size: 13px; }
  .login-divider { margin: 20px 0; }
  .login-qr { padding: 16px; }
  .login-qr-box { width: 120px; height: 120px; }
  .login-security { padding: 12px 16px; }
  .login-security p { font-size: 12px; }
  .login-register { padding: 16px 20px; }
  .login-register p { font-size: 14px; }
  
  /* Pricing plans */
  .pricing-plans { grid-template-columns: 1fr; gap: 16px; }
  .pricing-plan { padding: 24px 20px; }
  .pricing-plan h3 { font-size: 18px; }
  .price-value { font-size: 28px; }
  
  /* Content blocks */
  .content-block { padding: 16px; }
  .content-block p { font-size: 14px; line-height: 1.7; }
  
  /* Check list */
  .check-list li { font-size: 14px; padding: 6px 0; }
  
  /* Disclaimer */
  .disclaimer { font-size: 12px; padding: 12px 16px; }
  
  /* Touch targets - ensure minimum 44px */
  a, button { min-height: 44px; }
  .nav-link { padding: 12px 8px; }
  .footer-col a { min-height: 36px; }
}

/* Extra small devices */
@media (max-width: 375px) {
  .hero-banner h1 { font-size: 24px; }
  .page-hero h1 { font-size: 22px; }
  .section-title { font-size: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .login-form { padding: 20px 16px; }
}

/* Tablet improvements */
@media (min-width: 769px) and (max-width: 1024px) {
  .advantage-grid { grid-template-columns: repeat(2, 1fr); }
  .split-section { gap: 32px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--color-text);
  cursor: pointer;
  padding: 8px;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .mobile-menu-toggle { display: flex; }
  
  /* Hide desktop nav and header actions on mobile */
  .nav, .nav-desktop { 
    display: none !important;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px;
    overflow-y: auto;
    z-index: 999;
    justify-content: flex-start;
  }
  
  .nav.active, .nav-desktop.active { display: flex !important; }
  
  .nav .nav-dropdown, .nav-desktop .nav-dropdown { 
    border-bottom: 1px solid #e8ecf1;
    padding: 8px 0;
  }
  
  .nav .nav-dropdown > a, .nav-desktop .nav-dropdown > a {
    display: block;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 600;
  }
  
  .nav .dropdown-menu, .nav-desktop .dropdown-menu {
    display: none;
    padding: 8px 0 8px 16px;
  }
  
  .nav .dropdown-menu.show, .nav-desktop .dropdown-menu.show { display: block; }
  
  .nav .dropdown-menu a, .nav-desktop .dropdown-menu a {
    display: block;
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
  }
  
  /* Hide header actions (登录/开户 buttons) on mobile - they go in the menu */
  .header-actions { display: none; }
  
  /* Show login/register links inside mobile nav */
  .nav .mobile-nav-footer, .nav-desktop .mobile-nav-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #e8ecf1;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

/* ============================================
   Account Application Page (Redesigned)
   ============================================ */

/* Main container */
.acct-main {
  background: #f0f2f5;
  min-height: 100vh;
  padding-bottom: 60px;
}

/* Hero section with title + steps */
.acct-hero {
  background: linear-gradient(135deg, #0062e2 0%, #0047b3 100%);
  padding: 36px 0 32px;
  color: #fff;
}

.acct-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 24px;
  letter-spacing: -0.3px;
}

.acct-steps {
  display: flex;
  align-items: center;
  gap: 0;
}

.acct-step {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.acct-step--active {
  opacity: 1;
}

.acct-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  transition: all 0.2s;
}

.acct-step--active .acct-step-num {
  background: #fff;
  color: #0062e2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.acct-step-text {
  font-size: 14px;
  color: #fff;
  white-space: nowrap;
  font-weight: 500;
}

.acct-step-line {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  margin: 0 20px;
  min-width: 30px;
}

/* Tabs bar */
.acct-tabs-bar {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.acct-tabs-list {
  display: flex;
  gap: 0;
}

.acct-tab {
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 500;
  color: #64748b;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.acct-tab:hover {
  color: #0062e2;
  background: #f8fafc;
}

.acct-tab--active {
  color: #0062e2;
  border-bottom-color: #0062e2;
  font-weight: 600;
}

/* Body layout */
.acct-body {
  padding: 32px 0 40px;
}

.acct-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  align-items: start;
}

/* Sidebar */
.acct-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.acct-info-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
}

.acct-info-card__title {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.acct-info-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.acct-info-card__list li {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  padding: 6px 0 6px 20px;
  position: relative;
}

.acct-info-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0062e2;
  opacity: 0.6;
}

.acct-helper-links {
  background: #fff;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
}

.acct-helper-links p {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 12px;
  line-height: 1.6;
}

.acct-helper-links p:last-child {
  margin-bottom: 0;
}

.acct-helper-links a {
  color: #0062e2;
  text-decoration: none;
  font-weight: 600;
}

.acct-helper-links a:hover {
  text-decoration: underline;
}

/* Form area */
.acct-form-area {
  min-width: 0;
}

.acct-form-card {
  background: #fff;
  border-radius: 12px;
  padding: 36px 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
}

.acct-form-card__title {
  font-size: 22px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 28px;
  padding-bottom: 18px;
  border-bottom: 2px solid #f1f5f9;
}

/* Form elements */
.acct-field {
  margin-bottom: 24px;
}

.acct-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 8px;
}

.acct-input,
.acct-select {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #1e293b;
  transition: all 0.2s;
  outline: none;
  box-sizing: border-box;
}

.acct-input:focus,
.acct-select:focus {
  border-color: #0062e2;
  box-shadow: 0 0 0 4px rgba(0, 98, 226, 0.08);
}

.acct-input::placeholder {
  color: #94a3b8;
}

.acct-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

/* Password wrapper */
.acct-pw-wrap {
  position: relative;
}

.acct-pw-wrap .acct-input {
  padding-right: 48px;
}

.acct-pw-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.acct-pw-toggle:hover,
.acct-pw-toggle.active {
  color: #0062e2;
}

/* Form hints */
.acct-hint {
  font-size: 13px;
  color: #64748b;
  margin: 6px 0 0;
  min-height: 18px;
}

.acct-hint--error {
  color: #e4002b;
}

.acct-hint--warning {
  color: #d97706;
}

/* Validation rules */
.acct-rules {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}

.acct-rules li {
  font-size: 13px;
  color: #64748b;
  padding: 4px 0 4px 24px;
  position: relative;
  line-height: 1.5;
}

.acct-rules li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e2e8f0;
  transition: all 0.2s;
}

.acct-rules li.acct-rule--pass {
  color: #059669;
}

.acct-rules li.acct-rule--pass::before {
  background: #059669;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.acct-rules li.acct-rule--fail {
  color: #e4002b;
}

.acct-rules li.acct-rule--fail::before {
  background: #e4002b;
}

/* Region notice */
.acct-notice {
  background: #fffbeb;
  border: 1px solid #fbbf24;
  border-radius: 10px;
  padding: 20px 24px;
  margin: 24px 0;
  font-size: 13px;
  color: #92400e;
  line-height: 1.7;
}

.acct-notice p {
  margin: 0 0 8px;
  font-weight: 600;
}

.acct-notice ol {
  padding-left: 20px;
  margin: 0;
}

.acct-notice ol li {
  margin-bottom: 8px;
}

/* Declaration */
.acct-declaration {
  background: #eff6ff;
  border: 1px solid #93c5fd;
  border-radius: 10px;
  padding: 20px 24px;
  margin: 24px 0;
  font-size: 13px;
  color: #1e40af;
  line-height: 1.7;
  display: none;
}

.acct-checkbox-label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
}

.acct-checkbox {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #0062e2;
}

/* Submit button */
.acct-submit {
  display: block;
  width: 100%;
  padding: 14px 24px;
  margin-top: 32px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #0062e2 0%, #0047b3 100%);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.3px;
}

.acct-submit:hover {
  box-shadow: 0 4px 16px rgba(0, 98, 226, 0.35);
  transform: translateY(-1px);
}

.acct-submit:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 98, 226, 0.2);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .acct-hero {
    padding: 24px 0 20px;
  }

  .acct-title {
    font-size: 22px;
    margin-bottom: 18px;
  }

  .acct-steps {
    flex-wrap: wrap;
    gap: 8px;
  }

  .acct-step-line {
    display: none;
  }

  .acct-step {
    flex-basis: 100%;
    opacity: 0.5;
  }

  .acct-step--active {
    opacity: 1;
  }

  .acct-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .acct-form-card {
    padding: 24px 20px;
    border-radius: 10px;
  }

  .acct-form-card__title {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 14px;
  }

  .acct-tab {
    padding: 12px 20px;
    font-size: 14px;
  }

  .acct-info-card {
    padding: 18px 20px;
  }
}

@media (max-width: 480px) {
  .acct-hero {
    padding: 18px 0 16px;
  }

  .acct-title {
    font-size: 20px;
  }

  .acct-form-card {
    padding: 20px 16px;
    border-radius: 0;
    box-shadow: none;
    border-left: none;
    border-right: none;
  }

  .acct-input,
  .acct-select {
    font-size: 16px;
    padding: 12px 14px;
  }

  .acct-submit {
    font-size: 15px;
    padding: 14px 20px;
  }
}
}
