/* Nav, footer, section containers, grid systems */

/* ── Nav ── */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(11, 29, 51, .92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(46, 134, 193, .15);
  transition: all .3s;
}

nav.scrolled {
  background: rgba(11, 29, 51, .97);
  box-shadow: 0 4px 30px rgba(0, 0, 0, .3);
}

.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  height: 36px;
  width: 47px;
  color: var(--blue-bright);
}

.nav-logo-text {
  font-weight: 800;
  font-size: 1.35rem;
  color: #fff;
  letter-spacing: -.3px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.nav-logo-text em {
  font-style: normal;
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.nav-links a {
  color: var(--gray-300);
  text-decoration: none;
  font-size: .86rem;
  font-weight: 500;
  letter-spacing: .3px;
  transition: color .25s;
  position: relative;
}

.nav-links a:hover {
  color: #fff;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue-bright);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  padding: 8px 18px !important;
  background: var(--blue);
  color: #fff !important;
  border-radius: 6px;
  font-weight: 600 !important;
  font-size: .84rem !important;
}

.nav-cta:hover {
  background: var(--blue-bright) !important;
}

.nav-cta::after {
  display: none !important;
}

/* Language toggle */

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  padding: 3px;
  margin-left: .5rem;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--gray-300);
  cursor: pointer;
  font-size: .78rem;
  font-weight: 600;
  font-family: var(--font-sans);
  transition: all .25s;
  white-space: nowrap;
}

.lang-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, .06);
}

.lang-btn.active {
  background: var(--blue);
  color: #fff;
}

.flag-emoji {
  font-size: 14px;
  line-height: 1;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: .3s;
}

/* ── Section containers ── */

.sec {
  padding: 6rem 2rem;
}

.sec-dark {
  background: var(--navy);
  color: #fff;
}

.sec-light {
  background: var(--off-white);
}

.sec-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.sec-label {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .75rem;
  display: block;
}

.sec-dark .sec-label {
  color: var(--blue-bright);
}

.sec-title {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.sec-dark .sec-title {
  color: #fff;
}

.sec-sub {
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 600px;
  line-height: 1.7;
}

.sec-dark .sec-sub {
  color: var(--gray-300);
}

.sec-header {
  margin-bottom: 3.5rem;
}

/* ── Footer ── */

footer {
  background: #060E18;
  padding: 3rem 2rem;
  border-top: 1px solid rgba(46, 134, 193, .1);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.footer-mark {
  height: 24px;
  width: auto;
  color: var(--blue);
}

.footer-text {
  font-size: .82rem;
  color: var(--gray-500);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-size: .82rem;
  color: var(--gray-500);
  text-decoration: none;
  transition: color .25s;
}

.footer-links a:hover {
  color: var(--blue-bright);
}

/* ── Responsive: layout ── */

@media (max-width: 640px) {
  .sec {
    padding: 4rem 1.25rem;
  }

  .sec-title {
    font-size: 1.8rem;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links.show {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(46, 134, 193, .15);
    gap: 1rem;
  }

  .lang-toggle {
    position: static;
    transform: none;
    margin-left: auto;
    margin-right: .5rem;
    gap: 2px;
    padding: 2px;
  }

  .lang-btn {
    padding: 4px 8px;
    font-size: .72rem;
    gap: 0;
  }

  .lang-btn .flag-emoji {
    display: none;
  }

  .nav-inner {
    padding: 0 1rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}
