:root{
  --bg:#070b14;
  --panel:rgba(255,255,255,.05);
  --panel2:rgba(255,255,255,.03);
  --text:#eaf0ff;
  --muted:#a9b7d6;
  --line:rgba(255,255,255,.10);
  --blue:#2b7bff;
  --cyan:#00b7ff;
}

*{ box-sizing:border-box; }

html, body{
  width:100%;
  overflow-x:hidden;
}

body{
  margin:0;
  font-family:'Inter', sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
}

img{ max-width:100%; display:block; }

.container{
  width:min(1100px, 92%);
  margin:auto;
}

/* =========================
   HEADER CLEAN STRUCTURE
========================= */

.header{
  background: rgba(8,15,30,.95);
  border-bottom:1px solid rgba(255,255,255,.08);
  position:sticky;
  top:0;
  z-index:1000;
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 0;
}

/* LEFT SIDE */

.brand{
  display:flex;
  align-items:center;
  gap:12px;
}

.logo{
  height:64px;
  width:auto;
  display:block;
}

.brand-text{
  display:flex;
  flex-direction:column;
  line-height:1.15;
}

.brand-name{
  font-size:18px;
  font-weight:800;
}

.brand-sub{
  font-size:12px;
  color:#a9b7d6;
}

/* RIGHT SIDE */

.nav-right{
  display:flex;
  align-items:center;
  gap:24px;
}

.menu{
  display:flex;
  align-items:center;
  gap:18px;
}

.menu a{
  text-decoration:none;
  color:#a9b7d6;
  font-weight:600;
  font-size:14px;
}

.menu a:hover{
  color:#ffffff;
}

.btn-sm{
  background:linear-gradient(90deg,#2b7bff,#00b7ff);
  padding:10px 20px;
  border-radius:12px;
  font-weight:700;
  color:#081022;
  text-decoration:none;
  white-space:nowrap;
}

/* =========================
   MOBILE FIX
========================= */

@media(max-width:900px){

  .nav{
    flex-direction:column;
    align-items:flex-start;
    gap:12px;
  }

  /* KEEP right side in one row */
  .nav-right{
    width:100%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:nowrap;
  }

  .menu{
    display:flex;
    gap:16px;
    flex-wrap:nowrap;
  }

  .logo{
    height:58px;
  }

}

/* ---------------- HERO ---------------- */

.hero{
  position:relative;
  background:url('assets/hero.jpeg') center/cover no-repeat;
  padding:72px 0 44px;  /* tighter + fixes dead space */
}

.hero-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(rgba(7,11,20,.55), rgba(7,11,20,.92));
}

.hero-content{
  position:relative;
}
.hero-cred{
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  max-width: 820px;
}
.badge{
  background:rgba(255,255,255,.10);
  padding:7px 14px;
  border-radius:999px;
  display:inline-block;
  font-size:13px;
  border:1px solid rgba(255,255,255,.12);
  margin:0 0 14px;
}

.hero h1{
  font-size:46px;
  line-height:1.05;
  margin:0 0 14px;
  letter-spacing:-.5px;
}

.hero-sub{
  max-width:700px;
  font-size:16px;
  color:#d7e2ff;
  margin:0;
}

.hero-buttons{
  margin:22px 0 26px; /* reduce gap under buttons */
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.btn{
  background:linear-gradient(90deg,var(--blue),var(--cyan));
  padding:13px 20px;
  border-radius:12px;
  text-decoration:none;
  font-weight:900;
  color:#081022;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.btn-outline{
  border:1px solid var(--blue);
  padding:13px 20px;
  border-radius:12px;
  text-decoration:none;
  color:var(--text);
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.hero-highlights{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:14px;
  margin-top:16px;
  margin-bottom:0; /* IMPORTANT: removes dead gap before next section */
}

.highlight{
  background:rgba(255,255,255,.06);
  padding:14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
}

.highlight strong{
  display:block;
  font-size:14px;
}

.highlight span{
  font-size:12px;
  color:var(--muted);
}

/* ---------------- SECTIONS ---------------- */

.section{
  padding:44px 0; /* tighter, premium rhythm */
}

.alt{
  background:var(--panel2);
}

.section-head{
  margin:0 0 16px;
}

.section-head h2{
  margin:0;
  font-size:30px;
  line-height:1.15;
}

.section-sub{
  margin:10px 0 0;
  color:var(--muted);
}

/* Prevent random big gaps from default margins */
h1,h2,h3,p{ margin-top:0; }
p{ margin-bottom:0; }

/* ---------------- CARDS ---------------- */

.cards{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:18px;
  margin-top:18px; /* tighter */
}

.card{
  background:var(--panel);
  padding:18px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
}

.card img{
  width:100%;
  aspect-ratio:16/10;
  object-fit:cover;
  border-radius:12px;
  margin-bottom:14px;
}

.card h3{
  margin:0 0 8px;
}

.card p{
  margin:0;
  color:#d6e2ff;
}

/* ---------------- STEPS ---------------- */

.steps{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:18px;
  margin-top:18px;
}

.step{
  background:var(--panel);
  padding:18px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
}

.step-number{
  font-weight:900;
  color:var(--blue);
  margin-bottom:8px;
}

/* ---------------- VALUE GRID ---------------- */

.value-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:18px;
  margin-top:18px;
}

.value{
  background:var(--panel);
  padding:18px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
}

/* ---------------- FORM ---------------- */

form{
  margin-top:18px;
}

.form-row{
  display:flex;
  gap:12px;
  margin-bottom:12px;
}

input, textarea{
  width:100%;
  padding:12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.08);
  background:#0f162b;
  color:white;
}

textarea{
  min-height:130px;
  margin-bottom:14px;
}

.btn-block{
  width:100%;
  text-align:center;
}

.contact-info{
  margin-top:14px;
  color:var(--muted);
}

/* ---------------- FOOTER ---------------- */

footer{
  border-top:1px solid var(--line);
  padding:22px 0;
  text-align:center;
}

.footer-logo{
  height:44px;
  margin:0 auto 8px;
}

.footer-text{
  color:var(--muted);
}

/* ---------------- RESPONSIVE ---------------- */

@media (max-width: 900px){
  .cards{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .steps{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .value-grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .hero h1{ font-size:38px; }
  .hero{ padding:64px 0 40px; }
}

@media (max-width: 720px){
  /* Mobile header layout fix */
  .nav{
    flex-direction:column;
    align-items:flex-start;
    padding:10px 0 12px;
  }

  .brand{
    width:100%;
  }

  .menu{
    width:100%;
    justify-content:flex-start;
    gap:10px;
  }

  .btn-sm{
    margin-left:auto; /* pushes button right if space */
  }
}

@media (max-width: 600px){
  .container{ width:92%; }

  /* Make header compact and readable */
  .logo{ height:80px; }
  .brand-name{ font-size:17px; }
  .brand-sub{ font-size:12px; }

  .menu a{
    font-size:13px;
    padding:8px 10px;
  }

  .btn-sm{
    padding:10px 14px;
    border-radius:12px;
  }

  /* Hero */
  .hero{ padding:56px 0 34px; }
  .hero h1{ font-size:30px; }
  .hero-sub{ font-size:15px; }

  .hero-buttons{
    gap:10px;
  }

  .btn, .btn-outline{
    width:100%;
  }

  .hero-highlights{
    grid-template-columns:1fr;
  }

  /* Sections */
  .section{ padding:36px 0; }
  .section-head h2{ font-size:26px; }

  /* Grids */
  .cards{ grid-template-columns:1fr; }
  .steps{ grid-template-columns:1fr; }
  .value-grid{ grid-template-columns:1fr; }

  /* Form */
  .form-row{ flex-direction:column; }
}