/* ==========================================================
   Splitzon Landing Page — CSS
   Colors/fonts mirror the Flutter SplitzonColors / SplitzonText
   Updated to match latest Flutter home_screen.dart
   + Mobile responsive fixes (hamburger menu, phone mockup, trust strip)
   ========================================================== */

:root {
  --navy-text: #0C2A3B;
  --body-text: #3E5A66;
  --purple: #6C4FE8;
  --dark-green-btn: #0F6B4A;
  --mint-top: #EFFDF6;
  --mint-mid: #BDEBD3;
  --teal-bottom: #57C596;
  --card-green-bg: #DDF3E7;
  --card-purple-bg: #E9E3FB;
  --card-orange-bg: #FCEBD7;
  --card-pink-bg: #FBE1E7;
  --card-blue-bg: #DCEBFB;
  --section-label-green: #1E9E6B;
  --footer-bg: #EAF9F1;
  --input-border: #D8E4E1;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--body-text);
  line-height: 1.5;
  background: #ffffff;
  overflow-x: hidden;
}

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

a { text-decoration: none; color: inherit; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(
      110deg,
      #FFFFFF 0%,
      #F5FCF8 30%,
      #E4F7ED 52%,
      #A9E3C5 68%,
      #32B982 100%
    );
}

.hero::before {
  content: "";
  position: absolute;
  width: 850px;
  height: 850px;
  right: -300px;
  top: -500px;
  border-radius: 50%;
  border: 100px solid rgba(255, 255, 255, 0.28);
  filter: blur(1px);
  pointer-events: none;
  z-index: -1;
}

.hero::after {
  content: "";
  position: absolute;
  width: 760px;
  height: 760px;
  right: -300px;
  bottom: -560px;
  border-radius: 50%;
  border: 90px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
  z-index: -1;
}

.navbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 56px;
  flex-wrap: wrap;
  gap: 16px;
}

.nav-logo { display: flex; align-items: center; gap: 10px; }
.logo-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: contain;
  display: block;
  image-rendering: auto;
}
.logo-fallback {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--purple); color: #fff;
  align-items: center; justify-content: center; font-weight: 800;
}
.logo-text { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 22px; color: var(--navy-text); letter-spacing: -0.5px; }

.nav-links { display: flex; list-style: none; gap: 44px; }
.nav-links a { font-weight: 600; font-size: 15px; color: var(--navy-text); }
.nav-links a:hover { color: var(--section-label-green); }

.nav-auth { display: flex; align-items: center; gap: 8px; }
.btn-login {
  font-weight: 700; font-size: 15px; color: var(--dark-green-btn);
  background: #fff; padding: 11px 30px; border-radius: 30px;
}
.btn-signup {
  background: var(--dark-green-btn); color: #fff; font-weight: 700; font-size: 15px;
  padding: 11px 30px; border-radius: 30px; transition: opacity 0.15s ease;
}
.btn-signup:hover { opacity: 0.9; }

/* ================= HAMBURGER (mobile only) ================= */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 30;
  flex-shrink: 0;
}
.hamburger-btn span {
  display: block;
  width: 24px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--navy-text);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.hamburger-btn.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  width: 100%;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(12, 42, 59, 0.14);
  margin-top: 8px;
  padding: 10px 8px;
  order: 3;
}
.mobile-menu.open { display: flex; }
.mobile-nav-links { list-style: none; display: flex; flex-direction: column; }
.mobile-nav-links a {
  display: block;
  font-weight: 600;
  font-size: 15px;
  color: var(--navy-text);
  padding: 12px 14px;
  border-radius: 10px;
}
.mobile-nav-links a:active,
.mobile-nav-links a:hover { background: var(--footer-bg); color: var(--section-label-green); }
.mobile-auth {
  display: flex;
  gap: 10px;
  padding: 10px 10px 4px;
  border-top: 1px solid #EEF3F1;
  margin-top: 6px;
}
.mobile-auth .btn-login,
.mobile-auth .btn-signup {
  flex: 1;
  text-align: center;
  padding: 12px 10px;
}
.mobile-auth .btn-login { border: 1.5px solid var(--dark-green-btn); }

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding: 30px 56px 0;
  flex-wrap: wrap;
}

.hero-text { max-width: 520px; }
.eyebrow {
  font-weight: 600; font-size: 13px; letter-spacing: 1.1px;
  color: var(--section-label-green); margin-bottom: 14px;
}
.hero-heading { font-size: 52px; margin-bottom: 18px; }
.accent-green { color: #1E9E6B; }
.hero-desc { font-size: 16px; margin-bottom: 26px; max-width: 480px; }

.store-badges { display: flex; gap: 12px; margin-bottom: 14px; }
.badge-img { height: 46px; }

.hero-footnote { font-size: 13px; }

.hero-visual {
  position: relative;
  flex: 1;
  min-width: 420px;
  height: 420px;
  padding-left: 190px;
  z-index: 1;
}
.mockup-stack { position: relative; width: 100%; height: 100%; }
.laptop-mockup {
  position: absolute; left: 40px; top: 50px; width: 510px;; max-width: 90%;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.18));
}
.phone-mockup {
  position: absolute; left: 15px; top: 90px; width: 220px;
  filter: drop-shadow(0 15px 20px rgba(0,0,0,0.2));
}

.float-card {
  position: absolute;
  width: 135px;
  background: #fff;
  border-radius: 14px;
  padding: 11px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
}

.float-card p {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy-text);
  line-height: 1.25;
}

.float-icon {
  width: 34px; height: 34px; border-radius: 9px; margin-bottom: 8px;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.icon-green { background: var(--card-green-bg); }
.icon-purple { background: var(--card-purple-bg); }
.icon-orange { background: var(--card-orange-bg); }
.icon-pink { background: var(--card-pink-bg); }
.icon-blue { background: var(--card-blue-bg); }

.card-whatsapp { left: -155px; top: 10px; }
.card-track    { left: -155px; top: 140px; }
.card-settle   { left: -155px; top: 270px; }

.card-telegram {
  position: absolute;
  right: 0;
  top: 10px;
  height: 135px;
}

.card-currency {
  position: absolute;
  right: 0;
  top: 155px;
  height: 135px;
}

.card-notify {
  position: absolute;
  right: 0;
  top: 300px;
  height: 135px;
}

.flags-row { display: flex; margin-bottom: 8px; }
.flag {
  width: 26px; height: 26px; border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 13px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08); margin-left: -8px; border: 2px solid #fff;
}
.flag:first-child { margin-left: 0; }

/* ================= TRUST STRIP ================= */
.trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  width: 100%;
  padding: 12px 56px 18px;
  margin-top: -2px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 13px;
  color: var(--body-text);
}

.trust-icon {
  font-size: 22px;
  color: var(--section-label-green);
  line-height: 1;
}

.trust-separator {
  color: #75B89D;
  font-size: 18px;
}

/* ================= WHY SECTION ================= */
.why-section { padding: 28px 56px; text-align: center; background: #fff; }
.section-label {
  font-weight: 600; font-size: 13px; letter-spacing: 1.1px; color: var(--section-label-green);
  margin-bottom: 10px;
}
.section-heading { font-size: 34px; margin-bottom: 40px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
  text-align: left;
}
.feature-card {
  background: #F0F7FF;
  border: 1px solid #EFF1F0;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  min-height: 185px;
  display: flex;
  flex-direction: column;
}
.feature-icon {
  width: 40px; height: 40px; border-radius: 10px; margin-bottom: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  flex-shrink: 0;
}
.feature-card h3 { font-size: 13.5px; margin-bottom: 6px; }
.feature-card p { font-size: 11.5px; flex: 1; }
.chat-icons { display: flex; gap: 6px; margin-top: 8px; }
.chat-dot {
  width: 24px; height: 24px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-size: 11px; color: #fff;
}
.dot-green { background: #25D366; }
.dot-blue { background: #2AABEE; }

/* ================= DECORATIVE BACKGROUND BLOBS (behind Perfect For / CTA / Footer) ================= */
.decor-wrap { position: relative; overflow: hidden; }
.decor-circle { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; }
.dc-1 { width: 280px; height: 280px; left: -110px; bottom: -130px; background: rgba(233, 232, 250, 0.65); }
.dc-2 { width: 255px; height: 255px; left: 40px;  bottom: -150px; background: rgba(216, 245, 232, 0.75); }
.dc-3 { width: 220px; height: 220px; right: -100px; bottom: -90px; background: rgba(216, 245, 232, 0.75); }
.dc-4 { width: 150px; height: 150px; right: 0px;   bottom: -120px; background: rgba(200, 240, 223, 0.7); }
.decor-wrap > .perfect-section,
.decor-wrap > .cta-wrap,
.decor-wrap > .footer { position: relative; z-index: 1; }

/* ================= PERFECT FOR ================= */
.perfect-section { background: #fff; padding: 8px 0 14px; text-align: center; }
.perfect-section .section-label { font-size: 12px; margin-bottom: 4px; padding: 0 22px; }
.perfect-section .section-heading { font-size: 24px; margin-bottom: 8px; padding: 0 22px; }

.perfect-box {
  width: calc(100% - 120px);
  max-width: 1266px;
  margin: 0 auto;
  background: var(--footer-bg);
  border-radius: 20px;
  padding: 20px 56px;
}
.perfect-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.perfect-item { display: flex; align-items: flex-start; gap: 10px; text-align: left; }
.perfect-icon { font-size: 22px; color: var(--section-label-green); line-height: 1; margin-top: 2px; }
.perfect-item h4 { font-size: 14px; margin-bottom: 2px; }
.perfect-item p { font-size: 12.5px; }
.perfect-divider { width: 1px; height: 40px; background: #B7D6C5; margin: 0 28px; flex-shrink: 0; }

/* ================= BOTTOM CTA ================= */
.cta-wrap { padding: 0 250px 40px; }
.cta-box {
  background: var(--footer-bg); border-radius: 20px; padding: 28px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px;
}
.cta-left { display: flex; align-items: center; gap: 14px; }
.cta-icon {
  width: 40px; height: 40px; border-radius: 10px; background: var(--card-green-bg);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  flex-shrink: 0;
}
.cta-left h3 { font-size: 18px; margin-bottom: 4px; }
.cta-left p { font-size: 13.5px; }
.cta-box .nav-auth .btn-login { background: transparent; padding: 10px 14px; }
.cta-box .nav-auth .btn-signup { padding: 12px 20px; border-radius: 8px; }

/* ================= FOOTER ================= */
.footer {
  padding: 20px 56px; display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
}
.footer p { font-size: 12.5px; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { font-size: 12.5px; }
.footer-links a:hover { color: var(--section-label-green); }

/* ================= RESPONSIVE ================= */
/* Breakpoint matches Flutter's kMobileBreakpoint (1150px) */
@media (max-width: 1150px) {
  .hero::before,
  .hero::after {
    opacity: 0.45;
    transform: scale(0.55);
    transform-origin: top right;
  }

  .navbar { padding: 16px 20px; flex-wrap: wrap; }
  .nav-links, .nav-auth { display: none; }
  .hamburger-btn { display: flex; }

  .hero-content { padding: 20px 20px 40px; }
  .hero-heading { font-size: 34px; }

  /* Show a simplified centered phone mockup instead of the full laptop stack */
   /* ================= MOBILE HERO MOCKUPS ================= */

  .hero-visual {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    height: 390px;
    padding: 0;
    margin-top: -20px;
    z-index: 1;
  }

  .mockup-stack {
    position: relative;
    width: 100%;
    height: 100%;
  }

  /* Laptop - background */
  .laptop-mockup {
    display: block;
    position: absolute;
    top: 0;
    right: -2%;
    left: auto;
    width: 94%;
    max-width: none;
    margin: 0;
    z-index: 1;
    filter: drop-shadow(0 15px 20px rgba(0,0,0,0.2));
  }

  /* Phone - foreground */
  .phone-mockup {
    display: block;
    position: absolute;
    top: 72px;
    left: 2%;
    width: 34%;
    max-width: 230px;
    margin: 0;
    z-index: 2;
    filter: drop-shadow(0 15px 20px rgba(0,0,0,0.2));
  }

    /* Hide floating cards on mobile */
  .hero-visual .float-card {
    display: none !important;
  }

  /* Trust strip: stack vertically so text never gets clipped */
  .trust-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px 20px;
    margin-top: -120px;
  }
  .trust-item { white-space: normal; }
  .trust-separator { display: none; }

  .why-section { padding: 20px; }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .feature-card { min-height: auto; }

  .perfect-section { padding: 18px 0 22px; }
  .perfect-section .section-label,
  .perfect-section .section-heading { padding: 0 20px; }
  .perfect-box { padding: 20px; }
  .perfect-grid { flex-direction: column; align-items: center; gap: 16px; }
  .perfect-item { width: 100%; max-width: 320px; padding: 0 20px; }
  .perfect-divider { display: none; }

  .dc-1, .dc-2, .dc-3, .dc-4 { transform: scale(0.6); }

  .cta-wrap { padding: 0 20px 40px; }
  .cta-box { flex-direction: column; align-items: flex-start; }
  .cta-box .nav-auth { display: flex; }

  .footer { padding: 20px; }
}

@media (max-width: 420px) {
  .hero-heading { font-size: 28px; }
  .store-badges { flex-wrap: wrap; }
}