/* Payoneer Affiliate Landing Page Stylesheet */

/* Design System Tokens */
:root {
  --bg-dark: #090706;
  --bg-card: rgba(28, 24, 22, 0.7);
  --bg-card-hover: rgba(40, 34, 30, 0.95);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(255, 74, 0, 0.35);
  
  --color-primary: #FF4A00; /* Payoneer Signature Orange */
  --color-primary-rgb: 255, 74, 0;
  --color-primary-glow: rgba(255, 74, 0, 0.25);
  --color-accent: #FF7A00;
  --color-accent-glow: rgba(255, 122, 0, 0.15);
  --color-green: #10B981;
  --color-green-glow: rgba(16, 185, 129, 0.2);
  --color-red: #EF4444;
  
  --text-main: #f5f5f7;
  --text-muted: #9CA3AF;
  --text-dark: #4B5563;
  
  --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);
  --focus-ring: 0 0 0 3px rgba(255, 74, 0, 0.5);
}

/* 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(255, 74, 0, 0.05) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 0%, rgba(255, 122, 0, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(255, 74, 0, 0.02) 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; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  background-color: rgba(9, 7, 6, 0.85);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.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:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.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-accent), transparent);
  opacity: 0.2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: 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;
}

.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;
}

@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;
}

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

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

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

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

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

.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: #090706;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1rem 2.25rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(255, 74, 0, 0.2);
  transition: var(--transition-smooth);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  width: 100%;
  max-width: 550px;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(255, 74, 0, 0.35);
  filter: brightness(1.05);
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.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(255, 74, 0, 0.08);
  border-color: var(--color-primary);
  transform: translateY(-1px);
  color: #fff;
}

.btn-sub:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* Payoneer Visual Card Display */
.payoneer-visual-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.payoneer-card-3d {
  width: 100%;
  aspect-ratio: 1.586/1;
  background: linear-gradient(135deg, #1C1B1A 0%, #0F0E0D 100%);
  border: 1px solid rgba(255, 74, 0, 0.25);
  border-radius: 18px;
  padding: 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5), inset 0 0 20px rgba(255, 74, 0, 0.05);
  overflow: hidden;
}

.payoneer-card-3d::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 74, 0, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.payoneer-card-brand {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.payoneer-logo-text {
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo-reit-tag {
  font-size: 0.65rem;
  background: var(--color-primary);
  color: #000;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.payoneer-logo-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  box-shadow: 0 0 10px var(--color-primary-glow);
}

.payoneer-bonus-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 1rem 0;
}

.bonus-value {
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #FFFFFF, var(--color-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bonus-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.1em;
  margin-top: 2px;
}

.payoneer-card-meta {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.75rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-dark);
}

.meta-val {
  color: var(--text-main);
  font-family: var(--font-mono);
  font-weight: 500;
}

.payoneer-card-shadow {
  position: absolute;
  bottom: -15px;
  width: 90%;
  height: 15px;
  background: rgba(255, 74, 0, 0.15);
  filter: blur(15px);
  border-radius: 50%;
  z-index: -1;
}

/* Sections general */
.section-padding {
  padding: 6rem 0;
  border-top: 1px solid var(--border-color);
}

.section-title-wrapper {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3.5rem;
}

h2 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Offers Grid */
.offers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

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

.offer-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-color-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.offer-card-highlight {
  border-color: rgba(255, 74, 0, 0.3);
  box-shadow: 0 10px 30px rgba(255, 74, 0, 0.03);
}

.offer-card-highlight:hover {
  border-color: var(--color-primary);
  box-shadow: 0 20px 40px rgba(255, 74, 0, 0.1);
}

.offer-header {
  margin-bottom: 1.5rem;
}

.offer-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.offer-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.offer-reward {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  background: rgba(255, 74, 0, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
}

.offer-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.offer-desc {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.offer-steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 1.25rem;
}

.offer-steps-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--text-main);
  font-weight: 500;
}

.step-badge {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Calculator Section */
.calculator-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.calculator-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.calculator-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: start;
}

.calculator-inputs {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.input-group label, .input-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.range-slider-wrapper {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

input[type="range"] {
  flex-grow: 1;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.08);
  height: 6px;
  border-radius: 3px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  transition: transform 0.1s;
  box-shadow: 0 0 10px var(--color-primary-glow);
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.invest-num-field {
  width: 110px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: #fff;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  text-align: right;
  outline: none;
  transition: var(--transition-smooth);
}

.invest-num-field:focus {
  border-color: var(--color-primary);
  box-shadow: var(--focus-ring);
}

.fund-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.fund-select-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.fund-select-btn:hover {
  border-color: var(--border-color-hover);
  color: var(--text-main);
}

.fund-select-btn.active {
  background: rgba(255, 74, 0, 0.08);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 74, 0, 0.15);
}

.calc-terms {
  font-size: 0.8rem;
  color: var(--text-dark);
  line-height: 1.5;
}

.calculator-results {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.result-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 0.75rem;
}

.result-box:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

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

.result-val {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.highlighted-result {
  background: rgba(255, 74, 0, 0.03);
  border: 1px solid rgba(255, 74, 0, 0.15);
  border-radius: 10px;
  padding: 1rem;
  margin: 0.5rem 0;
}

.highlighted-result .result-val {
  font-size: 1.4rem;
}

/* Partnership Profile section */
.partnership-wrapper {
  background: linear-gradient(135deg, rgba(28, 24, 22, 0.8) 0%, rgba(15, 12, 10, 0.95) 100%);
  border: 1px solid rgba(255, 74, 0, 0.2);
  border-radius: 20px;
  padding: 3rem;
}

.partnership-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.partnership-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 2.25rem 2rem;
}

.partnership-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 2rem;
}

.partner-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.partner-meta-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dark);
}

.partner-meta-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
}

.partner-bottom-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-accent);
}

.partner-bottom-info p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

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

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.25rem 2rem;
  position: relative;
  overflow: hidden;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--color-primary);
  opacity: 0.5;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(255, 74, 0, 0.12);
  line-height: 1;
  margin-bottom: 1rem;
}

.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

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

/* FAQ Section */
.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.active {
  border-color: var(--border-color-hover);
  background: var(--bg-card-hover);
}

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

.faq-question:focus-visible {
  outline: none;
  background: rgba(255, 255, 255, 0.02);
}

.faq-icon {
  position: relative;
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background-color: var(--text-muted);
  transition: transform 0.25s ease-out;
}

.faq-icon::before {
  top: 5px;
  left: 0;
  width: 12px;
  height: 2px;
}

.faq-icon::after {
  top: 0;
  left: 5px;
  width: 2px;
  height: 12px;
}

.faq-item.active .faq-icon::after {
  transform: rotate(90deg) scaleY(0);
}

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

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

.faq-answer p {
  padding: 0 1.5rem 1.5rem;
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* === Footer === */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
  background: #040303;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 2fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo { 
  font-size: 1.15rem; 
  margin-bottom: 0.75rem; 
  display: inline-block; 
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
}

.footer-tagline {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  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-dim);
  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-dim);
}

/* === Responsive Layout === */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-badges { justify-content: center; }
  .cta-container { align-items: center; }
  .cta-secondary-grid { margin: 0 auto;   align-items: stretch;
}
  
  .offers-grid { grid-template-columns: 1fr 1fr; }
  .partnership-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-legal { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .offers-grid { grid-template-columns: 1fr; }
  .partnership-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .calculator-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .cta-secondary-grid { grid-template-columns: 1fr;   align-items: stretch;
}
  h1 { font-size: 2.25rem; }
  .fund-selector { 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; }
}


/* ==========================================================================
   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); }
