/* Interactive Brokers Referral Page Stylesheet */
/* Design System Tokens */
:root {
  --bg-dark: #07080b;
  --bg-card: rgba(20, 21, 28, 0.70);
  --bg-card-hover: rgba(28, 30, 40, 0.90);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(217, 32, 39, 0.30);
  
  --color-primary: #D92027; /* IBKR Red (Alizarin Crimson) */
  --color-primary-glow: rgba(217, 32, 39, 0.35);
  --color-accent: #FF3B30; /* Modern neon red */
  --color-accent-glow: rgba(255, 59, 48, 0.20);
  --color-secondary: #8C1D21; /* Deep Crimson */
  --color-secondary-glow: rgba(140, 29, 33, 0.20);
  --color-green: #0ecb81;
  --color-green-glow: rgba(14, 203, 129, 0.20);
  --color-silver: #BFBFBF;
  
  --text-main: #EAECEF;
  --text-muted: #848E9C;
  --text-dark: #474F59;
  
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Anchor Link Reset */
a {
  color: inherit;
  text-decoration: none;
}


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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: 
    radial-gradient(ellipse at 20% 0%, rgba(217, 32, 39, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 0%, rgba(140, 29, 33, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(217, 32, 39, 0.03) 0%, transparent 40%);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Language Switcher Logic (Zero CLS) */
html[lang="uk"] .lang-en { display: none !important; }
html[lang="en"] .lang-uk { display: none !important; }

/* Focus indicator for WCAG accessibility */
*:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  background-color: rgba(7, 8, 11, 0.88);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
  color: var(--text-main);
  text-decoration: none;
}

.logo-accent {
  color: var(--color-primary);
}

/* Language Toggle */
.lang-switcher {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 3px;
  border-radius: 9999px;
}

.lang-btn {
  padding: 0.35rem 0.85rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 9999px;
  transition: var(--transition-smooth);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.lang-btn.active {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 2px 8px var(--color-primary-glow);
}

/* Hero Section */
.hero-section {
  padding: 5rem 0 4rem;
  position: relative;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary), var(--color-secondary), transparent);
  opacity: 0.4;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

@media (max-width: 968px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
}

.hero-content {
  max-width: 650px;
}

.hero-badges {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.10);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--color-green);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-green-glow);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #FFF 50%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 640px) {
  h1 { font-size: 2.25rem; }
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.cta-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.cta-primary-wrapper {
  width: 100%;
}

.cta-secondary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  width: 100%;
  max-width: 500px;
  align-items: stretch;
}

@media (max-width: 968px) {
  .cta-container { align-items: center; }
  .cta-secondary-grid { margin: 0 auto;   align-items: stretch;
}
}

@media (max-width: 640px) {
  .cta-secondary-grid { grid-template-columns: 1fr;   align-items: stretch;
}
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1rem 2.25rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(217, 32, 39, 0.25);
  transition: var(--transition-smooth);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  width: 100%;
  max-width: 500px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(217, 32, 39, 0.45);
  filter: brightness(1.08);
}

.btn:active {
  transform: translateY(1px);
}

.btn-sub {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.btn-sub:hover {
  background: rgba(217, 32, 39, 0.06);
  border-color: var(--color-primary);
  transform: translateY(-1px);
}

.btn-accent {
  background: rgba(217, 32, 39, 0.12);
  border-color: rgba(217, 32, 39, 0.3);
  color: #ff8a8f;
}

.btn-accent:hover {
  background: rgba(217, 32, 39, 0.25);
  border-color: var(--color-accent);
}

.cta-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  justify-content: flex-start;
}

.cta-hint svg {
  color: var(--color-accent);
}

/* Interactive Calculator Container */
.calc-container {
  background: rgba(15, 18, 23, 0.85);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 2.25rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(217, 32, 39, 0.03);
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.calc-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

.calc-header {
  margin-bottom: 1.75rem;
}

.calc-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: white;
}

.calc-title svg {
  color: var(--color-primary);
}

.calc-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.calc-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.calc-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.calc-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.calc-amount-val {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-accent);
}

/* Custom Range Slider styling */
.calc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-accent);
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 0 10px var(--color-accent-glow);
}

.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: white;
}

.calc-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-accent);
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
  box-shadow: 0 0 10px var(--color-accent-glow);
}

.calc-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
  background: white;
}

.calc-results {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.calc-res-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.calc-res-val {
  font-family: var(--font-mono);
  font-weight: 600;
  color: white;
}

.calc-res-row.highlight {
  border-top: 1px solid var(--border-color);
  padding-top: 0.75rem;
  margin-top: 0.25rem;
  font-size: 0.95rem;
  color: white;
}

.calc-res-row.highlight .calc-res-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-green);
}

.calc-note-box {
  background: rgba(14, 203, 129, 0.05);
  border: 1px solid rgba(14, 203, 129, 0.15);
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 0.8rem;
  color: #a3ffd6;
  line-height: 1.4;
}

.calc-note-box.alert {
  background: rgba(217, 32, 39, 0.05);
  border: 1px solid rgba(217, 32, 39, 0.15);
  color: #ffb8bb;
}

/* Stats Bar */
.stats-bar {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: rgba(217, 32, 39, 0.02);
  padding: 2.5rem 0;
}

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

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

@media (max-width: 400px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #FFF 40%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.stat-plus {
  font-size: 1.5rem;
  font-weight: 700;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  text-align: center;
}

/* Section Styles */
.section-title-wrapper {
  text-align: center;
  margin-bottom: 3.5rem;
}

h2 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #FFF, var(--color-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
}

.section-padding {
  padding: 5rem 0;
}

/* Usecase & Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

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

.benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  gap: 1.25rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.benefit-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  opacity: 0;
  transition: var(--transition-smooth);
}

.benefit-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(217, 32, 39, 0.08);
}

.benefit-card:hover::after {
  opacity: 1;
}

.benefit-icon-box {
  width: 48px;
  height: 48px;
  background: rgba(217, 32, 39, 0.10);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  border: 1px solid rgba(217, 32, 39, 0.20);
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.benefit-card:hover .benefit-icon-box {
  background: var(--color-primary);
  color: white;
}

.benefit-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: white;
}

.benefit-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Steps Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

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

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.25rem 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: var(--transition-smooth);
}

.step-card:hover {
  border-color: var(--border-color-hover);
  background: var(--bg-card-hover);
}

.step-number {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 800;
  color: rgba(217, 32, 39, 0.15);
  line-height: 1;
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
}

.step-icon-box {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  border: 1px solid var(--border-color);
}

.step-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
}

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

/* Pricing/Promo Section Cards */
.pricing-section {
  position: relative;
}

.pricing-card {
  background: linear-gradient(135deg, rgba(20, 21, 28, 0.90) 0%, rgba(10, 11, 15, 0.95) 100%);
  border: 1px solid rgba(217, 32, 39, 0.25);
  border-radius: 20px;
  padding: 3.5rem;
  text-align: center;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 50px rgba(217, 32, 39, 0.05);
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

@media (max-width: 640px) {
  .pricing-card {
    padding: 2.5rem 1.5rem;
  }
}

.badge-promo {
  display: inline-block;
  background: var(--color-primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 10px var(--color-primary-glow);
}

.pricing-features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2rem;
  text-align: left;
  margin: 2rem auto;
  max-width: 600px;
}

@media (max-width: 640px) {
  .pricing-features-list {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

.pricing-feat-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
}

.pricing-feat-item svg {
  color: var(--color-green);
  flex-shrink: 0;
}

.pricing-cta-dual {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 1.5rem;
}

.pricing-cta-dual .btn {
  max-width: 400px;
}

/* FAQ Accordion Styling */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  text-align: left;
  color: white;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: var(--transition-smooth);
}

.faq-question:hover {
  color: var(--color-accent);
}

.faq-icon {
  color: var(--text-muted);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--color-accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
}

.faq-item.active .faq-answer {
  max-height: 1000px;
  transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
}

.faq-answer-inner {
  padding: 0 1.5rem 1.5rem 1.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.faq-answer-inner p {
  margin-bottom: 0.75rem;
}

.faq-answer-inner p:last-child {
  margin-bottom: 0;
}

.faq-answer-inner ul {
  margin-left: 1.25rem;
  margin-top: 0.5rem;
}

.faq-answer-inner li {
  margin-bottom: 0.25rem;
}

/* Footer Section */
footer {
  border-top: 1px solid var(--border-color);
  background-color: rgba(4, 5, 8, 0.95);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
}

.footer-logo {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.025em;
  color: white;
  text-decoration: none;
}

.footer-disclosure {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 900px;
  line-height: 1.6;
}

.footer-disclosure strong {
  color: #E2E8F0;
}

.footer-disclosure a {
  color: var(--color-accent);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-disclosure a:hover {
  text-decoration: underline;
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 1.5rem;
  width: 100%;
}

/* Verified Badge Styles */
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--color-green);
  opacity: 0.85;
}
.verified-badge time { font-weight: 600; }

/* Limitations Grid Styles */
.limitations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.limitation-card {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: 12px;
  padding: 1.5rem;
}
.limitation-card h3 { font-size: 1rem; margin-bottom: 0.5rem; color: #F87171; }
.limitation-card p { font-size: 0.9rem; color: var(--text-muted); }
@media (max-width: 768px) { .limitations-grid { grid-template-columns: 1fr; } }


/* ── Hub Navigation (Sprint 1) ── */
.hub-nav {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  flex: 1;
  justify-content: center;
}
.hub-nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.375rem 0.625rem;
  border-radius: 6px;
  transition: var(--transition-smooth);
  white-space: nowrap;
}
.hub-nav-link:hover { color: var(--text-main); background: rgba(255, 255, 255, 0.06); }
.hub-nav-link[aria-current="page"] { color: var(--text-main); background: rgba(255, 255, 255, 0.09); }
.hub-nav-link:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.header-right { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: var(--transition-smooth);
}
.hamburger:hover { border-color: var(--border-color-hover); }
.hamburger:hover span { background: var(--text-main); }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1024px) {
  .hub-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(7, 10, 19, 0.97);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    gap: 0.25rem;
    z-index: 99;
    -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  }
  .hub-nav.open { display: flex; }
  .hub-nav-link { padding: 0.625rem 0.875rem; font-size: 0.9375rem; }
  .hamburger { display: flex; }
}


/* ── Unified Footer Style ── */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-logo { font-size: 1.15rem; margin-bottom: 0.75rem; display: inline-block; text-decoration: none; }
.footer-tagline {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 260px;
}
.footer-nav-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--text-main); }
.footer-disclaimer {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-top: 0.75rem;
}
.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  text-align: center;
}
.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
}
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-legal { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}


/* ==========================================================================
   MOBILE ADAPTATION & ACCESSIBILITY FIXES (AUDIT 2026)
   ========================================================================== */

/* === Safe Area & Viewport Integration === */
.header, header {
  padding-top: env(safe-area-inset-top, 0px) !important;
}

@media (max-width: 1024px) {
  .hub-nav {
    top: calc(64px + env(safe-area-inset-top, 0px)) !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
  }
}

/* === Touch Targets Optimization === */
@media (max-width: 768px) {
  .hamburger {
    width: 44px !important;
    height: 44px !important;
    padding: 12px !important;
  }
  
  .lang-btn {
    padding: 8px 14px !important;
    font-size: 0.9rem !important;
  }
}

/* === iOS Zoom Prevention (Inputs >= 16px) === */
@media (max-width: 768px) {
  .calc-select,
  .input-group select,
  .input-group input,
  .invest-num-field {
    font-size: 16px !important;
  }
}

/* === Accessibility: Focus Visible compliance === */
.invest-num-field:focus-visible,
.calc-select:focus-visible,
.input-group select:focus-visible,
.input-group input:focus-visible {
  outline: none;
  border-color: var(--color-primary) !important;
  box-shadow: var(--focus-ring) !important;
}

.invest-num-field:focus:not(:focus-visible),
.calc-select:focus:not(:focus-visible),
.input-group select:focus:not(:focus-visible),
.input-group input:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
  border-color: var(--border-color);
}

/* === Reduced Motion Integration === */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: scroll !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
}


/* ── Audit Utility Classes (Sprint 2) ── */
.section-shaded { background: rgba(0, 0, 0, 0.1); }
.border-t { border-top: 1px solid var(--border-color); }
.border-b { border-bottom: 1px solid var(--border-color); }
