[data-site-header] {
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header {
  transition: background-color 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.is-sticky {
  background: rgba(7, 17, 27, 0.86);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
}

.brand img {
  width: 192px;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav > ul > li {
  position: relative;
}

.main-nav a {
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 500;
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li.is-current > a,
.main-nav > ul > li:hover > a {
  color: var(--brand);
}

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 12px;
}

.dropdown a {
  display: block;
  color: var(--text);
  padding: 10px 0;
}

.dropdown a:hover,
.dropdown a.is-current {
  color: var(--brand);
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.menu-toggle {
  display: none;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  padding: 13px 11px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #fff;
}

.site-footer {
  background:
    radial-gradient(circle at top left, rgba(241, 88, 48, 0.16), transparent 28%),
    #0a1422;
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
  gap: 28px;
  padding: 72px 0 48px;
}

.footer-brand p,
.site-footer p,
.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.75;
}

.footer-brand h3,
.site-footer h3 {
  margin: 0 0 14px;
  font-family: "Poppins", sans-serif;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.social-links a {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li + li {
  margin-top: 10px;
}

.footer-paper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  color: #fff;
  background: var(--brand);
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.footer-paper:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
  margin: 0;
  padding: 18px 0 24px;
  color: rgba(255, 255, 255, 0.6);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 79;
  background: rgba(7, 17, 27, 0.7);
}

.whitepaper-modal {
  position: fixed;
  inset: 50% auto auto 50%;
  z-index: 80;
  width: min(560px, calc(100vw - 28px));
  padding: 34px 30px 28px;
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow-strong);
  transform: translate(-50%, -50%);
}

.whitepaper-modal img {
  width: 170px;
  margin: 0 auto 14px;
}

.whitepaper-modal h2 {
  margin: 0 0 22px;
  text-align: center;
  font-family: "Poppins", sans-serif;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #101926;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.whitepaper-form {
  display: grid;
  gap: 16px;
}

.whitepaper-form label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-family: "Poppins", sans-serif;
  font-size: 0.94rem;
}

.whitepaper-form input {
  width: 100%;
  border: 1px solid rgba(23, 34, 48, 0.12);
  border-radius: 14px;
  padding: 14px 16px;
  background: #f7f9fb;
}

.whitepaper-form input:focus {
  outline: 2px solid rgba(241, 88, 48, 0.2);
  border-color: var(--brand);
}

.whitepaper-form button {
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  background: var(--brand);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  cursor: pointer;
}

.form-feedback {
  min-height: 24px;
  margin: 0;
  color: #2c7a2c;
  text-align: center;
}

@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-block;
  }

  .main-nav {
    position: absolute;
    top: 88px;
    left: 16px;
    right: 16px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(8, 17, 28, 0.98);
    box-shadow: var(--shadow);
    display: none;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .main-nav > ul > li > a {
    display: block;
    padding: 14px 0;
  }

  .dropdown {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    margin: 0 0 8px;
    display: none;
    min-width: 0;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: none;
  }

  .has-dropdown.is-open .dropdown {
    display: block;
  }
}

@media (max-width: 680px) {
  .header-bar {
    min-height: 78px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .whitepaper-modal {
    padding-left: 20px;
    padding-right: 20px;
  }
}
