:root {
  color-scheme: dark;
  --site-bg: #070a12;
  --site-panel: rgba(13, 19, 34, 0.78);
  --site-panel-solid: #0d1322;
  --site-border: rgba(255, 255, 255, 0.1);
  --site-border-strong: rgba(255, 255, 255, 0.18);
  --site-text: #f4f6ff;
  --site-muted: #a6b3d0;
  --site-accent: #2d6bff;
  --site-accent-soft: rgba(45, 107, 255, 0.14);
  --site-shadow: 0 24px 90px rgba(5, 10, 26, 0.35);
}

@supports (overflow: clip) {
  html,
  body,
  main,
  nav,
  section,
  footer {
    overflow-x: clip;
  }
}

@supports not (overflow: clip) {
  html,
  body,
  main,
  nav,
  section,
  footer {
    overflow-x: hidden;
  }
}

body[data-nav-open="true"] {
  overflow: hidden;
}

.site-shell {
  width: min(1180px, calc(100% - 3rem));
  margin: 0 auto;
}

.site-panel {
  border: 1px solid var(--site-border);
  border-radius: 1.75rem;
  background: linear-gradient(180deg, rgba(15, 22, 39, 0.92), rgba(10, 15, 29, 0.86));
  box-shadow: var(--site-shadow);
  backdrop-filter: blur(18px);
}

.site-kicker {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8aaefe;
}

.site-heading {
  margin: 0.45rem 0 1rem;
  font-family: Sora, sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.04;
  color: var(--site-text);
  text-wrap: balance;
}

.site-copy {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--site-muted);
}

.site-note {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--site-muted);
}

.site-note strong {
  color: var(--site-text);
}

.site-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 2rem;
}

.site-button-row > a {
  min-width: 12rem;
}

.site-investors {
  position: relative;
  padding: 6rem 0;
  background:
    radial-gradient(circle at top right, rgba(45, 107, 255, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(7, 10, 18, 0), rgba(7, 10, 18, 0.74) 18%, rgba(7, 10, 18, 0.96));
}

.site-investors::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/network-room.jpg") center / cover no-repeat;
  opacity: 0.12;
  pointer-events: none;
}

.site-investors > * {
  position: relative;
  z-index: 1;
}

.site-investors-layout {
  display: grid;
  gap: 1rem;
  align-items: stretch;
}

.site-investor-summary,
.site-investor-focus,
.site-investor-card {
  padding: 1.5rem;
}

.site-investor-focus h3,
.site-investor-card h3,
.site-footer-heading {
  margin: 0;
  font-family: Sora, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--site-text);
}

.site-mini-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9ab7ff;
}

.site-mini-label::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--site-accent);
  box-shadow: 0 0 0 6px var(--site-accent-soft);
}

.site-investor-list,
.site-investor-card ul {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.site-investor-list li,
.site-investor-card li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  color: var(--site-muted);
  line-height: 1.6;
}

.site-investor-list li::before,
.site-investor-card li::before {
  content: "";
  width: 0.56rem;
  height: 0.56rem;
  margin-top: 0.48rem;
  border-radius: 999px;
  background: var(--site-accent);
  box-shadow: 0 0 0 5px var(--site-accent-soft);
  flex-shrink: 0;
}

.site-investor-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.site-investor-card p {
  margin: 0.75rem 0 0;
  color: var(--site-muted);
  line-height: 1.65;
}

.site-footer {
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(45, 107, 255, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(10, 14, 24, 0.62), rgba(7, 10, 18, 1));
  pointer-events: none;
}

.site-footer-wrap {
  position: relative;
  z-index: 1;
}

.site-footer-grid {
  display: grid;
  gap: 1rem;
}

.site-footer-brand,
.site-footer-column {
  padding: 1.4rem;
  border: 1px solid var(--site-border);
  border-radius: 1.5rem;
  background: linear-gradient(180deg, rgba(15, 22, 39, 0.86), rgba(10, 15, 29, 0.74));
  backdrop-filter: blur(16px);
}

.site-footer-brand p,
.site-footer-column p,
.site-footer-meta p {
  margin: 0;
  color: var(--site-muted);
  line-height: 1.65;
}

.site-footer-links {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.site-footer a {
  color: var(--site-muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

.site-footer a:hover {
  color: var(--site-text);
  transform: translateX(2px);
}

.site-footer-brand .site-footer-links {
  gap: 0.9rem;
}

.site-footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--site-border);
}

.site-mobile-menu {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  padding: 5.4rem 1rem 1rem;
  background: rgba(4, 8, 20, 0.88) !important;
  backdrop-filter: blur(22px);
}

.site-mobile-menu-panel {
  width: min(100%, 24rem);
  min-height: calc(100svh - 6.4rem);
  margin-left: auto;
  padding: 1.2rem;
  border: 1px solid var(--site-border-strong);
  border-radius: 1.75rem;
  background: linear-gradient(180deg, rgba(17, 25, 43, 0.96), rgba(10, 15, 29, 0.92));
  box-shadow: var(--site-shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: auto;
}

.site-mobile-menu-header {
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--site-border);
}

.site-mobile-menu-title {
  margin: 0.35rem 0 0.6rem;
  font-family: Sora, sans-serif;
  font-size: 1.65rem;
  line-height: 1.08;
  color: var(--site-text);
}

.site-mobile-menu-copy {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--site-muted);
}

.site-mobile-links {
  display: grid;
  gap: 0.65rem;
}

.site-mobile-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  font-family: Sora, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--site-text) !important;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.site-mobile-menu-link::after {
  content: "/";
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
  color: #8aaefe;
}

.site-mobile-menu-link:hover {
  transform: translateY(-1px);
  border-color: rgba(138, 174, 254, 0.35);
  background: rgba(45, 107, 255, 0.08);
}

.site-mobile-menu-cta {
  display: grid;
  gap: 0.75rem;
  margin-top: auto;
}

.site-mobile-menu-footer {
  display: grid;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--site-border);
}

.site-mobile-menu-meta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.site-mobile-menu-meta-links a {
  font-size: 0.84rem;
  color: var(--site-muted);
}

.site-mobile-menu-note {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--site-muted);
}

.site-contact-card {
  display: grid;
  gap: 0.85rem;
}

.site-contact-card .site-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.45rem;
  border-radius: 0.75rem;
  background: rgba(45, 107, 255, 0.12);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  color: #8aaefe;
}

.site-fix-form-note {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgb(166, 179, 208);
}

body[data-nav-open="true"] nav {
  background: rgba(7, 10, 18, 0.72) !important;
  backdrop-filter: blur(18px);
}

nav button[aria-expanded="true"] {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

@media (min-width: 900px) {
  .site-investors-layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr);
  }

  .site-investor-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-footer-grid {
    grid-template-columns: minmax(0, 1.45fr) repeat(3, minmax(0, 1fr));
  }

  .site-footer-meta {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

@media (max-width: 1023px) {
  main [class*="translate-x-10"],
  main [class*="-translate-x-10"],
  footer [class*="translate-x-10"],
  footer [class*="-translate-x-10"] {
    --tw-translate-x: 0px !important;
  }

  .stat-pill {
    max-width: calc(100vw - 3rem);
  }

  #contact .space-y-8 > .flex:last-child {
    flex-direction: column;
  }

  #contact .space-y-8 > .flex:last-child > a {
    width: 100%;
  }

  #contact .glass-card,
  .section-pinned .glass-card {
    max-width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    justify-content: center;
  }

  .site-shell {
    width: min(100%, calc(100% - 2rem));
  }

  .site-investors {
    padding: 4.5rem 0;
  }
}

@media (max-width: 767px) {
  main > .section-pinned.relative:first-child {
    height: auto !important;
    min-height: auto !important;
  }

  main > .section-pinned.relative:first-child > .relative.z-10.h-full.flex.flex-col.justify-center.px-6 {
    height: auto !important;
    min-height: 100svh;
    justify-content: flex-start;
    padding-top: calc(5.75rem + env(safe-area-inset-top, 0px));
    padding-bottom: 2rem;
  }

  main > .section-pinned.relative:first-child > .relative.z-10.h-full.flex.flex-col.justify-center.px-6 > .grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1.5rem;
    align-items: start;
  }

  main > .section-pinned.relative:first-child > .relative.z-10.h-full.flex.flex-col.justify-center.px-6 > .grid > * {
    min-width: 0;
  }

  main > .section-pinned.relative:first-child .micro-label.mb-4 {
    margin-bottom: 0.75rem;
  }

  main > .section-pinned.relative:first-child .headline-xl {
    margin-bottom: 1rem;
    max-width: calc(100% - 0.25rem);
    font-size: clamp(2.5rem, 11.5vw, 3.35rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
    padding-right: 0.1rem;
    text-wrap: balance;
  }

  main > .section-pinned.relative:first-child .text-nexai-text-muted.text-lg.max-w-lg.mb-8.leading-relaxed {
    max-width: none;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.65;
  }

  main > .section-pinned.relative:first-child .flex.flex-wrap.gap-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  main > .section-pinned.relative:first-child .flex.flex-wrap.gap-4 > a {
    width: 100%;
  }

  main > .section-pinned.relative:first-child .flex.justify-end.transition-all.duration-700.delay-500.opacity-100.translate-x-0 {
    justify-content: stretch;
  }

  main > .section-pinned.relative:first-child .glass-card {
    max-width: 100%;
    padding: 1.25rem;
    border-radius: 1.5rem;
  }

  main > .section-pinned.relative:first-child .glass-card h3 {
    font-size: 1.6rem;
    line-height: 1.08;
  }

  main > .section-pinned.relative:first-child .glass-card p {
    font-size: 1rem;
    line-height: 1.65;
  }

  main > .section-pinned.relative:first-child > .relative.z-10.h-full.flex.flex-col.justify-center.px-6 > div:last-child {
    position: static !important;
    inset: auto !important;
    margin-top: 1.25rem;
    padding: 1rem;
    border: 1px solid var(--site-border);
    border-radius: 1.5rem;
    background: linear-gradient(180deg, rgba(12, 19, 34, 0.92), rgba(7, 11, 24, 0.9));
    box-shadow: 0 24px 60px rgba(3, 8, 20, 0.32);
    backdrop-filter: blur(18px);
  }

  main > .section-pinned.relative:first-child > .relative.z-10.h-full.flex.flex-col.justify-center.px-6 > div:last-child > div {
    display: block;
  }

  main > .section-pinned.relative:first-child > .relative.z-10.h-full.flex.flex-col.justify-center.px-6 > div:last-child .micro-label {
    display: none;
  }

  main > .section-pinned.relative:first-child > .relative.z-10.h-full.flex.flex-col.justify-center.px-6 > div:last-child .flex.flex-wrap.gap-6 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 0.85rem;
  }

  main > .section-pinned.relative:first-child > .relative.z-10.h-full.flex.flex-col.justify-center.px-6 > div:last-child .flex.flex-wrap.gap-6 > div {
    min-width: 0;
  }

  main > .section-pinned.relative:first-child > .relative.z-10.h-full.flex.flex-col.justify-center.px-6 > div:last-child .flex.flex-wrap.gap-6 > div > p:first-child {
    font-size: 1.75rem;
    line-height: 1;
  }

  main > .section-pinned.relative:first-child > .relative.z-10.h-full.flex.flex-col.justify-center.px-6 > div:last-child .flex.flex-wrap.gap-6 > div > p:last-child {
    margin-top: 0.25rem;
    font-size: 0.76rem;
    line-height: 1.35;
  }
}

/* Helper class to hide elements */
.site-hide {
  display: none !important;
}
