/* =========================================================
   PERFORMANCE FOOTFALL — SHARED SITE STYLES
   Loaded first on every page. Holds the parts every page
   shares: tokens, base, the Home-page navbar (the single
   source of truth), mobile menu, buttons, footer and the
   motion utilities. Page stylesheets load after this file.
========================================================= */

:root {
  /* Shared chrome tokens — never overridden by page CSS,
     so the navbar and footer look identical everywhere. */
  --pf-bg: #05090f;
  --pf-text: #edf6ff;
  --pf-muted: #8998a8;
  --pf-cyan: #39d9ff;
  --pf-border: rgba(105, 185, 220, .19);
  --pf-nav-top: 18px;
  --pf-nav-height: 68px;
  --pf-ease: cubic-bezier(.22, .7, .2, 1);

  /* Page tokens — page stylesheets may redefine these. */
  --bg: var(--pf-bg);
  --panel: #07121d;
  --panel2: #091724;
  --text: var(--pf-text);
  --muted: var(--pf-muted);
  --cyan: var(--pf-cyan);
  --border: var(--pf-border);
  --glow: rgba(45, 211, 255, .18);
}


/* =========================================================
   BASE
========================================================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
  background:
    radial-gradient(circle at 65% 15%, rgba(23, 110, 145, .11), transparent 30%),
    radial-gradient(circle at 20% 70%, rgba(0, 120, 170, .07), transparent 28%);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

picture {
  display: block;
}

:focus-visible {
  outline: 2px solid var(--pf-cyan);
  outline-offset: 3px;
}

/* Anchor targets land below the fixed navbar. */
main [id] {
  scroll-margin-top: calc(var(--pf-nav-top) + var(--pf-nav-height) + 16px);
}

.site-noise {
  position: fixed;
  inset: 0;
  opacity: .025;
  pointer-events: none;
  z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}


/* =========================================================
   NAVBAR — matches the Home page navbar on every page
========================================================= */

.navbar {
  position: fixed;
  z-index: 1000;
  top: var(--pf-nav-top);
  left: 50%;
  transform: translateX(-50%);
  width: min(1268px, calc(100% - 48px));
  height: var(--pf-nav-height);
  padding: 0 18px 0 22px;
  display: flex;
  align-items: center;
  gap: 28px;
  border: 1px solid var(--pf-border);
  border-radius: 38px;
  background: rgba(5, 10, 17, .67);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  color: var(--pf-text);
  font-family: Inter, Arial, sans-serif;
  transition: background .35s ease, box-shadow .35s ease;
}

.navbar.scrolled {
  background: rgba(4, 8, 14, .9);
  box-shadow: 0 15px 50px rgba(0, 0, 0, .3);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: Manrope, Inter, sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0;
  line-height: normal;
  white-space: nowrap;
  color: var(--pf-text);
}

.brand > span:last-child > span {
  color: var(--pf-cyan);
}

.brand-mark {
  flex: none;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(57, 217, 255, .6);
  border-radius: 50%;
  color: var(--pf-cyan);
  font-size: 12px;
}

.desktop-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 35px;
}

.desktop-nav a {
  position: relative;
  padding: 6px 0;
  color: #93a1af;
  font-size: 14px;
  transition: color .25s ease;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--pf-cyan);
  box-shadow: 0 0 10px var(--pf-cyan);
  opacity: 0;
  transform: translateX(-50%) scale(0);
  transition: transform .3s var(--pf-ease), opacity .3s ease;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] {
  color: #fff;
}

.desktop-nav a:hover::after {
  opacity: .5;
  transform: translateX(-50%) scale(1);
}

.desktop-nav a[aria-current="page"]::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.nav-cta {
  flex: none;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #fff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  margin: 6px auto;
  background: #fff;
  transition: transform .3s var(--pf-ease);
}

.menu-toggle.active span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle.active span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.mobile-menu {
  display: none;
}


/* =========================================================
   BUTTONS
========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 23px;
  border: 1px solid var(--pf-border);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition:
    transform .25s ease,
    background .25s ease,
    border-color .25s ease,
    box-shadow .25s ease;
}

.btn:hover {
  transform: translateY(-3px);
  border-color: rgba(57, 217, 255, .45);
}

.btn-small {
  padding: 11px 20px;
}

.btn-primary {
  background: linear-gradient(135deg, #26cdea, #128fbd);
  color: #021017;
  border-color: transparent;
  box-shadow: 0 10px 35px rgba(26, 194, 231, .13);
}

.btn-primary:hover {
  border-color: transparent;
  box-shadow: 0 16px 42px rgba(26, 194, 231, .26);
}

.btn-ghost {
  background: rgba(255, 255, 255, .025);
}

.btn-ghost:hover,
.nav-cta:hover {
  background: rgba(57, 217, 255, .06);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
  padding: 70px max(7vw, 42px) 25px;
  border-top: 1px solid var(--pf-border);
  background: #03070c;
  color: var(--pf-text);
  font-family: Inter, Arial, sans-serif;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
}

.footer-grid > div:first-child p {
  max-width: 330px;
  margin-top: 20px;
  color: #687785;
  font-size: 13px;
  line-height: 1.7;
}

.footer-grid h4 {
  margin-bottom: 14px;
  color: #fff;
  font-size: 12px;
}

.footer-grid > div:not(:first-child) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.footer-grid a:not(.brand) {
  padding: 4px 0;
  color: #667583;
  font-size: 13px;
  transition: color .25s ease;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid var(--pf-border);
  color: #52616e;
  font-size: 11px;
}


/* =========================================================
   MOTION
   - .pf-enter : CSS-only entrance for above-the-fold content.
                 Ends at the element's normal state, so it never
                 hides anything if JavaScript fails.
   - .reveal   : scroll reveal. Content is only hidden once
                 js/site.js has added .js-motion to <html>.
========================================================= */

@keyframes pf-enter {
  from {
    opacity: 0;
    translate: 0 26px;
  }
}

@keyframes pf-menu-item {
  from {
    opacity: 0;
    translate: 0 -12px;
  }
}

@media (prefers-reduced-motion: no-preference) {

  .pf-enter {
    animation: pf-enter .95s var(--pf-ease) backwards;
    animation-delay: var(--pf-delay, 0s);
  }

}

.js-motion .reveal:not(.is-revealed) {
  opacity: 0;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1050px) {

  .desktop-nav {
    gap: 18px;
  }

}

/* The full link row needs ~900px, so tablets get the menu. */
@media (max-width: 960px) {

  .desktop-nav,
  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-menu {
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    right: 0;
    max-height: 100dvh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 105px 30px 40px;
    background: rgba(4, 9, 15, .96);
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    color: var(--pf-text);
    font-family: Inter, Arial, sans-serif;
    transform: translateY(-105%);
    visibility: hidden;
    transition: transform .45s var(--pf-ease), visibility 0s linear .45s;
  }

  .mobile-menu.active {
    transform: none;
    visibility: visible;
    transition: transform .45s var(--pf-ease), visibility 0s;
  }

  .mobile-menu > a:not(.btn) {
    font: 600 30px Manrope, Inter, sans-serif;
    transition: color .25s ease;
  }

  .mobile-menu > a:not(.btn):hover,
  .mobile-menu > a[aria-current="page"] {
    color: var(--pf-cyan);
  }

  .mobile-menu.active > a {
    animation: pf-menu-item .5s var(--pf-ease) backwards;
  }

  .mobile-menu.active > a:nth-child(2) { animation-delay: .04s; }
  .mobile-menu.active > a:nth-child(3) { animation-delay: .08s; }
  .mobile-menu.active > a:nth-child(4) { animation-delay: .12s; }
  .mobile-menu.active > a:nth-child(5) { animation-delay: .16s; }
  .mobile-menu.active > a:nth-child(6) { animation-delay: .2s; }
  .mobile-menu.active > a:nth-child(7) { animation-delay: .24s; }

  html.menu-open {
    overflow: hidden;
  }

}

@media (max-width: 780px) {

  :root {
    --pf-nav-top: 12px;
  }

  .navbar {
    width: calc(100% - 28px);
  }

  .footer {
    padding-left: 24px;
    padding-right: 24px;
  }

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

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }

}

@media (max-width: 480px) {

  .brand {
    font-size: 15px;
  }

  .mobile-menu {
    padding-left: 24px;
    padding-right: 24px;
  }

  .mobile-menu > a:not(.btn) {
    font-size: 26px;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }

}

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

}


/* Footer Social Icons */
.footer-socials {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(100, 190, 220, 0.18);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    transform: translateY(-4px);
    border-color: #24d9ff;
    background: rgba(36, 217, 255, 0.12);
    box-shadow: 0 5px 22px rgba(36, 217, 255, 0.15);
}

.footer-socials svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: #91a9b9;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all 0.3s ease;
}

.footer-socials a:first-child svg {
    fill: #91a9b9;
    stroke: none;
}

.footer-socials .icon-fill {
    fill: currentColor;
    stroke: none;
}

.footer-socials a:hover svg {
    stroke: #24d9ff;
}

.footer-socials a:first-child:hover svg {
    fill: #24d9ff;
}

@media (max-width: 480px) {
    .footer-socials {
        gap: 14px;
    }

    .footer-socials a {
        width: 44px;
        height: 44px;
    }
}
