/* ==========================================================
   TheKian — Forex Website
   Palette derived from logo:
   Navy:   #0a1a3c (headline / header)
   Blue:   #0d6efd -> #17c3f2 (primary gradient / links)
   Orange: #f7941e (accent / secondary)
   Green:  #0ba84a (bullish / success)
   Red:    #e8352f (bearish / danger)
   BG:     #f6f8fc (light theme base)
   ========================================================== */

:root{
  --navy: #0a1a3c;
  --navy-soft: #14285a;
  --blue: #0d6efd;
  --blue-light: #17c3f2;
  --orange: #f7941e;
  --green: #0ba84a;
  --red: #e8352f;
  --bg: #f6f8fc;
  --bg-alt: #eef2fb;
  --card: #ffffff;
  --text: #16233f;
  --text-muted: #5b6785;
  --border: #e3e8f4;

  --grad-primary: linear-gradient(90deg, var(--orange) 0%, var(--blue) 55%, var(--blue-light) 100%);
  --grad-navy: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  --shadow-sm: 0 2px 10px rgba(10, 26, 60, 0.06);
  --shadow-md: 0 10px 30px rgba(10, 26, 60, 0.10);
  --shadow-lg: 0 20px 50px rgba(10, 26, 60, 0.16);
  --radius: 16px;
}

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

html{ scroll-behavior: smooth; }

body{
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4{
  font-family: 'Poppins', sans-serif;
  color: var(--navy);
  line-height: 1.2;
}

a{ text-decoration: none; color: inherit; }
ul{ list-style: none; }
img, svg{ display: block; max-width: 100%; }

.container{
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.up{ color: var(--green); font-style: normal; font-weight: 600; }
.down{ color: var(--red); font-style: normal; font-weight: 600; }

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

/* ===== Buttons ===== */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn--primary{
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn--primary:hover{ transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn--ghost{ color: var(--navy); }
.btn--ghost:hover{ color: var(--blue); }

.btn--outline{
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}
.btn--outline:hover{ background: var(--navy); color: #fff; }

.btn--lg{ padding: 15px 30px; font-size: 1.02rem; }

/* ===== Top bar ===== */
.topbar{
  background: var(--navy);
  color: #cfd8ef;
  font-size: 0.8rem;
}
.topbar__inner{
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 8px 24px;
  overflow-x: auto;
  white-space: nowrap;
}
.topbar__right{ margin-left: auto; color: #9aa8d1; }

/* ===== Header ===== */
.header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 248, 252, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header__inner{
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 14px 24px;
}

.brand{ display: inline-flex; align-items: center; }

.logo-img{
  height: 55px;
  width: auto;
  display: block;
  mix-blend-mode: multiply;
}

.logo-badge{
  background: #fff;
  padding: 8px 16px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.nav{
  display: flex;
  gap: 28px;
  justify-content: center;
  margin-left: 12px;
  flex: 1;
}
.nav a{
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
  padding: 4px 0;
  transition: color .18s ease;
}
.nav a:hover{ color: var(--navy); }
.nav a::after{
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--grad-primary);
  transition: width .2s ease;
}
.nav a:hover::after{ width: 100%; }

.header__cta{ display: flex; align-items: center; gap: 12px; }

.hamburger{
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span{
  width: 24px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

/* ===== Hero ===== */
.hero{
  position: relative;
  padding: 76px 0 60px;
  overflow: hidden;
  background:
    radial-gradient(60% 55% at 85% 15%, rgba(23, 195, 242, 0.14), transparent 70%),
    radial-gradient(45% 40% at 5% 90%, rgba(247, 148, 30, 0.12), transparent 70%),
    var(--bg);
}

.hero__inner{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.pill{
  display: inline-block;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}

.hero__text h1{
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 18px;
}

.hero__text p{
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 28px;
}

.hero__actions{ display: flex; gap: 16px; margin-bottom: 42px; flex-wrap: wrap; }

.hero__stats{
  display: flex;
  gap: 40px;
}
.hero__stats div{ display: flex; flex-direction: column; }
.hero__stats strong{
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  color: var(--navy);
}
.hero__stats span{ color: var(--text-muted); font-size: 0.85rem; }

/* ===== Hero visual ===== */
.hero__visual{ position: relative; }

.hero-img{
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.float-badge{
  position: absolute;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  animation: float 4s ease-in-out infinite;
}
.float-badge--1{ top: -18px; right: -12px; }
.float-badge--2{ bottom: -16px; left: -18px; animation-delay: 1.5s; }

@keyframes float{
  0%, 100%{ transform: translateY(0); }
  50%{ transform: translateY(-10px); }
}

/* ===== Global reach banner ===== */
.global-banner{
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.global-banner__img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.global-banner__overlay{
  position: relative;
  width: 100%;
  padding: 70px 0;
  background: linear-gradient(90deg, rgba(10,26,60,0.92) 0%, rgba(10,26,60,0.72) 55%, rgba(10,26,60,0.45) 100%);
}
.global-banner__inner{ max-width: 560px; }
.global-banner h2{ color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
.global-banner p{ color: #cfd8ef; font-size: 1rem; }

/* ===== Sections ===== */
.section{ padding: 88px 0; }
.section--alt{ background: var(--bg-alt); }

.section__head{
  max-width: 620px;
  margin: 0 auto 52px;
  text-align: center;
}
.eyebrow{
  display: inline-block;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section__head h2{
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 12px;
}
.section__head p{ color: var(--text-muted); }

.grid{ display: grid; gap: 24px; }
.grid > *{ min-width: 0; }
.grid--4{ grid-template-columns: repeat(4, 1fr); }
.grid--3{ grid-template-columns: repeat(3, 1fr); }

/* ===== Feature cards ===== */
.feature-card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-md); }

.feature-card__icon{
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.icon--blue{ background: rgba(13, 110, 253, 0.12); }
.icon--orange{ background: rgba(247, 148, 30, 0.14); }
.icon--green{ background: rgba(11, 168, 74, 0.14); }
.icon--navy{ background: rgba(10, 26, 60, 0.08); }

.feature-card h3{ font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p{ color: var(--text-muted); font-size: 0.92rem; }

/* ===== Market cards ===== */
.market-card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--blue);
  transition: transform .2s ease;
}
.market-card:nth-child(2){ border-top-color: var(--orange); }
.market-card:nth-child(3){ border-top-color: var(--green); }
.market-card:nth-child(4){ border-top-color: var(--red); }
.market-card:hover{ transform: translateY(-6px); }

.market-card__img{
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 16px;
}

.market-card h4{ font-size: 1.15rem; margin-bottom: 4px; }
.market-card__count{
  color: var(--blue);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 10px;
}
.market-card p:not(.market-card__count){ color: var(--text-muted); font-size: 0.9rem; margin-bottom: 14px; }
.link-arrow{ color: var(--navy); font-weight: 600; font-size: 0.88rem; transition: color .18s ease; }
.link-arrow:hover{ color: var(--blue); }

/* ===== Platforms ===== */
.platforms__inner{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.check-list{ margin: 22px 0 30px; }
.check-list li{
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: var(--text-muted);
  font-weight: 500;
}
.check-list li::before{
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  width: 20px; height: 20px;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.platforms__visual{ display: flex; justify-content: center; }
.phone-mock{
  width: 280px;
  background: var(--grad-navy);
  border-radius: 28px;
  padding: 22px 20px;
  box-shadow: var(--shadow-lg);
  color: #fff;
}
.phone-mock__bar{
  width: 50px; height: 5px;
  background: rgba(255,255,255,0.25);
  border-radius: 4px;
  margin: 0 auto 20px;
}
.phone-mock__balance{ display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.phone-mock__balance span{ color: #9aa8d1; font-size: 0.78rem; }
.phone-mock__balance strong{ font-family: 'Poppins', sans-serif; font-size: 1.6rem; }
.phone-mock__balance em{ font-style: normal; font-size: 0.85rem; }

.mini-chart{ width: 100%; height: 70px; margin-bottom: 16px; }
.mini-chart polyline{
  fill: none;
  stroke: var(--blue-light);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.phone-mock__row{
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.88rem;
  font-weight: 600;
}

/* ===== Stats band ===== */
.stats-band{
  background: var(--grad-navy);
  padding: 56px 0;
}
.stat{ text-align: center; color: #fff; }
.stat strong{
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 2.1rem;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span{ color: #b7c1e2; font-size: 0.9rem; }

/* ===== FAQ ===== */
.faq-list{ max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
}
.faq-item summary{
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary::after{
  content: "+";
  font-size: 1.3rem;
  color: var(--blue);
  transition: transform .2s ease;
}
.faq-item[open] summary::after{ content: "−"; }
.faq-item p{ color: var(--text-muted); margin-top: 12px; font-size: 0.92rem; }

/* ===== CTA ===== */
.cta{
  background: var(--grad-primary);
  padding: 70px 0;
}
.cta__inner{ text-align: center; color: #fff; }
.cta h2{ color: #fff; font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 10px; }
.cta p{ color: rgba(255,255,255,0.9); margin-bottom: 28px; }
.cta .btn--primary{ background: #fff; color: var(--navy); box-shadow: var(--shadow-lg); }
.cta .btn--primary:hover{ color: var(--blue); }

/* ===== Footer ===== */
.footer{ background: var(--navy); color: #b7c1e2; padding-top: 64px; }
.footer__inner{
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__brand p{ margin-top: 14px; font-size: 0.9rem; max-width: 280px; color: #93a0c7; }
.footer__contact{ margin-top: 12px !important; color: #cfd8ef !important; font-weight: 600; font-size: 0.85rem !important; }
.footer__col h4{ color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
.footer__col a{
  display: block;
  color: #93a0c7;
  font-size: 0.9rem;
  margin-bottom: 10px;
  transition: color .18s ease;
}
.footer__col a:hover{ color: var(--blue-light); }

.footer__bottom-inner{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 24px;
  flex-wrap: wrap;
  gap: 10px;
}
.footer__bottom-inner p{ font-size: 0.8rem; color: #7d8ab0; }

/* ===== Responsive ===== */
@media (max-width: 980px){
  .hero__inner, .platforms__inner{ grid-template-columns: 1fr; }
  .hero__visual{ order: -1; }
  .grid--4{ grid-template-columns: repeat(2, 1fr); }
  .grid--3{ grid-template-columns: 1fr; }
  .footer__inner{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px){
  .nav, .header__cta{ display: none; }
  .hamburger{ display: flex; margin-left: auto; }

  .header.nav-open .header__inner{ flex-wrap: wrap; }
  .header.nav-open .nav,
  .header.nav-open .header__cta{
    display: flex;
    flex-basis: 100%;
    order: 3;
  }
  .header.nav-open .nav{
    flex-direction: column;
    /* padding: 20px 24px 4px;
    border-bottom: 1px solid var(--border); */
  }
  .header.nav-open .header__cta{
    order: 4;
    padding: 16px 24px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .grid--4{ grid-template-columns: 1fr; }
  .stats-band .grid--4{ grid-template-columns: 1fr 1fr; }
  .hero__stats{ gap: 24px; flex-wrap: wrap; }
  .footer__inner{ grid-template-columns: 1fr; }
  .hero-img{ height: 280px; }
  .global-banner__overlay{ background: linear-gradient(180deg, rgba(10,26,60,0.55) 0%, rgba(10,26,60,0.92) 100%); }

  .topbar__inner{ justify-content: center; }
  .topbar__inner > span:first-child{ display: none; }
  .topbar__right{ margin-left: 0; }

  .pill{ font-size: 0.75rem; }
  .market-card{ padding: 22px 18px; }
}
