:root {
  --accent: #0b6cff;
  --accent-2: #00bfa6;
  --muted: #98a0b3;
  --bg: #041018;
  --card: #071420;
  --maxw: 1200px;
  --header-h: 72px;
  --nav-w: 120px;
  --radius: 12px;
  --ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  --lead: 1.05rem;
  --gap: 1rem;
}

* {
  box-sizing: border-box;
}
html, body {
  height: 100%;
  margin: 0;
  font-family: var(--ui);
  background: linear-gradient(180deg, #041018 0%, #061425 100%);
  color: #e8f2ff;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1rem;
}

.header-placeholder {
  height: var(--header-h);
}

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  z-index: 999;
  background: rgba(3, 8, 14, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(6px);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.05rem;
}
.brand small {
  display: block;
  font-size: .75rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: .06em;
}

.nav {
  display: flex;
  gap: 0;
  align-items: center;
}
.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #cfe6ff;
  padding: 0 .6rem;
  height: var(--header-h);
  min-width: var(--nav-w);
  border-left: 1px solid rgba(255, 255, 255, 0.01);
  font-weight: 600;
}
.nav a:first-child {
  border-left: 0;
}
.nav a.active {
  background: linear-gradient(180deg, rgba(11, 108, 255, 0.12), rgba(0, 191, 166, 0.02));
  color: #fff;
  border-radius: 8px;
}
.nav a:hover {
  background: rgba(255, 255, 255, 0.02);
}

#nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
  padding: 0.5rem 1rem;
  flex-shrink: 0;  /* ADD THIS LINE & NEXT FOR HAMBURGER FIX*/
  width: auto;     /* ADD THIS LINE */
}

.main {
  padding-top: calc(var(--header-h) + 1rem);
  padding-bottom: 3rem;
}

/* HERO SECTION */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.25rem 1rem;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.005));
}

.hero > div:first-child {
  flex: 1 1 100%;
  min-width: 280px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4.6vw, 2.8rem);
  line-height: 1.1;
  max-width: 100%;
}

.hero .kicker {
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .12em;
}

.lead {
  color: var(--muted);
  font-size: var(--lead);
  max-width: 68ch;
}

.hero-graphic {
  display: block;
  width: 100%;
  max-width: 1200px;
  height: auto;
  border-radius: 12px;
  object-fit: contain;
  margin: 0 auto;
}

/* CARDS */
.section {
  padding: 2rem 0;
}
.grid {
  display: grid;
  gap: var(--gap);
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap);
}
.cards.solutions {
  grid-template-columns: repeat(3, 1fr);
}
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), transparent);
  padding: 1.15rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 160px;
}
.card h3 {
  margin: 0 0 .5rem 0;
}
.card p {
  margin: 0;
  color: var(--muted);
}

/* CONTAINER CARD */
.container-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.005));
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

/* FOOTER */
.footer {
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: .92rem;
}

/* KEY VALUE */
.kv {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.kv .stat {
  font-weight: 800;
  font-size: 1.6rem;
}
.kv .label {
  color: var(--muted);
  font-size: .95rem;
}

/* CTA BUTTONS */
a.cta {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: .6rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
}
a.cta.secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

small.muted {
  color: var(--muted);
}

/* MEDIA QUERIES */
@media (max-width: 980px) {
  #nav-toggle {
    display: inline-flex;
  }

  #main-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(3, 8, 14, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  #main-nav a {
    width: 100%;
    padding: 1rem 1.5rem;
    border-left: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    min-width: auto;
    height: auto;
  }

  .hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero > div {
    flex: 1 1 100%;
  }

  .cards.solutions {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .cards.solutions {
    grid-template-columns: 1fr;
  }
}