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

html {
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #fff;
  background: #0a0a0a;
}

/* Nav */
nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
  pointer-events: none;
}

nav > a, nav > button, nav .logo a, .nav-links a {
  pointer-events: auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo a {
  text-decoration: none;
}

.logo .logo-page {
  background: linear-gradient(to right, #E24E00, #FF8800);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo .logo-pioneers {
  background: linear-gradient(to right, #1A5CE2, #4DA6FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: #fcfcfc;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #fff;
}

.nav-cta {
  background: linear-gradient(135deg, #1A5CE2, #4DA6FF);
  color: #fff;
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 0 16px rgba(26, 92, 226, 0.4), 0 0 40px rgba(26, 92, 226, 0.15);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(26, 92, 226, 0.6), 0 0 60px rgba(77, 166, 255, 0.25);
}

/* Buttons */
.btn-primary,
.btn-glow {
  text-decoration: none;
}

.btn-primary {
  position: relative;
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #E24E00, #FF8800);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  letter-spacing: 0.02em;
  pointer-events: auto;
  transition: transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 0 20px rgba(255, 136, 0, 0.3), 0 0 60px rgba(226, 78, 0, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 136, 0, 0.5), 0 0 80px rgba(226, 78, 0, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-glow {
  position: relative;
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #1A5CE2, #4DA6FF);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 0 20px rgba(77, 166, 255, 0.3), 0 0 60px rgba(26, 92, 226, 0.15);
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(77, 166, 255, 0.5), 0 0 80px rgba(26, 92, 226, 0.3);
}

.btn-glow:active {
  transform: translateY(0);
}

/* Full-screen section pattern */
.section-full {
  position: relative;
  height: 100vh;
  max-height: 900px;
  overflow: hidden;
  background: #0a0a0a;
}

.section-full .spline-bg {
  position: absolute;
  top: 5rem;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 1440px;
  height: calc(100% - 5rem);
  z-index: 1;
}

.section-full .spline-bg spline-viewer {
  width: 100%;
  height: 100%;
  display: block;
}

.section-full .overlay-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 8rem max(8rem, calc((100vw - 1440px) / 2 + 8rem)) 4rem;
  height: 100%;
  max-width: calc(800px + max(0px, (100vw - 1440px) / 2));
  pointer-events: none;
}

.section-full .overlay-content .btn-primary,
.section-full .overlay-content .btn-glow {
  pointer-events: auto;
}

.section-full .overlay-content h2 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.section-full .overlay-content p {
  font-size: 1.1rem;
  color: #fcfcfc;
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 2.5rem;
}

/* Gradient text helpers */
.gradient-orange {
  background: linear-gradient(to right, #E24E00, #FF8800, #E24E00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-blue {
  background: linear-gradient(to right, #1A5CE2, #4DA6FF, #1A5CE2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Logo scroll */
.logo-scroll {
  margin-top: 2.5rem;
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
}

.logo-track {
  display: flex;
  gap: 2.5rem;
  animation: scroll 20s linear infinite;
  width: max-content;
}

.logo-track span {
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fcfcfc;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.mobile-cta-item {
  display: none;
}

/* Hamburger toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  z-index: 20;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top: 7px; }

.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-7px) rotate(-45deg); }

/* Large screens */
@media (min-width: 1800px) {
  .section-full .overlay-content h1,
  .section-full .overlay-content h2 { font-size: 4.5rem; }
  .section-full .overlay-content p { font-size: 1.35rem; max-width: 600px; }
  .section-full .overlay-content { max-width: calc(900px + (100vw - 1440px) / 2); }
}

@media (min-width: 2200px) {
  .section-full .overlay-content h1,
  .section-full .overlay-content h2 { font-size: 5.5rem; }
  .section-full .overlay-content p { font-size: 1.5rem; max-width: 700px; }
  .section-full .overlay-content { max-width: calc(1000px + (100vw - 1440px) / 2); }
  .section-full .overlay-content .btn-primary,
  .section-full .overlay-content .btn-glow { font-size: 1.15rem; padding: 1.15rem 3rem; }
}


/* Tablet */
@media (max-width: 1024px) {
  nav { padding: 1.25rem 2rem; }
  .nav-links { gap: 1.25rem; }
  .nav-links a { font-size: 0.85rem; }
  .nav-cta { padding: 0.5rem 1.25rem; font-size: 0.85rem; }
  .section-full .overlay-content { padding: 6rem 4rem 3rem; }
  .section-full .overlay-content h2 { font-size: 2.5rem; }
  .footer-main { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; padding: 3rem 2rem; }
}

/* Mobile */
@media (max-width: 768px) {
  nav {
    padding: 1rem 1.5rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 15;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }

  .nav-links a {
    pointer-events: none;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links.open a {
    pointer-events: auto;
  }

  .nav-links li {
    list-style: none;
  }

  .nav-links a {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0.5rem 2rem;
  }

  .mobile-cta-item {
    display: list-item;
  }

  .nav-links li:last-child::after {
    content: '';
    display: block;
    height: 1.5rem;
  }

  .section-full {
    height: auto;
    max-height: none;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: visible;
  }

  .section-full .overlay-content {
    max-width: 100%;
    padding: 6rem 1.5rem 4rem;
    height: auto;
    justify-content: flex-start;
  }

  .section-full .overlay-content p {
    font-size: 1rem;
  }

  .section-full .spline-bg {
    display: none;
  }

  .btn-primary, .btn-glow {
    min-height: 44px;
    padding: 0.75rem 1.75rem;
  }

  .footer-col ul {
    gap: 0.25rem;
  }

  .footer-col a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .footer-socials a {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* ═══════════════════════════════════════════
   Footer (shared via footer.js)
   ═══════════════════════════════════════════ */
.site-footer {
  position: relative;
  background: #f8f8f8;
  overflow: hidden;
  padding: 0 0 2rem;
}

.footer-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(255,136,0,0.06) 0%, rgba(26,92,226,0.04) 40%, transparent 70%);
  pointer-events: none;
}

.footer-cta {
  position: relative;
  text-align: center;
  padding: 6rem 2rem 5rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.footer-cta-heading {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.footer-cta-sub {
  font-size: 1.1rem;
  color: #555;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.footer-cta .btn-primary {
  font-size: 1.1rem;
  padding: 1.1rem 3rem;
}

.footer-main {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 3rem 3rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.7;
  margin-top: 1rem;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a {
  color: #555;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #1a1a1a;
}


.footer-bottom {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 3rem 0;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.footer-bottom span {
  font-size: 0.78rem;
  color: #999;
}

.footer-legal a {
  color: #999;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: #555;
}

.footer-socials {
  display: flex;
  gap: 1.25rem;
}

.footer-socials a {
  color: #555;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-socials a:hover {
  color: #1a1a1a;
}

@media (max-width: 768px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 3rem 1.5rem 2rem;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-cta { padding: 4rem 1.5rem 3rem; }
  .footer-cta-sub { padding: 0 2.5rem; }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 1.5rem 0;
    text-align: center;
  }
}
