/* ── LAYOUT: containers, grids, structural positioning ── */

/* NAV */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 88px;
  display: flex; align-items: center;
  background: #1E2846;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(55,192,180,0.2);
  transition: box-shadow 0.3s;
}
#navbar.scrolled { box-shadow: 0 4px 24px rgba(30,40,70,0.2); }
.nav-inner {
  width: 100%; max-width: var(--max-content);
  margin: 0 auto; padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-links {
  display: flex; gap: 36px; list-style: none;
}
.nav-actions { display: flex; gap: 12px; align-items: center; }

#navbar .nav-links li.hide-on-home {
  display: none !important;
}

/* DROPDOWN MENU */
.nav-links li { position: relative; padding: 10px 0; }
.nav-links li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-links .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-primary);
  border: 1px solid rgba(55,192,180,0.1);
  border-radius: 8px;
  padding: 12px 0;
  min-width: 220px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.nav-links .sub-menu li { padding: 0; }
.nav-links .sub-menu a {
  display: block;
  padding: 10px 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: color 0.2s, background 0.2s;
}
.nav-links .sub-menu a:hover {
  color: var(--cta);
  background: rgba(55,192,180,0.05);
}
/* HERO */
.hero-wrapper {
  background: #1E2846;
  padding-top: 88px;
  position: relative; overflow: hidden;
}
.hero {
  padding: 50px 40px 50px;
  max-width: var(--max-content); margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; text-align: center; justify-content: center; min-height: 700px;
  position: relative; z-index: 1;
}
.hero-center {
  display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 580px; position: relative; z-index: 2;
}
.hero-actions {
  display: flex; gap: 14px; margin-bottom: 56px; justify-content: center;
  animation: fadeUp 0.6s ease 0.3s both;
}
.hero-metrics {
  position: absolute; left: 40px; top: 0; bottom: 0; margin: auto; height: fit-content;
  display: flex; flex-direction: column; gap: 32px;
  animation: fadeUp 0.6s ease 0.4s both; z-index: 3;
}
.hero-visual {
  position: absolute; right: -30px; top: -40px; bottom: 0; margin: auto; height: 480px; width: 480px;
  display: flex; align-items: center; justify-content: center;
  transform: scale(0.65); transform-origin: center right;
  animation: fadeUp 0.8s ease 0.2s both; z-index: 3; pointer-events: none;
}

/* SECTION COMMON */
section { position: relative; scroll-margin-top: 88px; }
.section-inner { max-width: var(--max-content); margin: 0 auto; padding: clamp(24px, 4vw, 48px) clamp(16px, 3vw, 32px); }

/* TRUSTED BY */
.trusted-section { background: var(--bg-secondary); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trusted-inner { max-width: var(--max-content); margin: 0 auto; padding: 52px 40px; text-align: center; }
.logo-strip { display: flex; align-items: center; justify-content: center; gap: 56px; flex-wrap: wrap; }

/* HOW IT WORKS */
.how-section { background: #1E2846; }
.journey { display: flex; align-items: flex-start; justify-content: center; gap: 0; margin-top: 64px; position: relative; overflow: visible; }
.journey-step { flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; }
.journey-connector {
  flex: 0 0 40px; display: flex; align-items: flex-start; padding-top: 36px;
}

/* APP CARDS GRID */
.apps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 64px; }

/* RESULTS GRIDS */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 64px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* TESTIMONIALS */
.testimonials-section { background: #1E2846; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }

/* PRICING GRID */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 20px; align-items: start; }

/* DEMO */
.demo-section { background: #1E2846; }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

/* FOOTER */
footer { background: #1E2846; color: #DEDFD9; border-top: 1px solid rgba(55,192,180,0.15); }
.footer-inner { max-width: var(--max-content); margin: 0 auto; padding: 48px 40px 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer-bottom { border-top: 1px solid rgba(222,223,217,0.1); padding-top: 28px; display: flex; justify-content: space-between; align-items: center; }
.footer-legal { display: flex; gap: 24px; }
