html, body {
  overflow-x: hidden;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: #1f2937; padding-top: 70px; }

.navbar { transition: background-color 0.3s, box-shadow 0.3s; }
.navbar-brand img { height: 32px; }
.navbar.scrolled { background-color: #ffffff !important; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }

/* === Mobile navbar menu === */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: #ffffff;  /* solid white only on mobile */
    z-index: 2000;
    padding: 1rem;
  }

  .navbar-nav .nav-link {
    color: #001F54 !important;
    font-weight: 600;
  }

  .navbar-nav .nav-link:hover {
    color: #20b486 !important;
  }
}
/* Desktop hover dropdown fix */
@media (min-width: 992px) {
  .navbar .dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0; /* removes gap */
  }
}

/* === HERO (Professional split hero) === */
.hero{
  background-color:#ACE1AF;
  color:#001F54;
  height:70vh;
  min-height:520px;
  display:flex;
  align-items:stretch;
  overflow:hidden;
  margin:0;
  padding:0;
}

.hero-content{
  display:flex;
  width:100%;
  height:100%;
  align-items:stretch;
}

.hero-text{
  flex:1;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:clamp(2.5rem, 4vw, 4rem);
  box-sizing:border-box;
}

.hero-text h1{
  font-weight:800;
  font-size:clamp(2.4rem, 4vw, 3.5rem);
  line-height:1.05;
  margin-bottom:1rem;
  letter-spacing:-0.02em;
}

.hero-text p{
  font-size:1.125rem;
  line-height:1.6;
  margin-bottom:2rem;
  max-width:44ch;
}

.hero-image{
  flex:1;
  position:relative;
  overflow:hidden;
}

/* Force image to fill the right panel */
.hero-image img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
}

/* Diagonal notch overlay */
.hero-diagonal{
  position:absolute;
  inset:0;
  background-color:#ACE1AF;
  clip-path:polygon(0 0, 18% 0, 0 100%);
  pointer-events:none;
}

/* Mobile stacking */
@media (max-width: 991.98px){
  .hero{
    height:auto;
    min-height:0;
  }
  .hero-content{
    flex-direction:column;
  }
  .hero-image{
    height:280px; /* gives the image a nice fixed hero image height on mobile */
  }
  .hero-image img{
    position:absolute;
  }
  .hero-diagonal{
    display:none;
  }
}



/* Key Features section: image flush but flexible height */
.keyfeatures-section {
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: stretch;
  margin: 0;
  padding: 0;
}

.keyfeatures-content {
  display: flex;
  width: 100%;
  min-height: 400px; /* ensures decent height, grows with content */
}

.keyfeatures-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem;
  box-sizing: border-box;
  overflow: hidden;
}

.keyfeatures-image {
  flex: 1;
  position: relative;
  overflow: hidden;
   height: 80vh; 
  display: flex;
  /* align-items: stretch; */
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.keyfeatures-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;  /* flush + crop */
  display: block;
}




/* === BUTTONS === */
.btn-primary {
  background-color: #fff;
  border-color: #fff;
  color: #001F54;
  font-weight: 600;
}
.btn-primary:hover {
  background-color: #f3f4f6;
  border-color: #f3f4f6;
  color: #199d73;
}

.btn-outline-primary {
  border-color: #fff;
  color: #fff;
  font-weight: 600;
}
.btn-outline-primary:hover {
  background-color: #fff;
  color: #20b486;
}

/* === Core Hero Section === */
.core-hero {
  position: relative;
  background: url('hero_core.jpg') no-repeat center center/cover;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: #001F54;
  margin-top: 70px;
}

.core-overlay {
  background: rgba(172, 225, 175, 0.85);
  padding: 3rem;
  max-width: 600px;
  margin-left: 5%;
  border-radius: 0.5rem;
}

.core-text h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.core-text p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

/* === Demo Hero Section === */
.demo-hero {
  position: relative;
  background: url('demo_image.jpg') no-repeat center center/cover;
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: #001F54;
  margin-top: 70px;
}

.demo-overlay {
  background: rgba(172, 225, 175, 0.85);
  padding: 2.5rem;
  max-width: 600px;
  margin-left: 5%;
  border-radius: 0.5rem;
}

.demo-text h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.demo-text p {
  font-size: 1.25rem;
  margin-bottom: 0;
}

/* === OTHER SECTIONS === */
.feature-icon { font-size: 2rem; color: #20b486; margin-bottom: 1rem; }
.section-alt { background-color: #f9fafb; }

footer {
  background: #111827;
  color: #d1d5db;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.875rem;
}
footer a {
  color: #9ca3af;
  text-decoration: none;
  margin: 0 0.5rem;
}
footer a:hover { color: #fff; }

.py-7 { padding-top: 6rem !important; padding-bottom: 6rem !important; }

/* Improve section spacing */
.py-7 {
  padding: 6rem 0;
}

/* Feature cards */
.core-card {
  background: #ffffff;
  padding: 2.5rem 2rem;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
  height: 100%;
}

.core-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.core-card h5 {
  font-weight: 600;
  margin-bottom: 1rem;
}

.core-card p {
  color: #555;
  line-height: 1.6;
}

/* Softer background */
.bg-soft {
  background: #f4f7fb;
}

/* Better list styling */
.core-list {
  list-style: none !important;
  padding-left: 0 !important;
}



/* Prevent horizontal scroll globally */
html, body {
  overflow-x: hidden;
}



/* Optional: soften feature section spacing */
#features {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.navbar-brand img {
  max-height: 40px;
  width: auto;
}

.mb-7 { margin-bottom: 6rem; }

.core-screenshot {
  box-shadow: 0 25px 60px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.core-screenshot:hover {
  transform: translateY(-6px);
}

.section-soft {
  background-color: #f6fbf8;
}

.section-accent {
  background-color: #eef6f1;
}

.section-divider {
  border-top: 1px solid #e3ece8;
  border-bottom: 1px solid #e3ece8;
}


.section-divider {
  border-top: 1px solid #e8eeec;
  border-bottom: 1px solid #e8eeec;
}

.screenshot-stack {
  position: relative;
  display: inline-block;
}

.main-screen {
  width: 100%;
  max-width: 520px;
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.08);
}

.floating-screen {
  position: absolute;
  width: 65%;
  bottom: -30px;
  right: -40px;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.icon-row {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.icon-item {
  text-align: center;
}

.icon-circle {
  width: 72px;
  height: 72px;
  background-color: #e6f3ed;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.7rem;
  color: #1f5e49;
}

.icon-item p {
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0;
}

.governance-stack {
  position: relative;
  display: inline-block;
}

.gov-main {
  width: 100%;
  max-width: 520px;
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.08);
}

.gov-layer {
  position: absolute;
  width: 65%;
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.12);
}

/* Bottom left layer */
.layer-1 {
  bottom: -30px;
  left: -40px;
}

/* Top right layer */
.layer-2 {
  top: -30px;
  right: -40px;
}

.aptly-check {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  background-color: #8BC6A2; /* your celadon */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
}

.aptly-check svg {
  width: 14px;
  height: 14px;
  stroke: white;
}

/* Products page image sizing */
.product-preview {
  max-width: 480px;
  width: 100%;
  box-shadow: 0 25px 60px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.product-preview:hover {
  transform: translateY(-6px);
}