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

:root {
  --blue:   #1F3C88;
  --green:  #2E9E6B;
  --green2: #00C48C;
  --dark:   #1a2d5a;
  --text:   #1E2B45;
  --muted:  #5a6a85;
  --bg:     #f0f4f8;
  --white:  #ffffff;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
}

/* ═══════════════════════════════
   NAV
═══════════════════════════════ */
nav {
  position: sticky; 
  top: 0; 
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(31,60,136,0.08);
  padding: 0 5%;
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  display: flex; 
  align-items: center; 
  gap: 10px;
  text-decoration: none;
}

.logo {
  max-width: 170px;
  width: 100%;
}

.logo-icon {
  width: 38px; height: 38px;
}

.logo-text {
  font-family: 'Sora', sans-serif;
  font-size: 1.25rem; font-weight: 700;
  color: var(--blue);
}
.logo-text em { color: var(--green); font-style: normal; }

.nav-links {
  display: flex; align-items: center; gap: 36px; list-style: none;
}
.nav-links a {
  font-size: 0.9rem; font-weight: 500;
  color: var(--muted); text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--blue); }

.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--blue); border-radius: 2px;
  transition: all 0.3s;
}

/* ═══════════════════════════════
   HERO
═══════════════════════════════ */
.hero {
  position: relative; overflow: hidden;
  padding: 80px 5% 0;
  min-height: 560px;
  display: flex; align-items: center;
}

/* Wave blobs background */
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden;
}
.wave-blob {
  position: absolute;
  border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%;
}
.wave-blob-1 {
  width: 700px; height: 500px;
  top: -100px; right: -80px;
  background: linear-gradient(135deg, rgba(31,60,136,0.08) 0%, rgba(0,196,140,0.1) 100%);
  animation: morphBlob 8s ease-in-out infinite;
}
.wave-blob-2 {
  width: 500px; height: 400px;
  bottom: -60px; right: 100px;
  background: linear-gradient(135deg, rgba(0,196,140,0.07) 0%, rgba(31,60,136,0.06) 100%);
  border-radius: 40% 60% 30% 70% / 60% 40% 70% 30%;
  animation: morphBlob 10s ease-in-out infinite reverse;
}
.wave-blob-3 {
  width: 300px; height: 300px;
  top: 20px; right: 40%;
  background: rgba(31,60,136,0.04);
  animation: morphBlob 12s ease-in-out infinite;
}
@keyframes morphBlob {
  0%,100% { border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%; }
  33%      { border-radius: 40% 60% 30% 70% / 60% 30% 70% 40%; }
  66%      { border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%; }
}

.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 40px;
  width: 100%; max-width: 1200px; margin: 0 auto;
}

.hero-text { padding-bottom: 80px; }

.hero-text h1 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800; line-height: 1.15;
  color: var(--blue);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  animation: fadeUp 0.7s ease both;
}

.hero-text p {
  font-size: 1rem; line-height: 1.7;
  color: var(--muted);
  max-width: 420px;
  margin-bottom: 36px;
  animation: fadeUp 0.7s 0.1s ease both;
}

.btn-green {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-size: 0.95rem; font-weight: 600;
  padding: 14px 36px; border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(46,158,107,0.3);
  animation: fadeUp 0.7s 0.2s ease both;
}
.btn-green:hover {
  background: #25875a;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(46,158,107,0.4);
}

/* Device mockup */
.hero-visual {
  position: relative;
  display: flex; align-items: flex-end; justify-content: center;
  padding-top: 20px;
  animation: fadeLeft 0.8s 0.2s ease both;
}

.laptop-wrap {
  position: relative; z-index: 2;
}

.laptop {
  width: 420px;
  filter: drop-shadow(0 24px 48px rgba(31,60,136,0.2));
}

.phone-wrap {
  position: absolute;
  right: -20px; bottom: 20px;
  z-index: 3;
}

.phone {
  width: 110px;
  filter: drop-shadow(0 12px 32px rgba(31,60,136,0.25));
}

/* ─ Laptop SVG ─ */
.laptop-body { fill: #2a3f7a; }
.laptop-screen { fill: #1a2d5a; }
.laptop-base  { fill: #3d5094; }
.laptop-chin  { fill: #243362; }
.screen-content { fill: #f0f4f8; }
.chart-bar-blue { fill: #1F3C88; }
.chart-bar-green { fill: #00C48C; }
.metric-bg { fill: #fff; rx: 4; }

/* ═══════════════════════════════
   FEATURES
═══════════════════════════════ */
.features {
  padding: 80px 5%;
  background: var(--white);
}

.features-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px;
}

.feature-item { text-align: left; }

.feat-icon-wrap {
  width: 56px; height: 56px;
  margin-bottom: 16px;
}

.feature-item h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.1rem; font-weight: 700;
  color: var(--blue); margin-bottom: 12px;
  line-height: 1.3;
}

.feature-item p {
  font-size: 0.88rem; color: var(--muted); line-height: 1.65;
}

/* ═══════════════════════════════
   CTA / NEWSLETTER SECTION
═══════════════════════════════ */
.cta-section {
  position: relative; overflow: hidden;
  padding: 80px 5%;
  background: linear-gradient(160deg, #e8f0fb 0%, #edf6f2 50%, #e0eeea 100%);
}

.cta-blob-1 {
  position: absolute;
  width: 600px; height: 450px;
  top: -100px; left: -100px;
  background: radial-gradient(ellipse, rgba(31,60,136,0.07) 0%, transparent 70%);
  border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%;
  animation: morphBlob 9s ease-in-out infinite;
}
.cta-blob-2 {
  position: absolute;
  width: 400px; height: 350px;
  bottom: -80px; right: 200px;
  background: radial-gradient(ellipse, rgba(0,196,140,0.08) 0%, transparent 70%);
  border-radius: 40% 60% 30% 70%;
  animation: morphBlob 11s ease-in-out infinite reverse;
}

.cta-inner {
  position: relative; z-index: 1;
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 60px;
}

.cta-text h2 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  font-weight: 800; color: var(--blue);
  line-height: 1.2; margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta-text h2 em {
  font-style: normal; color: var(--green);
}

.cta-text p {
  font-size: 0.92rem; color: var(--muted);
  line-height: 1.7; margin-bottom: 28px;
  max-width: 380px;
}

.email-form {
  display: flex; gap: 0;
  max-width: 400px;
  position: relative;
}

.email-input {
  flex: 1;
  padding: 13px 18px;
  border: 1.5px solid #c8d4e8;
  border-right: none;
  border-radius: 8px 0 0 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem; color: var(--text);
  background: rgba(255,255,255,0.9);
  outline: none;
  transition: border-color 0.2s;
}
.email-input::placeholder { color: #aab4c8; }
.email-input:focus { border-color: var(--blue); }

.btn-submit {
  background: var(--green);
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-size: 0.9rem; font-weight: 600;
  padding: 13px 28px;
  border: none; border-radius: 0 8px 8px 0;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.btn-submit:hover { background: #25875a; }

.cta-visual {
  position: relative;
  display: flex; align-items: flex-end; justify-content: center;
}

/* ═══════════════════════════════
   SECOND CTA (centered)
═══════════════════════════════ */
.cta2 {
  padding: 70px 5%;
  text-align: center;
  background: var(--white);
}

.cta2 h2 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700; color: var(--blue);
  margin-bottom: 10px;
}
.cta2 h2 em { color: var(--green); font-style: normal; }
.cta2 p { font-size: 0.9rem; color: var(--muted); margin-bottom: 28px; }
.cta2 .email-form { max-width: 420px; margin: 0 auto; }

/* ═══════════════════════════════
   PARTNERS
═══════════════════════════════ */
.partners {
  padding: 44px 5%;
  background: var(--white);
  border-top: 1px solid rgba(31,60,136,0.07);
}

.partners-inner {
  max-width: 900px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: 48px; flex-wrap: wrap;
}

.partner-logo {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Sora', sans-serif;
  font-size: 0.9rem; font-weight: 600;
  color: #a0aec0;
  transition: color 0.2s;
}
.partner-logo:hover { color: var(--blue); }
.partner-logo svg { opacity: 0.5; }

/* ═══════════════════════════════
   FOOTER
═══════════════════════════════ */
footer {
  padding: 24px 5%;
  background: var(--blue);
  display: flex; align-items: center; justify-content: space-between;
}
footer .f-logo {
  font-family: 'Sora', sans-serif;
  font-size: 1rem; font-weight: 700; color: rgba(255,255,255,0.7);
}
footer .f-logo em { color: var(--green2); font-style: normal; }
footer p { font-size: 0.78rem; color: rgba(255,255,255,0.35); }

.msg-mail {
  position: absolute;
  bottom: -20px;
  left: 10px;
  font-size: 12px;
}

/* ═══════════════════════════════
   ANIMATIONS
═══════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ═══════════════════════════════
   RESPONSIVE
═══════════════════════════════ */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text { padding-bottom: 20px; }
  .hero-text h1, .hero-text p { max-width: 100%; }
  .hero-visual { justify-content: center; padding-bottom: 40px; }
  .laptop { width: 320px; }
  .phone { width: 86px; }
  .phone-wrap { right: -10px; bottom: 10px; }

  .features-inner { grid-template-columns: 1fr; gap: 36px; }
  .feature-item { text-align: center; }
  .feat-icon-wrap { margin: 0 auto 16px; }

  .cta-inner { grid-template-columns: 1fr; }
  .cta-visual { display: none; }
  .cta-text p { max-width: 100%; }

  .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: white; padding: 20px 5%; box-shadow: 0 8px 24px rgba(0,0,0,0.1); gap: 20px; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }

  footer { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 500px) {
  nav {justify-content: center;}
  .laptop { width: 260px; }
  .email-form { flex-direction: column; }
  .email-form .email-input, .email-form .btn-submit {width: 100%; margin-bottom: 20px;}
  .email-input { border-right: 1.5px solid #c8d4e8; border-radius: 8px; }
  .btn-submit { border-radius: 8px; }
  .partners-inner { gap: 24px; }
  .partner-logo { font-size: 0.78rem; }
  .cta-section {text-align: center;}
}