@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --bg:      #f8f9fc;
  --white:   #ffffff;
  --ink:     #1a1d2e;
  --ink2:    #3d4166;
  --muted:   #6b7280;
  --blue:    #2563eb;
  --blue-lt: #eff6ff;
  --coral:   #f97316;
  --coral-lt:#fff7ed;
  --green:   #16a34a;
  --border:  #e5e7f0;
  --shadow:  0 2px 16px rgba(37,99,235,.07);
  --shadow-lg: 0 8px 40px rgba(37,99,235,.13);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Poppins', system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; object-fit: cover; }

/* Wrap */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 48px); }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  background: #fff; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 48px); height: 66px;
  box-shadow: 0 1px 12px rgba(0,0,0,.05);
  transform: none !important;
  transition: box-shadow .3s;
}
.nav-logo {
  font-size: 1.2rem; font-weight: 700; color: var(--blue);
  display: flex; align-items: center; gap: 8px;
}
.nav-logo .dot { width: 8px; height: 8px; background: var(--coral); border-radius: 50%; }
.nav-links { display: flex; gap: 6px; list-style: none; }
.nav-links a {
  padding: 6px 14px; border-radius: 8px; font-size: .85rem;
  font-weight: 500; color: var(--ink2); transition: all .2s;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--blue-lt); color: var(--blue);
}
.nav-cta {
  padding: 9px 22px; background: var(--blue); color: #fff;
  border-radius: 10px; font-weight: 600; font-size: .85rem;
  transition: all .2s; box-shadow: 0 4px 14px rgba(37,99,235,.25);
}
.nav-cta:hover { background: #1d4ed8; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,99,235,.3); }
/* ── MOBILE NAV ── */

/* FAB trigger — hidden on desktop, becomes floating button at bottom on mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  background: none; border: none;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px;
  border-radius: 2px;
  transition: transform .28s, opacity .2s, background .2s;
}

/* Bottom sheet menu */
.mobile-menu {
  position: fixed;
  bottom: 0; left: 0; right: 0; z-index: 399;
  background: #fff;
  border-radius: 20px 20px 0 0;
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 40px rgba(0,0,0,.15);
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  visibility: hidden;
  transform: translateY(100%);
  transition: transform .32s cubic-bezier(.32,.72,0,1), visibility 0s linear .32s;
}
.mobile-menu.open {
  visibility: visible;
  transform: translateY(0);
  transition: transform .32s cubic-bezier(.32,.72,0,1), visibility 0s;
}
.mob-handle {
  width: 44px; height: 5px;
  background: var(--border); border-radius: 3px;
  margin: 14px auto 10px; cursor: grab;
}
.mob-link {
  display: flex; align-items: center;
  padding: 16px 24px;
  font-size: .95rem; font-weight: 600; color: var(--ink2);
  border-bottom: 1px solid var(--border); transition: background .15s, color .15s;
}
.mob-link:hover, .mob-link.active { background: var(--blue-lt); color: var(--blue); }
.mob-cta-wrap { padding: 16px 24px; }
.mob-cta-btn {
  display: block; text-align: center;
  padding: 14px 24px; background: var(--blue); color: #fff !important;
  border-radius: 12px; font-weight: 700; font-size: .95rem;
  box-shadow: 0 4px 14px rgba(37,99,235,.3);
}

/* Dimmed backdrop when sheet is open */
.mob-backdrop {
  display: none;
  position: fixed; inset: 0; z-index: 298;
  background: rgba(0,0,0,.38);
}
.mob-backdrop.open { display: block; }

@media(max-width:768px){
  .nav-links { display: none; }

  /* Float the toggle as a FAB at the bottom */
  .nav-toggle {
    display: flex;
    position: fixed;
    bottom: 28px; right: 24px;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 4px 24px rgba(37,99,235,.45);
    z-index: 400;
    /* slide above sheet when open */
    transition: bottom .32s cubic-bezier(.32,.72,0,1), background .2s, box-shadow .2s;
  }
  .nav-toggle span { background: #fff; width: 22px; }
  .nav-toggle.open {
    bottom: 310px; /* sits above the bottom sheet */
    background: #fff;
    box-shadow: 0 4px 24px rgba(0,0,0,.18);
  }
  .nav-toggle.open span { background: var(--ink); }
  .nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(0, 7px); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(0, -7px); }
}

/* ── BADGES ── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 20px; font-size: .72rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
}
.badge-blue { background: var(--blue-lt); color: var(--blue); }
.badge-coral { background: var(--coral-lt); color: var(--coral); }
.badge-green { background: #f0fdf4; color: var(--green); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 12px; font-weight: 600;
  font-size: .9rem; cursor: pointer; transition: all .25s;
  font-family: 'Poppins', sans-serif; border: none;
}
.btn-primary {
  background: var(--blue); color: #fff;
  box-shadow: 0 4px 18px rgba(37,99,235,.3);
}
.btn-primary:hover { background: #1d4ed8; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(37,99,235,.35); }
.btn-outline {
  background: transparent; color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-outline:hover { background: var(--blue-lt); }
.btn-white {
  background: #fff; color: var(--blue);
  box-shadow: 0 4px 18px rgba(0,0,0,.12);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,.18); }
.btn-coral {
  background: var(--coral); color: #fff;
  box-shadow: 0 4px 18px rgba(249,115,22,.3);
}
.btn-coral:hover { background: #ea6c10; transform: translateY(-2px); }

/* ── SECTION TITLES ── */
.sec-eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.sec-title { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; color: var(--ink); line-height: 1.2; margin-bottom: 14px; }
.sec-sub { font-size: .95rem; color: var(--muted); max-width: 520px; line-height: 1.75; }

/* ── SECTION SPACING ── */
.section { padding: clamp(56px, 8vw, 96px) 0; }

/* ── FOOTER ── */
.footer { background: var(--ink); color: #e2e8ff; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.f-logo { font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: 12px; }
.f-logo .dot { display: inline-block; width: 8px; height: 8px; background: var(--coral); border-radius: 50%; margin-left: 2px; }
.f-desc { font-size: .82rem; color: rgba(226,232,255,.55); line-height: 1.7; }
.f-head { font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--coral); margin-bottom: 14px; }
.f-col a { display: block; font-size: .82rem; color: rgba(226,232,255,.55); margin-bottom: 9px; transition: color .2s; }
.f-col a:hover { color: #fff; }
.footer-bar {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0; margin-top: 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .75rem; color: rgba(226,232,255,.35);
}
@media(max-width:900px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width:560px){ .footer-grid { grid-template-columns: 1fr; } }

/* ── SCROLL REVEAL ── */
.r { opacity: 0; transform: translateY(24px); transition: opacity .55s, transform .55s; }
.r.in { opacity: 1; transform: none; }
.r[data-d="1"] { transition-delay: .08s; }
.r[data-d="2"] { transition-delay: .16s; }
.r[data-d="3"] { transition-delay: .24s; }
.r[data-d="4"] { transition-delay: .32s; }
