/* ==========================================================================
   Homepage — burgundy & gold refresh
   Loaded only on frontend.index, after style.css and brand.css.
   ========================================================================== */

/* The shared `pulse` keyframes used a teal glow; redraw it in gold. */
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.45); }
  70%  { box-shadow: 0 0 0 16px rgba(212, 175, 55, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

@keyframes ay-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

@keyframes ay-spin {
  to { transform: rotate(360deg); }
}

html {
  scroll-behavior: smooth;
}

#exchange {
  scroll-margin-top: 76px;
}

/* ---------- Shared section headings ---------- */
.section-title {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  letter-spacing: -0.01em;
  background: linear-gradient(90deg, var(--ay-burgundy-deep), var(--ay-burgundy));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body .section-title::after,
body .section-title:after {
  width: 56px;
  height: 3px;
  left: 50%;
  bottom: -12px;
  transform: translateX(-50%);
  background: var(--ay-gold-gradient);
}

.section-subtitle {
  color: var(--ay-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-top: 18px;
}

.btn-outline {
  border: 1.5px solid var(--ay-burgundy);
  color: var(--ay-burgundy);
  background: transparent;
  border-radius: 999px;
}

.btn-outline:hover {
  background: var(--ay-burgundy);
  color: #fff;
}

/* ---------- Hero ---------- */
.hero-banner {
  height: auto;
  min-height: 0;
  padding: 150px 0 110px;
  background:
    radial-gradient(640px 420px at 82% 40%, rgba(212, 175, 55, 0.22), transparent 65%),
    radial-gradient(520px 360px at 0% 100%, rgba(212, 175, 55, 0.08), transparent 70%),
    linear-gradient(160deg, var(--ay-burgundy-deep) 0%, var(--ay-burgundy-dark) 45%, var(--ay-burgundy) 100%);
}

.hero-banner::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.6), transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  margin-bottom: 22px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.08);
  color: var(--ay-gold-light);
  font-size: 0.85rem;
  font-weight: 500;
}

.hero-title {
  font-size: clamp(2.2rem, 4.4vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
  opacity: 1;
  max-width: 560px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.hero-actions .btn {
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
}

.hero-btn-gold {
  background: var(--ay-gold-gradient);
  color: var(--ay-burgundy-deep);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.28);
}

.hero-btn-gold:hover {
  color: var(--ay-burgundy-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(212, 175, 55, 0.4);
}

.hero-btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}

.hero-btn-ghost:hover {
  border-color: var(--ay-gold);
  color: var(--ay-gold-light);
}

[dir="rtl"] .hero-btn-gold i {
  transform: scaleX(-1);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  list-style: none;
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
}

.hero-trust i {
  color: var(--ay-gold);
  margin-inline-end: 8px;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-orbit {
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 1;
}

.hero-orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.hero-orbit-ring--inner {
  inset: 15%;
  border-style: dashed;
  border-color: rgba(212, 175, 55, 0.28);
  animation: ay-spin 80s linear infinite;
}

.hero-emblem {
  position: absolute;
  inset: 29%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 25%, #fff 0%, var(--ay-cream) 55%, var(--ay-sand) 100%);
  box-shadow:
    0 0 0 10px rgba(212, 175, 55, 0.12),
    0 30px 60px rgba(0, 0, 0, 0.35);
}

.hero-emblem img {
  width: 52%;
  height: auto;
}

.hero-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.4);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  animation: ay-float 6s ease-in-out infinite;
  direction: ltr;
}

.hero-chip b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ay-gold-gradient);
  color: var(--ay-burgundy-deep);
  font-size: 0.8rem;
}

.hero-chip.chip-1 { top: 1%;   left: 36%; }
.hero-chip.chip-2 { top: 42%;  right: -6%; animation-delay: -1.5s; }
.hero-chip.chip-3 { bottom: 2%; left: 40%; animation-delay: -3s; }
.hero-chip.chip-4 { top: 46%;  left: -8%;  animation-delay: -4.5s; }

/* ---------- Currency exchange ---------- */
.exchange-section {
  background: linear-gradient(180deg, var(--ay-cream) 0%, var(--ay-sand) 100%);
}

.exchange-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: stretch;
}

.form-card {
  border: 1px solid var(--ay-line);
  box-shadow: var(--ay-shadow);
}

.type-option.active {
  border-color: var(--ay-burgundy);
  box-shadow: inset 0 0 0 1px var(--ay-burgundy);
}

.type-option.active i {
  color: var(--ay-burgundy);
}

.rate-details {
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.result-box {
  background:
    radial-gradient(380px 200px at 100% 0%, rgba(212, 175, 55, 0.35), transparent 70%),
    var(--ay-burgundy-gradient);
  box-shadow: 0 16px 36px rgba(92, 18, 41, 0.28);
}

.result-header {
  flex-wrap: wrap;
  gap: 6px 12px;
}

.result-amount span:last-child {
  color: var(--ay-gold-light);
}

/* The badge used to sit on top of the "Recipient gets" heading */
.rate-type-badge {
  position: static;
  display: inline-flex;
  margin-top: 4px;
  background: rgba(212, 175, 55, 0.18);
  border-color: rgba(212, 175, 55, 0.5);
  color: var(--ay-gold-light);
}

.badge-sparkle {
  display: none;
}

.swap-btn {
  background: var(--ay-gold-gradient);
  color: var(--ay-burgundy-deep);
  box-shadow: 0 8px 20px rgba(168, 132, 31, 0.3);
}

#continueBtn {
  background: var(--ay-burgundy-gradient);
  border-radius: 14px;
}

.exchange-visual {
  border-radius: 24px;
  border: 1px solid var(--ay-line);
  box-shadow: var(--ay-shadow);
}

.world-map-container {
  height: 100%;
  min-height: 460px;
  background:
    radial-gradient(rgba(123, 30, 58, 0.13) 1px, transparent 1.5px) 0 0 / 18px 18px,
    radial-gradient(500px 300px at 70% 30%, rgba(212, 175, 55, 0.18), transparent 70%),
    linear-gradient(145deg, #fff 0%, var(--ay-cream) 100%);
}

.continent.north-america {
  top: 5%;
}

.currency-selection .swap-btn {
  margin-left: auto;
  margin-right: auto;
}

.continent {
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: var(--ay-shadow-sm);
}

.continent-info h4 {
  color: var(--ay-burgundy-deep);
  margin: 0;
}

.map-point {
  background: var(--ay-burgundy);
  border: 2px solid #fff;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.6);
}

.point-glow,
.pulse-effect {
  background: rgba(212, 175, 55, 0.35);
}

.connection-line {
  background: linear-gradient(to right, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.9), rgba(123, 30, 58, 0.3));
}

/* ---------- Why us ---------- */
.why-us-item {
  border: 1px solid var(--ay-line);
  border-radius: 20px;
  box-shadow: var(--ay-shadow-sm);
}

.why-us-item:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: var(--ay-shadow);
}

.icon-circle,
.feature-icon {
  background: var(--ay-cream);
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: var(--ay-burgundy);
  box-shadow: none;
}

.stat-value {
  background: linear-gradient(90deg, var(--ay-burgundy-deep), var(--ay-burgundy));
  -webkit-background-clip: text;
  background-clip: text;
}

/* ---------- Visa / Mastercard payout ---------- */
.visa-payout-section {
  background:
    radial-gradient(640px 380px at 85% 50%, rgba(212, 175, 55, 0.25), transparent 70%),
    linear-gradient(160deg, var(--ay-burgundy-deep) 0%, var(--ay-burgundy-dark) 60%, var(--ay-burgundy) 100%);
}

.visa-payout-section .btn-primary {
  background: transparent;
  border: 1px solid var(--ay-gold);
  color: var(--ay-gold-light);
  border-radius: 999px;
}

.visa-payout-section .btn-primary:before {
  display: none;
}

.floating-card {
  border-radius: 18px;
  background: linear-gradient(135deg, var(--ay-burgundy) 0%, #4A0E22 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.floating-card.mastercard {
  background: linear-gradient(135deg, #2A1018 0%, #1A0A10 100%);
}

.card-chip {
  background: var(--ay-gold-gradient);
}

.floating-card .card-footer {
  background: transparent !important;
  padding: 0 !important;
  color: rgba(255, 255, 255, 0.85);
}

.brand-visa {
  font-style: italic;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: #fff;
}

.brand-mc {
  display: inline-flex;
}

.brand-mc i {
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #EB001B;
}

.brand-mc i + i {
  background: #F79E1B;
  margin-left: -12px;
  opacity: 0.9;
}

/* ---------- How it works (cards) ---------- */
.features-section {
  background: var(--ay-cream);
}

.feature-card {
  border: 1px solid var(--ay-line);
  border-radius: 20px;
  box-shadow: var(--ay-shadow-sm);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: var(--ay-shadow);
}

.feature-card h3,
.why-us-item h3 {
  color: var(--ay-ink);
}

/* ---------- App download ---------- */
.app-download-title {
  color: var(--ay-burgundy-deep);
}

.app-download-subtitle {
  color: var(--ay-muted);
}

/* ---------- Simple process ---------- */
.how-it-works-section {
  background: #fff;
}

.how-it-works-section::before {
  display: none;
}

.illustration-circle {
  background: var(--ay-burgundy-gradient);
  box-shadow: 0 12px 26px rgba(92, 18, 41, 0.25);
}

.illustration-circle.pulse-animation {
  animation: none;
}

.step-badge {
  background: var(--ay-gold-gradient);
  color: var(--ay-burgundy-deep);
  border: 2px solid #fff;
  box-shadow: 0 4px 10px rgba(168, 132, 31, 0.35);
}

.connecting-line {
  height: 2px;
  background: linear-gradient(90deg, var(--ay-burgundy), var(--ay-gold));
  opacity: 0.5;
}

.card-content h3 {
  color: var(--ay-burgundy-deep);
}

.card-content p {
  color: var(--ay-muted);
}

/* ---------- User journey: wrap into a grid instead of scrolling sideways ---------- */
.journey-flow {
  background: var(--ay-cream);
}

.journey-flow .flow-diagram {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  overflow: visible;
  padding: 0;
}

.journey-flow .arrow {
  display: none;
}

.journey-flow .flow-step {
  min-width: 0;
  margin: 0;
  padding: 28px 22px;
  border: 1px solid var(--ay-line);
  box-shadow: var(--ay-shadow-sm);
}

.journey-flow .flow-step:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: var(--ay-shadow);
}

.journey-flow .circle {
  width: 68px;
  height: 68px;
  font-size: 24px;
  animation: none;
  background: var(--ay-burgundy-gradient);
}

.journey-flow .badge {
  background: var(--ay-gold-gradient);
  color: var(--ay-burgundy-deep);
  border: 2px solid #fff;
  border-radius: 999px;
  min-width: 28px;
  padding: 3px 8px;
}

.journey-flow .flow-step h3 {
  color: var(--ay-burgundy-deep);
}

.journey-flow .flow-step p {
  color: var(--ay-muted);
}

/* ---------- Testimonials ---------- */
.testimonials-section {
  background: linear-gradient(180deg, #fff 0%, var(--ay-cream) 100%);
}

.testimonial-card {
  border: 1px solid var(--ay-line);
  border-radius: 20px;
  box-shadow: var(--ay-shadow-sm);
}

.testimonial-rating i {
  color: var(--ay-gold);
}

.testimonial-bg-pattern {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="%23D4AF37" opacity="0.18"><circle cx="25" cy="25" r="6"/><circle cx="75" cy="25" r="6"/><circle cx="25" cy="75" r="6"/><circle cx="75" cy="75" r="6"/></svg>');
}

/* ---------- FAQ ---------- */
.faq-item {
  border: 1px solid var(--ay-line);
  border-radius: 14px;
  box-shadow: none;
}

.faq-item.active {
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow: var(--ay-shadow-sm);
}

.faq-question h3 {
  color: var(--ay-ink);
}

.faq-question i {
  color: var(--ay-burgundy);
}

/* ---------- Partner network ---------- */
.countries-section {
  background: var(--ay-cream);
}

.partner-network-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.globe-illustration {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid rgba(212, 175, 55, 0.55);
  box-shadow: 0 0 0 10px rgba(212, 175, 55, 0.1), var(--ay-shadow-sm);
}

.globe-illustration i {
  font-size: 56px;
  color: var(--ay-burgundy);
}

.partner-description {
  color: var(--ay-muted);
  line-height: 1.75;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .exchange-container {
    grid-template-columns: 1fr;
  }

  .journey-flow .flow-diagram {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero-banner {
    padding: 120px 0 80px;
  }

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

  .hero-visual {
    display: none;
  }
}

@media (max-width: 560px) {
  .hero-actions .btn {
    width: 100%;
  }

  .journey-flow .flow-diagram {
    grid-template-columns: 1fr;
  }
}
