/* ============================================================================
   FX Help — Landing page styles
   Brand palette is locked; do not retint without product approval.
   ============================================================================ */

:root {
  --bg:           #0B0F14;
  --surface:      #11171F;
  --surface-2:    #161D27;
  --border:       #1F2733;
  --primary:      #14F195;
  --primary-soft: rgba(20, 241, 149, 0.12);
  --primary-glow: rgba(20, 241, 149, 0.32);
  --text:         #FFFFFF;
  --muted:        #8A94A6;
  --tertiary:     #9B59B6;
  /* Brand gradient — neon green only, no blue tint. Keeps the "trades follow"
     headline sharp and on-brand instead of fading into cyan. */
  --gradient:     linear-gradient(135deg, #14F195 0%, #7CFFC4 100%);
  --shadow-card:  0 10px 30px rgba(0, 0, 0, 0.35);
  --radius:       16px;
  --max:          1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: opacity 0.18s ease; }
a:hover { opacity: 0.82; }

img { display: block; max-width: 100%; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.accent { color: var(--primary); }

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  padding: 6px 12px;
  border: 1px solid rgba(20, 241, 149, 0.25);
  border-radius: 999px;
  background: var(--primary-soft);
}
.eyebrow.centered { display: block; text-align: center; width: fit-content; margin: 0 auto; }

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin: 18px 0 12px;
}

.section-sub {
  color: var(--muted);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
  font-size: 16px;
}

.grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================================================
   Buttons
   ============================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); opacity: 1; }
.btn-primary {
  background: var(--primary);
  color: #062818;
  box-shadow: 0 6px 24px var(--primary-glow);
}
.btn-primary:hover { box-shadow: 0 8px 30px rgba(20, 241, 149, 0.5); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* ============================================================================
   NAV
   ============================================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(11, 15, 20, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.nav-logo { width: 32px; height: 32px; border-radius: 8px; }
.nav-name { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); }
/* Mobile-only CTA that appears INSIDE the collapsed nav list. The desktop
   .nav-cta is a separate element outside the list. */
.nav-links-cta { display: none; }
.nav-cta { padding: 10px 16px; font-size: 14px; }

/* ── Hamburger button (mobile only) ─────────────────────────────────── */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  transform-origin: center;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================================
   HERO
   ============================================================================ */
.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(20, 241, 149, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 241, 149, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 800px 600px at 50% 30%, #000 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 800px 600px at 50% 30%, #000 30%, transparent 70%);
}
.hero-bg-glow {
  position: absolute;
  top: -160px;
  right: -200px;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(20, 241, 149, 0.18) 0%, transparent 60%);
  filter: blur(20px);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(36px, 5.6vw, 64px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 22px 0 22px;
}
.lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.centered-row { justify-content: center; }
.hero-meta {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.01em;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.phone-wrap {
  /* The hero image is a phone-only PNG with a transparent background, so
     the wrapper is a positioning container — no frame, no padding. The
     glow effect lives in .phone-halo behind it. */
  position: relative;
  width: min(380px, 90%);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: perspective(1000px) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.5s ease;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.5));
}
.phone-wrap:hover { transform: perspective(1000px) rotateY(-2deg) rotateX(0deg); }
.phone-img {
  width: 100%;
  height: auto;
  display: block;
}
.phone-halo {
  /* Toned down so it doesn't tint a cropped, transparent-background phone
     PNG (the cropped art already carries its own subtle green glow). */
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(20, 241, 149, 0.18) 0%, transparent 70%);
  filter: blur(50px);
  z-index: -1;
}

/* ============================================================================
   FEATURES
   ============================================================================ */
.features { padding: 88px 0; border-top: 1px solid var(--border); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 12px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(20, 241, 149, 0.4);
}
.feature-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.feature-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ============================================================================
   SCREENSHOTS STRIP
   ============================================================================ */
.strip { padding: 24px 0 88px; }
.strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.strip-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px 14px;
  text-align: center;
  transition: transform 0.2s ease;
}
.strip-item:hover { transform: translateY(-3px); }
.strip-item img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 14px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}
.strip-item figcaption {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

/* ============================================================================
   HOW IT WORKS
   ============================================================================ */
.how { padding: 88px 0; border-top: 1px solid var(--border); }
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 12px;
}
.steps li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.step-num {
  display: inline-block;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--primary-soft);
  margin-bottom: 18px;
}
.steps h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}
.steps p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.steps a { color: var(--primary); }

/* ============================================================================
   TRUST
   ============================================================================ */
.trust { padding: 88px 0; border-top: 1px solid var(--border); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 12px;
}
.trust-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.trust-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.trust-card h3::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: middle;
  box-shadow: 0 0 10px var(--primary-glow);
}
.trust-card p { color: var(--muted); font-size: 15px; }

/* ============================================================================
   FINAL CTA
   ============================================================================ */
.final-cta {
  padding: 96px 0;
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 600px 300px at 50% 50%, rgba(20, 241, 149, 0.08) 0%, transparent 60%);
}
.final-inner {
  position: relative;
  text-align: center;
}
.final-cta h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.final-cta p {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 28px;
}

/* ============================================================================
   FOOTER
   ============================================================================ */
.footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 56px 0 32px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 36px;
}
.footer-brand { display: flex; gap: 12px; align-items: center; }
.footer-logo { width: 42px; height: 42px; border-radius: 10px; }
.footer-name { font-size: 18px; font-weight: 700; }
.footer-sub { color: var(--muted); font-size: 13px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-links a {
  color: var(--muted);
  font-size: 14px;
}
.footer-links a:hover { color: var(--text); }

.disclaimer {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
  margin-bottom: 28px;
}
.disclaimer p {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
  margin-bottom: 10px;
}
.disclaimer p:last-child { margin-bottom: 0; }
.disclaimer strong { color: var(--text); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}
.footer-bottom a { color: var(--primary); }

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 920px) {
  /* Collapse nav links into a slide-down menu triggered by the hamburger. */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    background: rgba(11, 15, 20, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 24px;
    /* Hidden until the toggle adds .is-open */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease, padding 0.25s ease;
    padding-top: 0;
    padding-bottom: 0;
  }
  .nav-links.is-open {
    max-height: 320px;
    padding-top: 8px;
    padding-bottom: 24px;
  }
  .nav-links a {
    padding: 14px 4px;
    font-size: 16px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links-cta {
    display: block;
    margin-top: 10px;
    text-align: center;
    background: var(--primary);
    color: #062818 !important;
    font-weight: 700;
    border-radius: 10px;
    padding: 14px 16px !important;
    border-bottom: none !important;
  }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .nav { position: sticky; }

  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { order: 2; }
  .feature-grid { grid-template-columns: 1fr; }
  .strip-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hero { padding: 64px 0 56px; }
  .hero-copy h1 { font-size: 38px; }
  .lede { font-size: 16px; }
  .features, .how, .trust, .final-cta { padding: 64px 0; }
  .steps { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .phone-wrap { transform: none; }
}
