/* ===== KONVALO SHARED STYLES ===== */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

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

:root {
  --purple: #5B3FA6;
  --purple-dark: #3d2b75;
  --purple-light: #7B5DC7;
  --purple-xlight: #a98de8;
  --sky: #C8E6F5;
  --sky-light: #EAF5FD;
  --white: #ffffff;
  --ink: #1A1333;
  --ink-muted: #5A5275;
  --accent: #F4C842;
  --green: #3ECFA8;
  --green-light: #E6FFF8;
  --radius: 20px;
  --nav-h: 56px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--ink);
  overflow-x: hidden;
}

/* ============================================
   NAV
   ============================================ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: var(--purple);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  height: var(--nav-h);
}
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 1.3rem;
  color: var(--white); letter-spacing: -0.02em;
  text-decoration: none;
  position: relative; z-index: 201;
}
.nav-links {
  display: flex; gap: 32px; list-style: none; align-items: center;
}
.nav-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none; font-size: 0.88rem; font-weight: 400;
  letter-spacing: 0.01em; transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-cta {
  background: var(--accent) !important;
  color: var(--ink) !important;
  font-weight: 600 !important;
  padding: 7px 18px !important;
  border-radius: 100px;
  font-size: 0.85rem !important;
  white-space: nowrap;
  transition: opacity 0.2s !important;
}
.nav-cta:hover { opacity: 0.85 !important; }

/* Hamburger button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  cursor: pointer;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 8px;
  position: relative; z-index: 201;
  padding: 0;
  transition: background 0.2s;
}
.hamburger:hover { background: rgba(255,255,255,0.18); }
.hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-menu {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--purple-dark);
  z-index: 199;
  padding: 16px 24px 28px;
  flex-direction: column;
  gap: 0;
  transform: translateY(-110%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  display: flex; /* always flex, controlled by transform */
}
.mobile-menu.open { transform: translateY(0); }

.mobile-menu a {
  display: block;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 1rem; font-weight: 500;
  padding: 14px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color 0.2s, padding-left 0.2s;
}
.mobile-menu a:hover,
.mobile-menu a.active { color: white; padding-left: 14px; }
.mobile-menu .mob-cta {
  background: var(--accent) !important;
  color: var(--ink) !important;
  font-weight: 700 !important;
  text-align: center !important;
  border-radius: 100px !important;
  margin-top: 14px !important;
  border-bottom: none !important;
  padding: 14px 8px !important;
  font-size: 1rem !important;
}
.mobile-menu .mob-cta:hover { padding-left: 8px !important; opacity: 0.9; }

/* Dim overlay */
.nav-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 198;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.nav-overlay.open { opacity: 1; pointer-events: all; }

/* ============================================
   FOOTER
   ============================================ */
footer { background: var(--ink); padding: 48px; }
.footer-top {
  display: grid; grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .f-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 1.3rem; color: white;
  display: block; margin-bottom: 12px; text-decoration: none;
}
.footer-brand p { font-size: 0.85rem; color: rgba(255,255,255,0.45); line-height: 1.6; max-width: 200px; }
.footer-col h5 {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.4); margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
.footer-col ul a:hover { color: white; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom span { color: rgba(255,255,255,0.3); font-size: 0.8rem; }
.footer-powered { color: rgba(255,255,255,0.4) !important; }
.footer-powered a { color: var(--accent); text-decoration: none; }

/* ============================================
   SHARED COMPONENTS
   ============================================ */
.page-hero {
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 80px;
  padding-left: 48px; padding-right: 48px;
  background: linear-gradient(160deg, #daeef9 0%, #e8f4fb 40%, #f0f4ff 100%);
  position: relative; overflow: hidden;
  text-align: center;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 70% 30%, rgba(91,63,166,0.08) 0%, transparent 70%);
}
.page-hero-inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }

.section-tag {
  display: inline-block;
  background: var(--sky); color: var(--purple);
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 100px; margin-bottom: 16px;
}
.page-hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.1;
  color: var(--purple-dark); margin-bottom: 18px;
}
.page-hero p {
  font-size: 1.05rem; color: var(--ink-muted);
  line-height: 1.7; font-weight: 300; max-width: 540px; margin: 0 auto 32px;
}
.section-wrap { max-width: 1100px; margin: 0 auto; padding: 80px 48px; }
.section-wrap.tight { padding: 60px 48px; }
.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.15;
  color: var(--ink); margin-bottom: 12px;
}
.section-sub {
  font-size: 1rem; color: var(--ink-muted);
  line-height: 1.7; font-weight: 300; max-width: 520px; margin-bottom: 52px;
}

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--purple); color: white;
  padding: 13px 28px; border-radius: 100px;
  text-decoration: none; font-weight: 500; font-size: 0.95rem;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--purple-dark); transform: translateY(-1px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--purple); padding: 13px 28px; border-radius: 100px;
  text-decoration: none; font-weight: 500; font-size: 0.95rem;
  border: 1.5px solid var(--purple-light); transition: background 0.2s;
}
.btn-ghost:hover { background: rgba(91,63,166,0.06); }
.btn-accent {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--ink);
  padding: 13px 28px; border-radius: 100px;
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  transition: opacity 0.2s, transform 0.15s;
}
.btn-accent:hover { opacity: 0.88; transform: translateY(-1px); }

/* Cloud blobs */
.cloud { position: absolute; background: white; opacity: 0.65; border-radius: 60px; }
.c1 { width: 220px; height: 110px; top: 12%; left: -3%; }
.c2 { width: 150px; height: 80px; top: 20%; left: 4%; border-radius: 50px; }
.c3 { width: 180px; height: 90px; top: 10%; right: 1%; border-radius: 55px; }
.c4 { width: 240px; height: 120px; bottom: 8%; right: -2%; border-radius: 65px; }
.c5 { width: 130px; height: 70px; bottom: 18%; left: 4%; border-radius: 45px; }

/* Stats band */
.stats-band {
  background: var(--purple);
  padding: 36px 48px;
  display: flex; justify-content: center; gap: 80px; flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-number { font-family: 'Syne', sans-serif; font-size: 2.2rem; font-weight: 800; color: var(--accent); line-height: 1; }
.stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-top: 4px; }

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fadeup   { animation: fadeUp 0.7s ease both; }
.fadeup-1 { animation: fadeUp 0.7s 0.1s ease both; }
.fadeup-2 { animation: fadeUp 0.7s 0.2s ease both; }


/* ============================================
   TABLET  ≤ 900px
   ============================================ */
@media (max-width: 900px) {
  nav { padding: 0 20px; }
  .hamburger { display: flex; }
  .nav-links  { display: none; }

  .section-wrap       { padding: 60px 24px; }
  .section-wrap.tight { padding: 48px 24px; }
  .page-hero { padding: calc(var(--nav-h) + 48px) 24px 56px; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  footer { padding: 36px 24px; }

  .stats-band { gap: 32px; padding: 28px 20px; }
  .stat-number { font-size: 1.8rem; }

  .c1, .c4 { display: none; }
}

/* ============================================
   MOBILE  ≤ 600px
   ============================================ */
@media (max-width: 600px) {
  .page-hero h1 { font-size: clamp(1.75rem, 8vw, 2.2rem); }
  .page-hero p  { font-size: 0.92rem; }
  .section-title { font-size: clamp(1.45rem, 7vw, 1.9rem); }
  .section-sub   { font-size: 0.9rem; margin-bottom: 36px; }

  .stats-band { gap: 20px; padding: 24px 16px; }
  .stat-number { font-size: 1.5rem; }
  .stat-label  { font-size: 0.78rem; }

  .footer-top { grid-template-columns: 1fr; gap: 20px; }
  footer { padding: 28px 16px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 4px; }

  /* Buttons full-width */
  .btn-primary, .btn-ghost, .btn-accent {
    width: 100%; justify-content: center; text-align: center;
  }

  /* Cloud blobs */
  .c2, .c3, .c5 { display: none; }
}
