/* Final move: push last homepage card 70px up */
#homepage .homepage-image-wrapper:last-child {
  transform: translateY(-70px) !important;
}

/* Final: reduce page layout from bottom by 60px (phone + PC) */
#homepage .homepage-content {
  margin-bottom: -60px !important;
}

#homepage .homepage-content {
  transform: none !important;
  padding-bottom: 0 !important;
}
/* Homepage component specific styles */
#homepage {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border-radius: 0 !important;
  display: flex;
  flex-direction: column;
}

/* Final mobile stabilization: disable motion that may cause shaking */
@media (max-width: 768px) {
  * {
    animation: none !important;
    transition: none !important;
  }
  .feature-card:hover,
  .strategy-card:hover,
  .homepage-cta-btn:hover,
  .join-online-button:hover,
  .invite-now-button:hover,
  .btn-activate-strategy:hover,
  .social-copy-button:hover {
    transform: none !important;
    box-shadow: none !important;
    filter: none !important;
  }
}

/* Hamburger — layout lives in .nav-hamburger-stack (see app.css); keep button chrome here */
.nav-hamburger-stack .menu-toggle {
  position: static !important;
  left: auto !important;
  top: auto !important;
}

.menu-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 1000;
  backdrop-filter: blur(10px);
  width: 48px;
  height: 48px;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* Mobile responsive styles for homepage */
@media (max-width: 768px) {
  .nav-hamburger-stack .menu-toggle {
    width: 40px;
    height: 40px;
    padding: 8px;
  }
  
  .menu-toggle svg {
    width: 20px;
    height: 20px;
  }
  
  .homepage-menu {
    top: 72px;
    left: 10px;
    right: 10px;
    width: auto;
    max-width: calc(100% - 20px);
  }
  
  .homepage-menu-item {
    padding: 12px 16px;
    font-size: 14px;
  }
}

.homepage-menu {
  position: fixed;
  top: 78px;
  left: 20px;
  background: rgba(10, 14, 39, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px;
  min-width: 180px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 4px;
  backdrop-filter: blur(10px);
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  width: 100%;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.menu-item span:first-child {
  font-size: 18px;
}

.menu-item-danger {
  color: #ef4444;
}

.menu-item-danger:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
}

.homepage-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: stretch;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 24px 16px;
  box-sizing: border-box;
  flex: 1;
  overflow-y: visible;
}

.homepage-hero-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 30px; /* 30px gap between CTA buttons and cards */
  align-items: stretch;
}

.homepage-left-cta {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.homepage-cta-btn {
  width: 100%;
  padding: 18px 20px;
  border-radius: 18px;
  border: none;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.8);
}

.homepage-cta-demo {
  background: radial-gradient(circle at top left, #38bdf8, #1d4ed8);
}

.homepage-cta-create {
  background: radial-gradient(circle at top left, #22c55e, #16a34a);
}

.homepage-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.9);
  filter: brightness(1.05);
}

.homepage-cta-icon {
  font-size: 28px;
}

.homepage-cta-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.homepage-cta-title {
  font-size: 18px;
  font-weight: 800;
  color: #f9fafb;
}

.homepage-cta-subtitle {
  font-size: 13px;
  font-weight: 500;
  color: #e5e7eb;
  opacity: 0.9;
}

.homepage-images-container {
  display: flex !important;
  flex-direction: row !important;
  gap: 30px !important;
  align-items: flex-start;
  justify-content: space-between; /* stretch cards from left to right inside available width */
  width: 100%;
  padding: 0; /* let cards reach right edge of the page */
  flex-wrap: nowrap !important;
  overflow-x: auto;
}

.homepage-image-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 0;
  width: auto;
  align-items: center;
}

.homepage-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.join-online-button {
  width: 100%;
  padding: 12px 24px;
  background: #ffffff;
  color: #000000;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.join-online-button:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.join-online-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.invite-now-button {
  width: 100%;
  padding: 12px 24px;
  background: #ffffff;
  color: #000000;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.invite-now-button:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.invite-now-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.homepage-header-title {
  font-size: 72px;
  font-weight: 900;
  color: #60a5fa;
  text-align: center;
  margin: 72px 0 0 0;
  padding: 32px 24px 16px 24px;
  width: 100%;
  line-height: 1.2;
  position: relative;
  z-index: 100;
  background-color: #0a0e27;
  /* Layered "blurred candlesticks" texture */
  background-image:
    linear-gradient(180deg, rgba(10, 14, 39, 0.55), rgba(10, 14, 39, 0.72)),
    radial-gradient(circle at 18% 28%, rgba(34, 197, 94, 0.22), transparent 30%),
    radial-gradient(circle at 76% 36%, rgba(239, 68, 68, 0.2), transparent 34%),
    repeating-linear-gradient(
      90deg,
      rgba(148, 163, 184, 0.0) 0 14px,
      rgba(148, 163, 184, 0.18) 14px 15px,
      rgba(148, 163, 184, 0.0) 15px 34px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(34, 197, 94, 0.0) 0 16px,
      rgba(34, 197, 94, 0.24) 16px 22px,
      rgba(239, 68, 68, 0.22) 22px 28px,
      rgba(34, 197, 94, 0.0) 28px 44px
    );
  background-size: 100% 100%, 100% 100%, 100% 100%, 170px 100%, 170px 100%;
  background-position: center, center, center, 0 0, 22px 0;
  box-shadow: inset 0 0 36px rgba(2, 6, 23, 0.6);
}

.homepage-header-subtitle {
  font-size: 36px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin: 20px 0 0 0;
  padding: 0 24px 32px 24px;
  width: 100%;
  line-height: 1.4;
  background-color: #0a0e27;
  background-image:
    linear-gradient(180deg, rgba(10, 14, 39, 0.56), rgba(10, 14, 39, 0.74)),
    radial-gradient(circle at 24% 26%, rgba(34, 197, 94, 0.2), transparent 30%),
    radial-gradient(circle at 72% 42%, rgba(239, 68, 68, 0.18), transparent 36%),
    repeating-linear-gradient(
      90deg,
      rgba(148, 163, 184, 0.0) 0 13px,
      rgba(148, 163, 184, 0.16) 13px 14px,
      rgba(148, 163, 184, 0.0) 14px 30px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(34, 197, 94, 0.0) 0 14px,
      rgba(34, 197, 94, 0.22) 14px 19px,
      rgba(239, 68, 68, 0.2) 19px 24px,
      rgba(34, 197, 94, 0.0) 24px 38px
    );
  background-size: 100% 100%, 100% 100%, 100% 100%, 160px 100%, 160px 100%;
  background-position: center, center, center, 0 0, 18px 0;
  box-shadow: inset 0 0 32px rgba(2, 6, 23, 0.58);
}

.dash-user {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
  width: 100%;
}

.dash-code {
  font-family: ui-monospace, monospace;
  font-size: 16px;
  color: #22c55e;
  padding: 12px 16px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 12px;
  text-align: center;
  width: 100%;
}

.referral-link-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.referral-link-section label {
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  text-align: center;
}

.referral-link-row {
  display: flex;
  gap: 8px;
  width: 100%;
  justify-content: center;
  align-items: center;
}

.referral-link-row input {
  flex: 1;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  color: #ffffff;
  font-size: 14px;
  font-family: ui-monospace, monospace;
  width: 100%;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
}

.metric {
  padding: 16px;
  background: linear-gradient(135deg, #4c1d95 0%, #6d28d9 40%, #7c3aed 100%);
  border: 1px solid rgba(167, 139, 250, 0.6);
  border-radius: 12px;
  text-align: center;
}

.metric-label {
  font-size: 12px;
  color: #ffffff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.metric-value {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
}

.referrals-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.referral-item {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-size: 14px;
}

.why-choose-heading {
  font-size: 48px;
  font-weight: 900;
  color: #ffffff;
  text-align: center;
  margin: 64px 0 32px 0;
  padding: 0 24px;
  width: 100%;
  line-height: 1.2;
}

.dmaxtrade-brand {
  /* Match #btnRegister “Get Started” blue gradient */
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 55%, #1d4ed8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.why-choose-subtitle {
  font-size: 24px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  margin: 16px 0 48px 0;
  padding: 0 24px;
  width: 100%;
  line-height: 1.4;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 0 0 48px;
  padding: 0 24px;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

/* Hero Why Choose: same grid + cell sizing as .dmax-edge-grid / .dmax-edge-card */
.hero-left .features-grid {
  display: grid;
  max-width: calc(1120px - 30px);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 48px;
  padding: 0 8px;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .hero-left .features-grid {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
}

@media (max-width: 1024px) {
  .hero-left .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hero-left .features-grid {
    gap: 16px;
    grid-template-columns: 1fr !important;
    padding: 0 4px !important;
    justify-items: stretch !important;
    transform: none !important;
  }

  .hero-left .features-grid .feature-card {
    min-height: 0 !important;
    padding: 7px 7px 5px !important; /* ~10px tighter box vs 768px phone rules */
  }

  .hero-left .features-grid .feature-icon {
    width: 28px !important;
    height: 28px !important;
    font-size: 15px !important;
    margin-bottom: 6px !important;
  }

  .hero-left .features-grid .feature-title {
    font-size: 13px !important;
    margin-bottom: 6px !important;
  }

  .hero-left .features-grid .feature-card .feature-list {
    font-size: 13px !important;
    line-height: 1.5 !important;
    margin: 0 0 8px !important;
  }
}

@media (min-width: 1025px) {
  .features-grid {
    padding: 0 32px;
  }
}

.feature-icon-line {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.45);
  color: #60a5fa;
}

.feature-icon-line svg {
  display: block;
  flex-shrink: 0;
}

.feature-card {
  background:
    radial-gradient(ellipse 130% 90% at 50% -35%, rgba(56, 189, 248, 0.11), transparent 52%),
    radial-gradient(ellipse 70% 55% at 105% 102%, rgba(37, 99, 235, 0.07), transparent 48%),
    linear-gradient(168deg, #222838 0%, #1a1e2c 48%, #171a26 100%);
  border-radius: 16px;
  padding: 22px 22px 18px;
  border: 1px solid rgba(96, 165, 250, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  width: auto;
  max-width: none;
  box-sizing: border-box;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(38, 193, 201, 0.35);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
}

.hero-left .features-grid .feature-card {
  width: 100%;
  min-width: 0;
}

/* Trader testimonials — six-card deck */
.dmax-edge-section {
  width: calc(100% - 30px);
  max-width: 100%;
  box-sizing: border-box;
  margin: 32px auto 56px;
  padding: 48px 20px 56px;
  background:
    radial-gradient(120% 140% at 50% -20%, rgba(56, 189, 248, 0.22) 0%, rgba(18, 20, 29, 0) 58%),
    linear-gradient(180deg, #111c32 0%, #12141d 72%, #0f1729 100%);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dmax-edge-heading {
  font-size: clamp(28px, 4.2vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f8fafc;
  text-align: center;
  margin: 0 0 12px;
  padding: 0 12px;
  line-height: 1.15;
}

.dmax-edge-brand {
  color: #26c1c9;
}

.dmax-edge-lead {
  margin: 0 auto 32px;
  max-width: 640px;
  font-size: 15px;
  line-height: 1.55;
  color: #94a3b8;
  text-align: center;
  padding: 0 16px;
}

.dmax-edge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  max-width: calc(1120px - 30px);
  margin: 0 auto;
  padding: 0 8px;
  box-sizing: border-box;
}

.dmax-edge-card {
  background:
    radial-gradient(ellipse 130% 90% at 50% -35%, rgba(56, 189, 248, 0.11), transparent 52%),
    radial-gradient(ellipse 70% 55% at 105% 102%, rgba(37, 99, 235, 0.07), transparent 48%),
    linear-gradient(168deg, #222838 0%, #1a1e2c 48%, #171a26 100%);
  border-radius: 16px;
  padding: 22px 22px 18px;
  border: 1px solid rgba(96, 165, 250, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  min-height: 220px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.dmax-edge-card:hover {
  transform: translateY(-3px);
  border-color: rgba(38, 193, 201, 0.35);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
}

.dmax-edge-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.dmax-edge-meter {
  display: flex;
  gap: 5px;
  align-items: center;
}

.dmax-edge-meter span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(145deg, #fde68a, #f4b400);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.dmax-edge-pillar {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
}

.dmax-edge-copy {
  flex: 1;
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.65;
  color: #e2e8f0;
}

.dmax-edge-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.dmax-edge-foot-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.dmax-edge-country {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
  line-height: 1.2;
  text-align: right;
  align-self: flex-end;
  padding-bottom: 2px;
}

.dmax-edge-orb {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 25%, #93c5fd, #3b82f6 55%, #1d4ed8);
  color: #eff6ff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.9), 0 8px 20px rgba(59, 130, 246, 0.35);
}

.dmax-edge-meta-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.dmax-edge-name {
  font-size: 15px;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.25;
}

.dmax-edge-tagline {
  font-size: 13px;
  color: #94a3b8;
}

@media (max-width: 1024px) {
  .dmax-edge-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .dmax-edge-section {
    position: relative;
    left: -30px;
  }
}

@media (max-width: 640px) {
  .dmax-edge-section {
    margin-left: 0;
    margin-right: 0;
    padding: 36px 14px 44px;
    border-radius: 16px;
  }

  .dmax-edge-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 4px;
  }

  .dmax-edge-card {
    min-height: 0;
  }
}

.feature-promo-banner {
  width: calc(100% - 24px);
  margin: 0 12px 48px;
  min-height: 700px;
  border-radius: 24px;
  overflow: hidden;
  /* Cleaner curved clips when children use filters/transforms */
  isolation: isolate;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  background:
    linear-gradient(115deg, rgba(3, 105, 161, 0.85), rgba(2, 6, 23, 0.9)),
    radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.35), transparent 50%);
  position: relative;
}

.feature-promo-overlay {
  width: 100%;
  min-height: 700px;
  padding: 86px 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  color: #fff;
  position: relative;
}

/* Desktop / wide screens only — ≤768px overrides below */
.feature-promo-title {
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.08;
  letter-spacing: 0.04em;
  font-weight: 900;
  margin: 0 0 26px 0;
}

.feature-promo-text {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
  margin: 0 0 8px 0;
}

/* Match #btnRegister “Get Started” (app.css) */
.feature-promo-btn {
  margin-top: auto;
  align-self: flex-start;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 55%, #1d4ed8 100%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: normal;
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  white-space: nowrap;
}

.feature-promo-btn:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
  filter: brightness(1.05);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
}

.feature-promo-monitor {
  position: absolute;
  right: -56px;
  bottom: 6px;
  width: min(64vw, 620px);
  opacity: 0.96;
  filter: drop-shadow(0 14px 36px rgba(2, 6, 23, 0.7));
  z-index: 1;
  pointer-events: none;
}

.feature-promo-monitor svg {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .feature-promo-banner {
    width: 350px;
    max-width: 350px;
    margin: 0 10px 32px;
    min-height: 480px;
    border-radius: 20px;
    transform: translateX(-5px) !important;
    left: -5px !important;
  }
  .feature-promo-overlay {
    min-height: 480px;
    padding: 56px 16px 20px;
  }
  .feature-promo-title {
    font-size: clamp(20px, 5.2vw, 28px);
    line-height: 1.1;
    letter-spacing: 0.03em;
    margin-bottom: 12px;
  }
  .feature-promo-text {
    font-size: 12px;
    line-height: 1.35;
  }
  .feature-promo-btn {
    margin-top: auto;
    align-self: flex-start;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    min-height: unset !important;
    min-width: auto !important;
  }
  .feature-promo-monitor {
    width: min(94vw, 360px);
    right: -52px;
    bottom: 2px;
    opacity: 0.92;
  }
}

/* Phones: smaller type for “THE RIGHT PLACE…” promo block */
@media (max-width: 640px) {
  .feature-promo-title {
    font-size: clamp(20px, 5.2vw, 28px);
    line-height: 1.1;
    margin-bottom: 12px;
    letter-spacing: 0.03em;
  }

  .feature-promo-text {
    font-size: 12px;
    line-height: 1.35;
  }

  .feature-promo-btn {
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    min-height: unset !important;
    min-width: auto !important;
    margin-top: auto;
    align-self: flex-start;
  }

  .feature-promo-overlay {
    padding: 44px 12px 16px;
  }
}

@media (max-width: 480px) {
  .feature-promo-btn {
    padding: 4px 10px;
    font-size: 11px;
    line-height: 1.2;
    border-radius: 8px;
    min-height: unset !important;
    min-width: auto !important;
  }
}

/* CTA below testimonials — blue card (brand blues, light type) */
.earn-ready-cta {
  width: 100%;
  max-width: 1020px;
  margin: 0 auto 40px;
  padding: 0 12px;
  box-sizing: border-box;
  transform: translateX(-35px);
}

.earn-ready-cta-wrap {
  position: relative;
  margin: 0 auto;
  padding: 20px 0 8px;
}

.earn-ready-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(44px);
  z-index: 0;
  opacity: 0.5;
}

.earn-ready-orb--a {
  width: min(56vw, 280px);
  height: min(56vw, 280px);
  left: -10%;
  top: -6%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.65) 0%, transparent 70%);
}

.earn-ready-orb--b {
  width: min(48vw, 220px);
  height: min(48vw, 220px);
  right: -6%;
  top: -8%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.55) 0%, transparent 68%);
}

.earn-ready-orb--c {
  width: min(72vw, 360px);
  height: min(32vw, 160px);
  right: -12%;
  bottom: -22%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.5) 0%, transparent 72%);
}

.earn-ready-cta-card {
  position: relative;
  z-index: 1;
  transform: translateY(-70px);
  isolation: isolate;
  overflow: hidden;
  border-radius: 22px 14px 26px 14px;
  border: 1px solid rgba(147, 197, 253, 0.35);
  background: rgba(15, 23, 42, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 22px 56px rgba(15, 23, 42, 0.45);
}

.earn-ready-cta-mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 1;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(56, 189, 248, 0.45) 0%, transparent 52%),
    radial-gradient(90% 80% at 100% 100%, rgba(37, 99, 235, 0.55) 0%, transparent 52%),
    linear-gradient(128deg, #2563eb 0%, #1d4ed8 48%, #1e40af 88%, #172554 100%);
  pointer-events: none;
}

.earn-ready-cta-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(18px, 3vw, 26px);
  padding: clamp(26px, 5vw, 44px) clamp(18px, 4vw, 36px);
  align-items: end;
}

@media (min-width: 720px) {
  .earn-ready-cta-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(200px, 280px);
  }
}

.earn-ready-cta-copy {
  text-align: left;
}

.earn-ready-cta-kicker {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(191, 219, 254, 0.95);
  line-height: 1.4;
}

.earn-ready-cta-title {
  margin: 0 0 12px;
  font-size: clamp(24px, 4.8vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #f8fafc;
}

.earn-ready-cta-lead {
  margin: 0;
  max-width: 40rem;
  font-size: clamp(14px, 2.2vw, 16px);
  font-weight: 500;
  color: rgba(224, 231, 255, 0.92);
  line-height: 1.55;
  text-wrap: pretty;
}

.earn-ready-cta-dock {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  padding: 16px 16px 14px;
  box-shadow: 0 8px 28px rgba(2, 6, 23, 0.25);
}

.earn-ready-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.earn-ready-btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  border: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.earn-ready-btn:active {
  transform: scale(0.98);
}

.earn-ready-btn-primary {
  background: #ffffff;
  color: #1d4ed8;
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.15);
}

.earn-ready-btn-primary:hover {
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.22);
}

.earn-ready-btn-arrow {
  margin-left: 6px;
  font-weight: 800;
}

.earn-ready-btn-ghost {
  background: transparent;
  color: #f1f5f9;
  border-color: rgba(241, 245, 249, 0.5);
}

.earn-ready-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 719px) {
  .earn-ready-cta-wrap {
    padding: 16px 0 4px;
  }

  .earn-ready-cta {
    margin-bottom: 24px;
    padding: 0 10px;
  }

  .earn-ready-cta-card {
    border-radius: 18px 12px 22px 12px;
  }

  .earn-ready-cta-grid {
    padding: 22px 16px 24px;
  }

  .earn-ready-cta-lead {
    margin-bottom: 4px;
    font-size: 14px;
  }

  .earn-ready-cta-dock {
    padding: 14px;
  }
}

@media (max-width: 640px) {
  .earn-ready-cta {
    transform: translateX(-43px);
    width: min(380px, 100%);
    max-width: 380px;
  }
}

/* Mobile: remove centering across the homepage */
@media (max-width: 768px) {
  #homepage, #homepage * {
    text-align: left !important;
  }
  .features-grid {
    justify-items: center !important;
    justify-content: center !important;
  }
  .hero-stats,
  .strategy-cards-grid,
  .social-trading-section {
    justify-items: start !important;
    justify-content: flex-start !important;
  }
  #homepage .feature-card,
  .strategy-card {
    align-items: flex-start !important;
    max-width: 120px !important;              /* mobile card max width */
    width: 120px !important;                  /* fix width to match max */
    box-sizing: border-box !important;
  }
  .feature-icon {
    margin-left: 0 !important;
    margin-right: 0 !important;
    align-self: flex-start !important;
  }
}

/* Extra-small phones: slightly tighter card width */
@media (max-width: 480px) {
  #homepage .feature-card {
    max-width: 120px !important;
    width: 120px !important;
  }
}
/* Mobile override - center align feature cards and wrap text */
@media (max-width: 768px) {
  .feature-card {
    align-items: center !important;
    text-align: center !important;
  }

  .feature-icon {
    align-self: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .feature-title {
    white-space: normal !important; /* Allow text wrapping */
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    hyphens: auto !important;
  }

  .feature-list {
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
  }

  .feature-list li {
    white-space: normal !important; /* Allow text wrapping */
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    hyphens: auto !important;
    text-align: center !important;
  }
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 20px;
}

/* Match .dmax-edge-orb footprint on Why Choose cards */
.hero-left .features-grid .feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  font-size: 22px;
  margin-bottom: 14px;
}

.feature-icon-yellow {
  background: rgba(234, 179, 8, 0.2);
  border: 1px solid rgba(234, 179, 8, 0.4);
}

.feature-icon-blue {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.feature-icon-teal {
  background: rgba(20, 184, 166, 0.2);
  border: 1px solid rgba(20, 184, 166, 0.4);
}

.feature-icon-purple {
  background: rgba(147, 51, 234, 0.2);
  border: 1px solid rgba(147, 51, 234, 0.4);
}

/* Base (desktop): no left shift on feature icons */
.feature-card .feature-icon {
  transform: none;
}

.feature-title {
  font-size: 15px;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 12px 0;
  line-height: 1.25;
  transform: none;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  width: 100%;
}

/* Comma-separated feature text variant (used instead of bullet list) */
.feature-card .feature-list {
  font-size: 15px;
  line-height: 1.65;
  color: #e2e8f0;
  transform: none;
}

.hero-left .features-grid .feature-card .feature-list {
  flex: 1;
  margin: 0 0 20px;
}

/* Mobile: feature grid — no horizontal nudge (removed translate/margin hacks) */
@media (max-width: 768px) {
  .features-grid {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    box-sizing: border-box !important;
    transform: none !important;
  }
  .feature-card {
    width: 100% !important;
    margin: 0 !important;
  }
  .feature-card .feature-icon,
  .features-grid .feature-icon,
  .feature-title,
  .features-grid .feature-title,
  .feature-card .feature-list {
    transform: none !important;
  }
  .strategy-section-title {
    transform: none !important;
    text-align: center !important;
  }
  .strategy-section {
    transform: none !important;
  }
}

.feature-list li {
  font-size: 15px;
  line-height: 1.65;
  color: #e2e8f0;
  padding: 8px 0;
  position: relative;
  padding-left: 20px;
}

.feature-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: rgba(255, 255, 255, 0.5);
  font-weight: bold;
}

.strategy-cta-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin: 48px 24px;
  align-items: center;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.strategy-cta-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.btn-find-strategy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 40px;
  border-radius: 12px;
  font-size: 20px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.btn-find-strategy:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.5);
  transform: translateY(-2px);
}

.btn-demo-mode {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 40px;
  border-radius: 12px;
  font-size: 20px;
  font-weight: 700;
  border: 2px solid rgba(148, 163, 184, 0.5);
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
  color: #ffffff;
}

.btn-demo-mode:hover {
  background: rgba(148, 163, 184, 0.1);
  border-color: rgba(148, 163, 184, 0.8);
  transform: translateY(-2px);
}

.btn-icon {
  font-size: 24px;
}

.strategy-preview-right {
  display: flex;
  justify-content: flex-end;
}

.preview-card {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 16px;
  padding: 24px;
  min-width: 320px;
  max-width: 400px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.preview-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.preview-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.preview-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.preview-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.preview-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.preview-value {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
}

.preview-value-small {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 4px;
}

.risk-meter {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin: 4px 0;
}

.risk-bar {
  height: 100%;
  background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.strategy-section {
  margin: 64px 0;
  padding: 0 24px;
  width: 100%;
  box-sizing: border-box;
}

.strategy-section-title {
  font-size: 42px;
  font-weight: 900;
  color: #ffffff;
  text-align: center;
  margin: 0 0 48px 0;
}

.strategy-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
}

.strategy-card {
  background: rgba(15, 23, 42, 0.9);
  border: 2px solid rgba(148, 163, 184, 0.3);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.strategy-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Mobile override - align strategy cards to left */
@media (max-width: 768px) {
  .strategy-card {
    align-items: flex-start !important;
    text-align: left !important;
  }
  
  .strategy-icon {
    align-self: flex-start !important;
    margin-left: 0 !important;
  }
  
  .strategy-name {
    white-space: nowrap !important; /* Prevent text wrapping */
  }
  
  .strategy-details {
    white-space: nowrap !important; /* Prevent text wrapping */
  }
  
  .strategy-label,
  .strategy-value {
    white-space: nowrap !important; /* Prevent text wrapping */
  }
}

.strategy-card-green {
  border-color: rgba(34, 197, 94, 0.5);
}

.strategy-card-blue {
  border-color: rgba(59, 130, 246, 0.5);
}

.strategy-card-red {
  border-color: rgba(239, 68, 68, 0.5);
}

.strategy-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.strategy-name {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 24px 0;
}

.strategy-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-bottom: 24px;
}

.strategy-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.strategy-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  text-align: left;
}

.strategy-value {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  text-align: right;
}

.btn-activate-strategy {
  width: 100%;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.btn-activate-strategy:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.5);
  transform: translateY(-2px);
}

.strategy-card-green .btn-activate-strategy {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

.strategy-card-green .btn-activate-strategy:hover {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.5);
}

.strategy-card-red .btn-activate-strategy {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.strategy-card-red .btn-activate-strategy:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.5);
}

.social-trading-section {
  margin: 72px 0 0 0;
  padding: 40px 24px;
  border-radius: 24px;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.08), transparent 55%),
              radial-gradient(circle at bottom right, rgba(37, 99, 235, 0.1), transparent 55%),
              #020617;
  border: 1px solid rgba(30, 64, 175, 0.6);
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr); /* phone | list | text */
  column-gap: 200px; /* horizontal spacing between phone, list and text */
  row-gap: 32px;
  align-items: center;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.9);
}

.social-trading-left,
.social-trading-middle {
  display: flex;
  justify-content: center;
}

.social-trading-middle {
  align-items: stretch;
}

.social-trader-column {
  width: 260px;
  border-radius: 24px;
  background: linear-gradient(180deg, #020b28, #020617);
  border: 1px solid rgba(30, 64, 175, 0.7);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
  padding: 14px 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.social-hand-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-phone-frame {
  width: 340px;
  height: 640px;
  border-radius: 44px;
  padding: 14px; /* more padding so blue ring clearly surrounds the phone */
  /* Light blue phone cover fully surrounding the device */
  background: #38bdf8;
  box-shadow:
    0 28px 70px rgba(15, 23, 42, 0.95),
    0 0 0 2px rgba(15, 23, 42, 1);
  border: 2px solid rgba(15, 23, 42, 0.9);
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
  z-index: 1; /* ensure phone renders above the hand */
}

.social-phone-frame::before {
  /* Left side buttons */
  content: '';
  position: absolute;
  left: -2px;
  top: 120px;
  width: 6px;
  height: 70px;
  border-radius: 999px;
  background: linear-gradient(to bottom, #111827, #020617);
}

.social-phone-frame::after {
  /* Right side power button */
  content: '';
  position: absolute;
  right: -2px;
  top: 170px;
  width: 6px;
  height: 90px;
  border-radius: 999px;
  background: linear-gradient(to bottom, #111827, #020617);
}

.social-phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 20px;
  border-radius: 999px;
  background: radial-gradient(circle at top, #020617, #020617 80%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
  z-index: 2;
}

.social-phone-mock {
  width: 100%;
  border-radius: 36px;
  padding: 26px 16px 20px;
  background: radial-gradient(circle at top, #020617, #020617 70%);
  border: 1px solid rgba(30, 64, 175, 0.7);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 1;
  box-shadow: inset 0 0 10px rgba(15, 23, 42, 0.9);
}

.social-phone-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #9ca3af;
}

.social-phone-status-dots {
  display: flex;
  gap: 3px;
}

.social-phone-status-dots span {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #9ca3af;
}

.social-phone-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: #e5e7eb;
}

.social-phone-user-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-phone-avatar-circle {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: radial-gradient(circle at 20% 0%, #22c55e, #0f172a 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #e5e7eb;
}

.social-phone-user-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.social-phone-username {
  font-weight: 600;
}

.social-phone-badge {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a5b4fc;
}

.social-phone-balance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.social-phone-balance {
  font-weight: 700;
  font-size: 16px;
}

.social-phone-balance-label {
  font-size: 11px;
  color: #9ca3af;
}

.social-phone-mode {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.5);
  font-size: 11px;
  font-weight: 600;
  color: #bbf7d0;
}

.social-phone-chart {
  margin-top: 4px;
  padding: 10px 8px 12px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0b1120, #020617 70%);
  border: 1px solid rgba(51, 65, 85, 0.9);
}

.social-phone-asset-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #e5e7eb;
  margin-bottom: 8px;
}

.social-phone-asset {
  font-weight: 600;
}

.social-phone-asset-change {
  font-weight: 600;
}

.social-phone-asset-change.positive {
  color: #4ade80;
}

.social-phone-chart-lines {
  position: relative;
  height: 70px;
  overflow: hidden;
}

.social-chart-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Final mobile override: keep 10px gutters on both sides for feature cards */
@media (max-width: 768px) {
  .features-grid {
    width: calc(100% - 10px) !important;
    max-width: calc(100% - 10px) !important;
    margin-left: 0 !important;
    margin-right: 10px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    transform: none !important;
  }
  /* Ensure feature content is fully visible and readable on mobile */
  .feature-card {
    text-align: center !important;
    align-items: center !important;
    overflow: visible !important;
  }
  .feature-card .feature-icon,
  .feature-title {
    transform: translateX(-85px) !important;
  }
  .feature-card .feature-list {
    transform: translateX(20px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: left !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
  }
}

.social-trader-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-trader-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.social-trader-active {
  border-color: rgba(56, 189, 248, 0.9);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.7);
}

.social-trader-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 20% 0%, #38bdf8, #0f172a 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #e5e7eb;
  margin-right: 10px;
}

.social-trader-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.social-trader-name {
  font-size: 14px;
  font-weight: 600;
  color: #e5e7eb;
}

.social-trader-asset {
  font-size: 11px;
  color: #9ca3af;
}

.social-trader-pnl {
  font-size: 13px;
  font-weight: 700;
}

.social-trader-pnl.positive {
  color: #4ade80;
}

.social-copy-button {
  margin-top: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #0b1120;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(34, 197, 94, 0.5);
}

.social-copy-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(34, 197, 94, 0.6);
}

.social-phone-bottom {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(30, 64, 175, 0.6);
}

.social-amount-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #e5e7eb;
  margin-bottom: 6px;
}

.social-amount-label {
  color: #9ca3af;
}

.social-amount-value {
  font-weight: 700;
}

.social-trading-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.social-trading-title {
  font-size: 40px;
  font-weight: 800;
  color: #e5e7eb;
}

.social-steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.social-step-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  color: #cbd5f5;
}

.social-step-number {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: #e5e7eb;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.9);
}

.social-step-text {
  font-size: 18px;
  font-weight: 500;
  color: #e5e7eb;
}

/* Tablet and below (968px) */
@media (max-width: 968px) {
  .homepage-hero-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .homepage-left-cta {
    order: 2;
    width: 100%;
  }

  .homepage-images-container {
    order: 1;
    width: 100%;
    gap: 20px !important;
    padding: 0 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start !important; /* Align cards to left on tablet */
  }

  .homepage-image-wrapper {
    flex: 0 0 calc(50% - 10px);
    min-width: 200px;
    margin: 0; /* Remove auto margin to align left */
  }

  .homepage-header-title {
    font-size: 48px;
    padding: 24px 16px 12px 16px;
    margin: 80px 0 0 0; /* Start below top nav (64px) with small gap */
  }

  .homepage-header-subtitle {
    font-size: 24px;
    padding: 0 16px 24px 16px;
  }

  .why-choose-heading {
    font-size: 36px;
    padding: 0 16px;
    margin: 48px 0 24px 0;
  }

  .why-choose-subtitle {
    font-size: 18px;
    padding: 0 16px;
    margin: 12px 0 32px 0;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 0 16px;
    justify-items: start; /* Align feature cards to left */
    transform: translateX(-30px);
  }

  .hero-left .features-grid {
    transform: none !important; /* horizontal nudge via left on ≤768 (see mobile .hero-left .features-grid) */
  }

  .feature-card {
    max-width: 100%;
    margin: 0; /* Remove auto margin to align left */
  }

  .feature-card {
    max-width: 100%;
    margin: 0 auto; /* Center feature cards */
  }

  .strategy-section {
    padding: 0 16px;
  }

  .strategy-section-title {
    font-size: 32px;
  }

  .strategy-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    justify-items: center; /* Center strategy cards */
  }
  
  .strategy-card {
    max-width: 100%;
    margin: 0 auto; /* Center strategy cards */
  }

  .strategy-cta-section {
    grid-template-columns: 1fr;
    gap: 32px;
    margin: 32px 16px;
  }
  
  .strategy-cta-left {
    align-items: center;
  }
  
  .strategy-preview-right {
    justify-content: center;
  }

  .social-trading-section {
    grid-template-columns: 1fr auto !important; /* Phone takes more space, social trading minimized */
    padding: 24px 12px;
    gap: 16px !important;
    align-items: center;
  }

  .social-trading-left {
    order: 1 !important; /* Phone on left */
    display: flex;
    justify-content: flex-start;
    flex: 1 1 60% !important; /* Phone takes 60% of space */
  }

  .social-trading-middle {
    display: none !important; /* Hide trader list on mobile */
  }

  .social-trading-right {
    order: 2 !important; /* Social trading content on right */
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 0 0 35% !important; /* Social trading takes 35% of space */
  }

  .social-trading-title {
    font-size: 18px !important; /* Minimized title */
    margin: 0;
    line-height: 1.2;
  }
  
  .social-step-text {
    font-size: 11px !important; /* Minimized step text */
    line-height: 1.3;
  }
  
  .social-step-number {
    width: 24px !important; /* Minimized step number */
    height: 24px !important;
    font-size: 11px !important;
  }

  .social-phone-frame {
    width: 200px !important; /* Maximized phone size */
    height: 380px !important;
    transform: scale(1) !important;
    padding: 12px !important;
  }
  
  .social-phone-mock {
    padding: 18px 12px 14px !important;
  }
  
  .social-phone-topbar {
    font-size: 11px !important; /* Clear visibility */
  }
  
  .social-phone-header {
    font-size: 12px !important; /* Clear visibility */
  }
  
  .social-phone-username {
    font-size: 13px !important; /* Clear visibility */
    font-weight: 600 !important;
  }
  
  .social-phone-badge {
    font-size: 9px !important;
  }
  
  .social-phone-balance-row {
    font-size: 12px !important; /* Clear visibility */
  }
  
  .social-phone-balance {
    font-size: 16px !important; /* Clear visibility */
    font-weight: 700 !important;
  }
  
  .social-phone-balance-label {
    font-size: 10px !important;
  }
  
  .social-phone-mode {
    font-size: 9px !important;
    padding: 4px 8px !important;
  }
  
  .social-phone-chart {
    font-size: 11px !important; /* Clear visibility */
    padding: 12px 10px 14px !important;
  }
  
  .social-phone-asset-row {
    font-size: 11px !important; /* Clear visibility */
  }
  
  .social-phone-asset,
  .social-phone-asset-change {
    font-size: 11px !important; /* Clear visibility */
    font-weight: 600 !important;
  }
  
  .social-phone-chart-lines {
    height: 60px !important; /* Larger chart for clarity */
  }
  
  .social-phone-avatar-circle {
    width: 42px !important; /* Larger avatar */
    height: 42px !important;
  }
  
  .social-phone-user-meta {
    gap: 3px !important;
  }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
  .homepage-content {
    padding: 16px;
    align-items: stretch !important;
    box-sizing: border-box;
  }

  .homepage-hero-row {
    gap: 20px;
  }

  .homepage-left-cta {
    gap: 12px;
  }

  .homepage-cta-btn {
    padding: 16px 18px;
  }

  .homepage-cta-icon {
    font-size: 24px;
  }

  .homepage-cta-title {
    font-size: 16px;
  }

  .homepage-cta-subtitle {
    font-size: 12px;
  }

  .homepage-images-container {
    gap: 0 !important; /* Remove gap to fill edges */
    padding: 0 !important; /* Remove padding to fill edges */
    justify-content: flex-start !important; /* Align cards to left on mobile */
    width: 100% !important;
  }

  .homepage-image-wrapper {
    flex: 1 1 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important; /* Remove margins to fill edges */
  }
  
  .homepage-image {
    border-radius: 0 !important; /* Remove border radius to fill edges */
    width: 100% !important;
  }
  
  .join-online-button,
  .invite-now-button {
    white-space: normal !important; /* Allow button text to wrap */
    text-align: center !important;
    justify-content: center !important;
  }
  
  .homepage-image-wrapper {
    text-align: center !important;
    align-items: center !important;
  }

  .homepage-image {
    height: 160px;
  }

  .homepage-header-title {
    font-size: 36px;
    padding: 20px 12px 10px 12px;
    margin: 76px 0 0 0; /* Start right below top nav (64px) with small gap */
    text-align: left; /* Align to start/left on mobile */
  }

  .homepage-header-subtitle {
    font-size: 20px;
    padding: 0 12px 20px 12px;
    margin: 16px 0 0 0;
    text-align: left; /* Align to start/left on mobile */
  }

  .why-choose-heading {
    font-size: 28px;
    padding: 0 12px;
    margin: 40px 0 20px 0;
    text-align: center;
    transform: translateX(-55px);
  }

  .why-choose-subtitle {
    font-size: 16px;
    padding: 0 12px;
    margin: 10px 0 24px 0;
    text-align: center;
    transform: translateX(-60px);
  }

  #homepage .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 20px 0 0 !important; /* 20px right gutter */
    margin: 0 0 32px 0;
    justify-items: stretch !important; /* Stretch cards to fill width */
    width: 100%;
    box-sizing: border-box;
    transform: none;
    border-right: 2px solid rgba(148, 163, 184, 0.5); /* visible edge marker */
  }

  #homepage .feature-card {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important; /* Remove margins to fill edges */
    padding: 20px;
    text-align: center !important; /* Center align all text in feature cards */
    align-items: center !important; /* Center align card content */
    border-radius: 0 !important; /* Remove border radius to fill edges */
  }

  #homepage .feature-icon {
    width: 56px;
    height: 56px;
    font-size: 28px;
    margin: 0 auto 16px auto !important; /* Center icon */
  }

  #homepage .feature-title {
    font-size: 18px;
    text-align: center !important; /* Center align title */
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }

  .feature-list {
    text-align: center !important; /* Center align list */
    list-style-position: inside !important; /* Center bullets */
  }

  .feature-list li {
    text-align: center !important; /* Center align list items */
    padding-left: 0 !important;
    padding-right: 0;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    hyphens: auto !important;
  }

  .feature-list {
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
  }

  .feature-list li::before {
    display: block; /* Show default bullet for left-aligned text */
  }

  .strategy-section {
    padding: 0 !important; /* Remove padding to fill edges */
    margin: 48px 0;
    width: 100% !important;
  }

  .strategy-section-title {
    font-size: 28px;
    margin: 0 0 32px 0;
    padding: 0 20px; /* Add padding only to title text */
  }

  .strategy-cards-grid {
    gap: 0 !important; /* Remove gap to fill edges */
    justify-items: stretch !important; /* Stretch cards to fill width */
    width: 100% !important;
    padding: 0 !important;
  }
  
  .strategy-card {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important; /* Remove margins to fill edges */
    padding: 24px;
    text-align: left !important; /* Align all text to left in strategy cards */
    border-radius: 0 !important; /* Remove border radius to fill edges */
  }

  .strategy-name {
    font-size: 24px;
    text-align: left !important; /* Align strategy name to left */
  }
  
  .strategy-icon {
    margin: 0 0 16px 0; /* Align icon to left */
  }
  
  .strategy-details {
    text-align: left !important; /* Align details to left */
  }
  
  .strategy-row {
    justify-content: flex-start !important; /* Align rows to left */
    text-align: left !important;
  }
  
  .strategy-label,
  .strategy-value {
    text-align: left !important; /* Align labels and values to left */
  }

  .strategy-cta-section {
    margin: 24px 12px;
    gap: 24px;
  }

  .btn-find-strategy,
  .btn-demo-mode {
    padding: 14px 32px;
    font-size: 18px;
  }

  .social-trading-section {
    grid-template-columns: auto 1fr !important; /* Phone on left, social trading on right */
    padding: 20px 10px;
    gap: 12px !important; /* Reduced gap to fit side by side */
    align-items: center;
  }

  .social-trading-left {
    order: 1 !important; /* Phone on left */
  }

  .social-trading-middle {
    display: none !important; /* Hide trader list on mobile */
  }

  .social-trading-right {
    order: 2 !important; /* Social trading content on right */
  }

  .social-trading-title {
    font-size: 20px;
    margin: 0;
  }

  .social-step-text {
    font-size: 14px;
  }

  .social-step-number {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .social-phone-frame {
    width: 120px !important; /* Minimized phone size */
    height: 220px !important;
    transform: scale(1) !important;
    padding: 6px !important;
  }
  
  .social-phone-mock {
    padding: 10px 6px 8px !important;
  }
  
  .social-phone-topbar,
  .social-phone-header,
  .social-phone-balance-row,
  .social-phone-chart {
    font-size: 7px !important;
  }
  
  .social-phone-username,
  .social-phone-balance {
    font-size: 9px !important;
  }
  
  .social-phone-chart-lines {
    height: 35px !important;
  }

  .social-trader-column {
    display: none !important; /* Hide trader list on mobile */
  }
}

/* Small mobile (480px and below) */
@media (max-width: 480px) {
  .homepage-header-title {
    font-size: 28px;
    padding: 16px 8px 8px 8px;
    margin: 68px 0 0 0; /* Start right below top nav (56px) with small gap */
    text-align: left; /* Align to start/left on small mobile */
  }

  .homepage-header-subtitle {
    font-size: 16px;
    padding: 0 8px 16px 8px;
    text-align: left; /* Align to start/left on small mobile */
  }

  .why-choose-heading {
    font-size: 24px;
    text-align: center;
    transform: translateX(-55px);
  }

  .why-choose-subtitle {
    font-size: 14px;
    text-align: center;
    transform: translateX(-60px);
  }

  .homepage-cta-btn {
    padding: 14px 16px;
  }

  .homepage-cta-icon {
    font-size: 20px;
  }

  .homepage-cta-title {
    font-size: 14px;
  }

  .homepage-cta-subtitle {
    font-size: 11px;
  }

  .homepage-image {
    height: 140px;
  }

  .join-online-button,
  .invite-now-button {
    padding: 10px 20px;
    font-size: 13px; /* Slightly larger for readability */
    text-align: center !important; /* Center align button text */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center; /* Center align button content */
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    hyphens: auto !important;
  }
  
  .homepage-image-wrapper {
    text-align: center; /* Center align content in image wrapper */
  }

  #homepage .feature-card {
    padding: 16px;
    text-align: center !important; /* Center align all text in feature cards */
    align-items: center !important;
  }

  #homepage .feature-title,
  #homepage .feature-list,
  #homepage .feature-list li {
    text-align: center !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }

  #homepage .feature-icon {
    margin: 0 auto 16px auto !important;
  }

  #homepage .feature-icon {
    width: 48px;
    height: 48px;
    font-size: 24px;
    margin: 0 auto 12px auto !important; /* Center icon */
  }

  #homepage .feature-title {
    font-size: 16px;
    text-align: center !important; /* Center align title */
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    hyphens: auto !important;
  }

  #homepage .feature-list {
    text-align: center !important; /* Center align list */
    list-style-position: inside !important; /* Center bullets */
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
  }

  #homepage .feature-list li {
    text-align: center !important; /* Center align list items */
    padding-left: 0 !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    hyphens: auto !important;
  }

  #homepage .feature-list li::before {
    display: block; /* Show default bullet for left-aligned text */
  }

  .strategy-section-title {
    font-size: 24px;
  }

  .strategy-card {
    padding: 20px;
    margin: 0 !important; /* Remove margins to fill edges */
    text-align: left !important; /* Align all text to left in strategy cards */
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0 !important; /* Remove border radius to fill edges */
  }
  
  .strategy-cards-grid {
    padding: 0 !important; /* Remove padding to fill edges */
    gap: 0 !important; /* Remove gap to fill edges */
  }
  
  .strategy-section {
    padding: 0 !important; /* Remove padding to fill edges */
  }
  
  .strategy-name {
    text-align: left !important; /* Align strategy name to left */
  }
  
  .strategy-icon {
    margin: 0 0 12px 0; /* Align icon to left */
  }
  
  .strategy-details {
    text-align: left !important; /* Align details to left */
  }
  
  .strategy-row {
    justify-content: flex-start !important; /* Align rows to left */
    text-align: left !important;
  }
  
  .strategy-label,
  .strategy-value {
    text-align: left !important; /* Align labels and values to left */
  }
  
  .strategy-cards-grid {
    justify-items: start; /* Align strategy cards to left */
  }

  .strategy-name {
    font-size: 20px;
  }

  .btn-activate-strategy {
    padding: 12px 20px;
    font-size: 14px;
  }

  .social-trading-section {
    grid-template-columns: 1fr auto !important; /* Phone takes more space, social trading minimized */
    padding: 16px 8px;
    gap: 10px !important;
    align-items: center;
  }

  .social-trading-left {
    order: 1 !important; /* Phone on left */
    flex: 1 1 60% !important; /* Phone takes 60% of space */
  }

  .social-trading-middle {
    display: none !important; /* Hide trader list on small mobile */
  }

  .social-trading-right {
    order: 2 !important; /* Social trading content on right */
    flex: 0 0 35% !important; /* Social trading takes 35% of space */
  }

  .social-trading-title {
    font-size: 14px !important; /* Minimized title */
    margin: 0;
    line-height: 1.2;
  }

  .social-step-text {
    font-size: 9px !important; /* Minimized step text */
    line-height: 1.3;
  }

  .social-step-number {
    width: 20px !important; /* Minimized step number */
    height: 20px !important;
    font-size: 9px !important;
  }

  .social-phone-frame {
    width: 160px !important; /* Maximized phone size */
    height: 300px !important;
    transform: scale(1) !important;
    padding: 8px !important;
  }
  
  .social-phone-mock {
    padding: 14px 8px 10px !important;
  }
  
  .social-phone-topbar {
    font-size: 9px !important; /* Clear visibility */
  }
  
  .social-phone-header {
    font-size: 10px !important; /* Clear visibility */
  }
  
  .social-phone-username {
    font-size: 11px !important; /* Clear visibility */
    font-weight: 600 !important;
  }
  
  .social-phone-badge {
    font-size: 7px !important;
  }
  
  .social-phone-balance-row {
    font-size: 10px !important; /* Clear visibility */
  }
  
  .social-phone-balance {
    font-size: 14px !important; /* Clear visibility */
    font-weight: 700 !important;
  }
  
  .social-phone-balance-label {
    font-size: 8px !important;
  }
  
  .social-phone-mode {
    font-size: 7px !important;
    padding: 3px 6px !important;
  }
  
  .social-phone-chart {
    font-size: 9px !important; /* Clear visibility */
    padding: 8px 6px 10px !important;
  }
  
  .social-phone-asset-row {
    font-size: 9px !important; /* Clear visibility */
  }
  
  .social-phone-asset,
  .social-phone-asset-change {
    font-size: 9px !important; /* Clear visibility */
    font-weight: 600 !important;
  }
  
  .social-phone-chart-lines {
    height: 50px !important; /* Larger chart for clarity */
  }
  
  .social-phone-avatar-circle {
    width: 34px !important; /* Larger avatar */
    height: 34px !important;
  }
  
  .social-phone-user-meta {
    gap: 2px !important;
  }
}

/* Mobile feature grid: symmetric gutters (no right-only padding) */
@media (max-width: 768px) {
  .features-grid {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    transform: none !important;
    overflow: visible !important;
  }
  .hero-left {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .feature-card {
    box-sizing: border-box !important;
    width: 100% !important;
  }
}

@media (max-width: 1200px) {
  .strategy-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

/* Mobile (≤768px): Why Choose cards 10px narrower than full track */
@media (max-width: 768px) {
  .hero-left .features-grid {
    justify-items: center !important;
    /* Later than max-968 .hero-left .features-grid { transform: none } — must set transform here */
    transform: translateX(-24px) !important;
  }

  .hero-left .features-grid .feature-card {
    width: calc(100% - 10px) !important;
    max-width: calc(100% - 10px) !important;
    min-width: 0 !important;
    justify-self: center !important;
    padding: 12px 12px 8px !important;
    min-height: 200px !important;
  }

  .hero-left .features-grid .feature-icon {
    width: 38px !important;
    height: 38px !important;
    font-size: 18px !important;
    margin-bottom: 10px !important;
  }

  .hero-left .features-grid .feature-title {
    font-size: 14px !important;
    margin-bottom: 8px !important;
  }

  .hero-left .features-grid .feature-card .feature-list {
    font-size: 14px !important;
    line-height: 1.55 !important;
    margin: 0 0 12px !important;
  }

  .social-trader-card {
    width: 330px !important;
    max-width: 330px !important;
  }
}

/* Phones (≤640px): Why Choose cards 60px narrower than full track (10px more than ≤768 cap) */
@media (max-width: 640px) {
  .hero-left .features-grid {
    justify-items: center !important;
    /* −24px from ≤768 rule + another 20px left on small phones */
    transform: translateX(-44px) !important;
  }

  .hero-left .features-grid .feature-card {
    width: calc(100% - 60px) !important;
    max-width: calc(100% - 60px) !important;
    min-width: 0 !important;
    justify-self: center !important;
  }
}

/* Absolute final mobile override: move promo banner 5px left */
@media (max-width: 768px) {
  #homepage .feature-promo-banner {
    position: relative !important;
    left: -5px !important;
    transform: translateX(-5px) !important;
  }
}

/* Re-center feature icons and titles */
.features-grid .feature-card {
  align-items: center !important;
  text-align: center !important;
}
.features-grid .feature-icon {
  margin-left: auto !important;
  margin-right: auto !important;
  align-self: center !important;
}
.features-grid .feature-title {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  transform: translateX(13px) !important;
}

.features-grid .feature-title-upper {
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  line-height: 1.25 !important;
}

.features-grid .feature-icon {
  transform: translateX(13px) !important;
}

.hero-left .features-grid .feature-title,
.hero-left .features-grid .feature-icon {
  transform: none !important;
}

@media (max-width: 768px) {
  .features-grid .feature-title,
  .features-grid .feature-icon {
    transform: none !important;
  }
}

/* Absolute final mobile shift: rotating referral cards 10px left */
@media (max-width: 768px) {
  #homepage .homepage-images-container,
  #homepage .homepage-image-wrapper {
    position: relative !important;
    left: -10px !important;
    transform: none !important;
  }
}

/* Absolute final mobile layout for rotating cards: 350px with 3px side gaps */
@media (max-width: 768px) {
  #homepage .homepage-images-container {
    width: 370px !important;
    max-width: 370px !important;
    min-width: 370px !important;
    margin-left: 3px !important;
    margin-right: 3px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
    left: 0 !important;
    transform: none !important;
    row-gap: 7px !important;
  }

  #homepage .homepage-image-wrapper {
    width: 370px !important;
    max-width: 370px !important;
    min-width: 370px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 7px !important;
    left: 0 !important;
    transform: none !important;
  }
}

/* —— Market ticker (below “Choose a strategy…” headline) —— */
.market-ticker-wrap {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  align-self: stretch;
}

.market-ticker {
  overflow: hidden;
  background: #060a12;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  padding: 10px 0;
}

.market-ticker-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  width: max-content;
  /* Long linear loop = steady drift left, no easing pauses */
  animation: market-ticker-marquee 320s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

/* When ticker.js runs, it drives transform — disable CSS keyframes */
.market-ticker-track.is-js-driven {
  animation: none !important;
}

.market-ticker-group {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  flex-shrink: 0;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 0 4px;
  white-space: nowrap;
}

.ticker-ico {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.ticker-ico-xau { background: linear-gradient(145deg, #eab308, #ca8a04); }
.ticker-ico-xag {
  background: linear-gradient(145deg, #cbd5e1, #64748b);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: -0.04em;
}
.ticker-ico-wti { background: linear-gradient(145deg, #334155, #0f172a); }
.ticker-ico-tsla { background: linear-gradient(145deg, #ef4444, #b91c1c); }
.ticker-ico-nvda { background: linear-gradient(145deg, #84cc16, #4d7c0f); }
.ticker-ico-aapl { background: linear-gradient(145deg, #94a3b8, #475569); }
.ticker-ico-spx { background: linear-gradient(145deg, #6366f1, #4338ca); }
.ticker-ico-eur { background: linear-gradient(145deg, #3b82f6, #1d4ed8); }
.ticker-ico-jpy {
  background: linear-gradient(145deg, #dc2626, #991b1b);
  font-size: 14px;
  font-weight: 900;
}
.ticker-ico-sol { background: linear-gradient(145deg, #a855f7, #7c3aed); }
.ticker-ico-gbp { background: linear-gradient(145deg, #dc2626, #991b1b); }
.ticker-ico-xrp { background: linear-gradient(145deg, #38bdf8, #0284c7); }
.ticker-ico-btc { background: linear-gradient(145deg, #f97316, #ea580c); }
.ticker-ico-eth { background: linear-gradient(145deg, #627eea, #4548c4); font-size: 13px; }
.ticker-ico-bnb {
  background: linear-gradient(145deg, #f0b90b, #c99400);
  color: #0f172a;
  font-size: 12px;
}
.ticker-ico-ada { background: linear-gradient(145deg, #3468d8, #0033ad); }

.ticker-sym {
  font-size: 14px;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: 0.02em;
}

.ticker-price {
  font-size: 13px;
  font-weight: 500;
  color: #94a3b8;
}

.ticker-chg {
  font-size: 13px;
  font-weight: 600;
  min-width: 4.2em;
}

.ticker-chg.ticker-up { color: #22c55e; }
.ticker-chg.ticker-down { color: #f87171; }

.ticker-divider {
  width: 1px;
  height: 22px;
  background: rgba(148, 163, 184, 0.35);
  flex-shrink: 0;
}

@keyframes market-ticker-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    /* Exactly one duplicate strip; loops seamlessly */
    transform: translate3d(-50%, 0, 0);
  }
}

@media (max-width: 768px) {
  .market-ticker {
    padding: 8px 0;
  }
  .ticker-ico {
    width: 24px;
    height: 24px;
    font-size: 10px;
  }
  .ticker-sym { font-size: 13px; }
  .ticker-price,
  .ticker-chg { font-size: 12px; }
  .market-ticker-track {
    animation-duration: 270s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .market-ticker-track {
    animation: none;
    transform: none;
  }
}

/* Final enforced layout trim: reduce page bottom by 60px (desktop + mobile) */
#homepage .homepage-content {
  margin-bottom: -60px !important;
  padding-bottom: 0 !important;
  min-height: calc(100% - 60px) !important;
}

/* Keep exact bottom trim at 60px only */
#homepage {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Final homepage tone: apply bluish background across the whole homepage */
#homepage,
#homepage .homepage-content {
  background:
    radial-gradient(130% 120% at 50% -10%, rgba(56, 189, 248, 0.18) 0%, rgba(2, 6, 23, 0) 62%),
    linear-gradient(180deg, #0c1730 0%, #0a1327 58%, #09101f 100%) !important;
}
