/* Phase 2 — visual hierarchy, mobile navigation and restrained interaction polish */

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 11px 15px;
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
  transform: translateY(-160%);
  transition: transform .18s ease;
}

.skip-link:focus { transform: translateY(0); }

:where(a, button):focus-visible {
  outline: 3px solid #ff9a76;
  outline-offset: 4px;
}

.nav-wrap { position: relative; }

.nav-links a {
  position: relative;
  padding: 10px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  border-radius: 99px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .2s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 12px;
  background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 1px rgba(255, 255, 255, .1);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.nav-cta:hover {
  border-color: rgba(117, 182, 255, .72);
  background: rgba(38, 120, 255, .18);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 12px;
  background: rgba(255, 255, 255, .07);
  cursor: pointer;
  place-items: center;
}

.nav-toggle span {
  grid-area: 1 / 1;
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: #fff;
  transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle span:first-child { transform: translateY(-6px); }
.nav-toggle span:last-child { transform: translateY(6px); }
.nav-toggle.is-open span:first-child { transform: rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:last-child { transform: rotate(-45deg); }

.mobile-nav {
  width: min(1180px, 100% - 48px);
  margin: 12px auto 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 20px;
  background: rgba(7, 17, 34, .96);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .42);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.mobile-nav[hidden] { display: none; }

.mobile-nav > a:not(.mobile-nav-cta) {
  min-height: 49px;
  padding: 0 13px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .88);
  align-items: center;
  gap: 13px;
  font-size: 14px;
  font-weight: 720;
  display: flex;
}

.mobile-nav > a:not(.mobile-nav-cta) span {
  color: var(--blue-bright);
  letter-spacing: .12em;
  font-size: 9px;
}

.mobile-nav-cta {
  min-height: 52px;
  margin-top: 10px;
  padding: 0 16px;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #1764e8);
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  font-weight: 800;
  display: flex;
}

.hero-copy { max-width: 720px; }

.hero h1 em {
  background: linear-gradient(90deg, #83bdff, #59a6ff 58%, #a2ccff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.hero-actions .button { min-height: 54px; }

.hero-notes span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 99px;
  background: rgba(255, 255, 255, .035);
}

.service-grid {
  border: 0;
  gap: 16px;
}

.service-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 1px rgba(255, 255, 255, .8) inset;
}

.service-card:hover { transform: translateY(-4px); }

.audit-section { scroll-margin-top: 20px; }

.audit-card {
  box-shadow: 0 26px 70px rgba(20, 76, 168, .2), inset 0 1px rgba(255, 255, 255, .18);
}

.audit-screen-content { padding: 14px; }
.build-layout-content { padding: 12px; }

@media (width <= 1000px) {
  .nav-wrap { justify-content: flex-start; }
  .brand { margin-right: auto; }
  .nav-toggle { display: grid; }
  .mobile-nav { display: block; }
  .hero-grid { padding-top: 64px; }
  .service-grid { gap: 14px; }
}

@media (width <= 700px) {
  .nav-cta { display: none; }
  .mobile-nav { width: min(100% - 30px, 1180px); }
  .hero h1 {
    max-width: 560px;
    font-size: clamp(42px, 12.5vw, 59px);
    line-height: 1.01;
  }
  .hero h1 em { margin-top: 5px; }
  .hero-lead { line-height: 1.65; }
  .hero-notes span { width: fit-content; }
  .commerce-stage,
  .commerce-stage.visual-frame {
    height: 380px;
    min-height: 380px;
  }
  .scene-particle { display: none; }
  .section { padding: 76px 0; }
  .service-card { min-height: 250px; }
}

@media (width <= 420px) {
  .commerce-stage,
  .commerce-stage.visual-frame {
    height: 360px;
    min-height: 360px;
  }
  .growth-card { right: -3%; }
  .order-card { left: -3%; }
}

@media (prefers-reduced-motion: reduce) {
  .skip-link,
  .nav-links a::after,
  .nav-cta,
  .nav-toggle span { transition: none; }
}
