*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #022337;
  --bg-light: #0a3550;
  --black: #000000;
  --white: #ffffff;
  --gray-50: #F5F5F5;
  --gray-100: #E5E5E5;
  --gray-200: #D4D4D4;
  --gray-400: #A3A3A3;
  --gray-500: #9BA8B2;
  --gray-600: #8a9ba5;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;
  --dark-card: linear-gradient(#0000002f, rgba(0, 0, 0, 0.433));
  --accent: #cafcc4;
  --accent-blue: #5162ff;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
  font-family: var(--font);
  background: transparent;
  color: var(--white);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Hide the mobile image by default on larger screens */
  #mobile-fallback {
    display: none;
  }

  /* Show the image and hide the video on mobile screens (768px wide and below) */
  @media (max-width: 768px) {
    #mobile-fallback {
      display: block;
    }
    #gradient {
      display: none;
    }
  }

main, footer {
  position: relative;
  z-index: 1;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

::selection {
  background: rgba(202, 252, 196, 0.25);
  color: var(--white);
}

/* ===== NAVBAR ===== */

.navbar {
  position: fixed;
  flex-wrap: wrap;
  justify-content: center;
  top: 16px;
  min-width: 75%;
  
  /* --- CHANGED LINES TO CENTER THE NAVBAR --- */
  left: 50%;                 /* Move the left edge to the exact middle of the screen */
  transform: translateX(-50%); /* Shift the navbar back by half of its own width */
  /* ------------------------------------------ */

  z-index: 1000;
  padding: 12px 56px;        /* Equalized padding (56px left & right) to keep inner content centered */
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(60px) saturate(1.4);
  -webkit-backdrop-filter: blur(60px) saturate(1.4);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.navbar.scrolled {
  padding: 10px 20px 10px 30px;
  background: rgba(255, 255, 255, 0.12);
}

.nav-inner {
  max-width: 88rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--white);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  padding: 8px 16px;
  border-radius: 100px;
  transition: all 0.25s ease;
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--bg);
  padding: 10px 24px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-cta:hover {
  background: var(--accent);
  transform: scale(1.02);
}

.nav-cta--mobile { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  gap: 5px;
  background: rgba(255, 255, 255, 0.1);
  border: 0.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  position: relative;
  z-index: 1100;
  transition: all 0.25s ease;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ===== HERO ===== */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  background: transparent;
  overflow: hidden;
  padding: 0 24px;
}

.hero-inner {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  margin-left: 50px;
  padding-top: 120px;
}

.hero-left {
  position: relative;
  z-index: 2;
  max-width: 88rem;
  margin: 0 auto;
  width: 100%;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.08);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 32px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--white);
}

.hero-title .accent {
  color: var(--accent);
  font-style: italic;
}

.hero-desc {
  font-size: 1.15rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  max-width: 420px;
  margin-bottom: 48px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 0;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 60px;
}

.trust-pill {
  padding: 8px 16px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.06);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.02em;
}

/* === Hero Card === */

.hero-right {
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.hero-card {
  width: 100%;
  max-width: 420px;
  padding: 32px;
  position: relative;
  transition: transform 0.15s ease-out;
  background: var(--dark-card);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 32px;
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.card-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
}

.card-status {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(202, 252, 196, 0.12);
  border: 0.5px solid rgba(202, 252, 196, 0.2);
}

.currency-wheel {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 28px;
  z-index: 10;
}

.wheel-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.wheel-total {
  font-size: 1.8rem;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.wheel-sub {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 2px;
}

.wheel-ring {
  position: absolute;
  inset: 0;
  z-index: 4;
  animation: wheelSpin 30s linear infinite;
}

@keyframes wheelSpin {
  to { transform: rotate(360deg); }
}

.wheel-segment {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-80px);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color);
  white-space: nowrap;
  animation: segPulse 3s ease-in-out infinite;
  animation-delay: calc(var(--angle) * 0.02s);
}

@keyframes segPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.seg-pct {
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--gray-500);
}

.card-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 20px;
  border-top: 0.5px solid rgba(255, 255, 255, 0.08);
}

.cf-item {
  text-align: center;
}

.cf-label {
  display: block;
  font-size: 0.7rem;
  color: var(--gray-500);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cf-value {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--white);
}

/* ===== BUTTONS ===== */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  color: var(--bg);
  padding: 4px 4px 4px 24px;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--accent);
}

.btn-primary .btn-arrow {
  width: 48px;
  height: 48px;
  background: var(--bg);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.btn-primary:hover .btn-arrow {
  transform: scale(1.1);
  background: var(--bg-light);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  border: 0.5px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
  margin-left: 16px;
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

/* ===== SECTION COMMON ===== */

.section {
  padding: 140px 24px;
  background: transparent;
}

.section-inner {
  max-width: 88rem;
  margin: 0 auto;
}

.section-header {
  text-align: left;
  max-width: 640px;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(202, 252, 196, 0.1);
  border: 0.5px solid rgba(202, 252, 196, 0.2);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.mainsection-title {
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--white);
}

.mainsection-title .accent {
  color: var(--accent);
  font-style: italic;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--white);
}

.section-title .accent {
  color: var(--accent);
  font-style: italic;
}

.section-desc {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
}

/* ===== MATRIX ===== */

.matrix {
  padding: 140px 24px;
}

.matrix-inner {
  max-width: 88rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.matrix-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.stat-block {
  text-align: center;
  padding: 24px 16px;
  border-radius: 20px;
  background: var(--dark-card);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 0.5px solid rgba(255, 255, 255, 0.08);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.matrix-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--gray-500);
  margin-bottom: 32px;
}

/* === Hub Card === */

.hub-card {
  padding: 40px 32px;
  background: var(--dark-card);
  border-radius: 32px;
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hub-orbs {
  position: relative;
  width: 260px;
  height: 260px;
  margin: 0 auto 32px;
}

.hub-orb-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateX(calc(var(--tx) * 1px)) translateY(calc(var(--ty) * 1px));
}

.hub-orb {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--white);
  animation: orbFloat 4s ease-in-out infinite;
  animation-delay: var(--delay);
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hub-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
}

.hub-icon {
  margin-bottom: 8px;
}

.hub-balance {
  display: block;
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--white);
  letter-spacing: -0.02em;
}

.hub-label {
  font-size: 0.7rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hub-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hub-bar {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  font-weight: 500;
}

.hub-bar span:first-child {
  color: var(--color);
  font-weight: 600;
}

.hub-bar span:last-child {
  color: var(--gray-500);
  text-align: right;
  font-size: 0.75rem;
}

.bar-fill {
  height: 4px;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
  position: relative;
}

.bar-fill::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--color);
  border-radius: 4px;
  transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.bar-fill.animated::after {
  width: calc(var(--pct) * 1%);
}

/* ===== FX ===== */

.fx {
  padding: 140px 24px;
}

.fx-card {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px;
  background: var(--dark-card);
  border-radius: 32px;
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.fx-inputs {
  margin-bottom: 36px;
}

.fx-amount {
  margin-bottom: 28px;
}

.fx-amount label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 12px;
}

.fx-slider-wrapper {
  position: relative;
  height: 28px;
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.fx-slider-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.fx-slider-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-blue));
  border-radius: 4px;
  pointer-events: none;
  transition: width 0.15s ease;
}

.fx-slider {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  z-index: 1;
  width: 100%;
  height: 28px;
  background: transparent;
  outline: none;
  cursor: pointer;
}

.fx-slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 4px;
  background: transparent;
  border-radius: 4px;
}

.fx-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 2px 12px rgba(202, 252, 196, 0.3);
  cursor: pointer;
  transition: transform 0.2s ease;
  margin-top: -8px;
}

.fx-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.fx-slider::-moz-range-track {
  width: 100%;
  height: 4px;
  background: transparent;
  border-radius: 4px;
  border: none;
}

.fx-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 2px 12px rgba(202, 252, 196, 0.3);
  cursor: pointer;
}

.fx-amount-display {
  display: block;
  font-size: 2rem;
  font-weight: 300;
  margin-top: 8px;
  letter-spacing: -0.02em;
}

.fx-pairs {
  display: flex;
  align-items: center;
  gap: 16px;
}

.fx-pair {
  flex: 1;
}

.fx-pair-label {
  display: block;
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fx-select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 0.5px solid rgba(255,255,255,0.12);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  transition: border-color 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.fx-select:focus {
  border-color: var(--accent);
}

.fx-select option {
  background: var(--bg);
  color: var(--white);
}

.fx-swap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 0.5px solid rgba(255,255,255,0.12);
  color: var(--gray-500);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.35s ease;
  margin-top: 18px;
}

.fx-swap:hover {
  border-color: rgba(255,255,255,0.2);
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.fx-results {
  padding-top: 28px;
  border-top: 0.5px solid rgba(255,255,255,0.08);
}

.fx-rate {
  text-align: center;
  margin-bottom: 24px;
}

.fx-rate-label {
  display: block;
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fx-rate-value {
  font-size: 2.4rem;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.fx-comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
}

.fx-comp-item {
  padding: 20px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 0.5px solid rgba(255,255,255,0.08);
}

.fx-comp-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.fx-comp-fee {
  display: block;
  font-size: 1.2rem;
  font-weight: 600;
  color: #ef4444;
  margin-bottom: 2px;
}

.fx-comp-fee-green {
  color: var(--accent);
}

.fx-comp-total {
  display: block;
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 12px;
}

.fx-comp-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
}

.fx-savings {
  text-align: center;
  font-size: 1rem;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(202, 252, 196, 0.06);
  border: 0.5px solid rgba(202, 252, 196, 0.12);
}

.fx-savings-amount {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
}

/* ===== SOLUTIONS ===== */

.solutions {
  padding: 140px 24px;
}

.solutions-grid {
  max-width: 88rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.solution-card {
  padding: 40px 32px;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: default;
  background: var(--dark-card);
  border-radius: 32px;
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.solution-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}

.sol-icon {
  margin-bottom: 24px;
}

.sol-title {
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.sol-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--gray-500);
  margin-bottom: 28px;
}

.sol-metrics {
  display: flex;
  gap: 32px;
  padding-top: 24px;
  border-top: 0.5px solid rgba(255, 255, 255, 0.08);
}

.sol-metric-val {
  display: block;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
}

.sol-metric-lbl {
  display: block;
  font-size: 0.72rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 4px;
}

/* ===== TRUST ===== */

.trust {
  padding: 140px 24px;
}

.trust-compliance {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 80px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.compliance-pill {
  padding: 10px 20px;
  border-radius: 100px;
  background: rgba(255,255,255,0.06);
  border: 0.5px solid rgba(255,255,255,0.12);
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.02em;
  transition: all 0.35s ease;
}

.compliance-pill:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.trust-testimonials {
  max-width: 88rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  padding: 36px;
  display: flex;
  flex-direction: column;
  background: var(--dark-card);
  border-radius: 32px;
  border: 0.5px solid rgba(255, 255, 255, 0.08);
}

.test-quote {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 32px;
  padding-top: 24px;
  flex: 1;
  position: relative;
}

.test-quote::before {
  content: '\201C';
  font-size: 4rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.2;
  position: absolute;
  top: -16px;
  left: -8px;
}

.test-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 24px;
  border-top: 0.5px solid rgba(255, 255, 255, 0.08);
}

.test-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  object-fit: cover;
}

.test-author strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 2px;
}

.test-author span {
  display: block;
  font-size: 0.78rem;
  color: var(--gray-500);
}

/* ===== FOOTER ===== */

.footer {
  padding: 48px 24px;
  border-top: 0.5px solid rgba(255, 255, 255, 0.08);
  background: transparent;
}

.footer-inner {
  max-width: 88rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1rem;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--gray-500);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--gray-500);
}

/* ===== REVEAL / SCROLL ANIMATIONS ===== */

.reveal {
  opacity: 0;
  transition: all 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-up {
  transform: translateY(50px);
}

.reveal-down {
  transform: translateY(-40px);
}

.reveal-left {
  transform: translateX(-50px);
}

.reveal-right {
  transform: translateX(50px);
}

.reveal-scale {
  transform: scale(0.92);
}

.reveal.visible {
  opacity: 1;
  transform: translate(0) scale(1);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ===== TEXT REVEAL ===== */

.text-reveal {
  overflow: hidden;
}

.text-reveal .tr-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.text-reveal.revealed .tr-word {
  opacity: 1;
  transform: translateY(0);
}

.hero-line {
  display: block;
  overflow: hidden;
}

.hero-line-2 {
  margin-top: 4px;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
  .hero-inner,
  .matrix-inner {
    grid-template-columns: 1fr;
    gap: 60px;
    margin-left: 5px;
    margin-bottom: 25px;
  }

  .hero-right {
    order: -1;
  }

  .hero-card {
    max-width: 360px;
    margin: 0 auto;
  }

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

  .trust-testimonials {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .fx-comparison {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .fx-comp-vs {
    display: none;
  }

  .fx-savings {
    flex-wrap: wrap;
    gap: 4px 10px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .navbar {
    top: 12px;
    left: 12px;
    right: 12px;
    padding: 10px 20px 10px 30px;
    
    /* --- RESETS ADDED HERE FOR MOBILE --- */
    max-width: none;       /* Allows it to stretch to the 12px left/right edges */
    transform: none;       /* Disables the desktop centering shift */
    border-radius: 30px;   /* Optional: makes the pill shape look better on mobile edges */
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .nav-cta--desktop {
    display: none;
  }

  .nav-cta--mobile {
    display: none;
  }

  .nav-toggle {
    display: flex;
    width: 42px;
    height: 42px;
  }

  .nav-toggle span {
    width: 16px;
  }

  .nav-logo {
    font-size: 1rem;
  }

  .nav-logo svg {
    width: 24px;
    height: 24px;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 97dvh;
    background: rgb(0, 0, 0);
    backdrop-filter: blur(80px) saturate(1.6);
    -webkit-backdrop-filter: blur(80px) saturate(1.6);
    padding: 100px 32px 120px;
    gap: 4px;
    align-items: stretch;
    border-radius: 15px;
    border-color: #ffffff;
    justify-content: flex-start;
    z-index: 1050;
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
  }

  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  .nav-links.open a:not(.nav-cta) {
    display: block;
    padding: 18px 24px;
    border-radius: 16px;
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--white);
    text-align: left;
    transition: background 0.2s;
  }

  .nav-links.open a:not(.nav-cta):hover {
    background: rgba(255, 255, 255, 0.06);
  }

  .nav-links.open .nav-cta--mobile {
    display: inline-flex;
    position: fixed;
    bottom: 40px;
    left: 24px;
    right: 24px;
    justify-content: center;
    padding: 18px 24px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 1060;
    background: var(--white);
    color: var(--bg);
  }

  .hero-title {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .matrix-stats {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

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

  .section {
    padding: 80px 16px;
  }

  .fx-card {
    padding: 24px;
  }

  .solutions-grid {
    gap: 16px;
  }

  .hub-orbs {
    width: 200px;
    height: 200px;
  }

  .hub-orb {
    width: 44px;
    height: 44px;
    font-size: 0.65rem;
  }
}