/* ============================================
   SummitFX product pages — shared stylesheet
   Used by: /spot-exchange, /forward-contracts,
            /market-orders, /rate-alerts,
            /international-payments
   ============================================ */

/* ── RESET & BASE ── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Inter", sans-serif;
  background: #0d213c;
  color: #ffffff;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── TOKENS ── */
:root {
  --navy: #0d213c;
  --navy-mid: #132a4a;
  --navy-light: #1a3558;
  --azure: #00b5e0;
  --azure-dim: rgba(0, 181, 224, 0.15);
  --azure-border: rgba(0, 181, 224, 0.25);
  --green: #25d366;
  --yellow: #ffed00;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.55);
  --border: rgba(0, 181, 224, 0.12);
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: 120px;
  background: rgba(13, 33, 60, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition:
    height 0.35s ease,
    padding 0.35s ease;
}
nav.scrolled {
  height: 80px;
}
.logo-wrap {
  display: block;
  height: 69px;
  overflow: hidden;
  margin-left: -128px;
  flex-shrink: 0;
  transition:
    height 0.35s ease,
    margin-left 0.35s ease;
}
.logo-svg {
  height: 229px;
  width: auto;
  margin-top: -91px;
  display: block;
  transition:
    height 0.35s ease,
    margin-top 0.35s ease;
}
nav.scrolled .logo-wrap {
  height: 51px;
}
nav.scrolled .logo-svg {
  height: 166px;
  margin-top: -66px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin-right: -0.5rem;
}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: #fff;
}
.nav-links a.active {
  color: var(--azure);
}
.btn-nav {
  background: var(--green);
  color: #0d213c;
  border: none;
  padding: 0.55rem 1.4rem;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.2s;
  letter-spacing: 0.02em;
}
.btn-nav:hover {
  opacity: 0.85;
}
.nav-links a.btn-nav {
  color: #0d213c;
  font-weight: 700;
}
.nav-links a.btn-nav:hover {
  color: #0d213c;
}

/* ── TICKER ── */
.ticker-wrap {
  background: var(--navy-mid);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 0.65rem 0;
}
.ticker {
  display: flex;
  animation: ticker-scroll 45s linear infinite;
  white-space: nowrap;
}
.ticker-item {
  display: inline-flex;
  gap: 0.5rem;
  padding: 0 2rem;
  border-right: 1px solid var(--border);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
} /* ticker-clickable-v1 */
a.ticker-item:hover {
  background: rgba(0, 181, 224, 0.08);
}
a.ticker-item:hover .t-pair {
  text-decoration: underline;
}
a.ticker-item:focus-visible {
  outline: 2px solid var(--azure);
  outline-offset: -2px;
}

.ticker-item .t-pair {
  color: var(--azure);
  font-weight: 700;
}
.ticker-item .t-val {
  color: #fff;
}
.ticker-item .t-up {
  color: #25d366;
}
.ticker-item .t-dn {
  color: #ff6b6b;
}
@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ── SHARED SECTION ── */
.section {
  padding: 5rem 3rem;
}
.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--azure);
  margin-bottom: 1rem;
}
h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 1.5rem;
}
h1 .accent {
  color: var(--azure);
}
h1 .green {
  color: var(--green);
}
h1 .yellow {
  color: var(--azure);
}
h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 1rem;
}
h2 .accent {
  color: var(--azure);
}
h2 .yellow {
  color: var(--azure);
}
h2 .green {
  color: var(--green);
}
.section-intro {
  font-size: 1rem;
  color: var(--muted);
  max-width: 620px;
  line-height: 1.8;
  margin-bottom: 3rem;
}

/* ── BUTTONS ── */
.btn-wa {
  background: var(--green);
  color: #0d213c;
  padding: 0.9rem 2rem;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition:
    opacity 0.2s,
    transform 0.15s;
}
.btn-wa:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.btn-ghost {
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.9rem 2rem;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 400;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.2s;
}
.btn-ghost:hover {
  border-color: var(--azure);
  color: var(--azure);
}

/* ── HERO ── */
.hero {
  background: var(--navy);
  padding: 7rem 3rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto 2.5rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-mtn {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  max-width: 100%;
  height: 600px;
  opacity: 0.08;
  z-index: 0;
  pointer-events: none;
}

/* ── FEATURES GRID ── */
.features-section {
  background: var(--navy-mid);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.features-section .section-intro {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.features-section .section-label,
.features-section h2 {
  text-align: center;
  display: block;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.feat-card {
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem 1.75rem;
  transition:
    border-color 0.3s,
    transform 0.3s;
}
.feat-card:hover {
  border-color: var(--azure-border);
  transform: translateY(-2px);
}
.feat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--azure-dim);
  border: 1px solid var(--azure-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.feat-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}
.feat-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ── HOW IT WORKS (4 steps) ── */
.how-section {
  background: var(--navy);
}
.how-section .section-label,
.how-section h2,
.how-section .section-intro {
  text-align: center;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.steps-grid::before {
  content: "";
  position: absolute;
  top: 2rem;
  left: 2.5rem;
  right: 2.5rem;
  height: 1px;
  background: var(--border);
  z-index: 0;
}
.step-card {
  position: relative;
  z-index: 1;
  text-align: center;
}
.step-num {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--navy);
  border: 1px solid var(--azure-border);
  color: var(--azure);
  font-size: 1.35rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.step-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}
.step-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ── USE CASES (3D carousel) ── */
.usecases-section {
  background: var(--navy-mid);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.usecases-section .section-label,
.usecases-section h2,
.usecases-section .section-intro {
  text-align: center;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.uc-carousel-wrap {
  position: relative;
  perspective: 1400px;
  margin-top: 3rem;
}
.uc-stage {
  position: relative;
  height: 340px;
  display: flex;
  align-items: center;
}
.uc-card {
  position: absolute;
  width: 420px;
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  transition:
    transform 0.55s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.55s ease;
  pointer-events: none;
  user-select: none;
  left: 50%;
  top: 50%;
  overflow: hidden;
}
.uc-card::after {
  content: "";
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--azure-dim);
  pointer-events: none;
}
.uc-card.uc-active {
  transform: translate(-50%, -50%) translateX(0) scale(1);
  opacity: 1;
  z-index: 10;
  border-color: var(--azure-border);
  box-shadow:
    0 0 40px rgba(0, 181, 224, 0.12),
    0 20px 60px rgba(0, 0, 0, 0.4);
  pointer-events: auto;
}
.uc-card.uc-next {
  transform: translate(-50%, -50%) translateX(320px) scale(0.86);
  opacity: 0.35;
  z-index: 5;
}
.uc-card.uc-next2 {
  transform: translate(-50%, -50%) translateX(470px) scale(0.76);
  opacity: 0.18;
  z-index: 4;
}
.uc-card.uc-prev {
  transform: translate(-50%, -50%) translateX(-320px) scale(0.86);
  opacity: 0.22;
  z-index: 5;
}
.uc-card.uc-hidden {
  transform: translate(-50%, -50%) translateX(550px) scale(0.7);
  opacity: 0;
  z-index: 1;
}
.uc-card .usecase-tag {
  position: relative;
  z-index: 2;
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--azure);
  background: var(--azure-dim);
  border: 1px solid var(--azure-border);
  padding: 0.28rem 0.75rem;
  border-radius: 100px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.uc-card .usecase-title {
  position: relative;
  z-index: 2;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.85rem;
}
.uc-card .usecase-desc {
  position: relative;
  z-index: 2;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.75;
}
.uc-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}
.uc-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--azure-border);
  background: var(--azure-dim);
  color: var(--azure);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.15s;
  flex-shrink: 0;
}
.uc-btn:hover {
  background: rgba(0, 181, 224, 0.25);
  border-color: var(--azure);
  transform: scale(1.08);
}
.uc-btn svg {
  pointer-events: none;
}
.uc-dots {
  display: flex;
  gap: 0.5rem;
}
.uc-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition:
    background 0.3s,
    transform 0.3s;
  cursor: pointer;
}
.uc-dot.active {
  background: var(--azure);
  transform: scale(1.4);
}

/* ── TIER GRID (pricing-card style, 3 columns side-by-side) ── */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.tier-card {
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem 1.75rem;
  position: relative;
  transition:
    border-color 0.3s,
    transform 0.3s;
}
.tier-card:hover {
  border-color: var(--azure-border);
  transform: translateY(-3px);
}
.tier-card.featured {
  border-color: var(--azure-border);
  background: linear-gradient(180deg, var(--navy) 0%, rgba(0, 181, 224, 0.04) 100%);
  box-shadow: 0 0 40px rgba(0, 181, 224, 0.08);
}
.tier-card.featured::before {
  content: "Most active referrers";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--azure);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tier-badge {
  font-size: 2.25rem;
  line-height: 1;
  margin-bottom: 0.75rem;
}
.tier-name {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--azure);
  margin-bottom: 0.5rem;
}
.tier-referrals {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.tier-value {
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.tier-value-sub {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
}
.tier-list {
  list-style: none;
  margin: 0 0 0.5rem;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--border);
}
.tier-list li {
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  padding: 0.55rem 0 0.55rem 1.5rem;
  position: relative;
}
.tier-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}
@media (max-width: 900px) {
  .tier-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
  }
  .tier-card.featured::before {
    top: -12px;
  }
}

/* ── FAQ ACCORDION ── */
.faq-section {
  background: var(--navy);
}
.faq-section .section-label,
.faq-section h2 {
  text-align: center;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.faq-wrap {
  max-width: 720px;
  margin: 3rem auto 0;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child {
  border-top: 1px solid var(--border);
}
.faq-q {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  padding: 1.25rem 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: color 0.2s;
  user-select: none;
}
.faq-q:hover {
  color: var(--azure);
}
.faq-q::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-right: 4px;
  margin-top: -4px;
}
.faq-item.open .faq-q::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}
.faq-a {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.75;
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.35s ease,
    padding 0.35s ease;
  padding: 0 0;
}
.faq-item.open .faq-a {
  max-height: 500px;
  padding: 0 0 1.35rem 0;
}

/* ── STATS ROW (for highlights above features) ── */
.stats-row {
  background: var(--navy-mid);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0;
}
.stat-cell {
  padding: 2.5rem 2rem;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat-cell:last-child {
  border-right: none;
}
.stat-cell .num {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}
.stat-cell .lbl {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ── CTA ── */
.cta-section {
  background: var(--azure);
  padding: 5rem 3rem;
  color: #0d213c;
}
.cta-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}
.cta-inner h2 {
  color: #0d213c;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.cta-inner p {
  font-size: 0.95rem;
  color: rgba(13, 33, 60, 0.75);
  max-width: 480px;
  line-height: 1.7;
}
.cta-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn-cta-wa {
  background: var(--green);
  color: #0d213c;
  padding: 0.9rem 1.8rem;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition:
    opacity 0.2s,
    transform 0.15s;
}
.btn-cta-wa:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.btn-cta-wa.signup {
  background: var(--green);
  color: #0d213c;
}
.btn-cta-wa.signup:hover {
  opacity: 0.9;
}

/* ── FOOTER styles live in /assets/css/footer.css ── */

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  nav {
    padding: 1rem 1.5rem;
  }
  nav.scrolled {
    padding: 0.5rem 1.5rem;
  }
  .nav-links {
    gap: 1rem;
  }
  .section {
    padding: 4rem 1.5rem;
  }
  .hero {
    padding: 6rem 1.5rem 4rem;
  }
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-grid::before {
    display: none;
  }
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-cell {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .stat-cell:nth-child(2n) {
    border-right: none;
  }
  .cta-inner {
    flex-direction: column;
    text-align: center;
  }
  .cta-btns {
    justify-content: center;
  }
  .nav-links a:not(.btn-nav) {
    display: none;
  }
  .uc-card {
    width: 320px;
    padding: 1.5rem;
  }
  .uc-card.uc-next {
    transform: translate(-50%, -50%) translateX(260px) scale(0.86);
  }
  .uc-card.uc-prev {
    transform: translate(-50%, -50%) translateX(-260px) scale(0.86);
  }
  .uc-card.uc-next2 {
    transform: translate(-50%, -50%) translateX(390px) scale(0.76);
  }
}
@media (max-width: 560px) {
  .cta-section {
    padding: 4rem 1.5rem;
  }
}
