/* Local font faces */
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/space-grotesk/space-grotesk-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/space-grotesk/space-grotesk-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/space-grotesk/space-grotesk-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/space-grotesk/space-grotesk-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/ibm-plex-mono/ibm-plex-mono-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/ibm-plex-mono/ibm-plex-mono-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter/inter-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter/inter-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter/inter-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  width: 100%;
  background: #05050a;
  color: #f5f6fa;
}
section, footer { scroll-margin-top: 2rem; }

::selection { background: rgba(0,243,255,0.25); color: #fff; }

a:focus-visible, button:focus-visible {
  outline: 2px solid #00f3ff;
  outline-offset: 4px;
  border-radius: 4px;
}

/* ---- top nav ---- */
.top-nav {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 0.75rem 1.2rem;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 999px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.06);
  max-width: calc(100vw - 1.5rem);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.top-nav::-webkit-scrollbar { display: none; }

.nav-track {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9096ad;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s ease;
  flex-shrink: 0;
}
.nav-link:hover { color: #f5f6fa; }
.nav-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.25);
  flex-shrink: 0;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.nav-link.active { color: #f5f6fa; }
.nav-link.active .nav-dot {
  background: #00f3ff;
  box-shadow: 0 0 8px 1px rgba(0,243,255,0.65);
}

@media (max-width: 768px) {
  .top-nav {
    gap: 0.7rem;
    padding: 0.6rem 0.8rem;
    top: 0.75rem;
  }
  .nav-track { gap: 0.7rem; }
  .nav-link { font-size: 0.6rem; }
}

@media (min-width: 769px) {
  .top-nav {
    gap: 1.5rem;
    padding: 1rem 1.5rem;
  }
  .nav-track { gap: 1.5rem; }
  .nav-link { font-size: 0.8rem; }
  .nav-dot { width: 9px; height: 9px; }
}

/* ---- hero entrance ---- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: reveal 0.9s cubic-bezier(.2,.7,.3,1) forwards;
}
.reveal-1 { animation-delay: 0.1s; }
.reveal-2 { animation-delay: 0.28s; }
.reveal-3 { animation-delay: 0.46s; }
@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

.card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1.1rem;
  backdrop-filter: blur(6px);
}

.accent-bar { height: 2px; width: 2.25rem; }

/* Footer logo - clean, no circle */
.footer-big-logo {
  width: 3.8rem;
  height: 5.4rem;
  object-fit: contain;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .footer-big-logo {
    width: 2.8rem;
    height: 5.4rem;
  }
}

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

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

.contact-buttons {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.contact-buttons::-webkit-scrollbar { display: none; }
.contact-buttons a {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .contact-buttons {
    gap: 0.5rem;
    padding: 0.25rem;
  }
  .contact-buttons a {
    padding: 0.5rem 1rem;
    font-size: 0.65rem;
  }
}

.custom-heading {
  font-size: 2.7rem;
  line-height: 1.2;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
}

@media (max-width: 640px) {
  .custom-heading {
    font-size: 1.6rem;
    line-height: 1.2;
    white-space: nowrap;
  }
}