/* ==========================================================================
   Features Page — Brand Navy + Lime-Green Theme
   Uses design-system.css tokens: --brand-navy, --brand-green, etc.
   ========================================================================== */

/* ── Hero ── */
.features-hero {
  min-height: 520px;
  padding: calc(100px + 2rem) 0 5rem;
  background: linear-gradient(180deg, var(--brand-navy) 0%, var(--brand-navy-light) 100%);
  color: var(--text-on-dark);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.features-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
}
.features-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 15% 10%, rgba(123,234,92,0.10) 0%, transparent 70%),
    radial-gradient(ellipse 45% 35% at 85% 85%, rgba(184,238,141,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.features-hero-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 3;
  text-align: center;
}
.breadcrumb {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  opacity: 0.5;
}
.breadcrumb a { color: var(--text-on-dark); text-decoration: none; }
.breadcrumb a:hover { opacity: 0.8; text-decoration: underline; }
.breadcrumb span { margin: 0 0.5rem; opacity: 0.5; }

.hero-main-headline {
  font-family: var(--font-display, 'Inter', sans-serif);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--text-on-dark);
  margin-bottom: 1rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.hero-line {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  margin-bottom: 2.5rem;
  color: var(--text-muted);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}

/* ── Feature Preview Chips ── */
.feature-preview {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}
.preview-icon {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  padding: 0.875rem 1rem;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
  cursor: pointer;
  flex: 1;
  min-width: 110px;
}
/* Subtle radial glow separating each item from the background (replaces the card) */
.preview-icon::before {
  content: "";
  position: absolute;
  inset: -10% -5%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(99,102,241,0.22) 0%, rgba(99,102,241,0.10) 40%, rgba(99,102,241,0) 70%);
  filter: blur(12px);
  opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16,1,0.3,1);
}
.preview-icon:hover {
  transform: translateY(-4px);
}
.preview-icon:hover::before {
  opacity: 1;
  transform: scale(1.1);
}
.preview-icon i {
  width: 22px; height: 22px;
  stroke: #A5B4FC;
  transition: transform 0.3s ease;
}
.preview-icon:hover i { transform: scale(1.1); }
.preview-icon span {
  font-size: 0.75rem;
  color: #CBD5E1;
  font-weight: 500;
}

/* ── Scroll Indicator ── */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 12px;
  background: rgba(99,102,241,0.10);
  backdrop-filter: blur(10px);
}
.scroll-indicator:hover { opacity: 1; background: rgba(99,102,241,0.20); transform: translateX(-50%) translateY(-4px); }
.scroll-indicator span { font-size: 0.875rem; font-weight: 500; color: #CBD5E1; }
.scroll-indicator i { width: 28px; height: 28px; stroke: var(--text-on-dark); animation: bounce 2s infinite; }

@keyframes bounce {
  0%,20%,50%,80%,100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  60% { transform: translateY(-4px); }
}

/* ── Hero → Features Divider ── */
.hero-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(99,102,241,0.30) 30%, rgba(6,182,212,0.30) 70%, transparent 100%);
}

/* ── Feature Sections ── */
.core-feature {
  padding: 6rem 0;
  position: relative;
  background: #FFFFFF;
  overflow: hidden;
}
.core-feature:nth-child(even) {
  background: var(--off-white);
}
.feature-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.feature-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 5rem;
  align-items: center;
}
.feature-layout.reverse { direction: rtl; }
.feature-layout.reverse > * { direction: ltr; }

.feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(99,102,241,0.08);
  color: var(--brand-green);
  padding: 0.375rem 1rem;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(99,102,241,0.15);
}
.feature-badge i { width: 16px; height: 16px; stroke: var(--brand-green); }

.feature-headline {
  font-family: var(--font-display, 'Inter', sans-serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.feature-highlights {
  list-style: none;
  margin-bottom: 2rem;
  padding: 0;
}
.feature-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin-bottom: 0.875rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
}
.feature-highlights li::before {
  content: '✓';
  color: var(--brand-green);
  font-weight: bold;
  font-size: 1.125rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.feature-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2rem;
  border-top: 1px solid #E2E8F0;
  padding-top: 1.5rem;
}
.stat-item { text-align: left; }
.stat-number {
  font-family: var(--font-display, 'Inter', sans-serif);
  font-size: 2.25rem;
  font-weight: 800;
  display: block;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-green-soft) 50%, var(--brand-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.375rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Visual Cards ── */
.compliance-visual, .payment-visual, .orchestration-visual, .frontier-visual {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  border: 1px solid #E2E8F0;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), border-color 0.3s ease, box-shadow 0.3s ease;
}
.compliance-visual:hover, .payment-visual:hover, .orchestration-visual:hover, .frontier-visual:hover {
  transform: translateY(-5px);
  border-color: #CBD5E1;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

/* World map */
.world-map {
  width: 100%; height: 300px;
  background: linear-gradient(135deg, var(--off-white) 0%, var(--text-on-dark) 100%);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #E2E8F0;
}
.map-dots { position: absolute; width: 100%; height: 100%; }
.map-dot {
  position: absolute;
  width: 10px; height: 10px;
  background: var(--brand-green);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(99,102,241,0.2);
  animation: pulse 2s infinite;
}
.map-dot:nth-child(1) { top: 20%; left: 15%; }
.map-dot:nth-child(2) { top: 30%; left: 45%; animation-delay: 0.3s; }
.map-dot:nth-child(3) { top: 40%; left: 75%; animation-delay: 0.6s; }
.map-dot:nth-child(4) { top: 60%; left: 25%; animation-delay: 0.9s; }
.map-dot:nth-child(5) { top: 70%; left: 60%; animation-delay: 1.2s; }
.compliance-stats {
  position: absolute;
  bottom: 1rem; right: 1rem;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  font-weight: 600;
  color: var(--brand-green);
  font-size: 0.8rem;
}
.large-icon {
  width: 48px !important; height: 48px !important;
  stroke: var(--brand-green);
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
}
.large-icon:hover { transform: scale(1.1); }

/* Payment methods */
.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.625rem;
  margin-bottom: 1.25rem;
}
.payment-method {
  background: var(--off-white);
  border: 1px solid #E2E8F0;
  padding: 1rem 0.5rem;
  border-radius: 12px;
  text-align: center;
  transition: all 0.25s ease;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.payment-method:hover {
  background: var(--brand-navy);
  color: #FFFFFF;
  border-color: var(--brand-navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15,23,42,0.15);
}
.payment-method i {
  display: block;
  width: 22px; height: 22px;
  margin: 0 auto 0.375rem;
  stroke: var(--brand-green);
  transition: stroke 0.3s ease;
}
.payment-method:hover i { stroke: #A5B4FC; }

/* Orchestration flow */
.orchestration-flow {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.flow-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.flow-box {
  background: var(--off-white);
  border: 1px solid #E2E8F0;
  padding: 1rem;
  border-radius: 10px;
  flex: 1;
  text-align: center;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: all 0.25s ease;
}
.flow-box.active {
  background: linear-gradient(135deg, var(--brand-green-hover) 0%, var(--brand-green) 100%);
  color: #FFFFFF;
  border-color: var(--brand-green-hover);
  box-shadow: 0 8px 20px rgba(99,102,241,0.20);
}
.flow-arrow {
  font-size: 1.25rem;
  color: var(--brand-green);
  font-weight: 700;
}

/* Fraud visual — dark card like home2's showcase--dark */
.fraud-visual {
  background: linear-gradient(160deg, var(--brand-navy-light) 0%, var(--brand-navy) 100%);
  border-radius: 20px;
  padding: 2rem;
  color: var(--text-on-dark);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s ease;
}
.fraud-visual::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(99,102,241,0.12) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(6,182,212,0.10) 0%, transparent 50%);
  pointer-events: none;
}
.fraud-visual::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.12) 30%, rgba(255,255,255,0.12) 70%, transparent 100%);
}
.fraud-visual:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(15,23,42,0.25);
}
.ai-brain {
  width: 100px; height: 100px;
  background: rgba(99,102,241,0.10);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.ai-brain i {
  width: 40px !important; height: 40px !important;
  stroke: #A5B4FC;
  filter: drop-shadow(0 0 10px rgba(99,102,241,0.3));
}
.fraud-stats {
  display: flex;
  justify-content: space-between;
  gap: 0.625rem;
}
.fraud-stat {
  text-align: center;
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.20);
  padding: 1rem 0.5rem;
  border-radius: 10px;
  flex: 1;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.25s ease;
}
.fraud-stat:hover {
  background: rgba(99,102,241,0.18);
  border-color: rgba(99,102,241,0.40);
  transform: translateY(-2px);
}

/* Regions grid */
.regions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.region-card {
  background: var(--off-white);
  border: 1px solid #E2E8F0;
  padding: 1.5rem 0.75rem;
  border-radius: 12px;
  text-align: center;
  transition: all 0.25s ease;
}
.region-card:hover {
  background: #FFFFFF;
  border-color: #CBD5E1;
  box-shadow: 0 10px 25px rgba(0,0,0,0.04);
  transform: translateY(-2px);
}
.region-card .large-icon {
  width: 32px !important; height: 32px !important;
  margin-bottom: 0.5rem;
  stroke: var(--brand-green);
}
.region-card:hover .large-icon { transform: scale(1.1); }
.region-card h4 { color: var(--brand-navy); font-size: 1rem; margin-bottom: 0.25rem; font-weight: 600; }
.region-card p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.4; }

/* Settlement visual — dark card */
.settlement-visual {
  background: linear-gradient(160deg, var(--brand-navy-light) 0%, var(--brand-navy) 100%);
  border-radius: 20px;
  padding: 2rem;
  color: var(--text-on-dark);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
}
.settlement-visual::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.12) 30%, rgba(255,255,255,0.12) 70%, transparent 100%);
}
.settlement-visual:hover { transform: translateY(-5px); }
.settlement-comparison {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.settlement-option { text-align: center; flex: 1; }
.settlement-icon {
  width: 60px; height: 60px;
  background: rgba(99,102,241,0.10);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  transition: all 0.3s ease;
}
.settlement-option:hover .settlement-icon {
  background: rgba(99,102,241,0.20);
  border-color: rgba(99,102,241,0.40);
  transform: scale(1.05);
}
.settlement-icon i { width: 24px; height: 24px; stroke: #A5B4FC; }
.settlement-option h4 { font-size: 0.95rem; font-weight: 600; color: #CBD5E1; }
.settlement-time {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 0.375rem;
  background: linear-gradient(135deg, var(--brand-green-soft), #22D3EE);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.vs-divider { font-size: 1rem; font-weight: 700; opacity: 0.4; color: var(--text-muted); }

/* ── CTA Section — matching home2 cta-bar pattern ── */
.features-cta {
  position: relative;
  padding: 5rem 1.5rem;
  background: var(--off-white);
  overflow: hidden;
}
.features-cta-container {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  background: linear-gradient(160deg, var(--brand-navy-light) 0%, var(--brand-navy) 100%);
  border-radius: 20px;
  padding: 3rem 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05), 0 20px 50px rgba(15,23,42,0.20);
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
}
.features-cta-container::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.12) 30%, rgba(255,255,255,0.12) 70%, transparent 100%);
}
.features-cta-container::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 70%);
  top: -100px; right: -50px;
  pointer-events: none;
}
.features-cta-text {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.features-cta-title {
  font-family: var(--font-display, 'Inter', sans-serif);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.5vw, 1.875rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text-on-dark);
  margin: 0 0 0.5rem 0;
}
.features-cta-highlight {
  display: inline;
  background: linear-gradient(135deg, var(--brand-green-soft), #22D3EE);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.features-cta-subtitle {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
  margin: 0;
  max-width: 52ch;
}
.features-cta-actions {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.features-cta-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--brand-green), var(--brand-green-hover));
  color: #FFFFFF;
  font-weight: 600;
  border: none;
  padding: 0.875rem 2rem;
  border-radius: 100px;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
  box-shadow: 0 8px 24px rgba(99,102,241,0.25);
  white-space: nowrap;
}
.features-cta-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(99,102,241,0.35);
  background: linear-gradient(135deg, var(--brand-green-soft), var(--brand-green));
}

@keyframes pulse {
  0%,100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.5); opacity: 1; }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .features-hero { min-height: auto; padding: calc(100px + 1.5rem) 0 3rem; }
  .feature-layout, .feature-layout.reverse {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
    direction: ltr;
  }
  .feature-layout.reverse > * { direction: ltr; }
  .stat-item { text-align: center; }
  .feature-stats { justify-content: center; }
}

@media (max-width: 768px) {
  .hero-main-headline { font-size: clamp(1.75rem, 7vw, 2.5rem); }
  .feature-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem 0.5rem;
    justify-items: center;
    max-width: 420px;
  }
  .preview-icon { min-width: 0; width: 100%; padding: 0.625rem 0.25rem; }
  .preview-icon i { width: 18px; height: 18px; }
  .preview-icon span { font-size: 0.6875rem; }
  .feature-headline { font-size: 1.75rem; }
  .feature-stats { flex-direction: column; gap: 1rem; text-align: center; }
  /* Mobile: drop the white card + chip boxes, show glowing icons on a 4×2 grid */
  .payment-visual {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
  }
  .payment-visual:hover { transform: none; box-shadow: none; border: none; }
  .payment-methods-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem 0.5rem;
  }
  .payment-method {
    position: relative;
    background: transparent;
    border: none;
    padding: 0.25rem;
    font-size: 0.75rem;
  }
  /* Soft coloured glow sitting behind the icon */
  .payment-method::before {
    content: "";
    position: absolute;
    top: 0.25rem;
    left: 50%;
    width: 54px; height: 54px;
    transform: translateX(-50%);
    z-index: 0;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(100,116,139,0.18) 0%, rgba(100,116,139,0.07) 45%, rgba(100,116,139,0) 70%);
    filter: blur(8px);
  }
  .payment-method:hover {
    background: transparent;
    color: var(--text-secondary);
    border: none;
    transform: none;
    box-shadow: none;
  }
  .payment-method i,
  .payment-method > div {
    position: relative;
    z-index: 1;
  }
  .payment-method i {
    width: 26px; height: 26px;
    margin-bottom: 0.5rem;
  }
  .regions-grid { grid-template-columns: 1fr; }
  .settlement-comparison { flex-direction: column; gap: 1rem; }
  .features-cta-container {
    flex-direction: column;
    text-align: center;
    padding: 2.5rem 1.75rem;
    gap: 1.5rem;
  }
  .features-cta-subtitle { margin-inline: auto; }
}

/* ── Scroll Animation ── */
.feature-content, .feature-visual {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.feature-content.animate, .feature-visual.animate {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


