/* ============================================
   NS TECHNOLOGIES — LANDING PAGE STYLES
   Primary font:  Roboto      (headings / UI)
   Secondary font: Nunito Sans (body copy)
   Colors: #ff7612 (orange) · #333333 (dark) · #fafafa (light bg)
   ============================================ */

:root{
  --orange: #ff7612;
  --orange-light: #ffb27a;
  --orange-pale: #ffe4cf;
  --dark: #333333;
  --dark-soft: #3f3f3f;
  --bg: #fafafa;
  --white: #ffffff;
  --text-muted: #6b6b6b;

  --font-head: 'Roboto', Arial, sans-serif;
  --font-body: 'Nunito Sans', Arial, sans-serif;

  --container: 1180px;
  --radius: 14px;
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4{
  font-family: var(--font-head);
  color: var(--dark);
  margin: 0;
  line-height: 1.15;
}

p{ margin: 0; }

a{ color: inherit; text-decoration: none; }

img{ max-width: 100%; display: block; }

ul{ list-style: none; margin: 0; padding: 0; }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.sr-only{
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.accent{ color: var(--orange); }
.accent-text{ color: var(--orange); font-weight: 700; }

/* ---------- Buttons ---------- */
.btn{
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 30px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover{ transform: translateY(-2px); }
.btn:focus-visible{ outline: 3px solid var(--orange); outline-offset: 3px; }

.btn-primary{
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(255,118,18,.28);
}
.btn-primary:hover{ background: #ea6805; }

.btn-dark{
  background: var(--dark);
  color: var(--white);
}
.btn-dark:hover{ background: #1f1f1f; }

.btn-nav{ padding: 11px 24px; font-size: .88rem; }

/* ---------- Decorative blobs ---------- */
.blob{
  position: absolute;
  border-radius: 50%;
  background: var(--orange);
  opacity: .45;
  pointer-events: none;
  z-index: 0;
}

/* ============ HEADER ============ */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid #eeeeee;
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.main-nav ul{
  display: flex;
  gap: 34px;
}
.main-nav a{
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 500;
  color: var(--dark);
  transition: color .15s ease;
}
.main-nav a:hover{ color: var(--orange); }

.nav-toggle{
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span{
  width: 24px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
}

/* ============ HERO ============ */
.hero{
  position: relative;
  padding: 110px 0 130px;
  text-align: center;
  background: var(--white);
  overflow: hidden;
}

.blob-hero-left {
  width: 220px; height: 220px;
  left: -110px; 
  top: 50%; 
  transform: translateY(-50%); /* Centers the blob perfectly */
  opacity: 0.85; /* Overrides the default .45 opacity. Change to 1 for solid color */
}

.blob-hero-right {
  width: 220px; height: 220px;
  right: -110px; 
  top: 50%; 
  transform: translateY(-50%); /* Centers the blob perfectly */
  opacity: 0.85; /* Overrides the default .45 opacity. Change to 1 for solid color */
}

.hero-inner{ 
  position: relative;
  z-index: 1; 
  padding: 0 40px;
}

.hero-title{
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 900;
  max-width: 900px;
  margin: 0 auto;
}

.hero-subtitle{
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 26px auto 40px;
  max-width: 620px;
}

/* ============ PROBLEM SECTION ============ */
.problem {
  position: relative;
  padding: 120px 0 160px;
}
.problem-heading{
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 700;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.problem-bg {
  position: absolute;
  width: 90%;
  min-width: 600px; /* Ensures the blobs don't shrink too much on laptops */
  max-width: 1350px; /* Caps the size on ultra-wide desktop monitors */
  height: auto; /* Allows natural scaling rather than forced containment */
  padding: 60px 0px;
  bottom: 0; /* Locks it to the very bottom, protecting the section below */
  top: auto; /* Removes the top constraint */
  left: 50%;
  transform: translateX(-50%) translateY(5%); /* Keeps the image perfectly centered horizontally */
  
  z-index: 0;
}

/* Mobile-only background layers: hidden on desktop, revealed under 810px */
.problem-bg-mobile { display: none; }

.problem .container {
  position: relative;
  z-index: 1; /* Forces the content to sit above the absolutely positioned background image */
}

.problem-sub{
  font-family: var(--font-body);
  text-align: center;
  color: var(--text-muted);
  max-width: 640px;
  margin: 22px auto 0;
  font-size: 1.02rem;
}

.killer-grid{
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 90px;
}

.killer-card {
  position: relative;
  z-index: 1;
  background: var(--dark);
  border-radius: var(--radius);
  padding: 40px 30px; /* Reduced from 60px 30px to match the tighter look in your required design */
  box-shadow: 0 18px 40px rgba(20,20,20,.06);
}

.killer-card h3{
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--white);
}

.killer-card p{
  font-family: var(--font-body);
  font-size: .96rem;
  line-height: 1.55;
  color: var(--bg);
}

/* ============ DARK BANNER ============ */
.banner-dark{
  background: var(--dark);
  padding: 30px 0;
  text-align: center;
}
.banner-dark h2{
  color: var(--white);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 800;
}

/* ============ ECOSYSTEM SECTION ============ */
.ecosystem{
  padding: 0px 0;
  background: var(--white);
}

.ecosystem-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px; /* Creates a controlled, consistent gap between the text and image */
  max-width: 1000px; /* Restricts the overall width, forcing the two columns closer together */
  margin: 0 auto; /* Centers this tighter grid on the page */
  padding: 0 32px; /* Restores symmetrical padding for smaller screens */
  align-items: center;
}

.eyebrow{
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 18px;
}

.ecosystem-text{
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 480px;
}

.feature-list{
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.feature-list li{
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1rem;
}
.feature-icon{
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--orange-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

img.feature-icon{
  padding: 9px;
  object-fit: contain;
}

.ecosystem-media { 
  display: flex; 
  justify-content: flex-start; /* Pulls the image to the left, tightly against the new gap */
} 
.ecosystem-image {
  width: 100%;
  max-width: 420px;
  object-fit: contain;
}

/* ============ THREE PHASES ============ */
.phases{
  padding: 20px 0 70px;
  background: var(--white);
}

.phase-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  padding: 0px 50px;
}

.phase-card{
  background: var(--dark);
  border-radius: var(--radius);
  padding: 36px 30px;
  color: var(--white);
  min-height: 260px;
}

.phase-tag{
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: 1px;
  color: var(--orange-light) !important;
  margin-bottom: 14px;
}

.phase-card h3{
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.phase-card p{
  font-family: var(--font-body);
  font-size: .92rem;
  line-height: 1.6;
  color: #d4d4d4;
  margin-bottom: 12px;
}
.phase-card p:last-child{ margin-bottom: 0; }

/* ============ CONTACT / FORM ============ */
.contact{
  position: relative;
  padding: 60px 0 140px;
  overflow: hidden;
}

.blob-contact-right{
  width: 240px; height: 240px;
  right: -120px;
  top: 10%;
}

.blob-contact-left{
  width: 240px; height: 240px;
  left: -120px;
  top: 60%;
}

.contact-inner{ position: relative; z-index: 1; }

.contact-heading{
  text-align: center;
  max-width: 680px;
  margin: 0 auto 46px;
}
.contact-heading h2{
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
  margin-bottom: 16px;
}
.contact-heading p{
  font-family: var(--font-body);
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.contact-form{
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field{ width: 100%; }

input, select{
  width: 100%;
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--dark);
  padding: 15px 18px;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  background: var(--white);
  appearance: none;
}

select{
  color: var(--text-muted);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 40px;
}

input:focus, select:focus{
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,118,18,.15);
}

.btn-submit{
  margin-top: 8px;
  width: 100%;
  padding: 17px 0;
  font-size: 1rem;
  letter-spacing: .5px;
  text-transform: uppercase;
}

/* ============ FOOTER ============ */
.site-footer{
  background: var(--white);
  border-top: 1px solid #eee;
  padding-top: 40px;
  position: relative;
}

.footer-logo-wrap{
  display: flex;
  justify-content: center;
}

.footer-logo img {
  height: 15rem; /* Adjust this value as needed for the footer */
  width: auto;
  object-fit: contain;
}

.footer-logo{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: .9;
}
.footer-logo-text{
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: 4px;
  color: var(--dark);
}
.footer-logo-text span{
  display: block;
  font-size: .6rem;
  letter-spacing: 6px;
  font-weight: 700;
  text-align: center;
  color: var(--dark);
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding-bottom: 34px;
  background: var(--dark);
  color: var(--white);
  padding-top: 34px;
  padding-left: 32px; /* Added for mobile spacing */
  padding-right: 32px; /* Added for mobile spacing */
  border-radius: 0;
  width: 100%; /* Ensures it stretches edge-to-edge */
}

.footer-nav{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  font-family: var(--font-head);
  font-size: .92rem;
}
.footer-nav a:hover{ color: var(--orange); }

.footer-contact{
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-contact a{
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: .9rem;
  color: #e6e6e6;
}
.footer-contact a:hover{ color: var(--orange); }

.footer-bottom{
  background: #262626;
  text-align: center;
  padding: 16px 0;
}
.footer-bottom p{
  font-family: var(--font-body);
  font-size: .82rem;
  color: #9c9c9c;
}

/* ============================================
   RESPONSIVE
   ============================================*/

@media (max-width: 810px){

  html {   
    font-size: 14px; 
  }

  .blob-hero-left {
  width: 150px; height: 150px;
  }

  .blob-hero-right {
    width: 150px; height: 150px;
  }

  .killer-grid{ grid-template-columns: 1fr; }
  .phase-grid{ grid-template-columns: 1fr; }
  
  .ecosystem-inner { 
    grid-template-columns: 1fr; 
    padding: 0 60px; /* Removes any asymmetrical desktop padding to center the content */
  }
  
  .ecosystem-image{
    max-width: 288px;
  }

  .ecosystem-media { 
    order: 2; /* Moves the image below the text */
    justify-content: center; /* Centers the image horizontally */
    margin-top: 0px; /* Adds a clean gap between the last bullet point and the image */
  }

  .ecosystem-copy{
    padding: 32px 0px; /* Adds padding to the text for smaller screens */
  }

  .main-nav{
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid #eee;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .main-nav.open{ max-height: 320px; }
  .main-nav ul{
    flex-direction: column;
    padding: 20px 32px;
    gap: 18px;
  }
  .nav-toggle{ display: flex; }
  .btn-nav{ display: none; }

  /* Hide the single desktop image, swap in the two mobile layers */
  .problem-bg-desktop { display: none; }

  .problem-bg-mobile {
    display: block;
    position: absolute;
    z-index: 0;
    pointer-events: none;
  }

  /* Grid: covers the full problem section as the base layer */
  .problem-bg-grid {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Blobs: centered behind the card stack, on top of the grid */
  .problem-bg-blobs {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 340px;
    height: auto;
  }

  .blob-contact-right{
  width: 150px; height: 150px;
  }

  .blob-contact-left{
    width: 150px; height: 150px;
  }

  .hero{ padding: 80px 0 90px; }
  .problem{ padding: 80px 0 110px; }
  .killer-grid{ margin-top: 60px; }
  .form-row{ grid-template-columns: 1fr; }
  .footer-contact{ flex-direction: column; align-items: center; }

  .footer-logo img {
    height: 5rem; /* Overrides the 15rem height from the desktop view */
    width: auto;
  }

  .footer-nav {
    flex-direction: column; /* Changes the layout from horizontal to vertical */
    align-items: center; /* Keeps the links perfectly centered */
    gap: 18px; /* Adds consistent vertical spacing between the links */
  }

}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .btn{ transition: none; }
}