/* ===================================================================
   Fotmarkets Colombia — Landing page styles
   Brand tokens extracted from fotmarkets.com
   =================================================================== */
:root {
  --indigo:        #100751;   /* logo / deep headings */
  --indigo-2:      #352F49;   /* dark buttons / body headings */
  --purple:        #7033E5;   /* primary accent */
  --purple-dark:   #5626B3;
  --purple-50:     #F6F1FD;   /* light lavender bg */
  --purple-100:    #EFE6FF;
  --ink:           #1F2124;
  --muted:         #6C6587;
  --muted-2:       #8E86A4;
  --line:          rgba(142,134,164,0.24);
  --white:         #ffffff;
  --green:         #21a366;
  --red:           #e04b4b;
  --radius:        14px;
  --radius-sm:     10px;
  --shadow:        0 10px 40px rgba(16,7,81,0.10);
  --shadow-sm:     0 4px 18px rgba(16,7,81,0.08);
  --maxw:          1160px;
  --font:          "Public Sans", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-weight: 600; font-family: var(--font);
  border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap; line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn-sm  { padding: 10px 18px; font-size: 14px; }
.btn-lg  { padding: 16px 30px; font-size: 16px; }
.btn:not(.btn-sm):not(.btn-lg) { padding: 13px 24px; font-size: 15px; }
.btn-block { display: flex; width: 100%; padding: 15px; font-size: 16px; }
.btn-primary { background: var(--indigo-2); color: #fff; }
.btn-primary:hover { background: var(--purple); box-shadow: 0 8px 24px rgba(112,51,229,.35); }
.btn-outline { background: transparent; color: var(--indigo-2); border-color: var(--line); }
.btn-outline:hover { border-color: var(--purple); color: var(--purple); }
.btn-ghost { background: transparent; color: var(--indigo-2); }
.btn-ghost:hover { color: var(--purple); }
.btn-light { background: #fff; color: var(--indigo-2); }
.btn-light:hover { box-shadow: 0 8px 24px rgba(0,0,0,.18); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; }
.main-nav { display: flex; gap: 26px; margin-left: 12px; flex: 1; }
.main-nav a { font-size: 15px; color: var(--indigo-2); font-weight: 500; }
.main-nav a:hover { color: var(--purple); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--indigo-2); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, var(--purple-100), transparent 60%),
    linear-gradient(180deg, var(--purple-50), #fff 70%);
  padding: 72px 0 84px;
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--purple-dark);
  background: var(--purple-100); padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.08; color: var(--indigo); font-weight: 800; letter-spacing: -.02em; }
.hero h1 .accent { color: var(--purple); }
.hero-sub { margin: 22px 0 30px; font-size: 18px; color: var(--muted); max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { list-style: none; display: flex; gap: 22px; flex-wrap: wrap; margin-top: 26px; }
.hero-trust li { font-size: 14px; color: var(--indigo-2); font-weight: 500; }
.hero-card { display: flex; justify-content: center; }
.hero-docs { width: 100%; max-width: 400px; }
.hero-docs-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; }
.hero-doc-link { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 12px; text-decoration: none; transition: border-color .2s ease, box-shadow .2s ease, transform .15s ease; }
.hero-doc-link:last-child { margin-bottom: 0; }
.hero-doc-link:hover { border-color: var(--purple); box-shadow: 0 6px 20px rgba(112,51,229,.15); transform: translateY(-2px); }
.hero-doc-icon { font-size: 24px; flex-shrink: 0; }
.hero-doc-body { flex: 1; }
.hero-doc-body strong { display: block; font-size: 14px; color: var(--indigo-2); line-height: 1.4; }
.hero-doc-body span { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.hero-doc-arrow { font-size: 18px; color: var(--purple); font-weight: 700; flex-shrink: 0; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--purple-50); }
.section-title { font-size: clamp(26px, 3vw, 38px); color: var(--indigo); text-align: center; font-weight: 800; letter-spacing: -.02em; }
.section-title.left { text-align: left; }
.section-lead { text-align: center; color: var(--muted); font-size: 18px; max-width: 640px; margin: 14px auto 44px; }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon { font-size: 30px; width: 58px; height: 58px; display: flex; align-items: center; justify-content: center; background: var(--purple-100); border-radius: 14px; margin-bottom: 16px; }
.feature h3 { font-size: 17px; color: var(--indigo-2); margin-bottom: 8px; }
.feature p { font-size: 14.5px; color: var(--muted); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 44px; }
.step { background: #fff; border-radius: var(--radius); padding: 30px 26px; border: 1px solid var(--line); position: relative; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--purple); color: #fff; font-weight: 800; font-size: 18px; margin-bottom: 14px; }
.step h3 { color: var(--indigo-2); font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Markets ---------- */
.market-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.market { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: border-color .2s ease, transform .2s ease; }
.market:hover { border-color: var(--purple); transform: translateY(-3px); }
.market-icon { font-size: 28px; margin-bottom: 12px; }
.market h3 { color: var(--indigo-2); font-size: 18px; margin-bottom: 6px; }
.market p { color: var(--muted); font-size: 14.5px; }

/* ---------- Platform ---------- */
.platform-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.platform-name { font-size: 26px; color: var(--purple); margin: 14px 0 12px; }
.platform-copy p { color: var(--muted); font-size: 16px; margin-bottom: 14px; }
.platform-access { font-weight: 600; color: var(--indigo-2) !important; }
.platform-buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.platform-visual { display: flex; justify-content: center; }
.glass-panel { width: 100%; max-width: 420px; background: linear-gradient(145deg, var(--indigo), var(--purple-dark)); border-radius: 20px; padding: 34px; box-shadow: var(--shadow); }
.chart-bars { display: flex; align-items: flex-end; gap: 10px; height: 180px; }
.chart-bars span { flex: 1; background: linear-gradient(180deg, #fff, rgba(255,255,255,.4)); border-radius: 6px 6px 0 0; }
.glass-panel p { color: #fff; text-align: center; margin-top: 18px; font-weight: 600; opacity: .9; }

/* ---------- Trust ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trust-item { text-align: center; background: var(--purple-50); border-radius: var(--radius); padding: 28px 18px; }
.trust-item strong { display: block; font-size: 22px; color: var(--indigo); }
.trust-item span { font-size: 14px; color: var(--muted); }
.reg-info { margin-top: 34px; background: var(--purple-50); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px 26px; }
.reg-info p { font-size: 13.5px; color: var(--muted); margin-bottom: 10px; text-align: justify; }
.reg-info p:last-child { margin-bottom: 0; }
.reg-info strong { color: var(--indigo-2); }

/* ---------- Compliance band (2nd section) ---------- */
.section-compliance { background: var(--purple-50); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 36px 0; }
.compliance-text { font-size: 14px; color: var(--muted); line-height: 1.7; max-width: 900px; margin: 0 auto 12px; text-align: justify; }
.compliance-text:last-child { margin-bottom: 0; }
.compliance-text strong { color: var(--indigo-2); }

/* ---------- Contact ---------- */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-copy p { color: var(--muted); margin-top: 12px; }
.contact-mail { color: var(--purple); font-weight: 600; }
.contact-note { font-size: 13px; }
.contact-note a { color: var(--purple); }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.contact-form label { display: block; font-size: 14px; font-weight: 600; color: var(--indigo-2); margin-bottom: 14px; }
.contact-form input { width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-family: var(--font); font-size: 15px; font-weight: 400; }
.contact-form input:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(112,51,229,.12); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row .cc { max-width: 90px; } .form-row.cc-row { grid-template-columns: 90px 1fr; }
.form-msg { font-size: 14px; margin-top: 10px; }
.form-msg.ok { color: var(--green); } .form-msg.err { color: var(--red); }

/* ---------- Contact band (Intercom CTA) ---------- */
.contact-band { padding: 84px 0; background:
    radial-gradient(900px 400px at 50% -20%, var(--purple-100), transparent 60%),
    var(--purple-50); }
.contact-card {
  max-width: 720px; margin: 0 auto; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  padding: 56px 48px; box-shadow: var(--shadow);
}
.contact-card-badge {
  width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, var(--indigo), var(--purple)); box-shadow: 0 10px 24px rgba(112,51,229,.35);
}
.contact-card h2 { font-size: clamp(26px, 3vw, 36px); color: var(--indigo); font-weight: 800; letter-spacing: -.02em; }
.contact-card > p { color: var(--muted); font-size: 18px; max-width: 520px; margin: 14px auto 30px; }
.contact-card-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.contact-card-note { font-size: 13px; color: var(--muted-2); margin-top: 24px; }
.contact-card-note a { color: var(--purple); }
@media (max-width: 520px) {
  .contact-card { padding: 40px 24px; }
  .contact-card-actions .btn { width: 100%; }
}

/* ---------- Final CTA ---------- */
.final-cta { background: linear-gradient(135deg, var(--indigo), var(--purple-dark)); color: #fff; text-align: center; padding: 70px 0; }
.final-cta h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; }
.final-cta p { opacity: .9; margin: 12px 0 26px; font-size: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--indigo); color: #cfc9e6; padding: 56px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand p { margin-top: 14px; font-size: 14px; max-width: 280px; color: #a9a1cc; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 14px; margin-bottom: 10px; color: #a9a1cc; }
.footer-col a:hover { color: #fff; }
.footer-legal { padding-top: 24px; }
.footer-legal p { font-size: 12.5px; color: #8f88b5; margin-bottom: 10px; }
.footer-legal .copyright { margin-top: 16px; color: #a9a1cc; }
.footer-bottom-links { margin-top: 18px; font-size: 13px; }
.footer-bottom-links a { color: #cfc9e6; text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom-links a:hover { color: #fff; }
.footer-bottom-links .sep { margin: 0 12px; color: #6f679a; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .main-nav, .header-cta .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
  .main-nav.open { display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; background: #fff; padding: 18px 24px; border-bottom: 1px solid var(--line); gap: 16px; }
  .hero-inner, .platform-inner, .contact-inner { grid-template-columns: 1fr; }
  .hero-card { order: -1; }
  .feature-grid, .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .steps, .market-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .feature-grid, .trust-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}

/* ---------- Legal page ---------- */
.legal-hero { background: linear-gradient(180deg, var(--purple-50), #fff); padding: 54px 0 40px; border-bottom: 1px solid var(--line); }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--purple); }
.breadcrumb span { margin: 0 4px; }
.legal-hero h1 { font-size: clamp(30px, 3.6vw, 44px); color: var(--indigo); font-weight: 800; letter-spacing: -.02em; }
.legal-hero p { margin-top: 14px; color: var(--muted); font-size: 18px; max-width: 680px; }
.doc-group-label { font-weight: 700; color: var(--indigo-2); margin: 10px 0 14px; font-size: 15px; }
.doc-list { list-style: none; display: grid; gap: 12px; }
.doc-list a { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 20px; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.doc-list a:hover { border-color: var(--purple); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.doc-icon { font-size: 20px; }
.doc-name { flex: 1; font-weight: 600; color: var(--indigo-2); font-size: 15.5px; }
.doc-cta { font-size: 13px; font-weight: 700; color: var(--purple); white-space: nowrap; }
.doc-note { margin-top: 22px; font-size: 13.5px; color: var(--muted); background: var(--purple-50); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 20px; }
.doc-note code { background: rgba(0,0,0,.05); padding: 1px 6px; border-radius: 4px; font-size: 12.5px; }

/* ---------- Redirect interstitial modal ---------- */
.redirect-modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(16,7,81,.55); backdrop-filter: blur(3px); }
.redirect-modal.is-open { display: flex; animation: rm-fade .18s ease; }
@keyframes rm-fade { from { opacity: 0; } to { opacity: 1; } }
.redirect-modal__dialog { position: relative; width: 100%; max-width: 520px; background: #fff; border-radius: 18px; padding: 40px 40px 34px; box-shadow: 0 24px 70px rgba(16,7,81,.35); text-align: center; animation: rm-pop .2s ease; }
@keyframes rm-pop { from { transform: translateY(12px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.redirect-modal__close { position: absolute; top: 14px; right: 18px; background: none; border: 0; font-size: 26px; line-height: 1; color: var(--muted-2); cursor: pointer; }
.redirect-modal__close:hover { color: var(--indigo); }
.redirect-modal__logo { display: block; margin: 6px auto 22px; }
.redirect-modal__text { color: var(--indigo-2); font-size: 16px; line-height: 1.6; margin-bottom: 28px; }
.redirect-modal__text strong { color: var(--indigo); }
.redirect-modal__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 480px) {
  .redirect-modal__dialog { padding: 32px 22px 26px; }
  .redirect-modal__actions .btn { width: 100%; }
}

/* ---------- Regulation cards ---------- */
.reg-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 900px; margin: 0 auto; }
.reg-card { display: flex; gap: 18px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px 22px; }
.reg-card-flag { font-size: 38px; flex-shrink: 0; line-height: 1; }
.reg-card-body { flex: 1; }
.reg-card-code { display: inline-block; font-weight: 800; font-size: 18px; color: var(--indigo); }
.reg-card-country { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.reg-card-body p { font-size: 13px; color: var(--muted); line-height: 1.65; text-align: justify; }
.reg-card-body strong { color: var(--indigo-2); }
@media (max-width: 680px) { .reg-cards { grid-template-columns: 1fr; } }
