/* ── SHARED NAV ── */
:root {
  --black:  #231f20;
  --purple: #6006bf;
  --blue:   #76e5ff;
  --white:  #ffffff;
}

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 48px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(35,31,32,.9);
  backdrop-filter: blur(20px);
  border-color: rgba(255,255,255,.06);
}
.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  color: var(--white); text-decoration: none;
  display: flex; align-items: center;
}
.nav-logo-svg {
  height: 48px; width: 140px; color: var(--white);
  display: block; transition: color .2s;
}
.nav-logo:hover .nav-logo-svg { color: var(--blue); }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  color: rgba(255,255,255,.6); text-decoration: none;
  font-size: 14px; font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  transition: color .2s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  background: var(--purple); color: var(--white); border: none;
  padding: 9px 22px; font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 700;
  letter-spacing: .04em; cursor: pointer; transition: background .2s, color .2s;
  text-decoration: none; display: inline-block;
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
}
.nav-cta:hover { background: var(--blue); color: var(--black); }
.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-burger span { display: block; width: 24px; height: 2px; background: var(--white); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,.6); font-size: 14px; font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  display: flex; align-items: center; gap: 5px;
  transition: color .2s; padding: 0;
}
.nav-dropdown-trigger:hover,
.nav-dropdown-trigger[aria-expanded="true"] { color: var(--white); }
.nav-dropdown-arrow { transition: transform .2s; flex-shrink: 0; }
.nav-dropdown-trigger[aria-expanded="true"] .nav-dropdown-arrow { transform: rotate(180deg); }
.nav-dropdown-panel {
  position: absolute; top: calc(100% + 16px); left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: #1e1b1c; border: 1px solid rgba(118,229,255,.1);
  min-width: 280px; padding: 8px; border-radius: 4px;
  opacity: 0; visibility: hidden;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 200;
}
.nav-dropdown-panel::before {
  content: ''; position: absolute; top: -5px; left: 50%; transform: translateX(-50%);
  border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-bottom: 5px solid rgba(118,229,255,.1);
}
.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown-trigger[aria-expanded="true"] + .nav-dropdown-panel {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav-dropdown-item {
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 14px; text-decoration: none; border-radius: 3px;
  transition: background .15s;
}
.nav-dropdown-item:hover { background: rgba(118,229,255,.06); }
.nav-dropdown-item-title {
  color: rgba(255,255,255,.85); font-size: 14px; font-weight: 600;
  font-family: 'DM Sans', sans-serif;
}
.nav-dropdown-item-sub {
  color: rgba(255,255,255,.38); font-size: 12px;
  font-family: 'DM Sans', sans-serif; line-height: 1.4;
}
.nav-dropdown-item:hover .nav-dropdown-item-title { color: var(--white); }

/* Mobile */
@media (max-width: 768px) {
  nav { padding: 16px 24px; }
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .nav-overlay { gap: 24px; justify-content: flex-start; }
}

/* Mobile overlay */
.nav-overlay {
  display: none; position: fixed; inset: 0; overflow-y: auto;
  background: var(--black); z-index: 101;
  flex-direction: column; align-items: center; justify-content: center; gap: 32px;
  padding: 80px 24px 40px;
}
.nav-overlay.open { display: flex; }
.nav-overlay a {
  font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: clamp(38px, 12vw, 54px);
  line-height: .95; color: var(--white); text-decoration: none; letter-spacing: .02em; transition: color .2s;
  text-align: center;
}
.nav-overlay a:hover { color: var(--blue); }
.nav-overlay .close-btn {
  position: absolute; top: 20px; right: 24px;
  background: none; border: none; color: var(--white); font-size: 28px; cursor: pointer;
}
.mob-services-group { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mob-services-label {
  font-family: 'Space Mono', monospace; font-size: 11px;
  letter-spacing: .15em; text-transform: uppercase;
  color: rgba(118,229,255,.5); margin-bottom: 8px;
}
.mob-services-group a { font-size: 38px; }
