/* ========================================
   NAVBAR
   ======================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: all 0.4s var(--ease-out);
}
.nav-scrolled .nav-inner {
  background: var(--surface-glass);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px;
  border-radius: var(--r-full);
  transition: all 0.4s var(--ease-out);
  border: 1px solid transparent;
}

.nav-over .nav-inner {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink-1);
}
.brand-mark { display: flex; }
.brand-text { line-height: 1; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 10px 16px;
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: all 0.3s var(--ease-out);
  position: relative;
}
.nav-link:hover { color: var(--ink-1); background: rgba(10, 18, 48, 0.05); }
.nav-link.active {
  color: var(--blue);
}
.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--blue);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-phone {
  font-size: 13px;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  transition: all 0.3s;
}
.nav-phone:hover { background: var(--ink-1); color: #fff; border-color: var(--ink-1); }
.phone-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.hamburger {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink-1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  position: relative;
  z-index: 102;
  transition: background 0.3s;
}
.hamburger span {
  width: 16px;
  height: 1.5px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.4s var(--ease-out);
}
.hamburger span:nth-child(2) { width: 12px; align-self: flex-end; margin-right: 14px; }
.hamburger:hover { background: var(--blue); }
.hamburger:hover span:nth-child(2) { width: 16px; margin-right: 14px; }

.hamburger.open {
  background: var(--blue);
}
.hamburger.open span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
  width: 16px;
  margin-right: 14px;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-phone { display: none; }
}

/* ========================================
   SPIRAL OVERLAY
   ======================================== */
.spiral-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: radial-gradient(ellipse at center, #FFFFFF 0%, #EEF2F9 60%, #DDE3EE 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-out);
}
.spiral-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.spiral-guide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s var(--ease-out) 0.2s;
}
.spiral-overlay.open .spiral-guide { opacity: 1; }

.spiral-blob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60vmin;
  height: 60vmin;
  background: radial-gradient(circle, rgba(10, 83, 255, 0.18), transparent 65%);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.8s var(--ease-spring);
  filter: blur(20px);
}
.spiral-overlay.open .spiral-blob {
  transform: translate(-50%, -50%) scale(1);
}

.spiral-item {
  position: absolute;
  transform: translate(-50%, -50%) scale(0) rotate(180deg);
  opacity: 0;
  transition:
    transform 0.7s var(--ease-spring),
    opacity 0.5s var(--ease-out);
  transition-delay: var(--delay);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  border-radius: var(--r-full);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink-1);
  white-space: nowrap;
  cursor: pointer;
}

.spiral-overlay.open .spiral-item {
  transform: translate(-50%, -50%) scale(1) rotate(0deg);
  opacity: 1;
}

.spiral-item:hover {
  background: var(--ink-1);
  color: #fff;
  transform: translate(-50%, -50%) scale(1.08) rotate(0deg);
}
.spiral-item:hover .spiral-num { color: var(--blue-glow); }
.spiral-item:hover .spiral-arrow { transform: rotate(-45deg) translateX(2px); }

.spiral-item.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.spiral-item.active .spiral-num { color: rgba(255,255,255,0.6); }

.spiral-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-4);
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

.spiral-arrow {
  display: inline-block;
  font-size: 14px;
  color: var(--ink-4);
  transition: transform 0.3s var(--ease-out);
}

.spiral-foot {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 64px;
  opacity: 0;
  transition: opacity 0.6s var(--ease-out) 0.6s;
}
.spiral-overlay.open .spiral-foot { opacity: 1; }
.spiral-foot-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--ink-3);
}
.spiral-foot-col a:hover { color: var(--blue); }

@media (max-width: 768px) {
  .spiral-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
  }
  .spiral-guide, .spiral-blob, .spiral-foot { 
    display: none !important; 
  }
  .spiral-item, .spiral-overlay.open .spiral-item, .spiral-item:hover { 
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: translateY(20px) scale(0.9) !important;
    width: 80%;
    max-width: 300px;
    justify-content: center;
    font-size: 20px; 
    padding: 16px 24px; 
  }
  .spiral-overlay.open .spiral-item {
    transform: translateY(0) scale(1) !important;
  }
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  background: var(--ink-1);
  color: #fff;
  padding: 100px 0 40px;
  position: relative;
  overflow: hidden;
  margin-top: 80px;
  border-radius: 48px 48px 0 0;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 60%;
  height: 100%;
  background: radial-gradient(circle, rgba(10, 83, 255, 0.3), transparent 60%);
  filter: blur(80px);
  pointer-events: none;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.footer-brand .nav-brand { color: #fff; }
.footer-brand .brand-mark svg path { stroke: var(--blue-soft); }

.footer-tag {
  margin: 24px 0 32px;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,0.85);
}

.footer-cta .btn-primary { background: #fff; color: var(--ink-1); }
.footer-cta .btn-primary:hover { background: var(--blue); color: #fff; }
.footer-cta .btn-primary .arrow { background: var(--ink-1); color: #fff; }
.footer-cta .btn-primary:hover .arrow { background: #fff; color: var(--blue); }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}
.footer-col .eyebrow {
  color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
}
.footer-col .eyebrow::before {
  background: rgba(255,255,255,0.3);
}
.footer-col a, .footer-col span { color: rgba(255,255,255,0.7); transition: color 0.3s; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.footer-bot-right { display: flex; gap: 24px; }
.footer-bot-right a:hover { color: #fff; }

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr; gap: 50px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .footer-bottom { flex-direction: column; gap: 16px; }
}
