/* ============================================================
   4X Solutions – Global Stylesheet
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.6;
}

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

/* ---------- Utility ---------- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.text-center { text-align: center; }
.text-muted { color: #666; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; color: #1a1a1a; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }
p { color: #555; line-height: 1.75; }

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2563eb;
  margin-bottom: 12px;
  display: block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  border: 2px solid transparent;
  text-align: center;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-dark { background: #1a1a1a; color: #fff; }
.btn-outline { background: transparent; color: #1a1a1a; border-color: #1a1a1a; }
.btn-outline:hover { background: #1a1a1a; color: #fff; }
.btn-blue { background: #2563eb; color: #fff; }
.btn-lg { padding: 15px 36px; font-size: 1rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.site-logo img { height: 42px; width: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.site-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #333;
  transition: color 0.2s;
}
.site-nav a:hover { color: #2563eb; }

.header-ctas {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #333;
  border-radius: 2px;
  transition: 0.3s;
}

/* ---------- Hero ---------- */
.hero {
  background: url('../assets/img/bg.jpg') center center / cover no-repeat;
  min-height: 540px;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  /* Light fade on the left so text is readable over the background photo */
  background: linear-gradient(to right, rgba(255,255,255,0.88) 0%, rgba(255,255,255,0.55) 45%, rgba(255,255,255,0) 75%);
  z-index: 1;
}

.hero::after { display: none; }

.hero-inner {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  max-width: 600px;
  margin: 0 0 0 7%;
  padding: 100px 24px;
}

.hero-content { max-width: 560px; }

.hero-content h1 { margin-bottom: 20px; line-height: 1.2; }

.hero-content p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-image {
  position: relative;
  z-index: 2;
}

.hero-image img {
  width: 100%;
  border-radius: 4px;
  object-fit: cover;
}

/* ---------- About Section ---------- */
.about-section .two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-section img { border-radius: 8px; }

/* ---------- Feature Steps (3 badges on homepage) ---------- */
.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.step-badge {
  border: 1px solid #e4e4e4;
  border-radius: 6px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
}

.step-badge .step-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #eef2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-badge .step-icon svg { width: 22px; height: 22px; color: #2563eb; }
.step-badge strong { display: block; font-size: 0.95rem; color: #1a1a1a; }
.step-badge span { font-size: 0.82rem; color: #777; }

/* ---------- Tech / Problems Section ---------- */
.tech-section {
  background: #f8f9fa;
}

.tech-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.problem-list { margin-top: 24px; }
.problem-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #e8e8e8;
}
.problem-item:last-child { border-bottom: none; }
.problem-item .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  margin-top: 8px;
  flex-shrink: 0;
}
.problem-item p { color: #555; margin: 0; }

.solution-list { margin-top: 24px; }
.solution-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
}
.solution-item .check {
  color: #16a34a;
  font-size: 1.2rem;
  margin-top: 2px;
  flex-shrink: 0;
}
.solution-item p { color: #333; margin: 0; font-weight: 500; }

/* ---------- Financial Commission Badge ---------- */
.fc-badge {
  background: #f8f9fa;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 40px 24px;
  text-align: center;
}
.fc-badge p { max-width: 720px; margin: 16px auto 0; font-size: 0.9rem; color: #666; }
.fc-badge img { max-height: 80px; margin: 0 auto 16px; }

/* ---------- Trusted Brokers Logos ---------- */
.brokers-section { padding: 50px 0; }
.brokers-section h2 { text-align: center; margin-bottom: 36px; }
.brokers-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px 48px;
}
.brokers-grid img {
  height: 36px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: 0.2s;
}
.brokers-grid img:hover { filter: grayscale(0); opacity: 1; }

/* ---------- Pricing Teaser Banner ---------- */
.pricing-banner {
  background: #1a1a1a;
  color: #fff;
  text-align: center;
  padding: 60px 24px;
}
.pricing-banner h2 { color: #fff; margin-bottom: 8px; }
.pricing-banner p { color: #ccc; margin-bottom: 28px; font-size: 1.05rem; }

/* ---------- Testimonials ---------- */
.testimonials-section { background: #f8f9fa; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}
.testimonial-card {
  background: #fff;
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid #eee;
}
.testimonial-card p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #444;
  font-style: italic;
}
.testimonial-card .stars {
  color: #f59e0b;
  font-size: 1.1rem;
  margin-bottom: 14px;
  letter-spacing: 2px;
}

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
  padding: 70px 24px;
  text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,0.75); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* ---------- Features Page ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  align-items: center;
  margin-bottom: 60px;
}
.features-grid .feature-img img { border-radius: 8px; }
.feature-detail { padding: 8px 0; }
.feature-detail h3 { margin-bottom: 12px; font-size: 1.4rem; }
.feature-detail p { color: #555; }

.features-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.mini-card {
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 24px;
  background: #fff;
  transition: box-shadow 0.2s;
}
.mini-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.mini-card .icon {
  width: 40px;
  height: 40px;
  background: #eef2ff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 1.2rem;
}
.mini-card h4 { margin-bottom: 8px; font-size: 1rem; color: #1a1a1a; }
.mini-card p { font-size: 0.88rem; color: #666; margin: 0; }

.risk-section { background: #f8f9fa; }
.risk-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 36px;
}
.risk-card {
  background: #fff;
  border-radius: 8px;
  padding: 28px;
  border-left: 4px solid #2563eb;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.risk-card h4 { text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.05em; color: #2563eb; margin-bottom: 10px; }
.risk-card p { font-size: 0.92rem; color: #555; margin: 0; }

/* ---------- Pricing Page ---------- */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 32px 0;
}
.toggle-label { font-weight: 600; color: #333; font-size: 0.95rem; }
.toggle-switch {
  position: relative;
  width: 52px;
  height: 28px;
  cursor: pointer;
}
.toggle-switch input { display: none; }
.toggle-track {
  position: absolute;
  inset: 0;
  background: #2563eb;
  border-radius: 14px;
  transition: 0.3s;
}
.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s;
}
input:checked + .toggle-track { background: #1a1a1a; }
input:checked + .toggle-track + .toggle-thumb { left: 27px; }

.badge-save {
  background: #16a34a;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 16px;
}
.plan-card {
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  padding: 28px 24px;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
  background: #fff;
}
.plan-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.1); transform: translateY(-2px); }
.plan-card.popular {
  border-color: #2563eb;
  box-shadow: 0 4px 24px rgba(37,99,235,0.15);
}
.popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: #2563eb;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
}
.plan-name { font-weight: 700; font-size: 1.05rem; color: #1a1a1a; margin-bottom: 6px; }
.plan-price { margin: 16px 0; }
.plan-price .amount { font-size: 2.4rem; font-weight: 800; color: #1a1a1a; line-height: 1; }
.plan-price .period { color: #777; font-size: 0.85rem; }
.plan-price .from { font-size: 0.8rem; color: #777; }
.plan-divider { border: none; border-top: 1px solid #eee; margin: 18px 0; }

.plan-features { margin-bottom: 24px; }
.plan-feature {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  font-size: 0.88rem;
  border-bottom: 1px solid #f5f5f5;
}
.plan-feature:last-child { border-bottom: none; }
.plan-feature .feat-label { color: #555; }
.plan-feature .feat-val { font-weight: 700; color: #1a1a1a; }
.check-yes { color: #16a34a; font-size: 1.1rem; }
.check-no { color: #d1d5db; font-size: 1.1rem; }

.plan-card .btn { width: 100%; margin-top: auto; }

.pricing-row-enterprise {
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  gap: 24px;
  flex-wrap: wrap;
}
.pricing-row-enterprise h3 { margin-bottom: 6px; }
.pricing-row-enterprise p { color: #555; margin: 0; font-size: 0.92rem; }

/* ---------- About Page ---------- */
.about-full p { margin-bottom: 16px; }
.infra-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 36px;
}
.infra-card {
  background: #fff;
  border-radius: 8px;
  padding: 24px 28px;
  border: 1px solid #e8e8e8;
}
.infra-card .infra-icon { font-size: 1.8rem; margin-bottom: 12px; }
.infra-card h4 { margin-bottom: 10px; font-size: 1rem; color: #1a1a1a; }
.infra-card p { font-size: 0.9rem; color: #555; margin: 0; }

/* ---------- Contact Page ---------- */
.contact-section .two-col {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}
.contact-info h3 { margin-bottom: 16px; }
.contact-info p { margin-bottom: 12px; font-size: 0.95rem; }

.contact-form {
  background: #f8f9fa;
  padding: 36px;
  border-radius: 12px;
}
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; color: #333; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #333;
  background: #fff;
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.form-group textarea { min-height: 120px; resize: vertical; }

/* ---------- Footer ---------- */
.site-footer {
  background: #111;
  color: #aaa;
  padding: 60px 0 30px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo-wrap img { height: 38px; filter: brightness(10); margin-bottom: 16px; }
.footer-brand p { font-size: 0.88rem; color: #777; line-height: 1.7; max-width: 280px; }
.footer-col h5 { color: #fff; font-size: 0.88rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 0.88rem; color: #777; padding: 4px 0; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #222;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: #666;
}

/* ---------- Stats Bar ---------- */
.stats-bar {
  background: #2563eb;
  color: #fff;
  padding: 32px 0;
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item .num { font-size: 2rem; font-weight: 800; display: block; }
.stat-item .lbl { font-size: 0.85rem; opacity: 0.85; }

/* ---------- CTA Band ---------- */
.cta-band {
  background: #f8f9fa;
  border-top: 1px solid #eee;
  text-align: center;
  padding: 60px 24px;
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { color: #666; margin-bottom: 28px; font-size: 1rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero::after { display: none; }
  .hero-image { display: none; }
  .about-section .two-col,
  .tech-inner,
  .features-grid,
  .contact-section .two-col,
  .infra-grid { grid-template-columns: 1fr; }
  .features-mini-grid { grid-template-columns: 1fr 1fr; }
  .risk-grid { grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 16px 24px;
    gap: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }
}

@media (max-width: 480px) {
  .features-mini-grid { grid-template-columns: 1fr; }
  .pricing-row-enterprise { flex-direction: column; align-items: flex-start; }
  .header-ctas .btn-outline { display: none; }
}
