/* ══════════════════════════════════════════
   BASE
══════════════════════════════════════════ */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--dfn-cyan), var(--lime));
  z-index: 9999;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px var(--lime);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ══════════════════════════════════════════
   CONTAINERS
══════════════════════════════════════════ */
.wrap     { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--s8); }
.wrap--sm { width: 100%; max-width: 760px;  margin: 0 auto; padding: 0 var(--s8); }
.wrap--md { width: 100%; max-width: 960px;  margin: 0 auto; padding: 0 var(--s8); }

/* ══════════════════════════════════════════
   NAVBAR  (shared)
══════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 800;
  transition: background var(--t), border-color var(--t);
}
.nav.is-scrolled {
  background: rgba(5, 6, 8, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  padding: 0 var(--s8);
  max-width: 1160px;
  margin: 0 auto;
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}
.nav__logo-poly { color: var(--brand-light); }
.nav__logo-net  { color: #fff; }
.nav__logo-dot  {
  width: 7px; height: 7px;
  background: var(--lime);
  border-radius: 50%;
  margin-left: 2px;
  margin-bottom: 3px;
  flex-shrink: 0;
  animation: pulse 2.5s ease-in-out infinite;
}

/* Nav items */
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--s8);
}
.nav__links a {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  transition: color var(--t);
}
.nav__links a:hover { color: var(--text); }
.nav__links a.active { color: var(--brand-light); }

.nav__cta {
  font-size: 0.78rem !important;
  font-family: var(--font-body);
  font-weight: 600;
  background: var(--brand);
  color: #fff !important;
  padding: 0.45rem 1.1rem;
  border-radius: var(--r-md);
  transition: background var(--t), transform var(--t) !important;
}
.nav__cta:hover { background: var(--brand-light); transform: translateY(-1px) !important; }

/* Hamburger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav__burger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: var(--t);
}

/* Mobile drawer */
.nav__drawer {
  display: none;
  flex-direction: column;
  padding: var(--s5) var(--s8);
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  gap: var(--s4);
}
.nav__drawer.open { display: flex; }
.nav__drawer a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color var(--t);
  padding: var(--s2) 0;
}
.nav__drawer a:hover { color: var(--text); }

/* ══════════════════════════════════════════
   FOOTER  (shared)
══════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding-top: var(--s16);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s12);
  padding-bottom: var(--s12);
}
.footer__brand-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--s3);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 3px;
}
.footer__brand-logo .poly { color: var(--brand-light); }
.footer__brand-logo .ldot {
  width: 7px; height: 7px;
  background: var(--lime);
  border-radius: 50%;
  margin-left: 1px;
}
.footer__tagline {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 260px;
}
.footer__col h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--s4);
}
.footer__col { display: flex; flex-direction: column; gap: var(--s3); }
.footer__col a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color var(--t);
}
.footer__col a:hover { color: var(--text); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding: var(--s5) var(--s8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s4);
}
.footer__copy    { font-size: 0.7rem; color: var(--text-faint); }
.footer__legal   { font-size: 0.68rem; color: var(--text-faint); max-width: 500px; text-align: right; }

/* ══════════════════════════════════════════
   BUTTONS  (shared)
══════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.72rem 1.6rem;
  border-radius: var(--r-md);
  border: none;
  cursor: pointer;
  transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.btn--brand {
  background: var(--brand);
  color: #fff;
}
.btn--brand:hover {
  background: var(--brand-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(139, 92, 246, 0.35);
}
.btn--lime {
  background: var(--lime);
  color: #0a0a0a;
}
.btn--lime:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(163, 230, 53, 0.3);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-2);
}
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-light); }
.btn--cyan {
  background: var(--dfn-cyan);
  color: #000;
}
.btn--cyan:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(0, 229, 255, 0.3);
}
.btn--lg { font-size: 1rem; padding: 0.9rem 2rem; }
.btn--full { display: block; width: 100%; text-align: center; }
.btn:active { transform: scale(0.98) !important; }

/* ══════════════════════════════════════════
   SECTION HEADER  (shared)
══════════════════════════════════════════ */
.sec-header { text-align: center; margin-bottom: var(--s16); }
.sec-eyebrow {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-light);
  margin-bottom: var(--s4);
}
.sec-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: var(--s4);
}
.sec-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.85;
}

/* ══════════════════════════════════════════
   TICKER  (shared)
══════════════════════════════════════════ */
.ticker {
  overflow: hidden;
  background: rgba(139, 92, 246, 0.04);
  border-top: 1px solid rgba(139, 92, 246, 0.1);
  border-bottom: 1px solid rgba(139, 92, 246, 0.1);
  padding: 0.7rem 0;
}
.ticker__inner {
  display: flex;
  gap: var(--s12);
  width: max-content;
  animation: ticker 250s linear infinite;
}
.ticker__item {
  display: flex; align-items: center; gap: var(--s2);
  font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted);
  white-space: nowrap;
}
.ticker__dot { color: var(--brand-light); font-size: 0.5rem; }

/* ══════════════════════════════════════════
   SCROLL REVEAL
══════════════════════════════════════════ */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--delay, 0s);
}
[data-reveal].in { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════════
   KEYFRAMES
══════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: 0.3; transform: scale(1.6); }
}
@keyframes orbFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50%     { transform: translateY(-18px) scale(1.04); }
}
@keyframes scanLine {
  0%   { top: 0%; opacity: 0; }
  8%   { opacity: 0.7; }
  92%  { opacity: 0.7; }
  100% { top: 100%; opacity: 0; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Utility */
.animate-in { animation: fadeUp 0.7s var(--ease) both; }

/* ══════════════════════════════════════════
   RESPONSIVE SHARED
══════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__cta   { display: none; }
  .nav__burger { display: flex; }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--s8);
  }
  .footer__brand { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .footer__legal { text-align: left; }
}
@media (max-width: 480px) {
  .wrap, .wrap--sm, .wrap--md { padding: 0 var(--s5); }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__brand { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
