:root {
  --bg: #04050a;
  --panel: rgba(9, 11, 22, 0.86);
  --panel-strong: rgba(12, 16, 28, 0.94);
  --line: rgba(0, 240, 255, 0.22);
  --cyan: #00f0ff;
  --pink: #ff2da8;
  --text: #f3f5ff;
  --muted: #94a0c2;
  --soft: rgba(255, 255, 255, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at top left, rgba(255, 45, 168, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(0, 240, 255, 0.12), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.45), transparent 90%);
  opacity: 0.45;
  z-index: 0;
}

#main-hub {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  z-index: 2;
}

#main-hub .hero-media {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  background-image: url('./background.png');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  filter: saturate(1.05) contrast(1.06);
  pointer-events: none;
}

#main-hub .hero-media img {
  display: none;
}

#main-hub::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 5, 10, 0.2) 0%, rgba(4, 5, 10, 0.68) 100%);
  pointer-events: none;
  z-index: 1;
}

.site-brand {
  position: absolute;
  top: 1.1rem;
  left: 1.1rem;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.7rem;
}

.site-brand svg {
  width: 42px;
  height: 42px;
  display: block;
}

.site-brand .mark {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.team-menu {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  display: flex;
  gap: 0.7rem;
  z-index: 20;
  flex-wrap: wrap;
}

.team-menu a {
  padding: 0.6rem 0.95rem;
  border: 1px solid var(--line);
  background: rgba(4, 5, 10, 0.72);
  color: var(--cyan);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.77rem;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.08);
}

.team-menu a:hover {
  background: rgba(0, 240, 255, 0.12);
  color: #fff;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.22);
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  width: 3.1rem;
  height: 3.1rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.44);
  color: var(--cyan);
  font-size: 1.35rem;
  cursor: pointer;
  z-index: 20;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.16);
  animation: float 1.6s ease-in-out infinite;
}

.scroll-indicator:hover {
  background: rgba(0, 240, 255, 0.12);
  box-shadow: 0 0 22px rgba(0, 240, 255, 0.28);
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.86; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

.neon-link:hover {
  background: rgba(0, 240, 255, 0.1);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.26);
  transform: translateY(-2px);
}

#link-pink-vertical:hover {
  background: rgba(255, 45, 168, 0.12);
  box-shadow: 0 0 16px rgba(255, 45, 168, 0.24);
}

#link-pink-left:hover {
  background: rgba(255, 45, 168, 0.12);
  box-shadow: 0 0 16px rgba(255, 45, 168, 0.24);
}

.hero-card {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  width: min(760px, calc(100% - 2rem));
  padding: 2rem 2.1rem;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(10, 13, 24, 0.68), rgba(7, 9, 18, 0.65));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
  z-index: 15;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.74rem;
  font-weight: 700;
}

.eyebrow::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: var(--pink);
  box-shadow: 0 0 10px rgba(255, 45, 168, 0.7);
}

.glitch-title {
  position: relative;
  display: inline-block;
  font-family: "Orbitron", "Segoe UI", sans-serif;
  font-size: clamp(1.7rem, 4vw, 2.65rem);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
  line-height: 1.1;
}

.glitch-cyan {
  color: var(--cyan);
  text-shadow: 0 0 14px rgba(0, 240, 255, 0.32);
}

.glitch-pink {
  color: var(--pink);
  text-shadow: 0 0 14px rgba(255, 45, 168, 0.26);
}

.glitch-title::before,
.glitch-title::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: transparent;
  overflow: hidden;
  pointer-events: none;
}

.glitch-title::before {
  left: 3px;
  text-shadow: -3px 0 var(--cyan);
  clip-path: inset(20% 0 30% 0);
  animation: glitchA 1.1s infinite linear alternate-reverse;
}

.glitch-title::after {
  left: -3px;
  text-shadow: -3px 0 var(--pink);
  clip-path: inset(50% 0 10% 0);
  animation: glitchB 1.4s infinite linear alternate-reverse;
}

@keyframes glitchA {
  0% { clip-path: inset(15% 0 70% 0); transform: translate(-3px, 0); }
  20% { clip-path: inset(45% 0 15% 0); transform: translate(3px, 0); }
  40% { clip-path: inset(80% 0 5% 0); transform: translate(-2px, 0); }
  60% { clip-path: inset(10% 0 60% 0); transform: translate(2px, 0); }
  80% { clip-path: inset(65% 0 25% 0); transform: translate(-3px, 0); }
  100% { clip-path: inset(30% 0 50% 0); transform: translate(1px, 0); }
}

@keyframes glitchB {
  0% { clip-path: inset(70% 0 10% 0); transform: translate(2px, 0); }
  25% { clip-path: inset(5% 0 85% 0); transform: translate(-2px, 0); }
  50% { clip-path: inset(35% 0 40% 0); transform: translate(2px, 0); }
  75% { clip-path: inset(90% 0 2% 0); transform: translate(-3px, 0); }
  100% { clip-path: inset(20% 0 60% 0); transform: translate(1px, 0); }
}

.hero-copy {
  font-size: 1rem;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 1rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.pill {
  display: inline-block;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(0, 240, 255, 0.2);
  background: rgba(0, 240, 255, 0.08);
  color: #dfe8ff;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-shell {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4rem 0 5rem;
  position: relative;
  z-index: 2;
}

.roadmap-section {
  display: block;
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, rgba(6, 7, 14, 0.95) 0%, rgba(4, 5, 10, 1) 100%);
}

.tech-stack-section {
  display: none;
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, rgba(6, 7, 14, 0.95) 0%, rgba(4, 5, 10, 1) 100%);
}

body[data-route-section="tech-stack"] .tech-stack-section {
  display: block;
}

.roadmap-section {
  padding-top: 1rem;
}

.section-heading {
  margin-bottom: 1.6rem;
  max-width: 700px;
}

.section-heading h2 {
  font-family: "Orbitron", "Segoe UI", sans-serif;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  color: var(--pink);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 0.6rem;
}

.section-heading p {
  color: var(--muted);
  font-size: 1rem;
}

.roadmap-card {
  border: 1px solid var(--line);
  padding: 2rem;
  background: var(--panel);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

.roadmap-list {
  list-style: none;
  display: grid;
  gap: 0.9rem;
  margin: 1.3rem 0 1.4rem;
  padding-left: 0;
}

.roadmap-list li {
  padding: 0.9rem 1rem;
  border-left: 2px solid var(--pink);
  background: rgba(255, 45, 168, 0.06);
  color: #dfe8ff;
}

.highlight {
  color: var(--cyan);
  font-weight: 600;
}

.roadmap-highlight-card {
  padding: 1rem 1.2rem;
  border: 1px solid rgba(255, 45, 168, 0.26);
  background: rgba(255, 45, 168, 0.08);
  color: #dfe4ff;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.feature-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.1rem;
  background: rgba(255, 255, 255, 0.03);
}

.feature-card h3 {
  font-size: 1rem;
  margin-bottom: 0.45rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.tech-stack-section {
  padding: 1rem 0 4rem;
}

.tech-stack-grid {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 1.2rem;
  align-items: start;
}

.stack-menu {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.stack-button {
  position: relative;
  border: 1px solid transparent;
  background: transparent;
  color: transparent;
  padding: 0.85rem 0;
  text-align: center;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 18px;
  height: 18px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stack-button::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(255, 45, 168, 0.4);
  transition: all 0.2s ease;
  display: block;
}

.stack-button:hover,
.stack-button.active {
  width: auto;
  height: auto;
  padding: 0.9rem 1rem;
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.24);
  box-shadow: 0 0 16px rgba(255, 45, 168, 0.18);
  color: #fff;
  text-align: left;
  justify-content: flex-start;
}

.stack-button:hover::before,
.stack-button.active::before {
  width: 12px;
  height: 12px;
  box-shadow: 0 0 10px rgba(255, 45, 168, 0.7);
}

.stack-button span,
.stack-button strong,
.stack-button small {
  display: none;
}

.stack-button:hover span,
.stack-button.active span,
.stack-button:hover strong,
.stack-button.active strong,
.stack-button:hover small,
.stack-button.active small {
  display: block;
}

.stack-button span {
  color: var(--cyan);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.stack-button strong {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stack-button small {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.stack-panel {
  border: 1px solid var(--line);
  padding: 1.3rem;
  background: var(--panel);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.stack-card {
  display: none;
}

.stack-card.active {
  display: block;
}

.stack-card .card-body {
  margin-bottom: 1rem;
}

.stack-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.7rem;
}

.stack-square {
  min-height: 92px;
  padding: 0.7rem;
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: 14px;
  background: rgba(0, 240, 255, 0.05);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.4;
}

.stack-square strong {
  color: var(--cyan);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.2rem;
}

.subpage {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 8, 0.9);
  backdrop-filter: blur(10px);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.4rem;
  z-index: 100;
}

.subpage.active {
  display: flex;
}

.subpage-card {
  width: min(860px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(9, 12, 24, 0.92), rgba(7, 9, 18, 0.95));
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.38);
}

.subpage-card h1 {
  margin-bottom: 0.9rem;
}

.card-body {
  padding: 1.2rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  margin-bottom: 1rem;
}

.card-body h3,
.card-body h4 {
  color: #fff;
  margin-bottom: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 1rem;
}

.card-body p + p {
  margin-top: 0.7rem;
}

.flow-diagram {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin: 1rem 0 1.2rem;
}

.flow-step {
  min-width: 140px;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: 12px;
  background: rgba(0, 240, 255, 0.06);
  color: #fff;
  font-size: 0.92rem;
  line-height: 1.4;
  text-align: center;
}

.flow-step strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--cyan);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.flow-arrow {
  color: var(--pink);
  font-size: 1.2rem;
  font-weight: 700;
}

.back-btn {
  margin-top: 0.8rem;
  padding: 0.8rem 1.2rem;
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--cyan);
  cursor: pointer;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  transition: all 0.2s ease;
}

.back-btn:hover {
  background: var(--cyan);
  color: #000;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.23);
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 880px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .flow-diagram {
    flex-direction: column;
    align-items: stretch;
  }

  .flow-arrow {
    display: none;
  }
}

@media (max-width: 640px) {
  .team-menu {
    justify-content: flex-end;
    padding: 1rem;
  }

  .site-brand svg {
    width: 42px;
    height: 42px;
    display: block;
    margin-top: 5.7rem;
  }

  #main-hub {
    min-height: 90vh;
  }

  #main-hub img {
    height: 90vh;
  }

  .hero-card {
    position: relative;
    top: 25rem;
    width: min(100%, calc(100% - 1.2rem));
  }

  .tech-stack-grid {
    grid-template-columns: 1fr;
  }

  .stack-menu {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  .stack-button {
    width: 14px;
    height: 14px;
    margin: 0;
  }

  .stack-flow {
    grid-template-columns: 1fr;
  }

  .section-shell {
    padding: 3rem 0 4rem;
  }

  .roadmap-card {
    padding: 1.35rem;
  }

  .subpage-card {
    padding: 1.25rem;
  }
}
