/* =====================================
   HERSAFE LAYOUT SYSTEM
===================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--text);
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
}

.logo-mark svg {
  width: 23px;
  height: 23px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 550;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

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

.theme-toggle,
.menu-toggle {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  transition: background var(--transition);
}

.theme-toggle:hover,
.menu-toggle:hover {
  background: var(--surface-hover);
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  overflow: hidden;
  padding-block: 100px 110px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 70px;
}

.hero-content {
  max-width: 650px;
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 1.04;
  letter-spacing: -0.065em;
  font-weight: 800;
  margin-bottom: 24px;
}

.hero-title span {
  color: var(--primary);
}

.hero-description {
  max-width: 580px;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-visual {
  position: relative;
  min-height: 400px;
  display: grid;
  place-items: center;
}

.hero-visual-inner {
  width: min(100%, 440px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 45% 55% 60% 40% / 45% 45% 55% 55%;
  background:
    radial-gradient(circle at 30% 25%, var(--secondary), transparent 55%),
    radial-gradient(circle at 75% 75%, var(--mint), transparent 55%),
    var(--bg-soft);
}

.hero-shield {
  width: 190px;
  height: 220px;
  display: grid;
  place-items: center;
  color: var(--primary);
  filter: drop-shadow(0 20px 25px rgba(118, 84, 166, 0.2));
}

.hero-shield svg {
  width: 100%;
  height: 100%;
}

.hero-orbit {
  position: absolute;
  width: 65px;
  height: 65px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  color: var(--primary);
}

.hero-orbit-one {
  top: 10%;
  right: 10%;
}

.hero-orbit-two {
  bottom: 12%;
  left: 4%;
}

.hero-orbit-three {
  bottom: 18%;
  right: 2%;
}

.trust-strip {
  padding-block: 24px;
  background: var(--bg-soft);
  border-block: 1px solid var(--border);
}

.trust-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px 40px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 550;
}

.trust-item svg {
  color: var(--success);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.site-footer {
  padding-block: 65px 25px;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 45px;
}

.footer-heading {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.footer-links {
  display: grid;
  gap: 12px;
}

.footer-link {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-link:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}



/* =====================================
   HERSAFE RESPONSIVE NAVBAR
===================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 76px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.nav-container {
  width: min(100% - 40px, 1240px);
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.logo {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.06em;
  color: var(--text);
  text-decoration: none;
}

.logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.5vw, 32px);
  margin-left: auto;
}

.nav-links a {
  position: relative;
  padding: 10px 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color .25s ease;
}

.nav-links a:hover,
.nav-links a.active,
.nav-links a[aria-current="page"] {
  color: var(--primary);
}

.nav-links a.active::after,
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 5px;
  background: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.theme-toggle,
.menu-toggle {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background .25s ease, transform .25s ease;
}

.theme-toggle:hover,
.menu-toggle:hover {
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
}

/* Mobile and tablet */
@media (max-width: 900px) {
  .nav-container {
    width: min(100% - 30px, 1240px);
  }

  .menu-toggle {
    display: grid;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 12px 20px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 15px 10px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links a.active::after,
  .nav-links a[aria-current="page"]::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .site-header {
    height: 68px;
  }

  .logo {
    font-size: 1.4rem;
  }

  .header-actions {
    gap: 8px;
  }

  .theme-toggle,
  .menu-toggle {
    width: 38px;
    height: 38px;
  }
}
