/* ==========================================================================
   Zen-XE — shared stylesheet
   Matches the live site: royal blue (#014FEE), off-white bands (#F6F8FF),
   Poppins for headings/UI, Roboto for body copy.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --blue: #014FEE;
  --blue-dark: #0040C4;
  --band: #F6F8FF;          /* light section background */
  --card: #F0F7FF;          /* step / feature card fill */
  --ink: #333333;           /* headings */
  --ink-strong: #111111;
  --text: #777777;          /* body copy */
  --line: #DDDDDD;
  --white: #FFFFFF;
  --green: #13A26B;
  --red: #E0303F;
  --container: 1140px;
  --radius-lg: 16px;
  --ff-head: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --ff-body: 'Roboto', 'Segoe UI', Arial, sans-serif;
  --header-h: 96px;
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--ff-head); color: var(--ink); margin: 0 0 .5em; line-height: 1.2; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #8FB2FF; outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 3. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--ff-head); font-weight: 500; border: 0; border-radius: 0;
  transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn svg { width: 14px; height: 14px; flex: none; }
.btn-white { background: var(--white); color: var(--blue); }
.btn-white:hover { background: #E8EFFF; }
.btn-blue { background: var(--blue); color: var(--white); padding: 10px 24px; font-size: 15px; }
.btn-blue:hover { background: var(--blue-dark); }
.btn-hero { font-family: var(--ff-body); font-weight: 400; font-size: 17px; padding: 15px 50px; }

/* ---------- 4. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--blue);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 30, 110, .25); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}
.logo img { width: 140px; }
.main-nav { display: flex; align-items: center; gap: 34px; }
.nav-list { display: flex; align-items: stretch; gap: 6px; height: var(--header-h); }
.nav-list li { display: flex; }
.nav-list a {
  position: relative; display: flex; align-items: center; padding: 0 12px;
  font-family: var(--ff-head); font-size: 13px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase; color: var(--white);
}
.nav-list a::after {
  content: ""; position: absolute; left: 6px; right: 6px; bottom: 26px; height: 3px;
  background: var(--white); transform: scaleX(0); transition: transform .25s ease;
}
.nav-list a:hover::after, .nav-list a.active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.btn-login {
  font-family: var(--ff-head); font-size: 13px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: var(--white); padding: 16px 20px;
  border: 1px solid rgba(255,255,255,.6);
}
.btn-login:hover { background: rgba(255,255,255,.12); }
.btn-register {
  font-family: var(--ff-head); font-size: 13px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; background: var(--white); color: var(--blue); padding: 17px 30px;
}
.btn-register:hover { background: #E8EFFF; }

.nav-toggle {
  display: none; width: 44px; height: 44px; background: transparent; border: 1px solid rgba(255,255,255,.5);
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--white); transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 5. Inner-page title banner ---------- */
.page-banner {
  background: var(--blue); color: var(--white); text-align: center;
  padding: 90px 20px 110px;
}
.page-banner h1 { color: var(--white); font-size: 56px; font-weight: 600; margin-bottom: 26px; }
.breadcrumb { font-family: var(--ff-body); font-size: 17px; display: flex; justify-content: center; gap: 14px; }
.breadcrumb a { text-decoration: underline; text-decoration-color: #E0303F; text-underline-offset: 4px; }

/* ---------- 6. Shared section scaffolding ---------- */
.section { padding: 90px 0; }
.section-band { background: var(--band); }
.section-title { font-size: 36px; font-weight: 700; text-align: center; color: var(--ink); }
.section-sub { font-family: var(--ff-head); font-size: 16px; color: var(--text); text-align: center; max-width: 1060px; margin: 0 auto 50px; }
.eyebrow { font-family: var(--ff-body); font-size: 17px; color: var(--blue); text-align: center; margin-bottom: 10px; }

/* ---------- 7. Home hero ---------- */
.hero { background: var(--blue); color: var(--white); padding: 60px 0 100px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 70px; align-items: center; }
.hero-badge { display: flex; align-items: center; gap: 12px; font-family: var(--ff-head); font-weight: 600; font-size: 20px; margin-bottom: 26px; }
.hero-badge img { width: 32px; height: 32px; border-radius: 50%; }
.hero h1 { color: var(--white); font-size: 46px; font-weight: 500; line-height: 1.12; margin-bottom: 36px; }
.hero p { font-size: 17px; line-height: 1.5; max-width: 650px; margin-bottom: 44px; }
.hero p strong { font-weight: 700; }
.tv-card { background: var(--white); border-radius: 10px; padding: 10px; box-shadow: 0 30px 60px rgba(0, 20, 90, .25); }
.tv-card .tradingview-widget-container { min-height: 540px; }
.tv-card .tradingview-widget-copyright { font-size: 13px; text-align: center; padding-top: 6px; }
.tv-card .tradingview-widget-copyright a { color: #2962FF; }

/* ---------- 8. Stats band ---------- */
.stats { background: var(--band); padding: 80px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; gap: 30px; }
.stat-num { font-family: var(--ff-head); font-weight: 400; font-size: 44px; color: var(--blue); line-height: 1.1; margin-bottom: 14px; }
.stat-label { font-family: var(--ff-head); font-weight: 500; font-size: 18px; color: var(--blue); display: inline-flex; align-items: center; gap: 18px; }
.stars { color: #F5A623; font-size: 13px; letter-spacing: 2px; }

/* ---------- 9. Steps ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; align-items: start; }
.step-card {
  background: var(--card); border: 1px solid var(--blue); text-align: center;
  padding: 30px 40px 32px; transition: transform .25s ease, box-shadow .25s ease;
}
.step-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(1, 79, 238, .12); }
.step-card img { height: 54px; width: auto; margin: 0 auto 18px; }
.step-card h3 { font-size: 18px; font-weight: 700; color: var(--ink-strong); margin-bottom: 18px; }
.step-card p { font-size: 15px; margin: 0; }

/* ---------- 10. Feature cards ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 20px; margin-top: 50px; }
.feature-card {
  display: flex; gap: 18px; align-items: flex-start;
  border: 1px solid var(--blue); background: #F2F8FF; padding: 40px 30px 36px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(1, 79, 238, .12); }
.feature-card img { width: 72px; flex: none; }
.feature-card h3 { font-size: 20px; font-weight: 700; margin: 4px 0 8px; }
.feature-card p { font-size: 16px; margin: 0; }

/* ---------- 11. Split rows (assets / support) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split + .split { margin-top: 70px; }
.split-text { text-align: center; }
.split-text h2 { font-size: 36px; font-weight: 700; }
.split-text p { font-family: var(--ff-head); font-size: 17px; color: var(--text); }
.asset-widget { max-width: 400px; }
.asset-widget .tradingview-widget-container { min-height: 520px; border: 1px solid #E0E3EB; }
.chat-img { width: 100%; max-width: 380px; margin: 0 auto; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .08)); }

/* ---------- 12. App download band ---------- */
.app-band { background: var(--blue); color: var(--white); padding-top: 70px; overflow: hidden; }
.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.app-copy { padding-bottom: 60px; }
.app-copy h2 { color: var(--white); font-size: 36px; font-weight: 700; }
.app-copy p { font-family: var(--ff-head); font-size: 17px; line-height: 1.55; margin-bottom: 40px; }
.store-badges { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.store-badges a { transition: transform .2s ease; }
.store-badges a:hover { transform: translateY(-3px); }
.store-badges .gp { width: 146px; }
.store-badges .as { width: 340px; max-width: 100%; }
.app-img { justify-self: center; width: 100%; max-width: 540px; }

/* ---------- 13. FAQ accordion ---------- */
.faq-wrap { max-width: 1080px; margin: 0 auto; }
.faq-group-title { font-family: var(--ff-head); font-size: 22px; font-weight: 600; color: var(--blue); margin: 60px 0 6px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: none; border: 0; padding: 22px 10px; text-align: left;
  font-family: var(--ff-head); font-size: 17px; font-weight: 600; color: var(--ink);
}
.faq-q:hover { color: var(--blue); }
.faq-q svg { width: 16px; height: 16px; flex: none; transition: transform .3s ease; }
.faq-item.open .faq-q svg { transform: rotate(90deg); }
.faq-a { height: 0; overflow: hidden; transition: height .35s ease; border-top: 1px solid transparent; }
.faq-item.open .faq-a { border-top-color: var(--line); }
.faq-a-inner { padding: 18px 10px 20px; font-size: 15px; color: #666; }
.faq-a-inner p { margin: 0 0 14px; }
.faq-a-inner p:last-child { margin: 0; }
.faq-a-inner strong { color: #555; font-weight: 500; }

/* ---------- 14. Join CTA with dotted map ---------- */
.join { background: var(--band); padding: 80px 0; }
.join-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.join-copy { text-align: center; }
.join-copy h2 { font-size: 36px; font-weight: 700; color: #444; line-height: 1.05; margin-bottom: 18px; }
.join-map { width: 100%; max-width: 470px; justify-self: center; }

/* ---------- 15. About ---------- */
.about-intro .split-text { text-align: left; }
.about-eyebrow { font-family: var(--ff-body); font-weight: 500; font-size: 15px; color: var(--blue); text-transform: uppercase; margin: 0 0 6px 6px; }
.about-brand { font-family: var(--ff-head); font-size: 68px; font-weight: 500; color: var(--blue); line-height: 1.1; margin-bottom: 18px; }
.about-intro h2 { font-size: 30px; font-weight: 700; color: #000; text-align: left; }
.about-intro p { font-family: var(--ff-head); font-size: 16px; color: #666; }
.about-img { width: 100%; max-width: 400px; justify-self: center; }
.mvv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.values-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.value { border-top: 3px solid var(--blue); padding-top: 16px; }
.value h3 { font-size: 17px; font-weight: 600; }
.value p { font-size: 15px; margin: 0; }

/* ---------- 16. Account types ---------- */
.accounts { background: var(--band); padding: 90px 0 110px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan {
  position: relative; background: var(--blue); color: var(--white);
  border-radius: var(--radius-lg); padding: 56px 24px 56px;
  display: flex; flex-direction: column;
  box-shadow: 0 10px 24px rgba(1, 79, 238, .18);
  transition: transform .25s ease, box-shadow .25s ease;
}
.plan:hover { transform: translateY(-6px); box-shadow: 0 22px 40px rgba(1, 79, 238, .28); }
.plan h2 { color: var(--white); font-size: 34px; font-weight: 500; margin-bottom: 14px; }
.plan-price { font-family: 'Roboto Condensed', var(--ff-body); font-size: 44px; font-weight: 700; line-height: 1; }
.plan-feat-label { font-size: 13px; margin: 26px 0 0; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.8); }
.plan ul { margin: 22px 0 40px; flex: 1; }
.plan li { display: flex; gap: 8px; font-size: 16px; line-height: 1.55; margin-bottom: 14px; }
.plan li svg { width: 14px; height: 14px; flex: none; margin-top: 5px; }
.plan .btn-white { width: 100%; padding: 13px; font-family: var(--ff-body); font-weight: 500; font-size: 15px; color: #000; }
.plan .btn-white:hover { color: var(--blue); }
.plan--popular { background: linear-gradient(160deg, #0B5BFF 0%, #0036B8 100%); outline: 3px solid #FFD66B; outline-offset: -3px; }
.plan-ribbon {
  position: absolute; top: 18px; right: 18px; background: #FFD66B; color: #3A2A00;
  font-family: var(--ff-head); font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 30px;
}
.plan-note { font-size: 13px; margin-top: 24px; text-align: center; }

.compare-wrap { margin-top: 80px; }
.table-scroll { overflow-x: auto; border: 1px solid #D9E3FB; background: var(--white); }
.compare { width: 100%; min-width: 820px; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 16px 18px; text-align: center; border-bottom: 1px solid #E8EEFB; }
.compare thead th { background: var(--blue); color: var(--white); font-family: var(--ff-head); font-weight: 500; }
.compare thead th.pop { background: #0036B8; }
.compare tbody th { text-align: left; font-family: var(--ff-head); font-weight: 500; color: var(--ink); background: #FAFBFF; }
.compare td.yes { color: var(--blue); font-weight: 700; }
.compare td.pop { background: #F3F7FF; }

/* ---------- 17. Contact ---------- */
.contact-box {
  background: var(--blue); color: var(--white); border-radius: var(--radius-lg);
  padding: 60px 40px 70px; max-width: 1140px; margin: 0 auto;
}
.contact-box > h2 { color: var(--white); text-align: center; font-size: 34px; font-weight: 500; margin-bottom: 90px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 0 20px; }
.contact-copy h3 { color: var(--white); font-size: 32px; font-weight: 500; }
.contact-copy p { font-family: var(--ff-head); font-size: 16px; line-height: 1.5; }
.contact-details { margin-top: 30px; display: grid; gap: 12px; font-family: var(--ff-head); font-size: 15px; }
.contact-details li { display: flex; gap: 12px; align-items: center; }
.contact-details svg { width: 20px; height: 20px; flex: none; }
.form-card { background: var(--white); border-radius: var(--radius-lg); padding: 40px 40px 50px; color: #333; }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--ff-body); font-size: 16px; line-height: 1; color: #333; }
.field input, .field textarea {
  width: 100%; border: 1px solid #666; border-radius: 3px; padding: 10px 12px;
  font: 16px var(--ff-body); color: #333; background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(1,79,238,.15); }
.field.has-error input, .field.has-error textarea { border-color: #C72C48; }
.field-error { display: none; color: #C72C48; font-size: 13px; margin-top: 4px; }
.field.has-error .field-error { display: block; }
.btn-submit { background: #fff; border: 1px solid #C72C48; color: #C72C48; padding: 10px 16px; font: 16px var(--ff-body); border-radius: 3px; transition: background .2s, color .2s; }
.btn-submit:hover { background: #C72C48; color: #fff; }
.form-status { margin-top: 16px; font-size: 15px; display: none; }
.form-status.ok { display: block; color: var(--green); }
.map-frame { margin: 80px 0 0; border-radius: var(--radius-lg); overflow: hidden; background: #E5E3DF; height: 300px; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- 18. Legal pages ---------- */
.legal { padding: 80px 0 100px; }
.legal-body { max-width: 900px; margin: 0 auto; }
.legal-body .updated { font-size: 14px; color: #999; margin-bottom: 30px; }
.legal-body h2 { font-size: 24px; font-weight: 600; margin: 40px 0 14px; color: var(--ink); }
.legal-body h3 { font-size: 18px; font-weight: 600; margin: 24px 0 10px; }
.legal-body p, .legal-body li { font-size: 16px; color: #666; }
.legal-body ul { list-style: disc; padding-left: 22px; margin-bottom: 1em; }
.legal-body li { margin-bottom: 6px; }
.legal-body a { color: var(--blue); text-decoration: underline; }
.legal-callout { background: var(--band); border-left: 4px solid var(--blue); padding: 18px 22px; margin: 24px 0; }

/* ---------- 19. Footer ---------- */
.site-footer { border-top: 1px solid #EEE; padding: 50px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr; gap: 30px; }
.footer-logo img { width: 160px; margin-top: 8px; }
.site-footer h4 { font-family: var(--ff-head); font-size: 20px; font-weight: 500; color: var(--blue); margin-bottom: 24px; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-family: var(--ff-head); font-size: 15px; color: #666; transition: color .2s; }
.footer-links a:hover, .footer-links a.active { color: var(--blue); }
.socials { display: flex; gap: 22px; margin-bottom: 26px; }
.socials a { color: #000; transition: color .2s, transform .2s; }
.socials a:hover { color: var(--blue); transform: translateY(-2px); }
.socials svg { width: 20px; height: 20px; }
.footer-email { font-family: var(--ff-head); font-size: 15px; color: #666; margin-left: -8px; }
.footer-email a:hover { color: var(--blue); }

.risk-bar { background: #F4F6FB; border-top: 1px solid #E4E8F2; padding: 24px 0; font-size: 13px; line-height: 1.6; color: #6A7080; }
.risk-bar strong { color: #333; }
.copyright { background: var(--blue); color: rgba(255,255,255,.85); font-size: 13px; padding: 14px 0; text-align: center; }

/* ---------- 20. Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}

/* ---------- 21. Responsive ---------- */
@media (max-width: 1100px) {
  .nav-list a { letter-spacing: 1px; padding: 0 8px; font-size: 12px; }
  .main-nav { gap: 18px; }
  .plans { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 991px) {
  .nav-list li { display: block; }
  :root { --header-h: 78px; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--blue); flex-direction: column; align-items: stretch; gap: 0;
    padding: 20px; transform: translateX(100%); visibility: hidden;
    transition: transform .3s ease, visibility 0s linear .3s; overflow-y: auto;
  }
  .main-nav.open { transform: none; visibility: visible; transition: transform .3s ease; }
  .nav-list { flex-direction: column; height: auto; gap: 0; }
  .nav-list a { padding: 18px 6px; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,.15); }
  .nav-list a::after { bottom: 10px; left: 6px; right: auto; width: 40px; }
  .header-actions { margin-top: 24px; flex-direction: column; align-items: stretch; }
  .header-actions a { text-align: center; }
  body.menu-open { overflow: hidden; }

  .hero-grid, .split, .app-grid, .join-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 40px; }
  .hero h1 { font-size: 38px; }
  .split { gap: 40px; }
  .split--reverse .split-media { order: 2; }
  .asset-widget { margin: 0 auto; width: 100%; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 50px; }
  .steps-grid, .mvv-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .feature-grid { grid-template-columns: 1fr; }
  .values-list { grid-template-columns: repeat(2, 1fr); }
  .app-copy { padding-bottom: 0; text-align: center; }
  .store-badges { justify-content: center; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .contact-box > h2 { margin-bottom: 50px; }
  .about-intro .split-text { text-align: left; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .page-banner { padding: 60px 20px 70px; }
  .page-banner h1 { font-size: 38px; }
  .hero { padding: 40px 0 70px; }
  .hero h1 { font-size: 31px; }
  .btn-hero { width: 100%; }
  .section-title, .split-text h2, .app-copy h2, .join-copy h2 { font-size: 27px; }
  .stat-num { font-size: 34px; }
  .stat-label { flex-direction: column; gap: 4px; }
  .feature-card { flex-direction: column; padding: 30px 22px; }
  .plans { grid-template-columns: 1fr; }
  .values-list { grid-template-columns: 1fr; }
  .contact-box { padding: 40px 18px 24px; border-radius: 12px; }
  .contact-box > h2 { font-size: 26px; }
  .contact-grid { padding: 0; }
  .form-card { padding: 28px 20px 32px; }
  .map-frame { margin-top: 40px; }
  .about-brand { font-size: 50px; }
  .footer-grid { grid-template-columns: 1fr; }
  .logo img { width: 120px; }
}

/* Grid children may shrink below their intrinsic image width */
.hero-grid > *, .split > *, .app-grid > *, .join-grid > *, .contact-grid > *, .footer-grid > * { min-width: 0; }
