:root {
  --bg: #020304;
  --fg: #e8edf2;
  --muted: #9aa3ad;
  --accent: #6fa6ff;
  --galactic-purple: #b578ff;
  --galactic-blue: #64c8ff;
  --galactic-cyan: #46f0ff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(25, 8, 60, 0.8), transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(10, 40, 80, 0.8), transparent 50%),
    linear-gradient(135deg, #020304 0%, #030507 100%);
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 30%, rgba(111, 166, 255, 0.05) 0%, transparent 30%),
    radial-gradient(circle at 85% 70%, rgba(255, 120, 200, 0.05) 0%, transparent 30%),
    radial-gradient(circle at 50% 100%, rgba(100, 200, 255, 0.03) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  pointer-events: none;
}

#overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: auto;
  display: block;
  padding: 0;
}

#brand {
  position: absolute;
  top: 38px;
  left: 8vw;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.88rem 1rem;
  border-radius: 999px;
  background: rgba(8, 12, 25, 0.62);
  border: 1px solid rgba(111, 166, 255, 0.14);
  box-shadow: 0 28px 70px rgba(3, 8, 22, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  pointer-events: auto;
  z-index: 30;
}

.brand-mark {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.35rem;
  background: linear-gradient(135deg, var(--galactic-purple), var(--galactic-blue));
  box-shadow: 0 0 18px rgba(111, 166, 255, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.brand-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: #eef7ff;
  text-shadow: 0 0 18px rgba(111, 166, 255, 0.12);
}

#line {
  margin: 0;
  max-width: 980px;
  text-align: center;
  letter-spacing: 0.015em;
  line-height: 1.55;
  font-size: clamp(12px, 1.2vw, 18px);
  color: var(--muted);
  text-shadow:
    0 0 20px rgba(232, 237, 242, 0.1),
    0 0 40px rgba(111, 166, 255, 0.08),
    0 0 60px rgba(180, 120, 255, 0.05);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 400;
  opacity: 1;
  will-change: opacity;
  position: fixed;
  bottom: 4vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  #line {
    animation: textGlow 4s ease-in-out infinite;
  }

  @keyframes textGlow {
    0%,
    100% {
      text-shadow:
        0 0 20px rgba(232, 237, 242, 0.1),
        0 0 40px rgba(111, 166, 255, 0.08),
        0 0 60px rgba(180, 120, 255, 0.05);
    }

    50% {
      text-shadow:
        0 0 30px rgba(232, 237, 242, 0.15),
        0 0 60px rgba(111, 166, 255, 0.12),
        0 0 90px rgba(180, 120, 255, 0.08);
    }
  }
}

.top-nav {
  position: fixed;
  top: 42px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  z-index: 20;
  padding: 0 8vw;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 52px;
}

.nav-menu a,
.nav-link-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.08em;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}

.nav-menu a:hover,
.nav-link-btn:hover {
  color: #ffffff;
}

.nav-link-btn {
  outline: none;
}

.nav-link-btn:focus,
.nav-link-btn:active {
  outline: none;
  box-shadow: none;
}

.nav-link-btn.active {
  color: #ffffff;
  position: relative;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.08);
}

.nav-link-btn.active::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -12px;
  width: 72%;
  height: 1px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.12);
}

.access-link {
  position: fixed;
  right: 6vw;
  padding: 13px 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: #ffffff !important;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.015),
    0 0 24px rgba(255, 255, 255, 0.02);
  transition: all 0.28s ease;
  z-index: 25;
}

.access-link:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}


.hero-content {
  position: absolute;
  top: 50%;
  left: 8vw;
  transform: translateY(-48%);
  max-width: 720px;
  z-index: 20;
  pointer-events: auto;
}

.hero-eyebrow {
  margin: 0 0 18px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(38px, 4.5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 550;
  color: #d96a2b;
  max-width: 560px;
}

.hero-subtext {
  margin-top: 24px;
  max-width: 560px;
  font-size: clamp(18px, 1.8vw, 25px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 400;
}

.hero-support {
  margin-top: 18px;
  max-width: 520px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.62);
}

.hero-micro {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.46);
  letter-spacing: 0.02em;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
  padding: 13px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 0.25s ease;
  pointer-events: auto;
  cursor: pointer;
}

.hero-cta:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
}

.hero-cta:active {
  transform: translateY(0px) scale(0.98);
}

.hero-secondary {
      background: transparent !important;
        border: none !important;
          box-shadow: none !important;
            padding: 0 !important;
  display: inline-block;
  margin-top: 14px;
  margin-left: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  cursor: pointer;
    pointer-events: auto !important;
      position: relative;
        z-index: 999;
}

.hero-secondary:hover {
  color: #ffffff;
   opacity: 1;
     text-shadow: 0 0 12px rgba(255,255,255,0.2);
}


.hero-content a,
.hero-content a:visited,
.hero-content a:hover,
.hero-content a:active {
  color: #ffffff !important;
  text-decoration: none !important;
}

.copyright {
  position: fixed;
  bottom: 3vh;
  left: 4vw;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.35);
  z-index: 30;
  pointer-events: none;
}

.side-panel,
.network-panel {
  position: fixed;
  top: 0;
  right: -600px;
  width: 560px;
  height: 100vh;
  z-index: 100;
  padding: 72px 44px 48px;
  background: rgba(4, 7, 14, 0.97);
  backdrop-filter: blur(10px);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: -20px 0 80px rgba(0, 0, 0, 0.35);
  transition:
    right 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.45s ease;
  opacity: 0;
  overflow-y: auto;
  pointer-events: auto;
}

.side-panel.open,
.network-panel.open {
  right: 0;
  opacity: 1;
}

.side-panel::-webkit-scrollbar,
.network-panel::-webkit-scrollbar {
  width: 6px;
}

.side-panel::-webkit-scrollbar-track,
.network-panel::-webkit-scrollbar-track {
  background: transparent;
}

.side-panel::-webkit-scrollbar-thumb,
.network-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.side-panel::-webkit-scrollbar-thumb:hover,
.network-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.16);
}

#panelBackdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 8, 0.28);
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
  z-index: 80;
  pointer-events: none;
}

#panelBackdrop.active {
  opacity: 1;
  visibility: visible;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 42px;
  gap: 20px;
}

.panel-title-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.panel-header h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #ffffff;
}

.panel-label {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 500;
}

.panel-subtitle {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.58);
  max-width: 320px;
}

.close-panel {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.88);
  font-size: 30px;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.28s ease;
  backdrop-filter: blur(8px);
  flex: 0 0 auto;
}

.close-panel:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
  transform: scale(1.03);
}

.paper-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.paper-item {
  display: block;
  text-decoration: none;
  color: #ffffff;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.28s ease;
}

.paper-item span {
  display: block;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.96);
  line-height: 1.45;
}

.paper-item small {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
}

.paper-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.paper-meta small {
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}

.paper-action {
  display: block;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  margin-top: 6px;
  font-weight: 400;
}

.paper-item:hover {
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateX(2px);
}

.network-content {
  display: flex;
  flex-direction: column;
  gap: 34px;
  padding-top: 8px;
}

.network-content p {
  margin: 0;
  font-size: 16px;
  line-height: 1.95;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 400;
  max-width: 440px;
}

body.panel-open .top-nav,
body.panel-open #brand {
  opacity: 0.55;
  transition: opacity 0.35s ease;
}

body.panel-open .top-nav:hover,
body.panel-open #brand:hover {
  opacity: 0.85;
}

.network-panel.open ~ #overlay .top-nav,
.side-panel.open ~ #overlay .top-nav {
  opacity: 0.45;
  transition: opacity 0.3s ease;
}

.network-panel.open ~ #overlay #brand,
.side-panel.open ~ #overlay #brand {
  opacity: 0.55;
  transition: opacity 0.3s ease;
}

.network-panel.open ~ #overlay #line,
.side-panel.open ~ #overlay #line {
  opacity: 0.25;
  transition: opacity 0.3s ease;
}

#seo-content {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.seo-hidden {
  position: absolute;
  left: -9999px;
}

@media (max-width: 1200px) {
  .nav-menu {
    gap: 34px;
  }

  .hero-content h1 {
    max-width: 620px;
  }
}

@media (max-width: 980px) {
  .top-nav {
    padding: 0 5vw;
  }

  #brand {
    left: 5vw;
  }

  .access-link {
    right: 5vw;
  }

  .hero-content {
    left: 5vw;
    max-width: 640px;
  }

  .side-panel,
  .network-panel {
    width: 92vw;
    right: -92vw;
    padding: 72px 28px 40px;
  }
}

@media (max-width: 720px) {
  .top-nav {
    top: 22px;
    justify-content: flex-end;
  }

  .nav-menu {
    display: none;
  }

  #brand {
    top: 22px;
    left: 5vw;
    padding: 0.78rem 0.9rem;
  }

  .access-link {
    right: 8vw;
    padding: 11px 18px;
    font-size: 11px;
  }

  .hero-content {
    top: 48%;
    left: 5vw;
    right: 5vw;
    max-width: none;
    transform: translateY(-46%);
  }

  .hero-content h1 {
    font-size: clamp(34px, 10vw, 48px);
    max-width: 100%;
  }

  .hero-subtext {
    font-size: 18px;
    max-width: 100%;
  }

  .hero-support {
    font-size: 15px;
    max-width: 100%;
  }

  .hero-micro {
    font-size: 13px;
  }

  .hero-secondary {
        appearance: none;
          -webkit-appearance: none;
    display: block;
    margin-left: 0;
  }

  #line {
    max-width: 88vw;
    font-size: 12px;
    bottom: 2.8vh;
  }

  .copyright {
    left: 5vw;
    bottom: 2.6vh;
  }

  .panel-header {
    margin-bottom: 28px;
  }

  .panel-header h2 {
    font-size: 20px;
  }

  .panel-subtitle {
    max-width: 260px;
  }

  .network-content p {
    font-size: 15px;
    line-height: 1.8;
  }
}

.flow-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.flow-step h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: #ffffff;
  font-weight: 500;
}

.flow-step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
}

.flow-step.final h3 {
  color: #D96A2B;
}

/* ===== NEW CINEMATIC FLOW ===== */

.flow {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 40px;
}

.flow-line {
  opacity: 0.55;
  transform: translateY(20px);
  transition: all 0.6s ease;
  font-size: 15px;
color: rgba(255,255,255,0.85);
}

.flow-line.active {
  opacity: 1;
  transform: translateY(0);
    color: #fff;
}

.flow-line {
  opacity: 0.55;   /* 👈 visible but soft */
  color: rgba(255,255,255,0.75);
}

.flow-line.active {
  opacity: 1;
}

.flow-line.dim {
  opacity: 0.35;
}
.flow-result {
  margin-top: 30px;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s ease;
}

.flow-result.active {
  opacity: 1;
  transform: translateY(0);
  text-shadow: 0 0 20px rgba(255,255,255,0.4);
  letter-spacing: 0.3px;
}

.flow-progress {
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.1);
  margin-bottom: 25px;
}

.flow-progress-bar {
  width: 0%;
  height: 100%;
  background: #D96A2B;
  transition: width 0.4s ease;
}

#overlay {
  pointer-events: none;
}

.hero-content,
.hero-content * {
  pointer-events: auto;
}

.legal-links {
  position: fixed;
  bottom: 40px;
  right: 60px;

  display: flex;
  gap: 16px;

  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
    transform: translateZ(0); 

  z-index: 9999;
    opacity: 1 !important;
      filter: brightness(1.2);
}

.legal-links a {
  text-decoration: none;

  color: rgba(255,255,255,0.88);

  font-weight: 500;

  mix-blend-mode: normal;

  text-shadow: 
    0 1px 2px rgba(0,0,0,0.9),
    0 0 6px rgba(0,0,0,0.6);

  transition: all 0.25s ease;
}

.legal-links a:hover {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255,255,255,0.25);
}