/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: height 0.4s var(--ease-out), background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
}

.site-header.is-scrolled {
  height: var(--nav-h-s);
  background: rgba(5, 6, 10, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  width: min(1200px, 92vw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.logo {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  letter-spacing: -0.03em;
}

.logo .dot {
  color: var(--accent);
}

.nav-primary {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  position: relative;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.25s;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

.nav-list a:hover,
.nav-list a.is-active {
  color: var(--white);
}

.nav-list a:hover::after,
.nav-list a.is-active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(15, 22, 40, 0.6);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.site-header.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-drawer {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: rgba(8, 10, 18, 0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease-out);
}

.site-header.nav-open .nav-drawer {
  max-height: 480px;
}

.nav-drawer-inner {
  padding: 1rem 6vw 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav-drawer a {
  padding: 0.9rem 0;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.nav-drawer a:hover {
  color: var(--teal);
}

.nav-drawer .btn-pill {
  margin-top: 0.75rem;
  justify-content: center;
}

@media (max-width: 900px) {
  .nav-primary,
  .nav-inner > .btn-pill {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

/* Buttons */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s, border-color 0.25s, background 0.25s, color 0.25s;
}

.btn-pill:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: var(--white);
  box-shadow: 0 0 0 0 rgba(10, 132, 255, 0.45);
}

.btn-primary:hover {
  box-shadow: 0 12px 40px rgba(10, 132, 255, 0.35);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(240, 244, 255, 0.22);
  color: var(--white);
}

.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.btn-lg {
  padding: 0.95rem 1.75rem;
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  margin-top: 4rem;
  padding: 4rem 0 0;
  border-top: 1px solid var(--border);
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(10, 132, 255, 0.08), transparent 55%), var(--bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0.75rem 0 1rem;
  max-width: 300px;
}

.social-row {
  display: flex;
  gap: 0.6rem;
}

.social-row a {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}

.social-row a:hover {
  color: var(--accent);
  border-color: rgba(10, 132, 255, 0.45);
  transform: translateY(-2px);
}

.footer-col h2 {
  font-family: var(--font-d);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 1rem;
}

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

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--teal);
}

.footer-muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
}

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

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

/* Page hero (inner pages) */
.page-hero {
  padding: calc(var(--nav-h) + 3rem) 0 3rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 20% 0%, rgba(10, 132, 255, 0.2), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 20%, rgba(0, 245, 212, 0.12), transparent 50%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0 0 1rem;
}

.page-hero p.lead {
  margin: 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-block {
  padding: 4rem 0;
}

.section-head {
  margin-bottom: 2rem;
}

.section-head h2 {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 560px;
}

.accent-line {
  width: 72px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  margin-bottom: 1rem;
}
