/* ════ THE TRIAD: FRONT PAGE CYBERPUNK STYLES ════ */
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Orbitron:wght@500;900&family=Inter:wght@400;600;800&display=swap');

:root {
  /* Core Colors */
  --bg-deep: #030303;
  --bg-panel: #0a0a0c;
  --bg-lighter: #121215;
  --border-color: #222;
  --text-main: #e0e0e0;
  --text-dim: #888888;

  /* Neons from Plugin */
  --orange: #ff6a00;
  --cyan: #00e5ff;
  --pink: #ff0055;

  /* Typography */
  --font-heading: 'Orbitron', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
  --font-body: 'Inter', sans-serif;

  /* Layout */
  --content-max: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  /* subtle CRT scanline overlay */
  background-image: linear-gradient(rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
  background-size: 100% 4px;
}

/* ════ CUSTOM CURSOR ════ */
/* Hide default cursor on links/buttons since we use a custom glow, or just keep it */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  mix-blend-mode: screen;
}

/* ════ NAVIGATION ════ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  z-index: 1000;
}

.logo img {
  height: 35px;
  filter: brightness(0) invert(1) drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 2px;
  transition: color 0.3s, text-shadow 0.3s;
}

.nav-links a:hover {
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.btn-primary {
  background: transparent;
  border: 1px solid var(--orange);
  color: var(--orange);
  padding: 10px 24px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: inset 0 0 0 rgba(255, 106, 0, 0);
}

.btn-primary:hover {
  background: rgba(255, 106, 0, 0.1);
  box-shadow: 0 0 20px rgba(255, 106, 0, 0.4), inset 0 0 10px rgba(255, 106, 0, 0.2);
  text-shadow: 0 0 5px var(--orange);
}

/* ════ SECTION BASICS ════ */
section {
  padding: 100px 5%;
  max-width: var(--content-max);
  margin: 0 auto;
  position: relative;
}

.section-label {
  font-family: var(--font-mono);
  color: var(--text-dim);
  font-size: 0.85rem;
  letter-spacing: 4px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.section-label::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--text-dim);
}

h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 30px;
  color: #fff;
}

/* ════ HERO SECTION ════ */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-top: 70px;
  /* Offset for nav */
  border-bottom: 1px solid var(--border-color);
}

.hero-bg-container {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  z-index: -2;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  overflow: hidden;
}

.hero-triangle {
  position: absolute;
  width: 1400px;
  max-width: 180vw;
  opacity: 0.25;
  filter: blur(40px);
  z-index: 1;
}

.hero-triangle-fire {
  position: absolute;
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, rgba(255, 60, 0, 0.4) 0%, rgba(200, 20, 0, 0.1) 40%, transparent 60%);
  filter: blur(80px);
  z-index: 0;
  animation: fire-flicker 4s infinite alternate ease-in-out;
}

@keyframes fire-flicker {
  0% {
    transform: scale(0.9) translateY(20px);
    opacity: 0.6;
  }

  100% {
    transform: scale(1.1) translateY(-10px);
    opacity: 1;
  }
}

.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
}

.glitch {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 900;
  text-transform: uppercase;
  position: relative;
  color: #fff;
  letter-spacing: 10px;
  margin-bottom: 10px;
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.2);
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-deep);
}

.glitch::before {
  left: 3px;
  text-shadow: -2px 0 var(--pink);
  clip: rect(24px, 550px, 90px, 0);
  animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.glitch::after {
  left: -3px;
  text-shadow: -2px 0 var(--cyan);
  clip: rect(85px, 550px, 140px, 0);
  animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
  0% {
    clip: rect(10px, 9999px, 83px, 0);
  }

  20% {
    clip: rect(65px, 9999px, 11px, 0);
  }

  40% {
    clip: rect(101px, 9999px, 34px, 0);
  }

  60% {
    clip: rect(2px, 9999px, 90px, 0);
  }

  80% {
    clip: rect(44px, 9999px, 23px, 0);
  }

  100% {
    clip: rect(89px, 9999px, 45px, 0);
  }
}

@keyframes glitch-anim-2 {
  0% {
    clip: rect(65px, 9999px, 100px, 0);
  }

  20% {
    clip: rect(12px, 9999px, 50px, 0);
  }

  40% {
    clip: rect(80px, 9999px, 20px, 0);
  }

  60% {
    clip: rect(30px, 9999px, 80px, 0);
  }

  80% {
    clip: rect(90px, 9999px, 10px, 0);
  }

  100% {
    clip: rect(50px, 9999px, 60px, 0);
  }
}

.hero .subtitle {
  font-size: 1.2rem;
  color: var(--text-dim);
  margin-top: 30px;
  max-width: 600px;
  border-left: 2px solid var(--orange);
  padding-left: 20px;
}

/* ════ CYBER SLIDER ════ */
.cyber-slider-section {
  position: relative;
  padding: 60px 0;
  overflow: hidden;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border-color);
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.8);
}

/* Gradient fades on left and right edges */
.cyber-slider-section::before,
.cyber-slider-section::after {
  content: '';
  position: absolute;
  top: 0;
  width: 15%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

.cyber-slider-section::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-deep) 0%, transparent 100%);
}

.cyber-slider-section::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-deep) 0%, transparent 100%);
}

.slider-track {
  display: flex;
  gap: 30px;
  width: max-content;
  /* Adjust duration to control speed */
  animation: scrollTrack 60s linear infinite;
}

.slider-track:hover {
  animation-play-state: paused;
}

@keyframes scrollTrack {

  /* Translate halfway, exactly one full set of images plus gaps, so the 2nd duplicated set seamlessly loops */
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-50% - 15px));
  }
}

.slide-item {
  position: relative;
  width: 450px;
  height: 280px;
  background: #000;
  border: 1px solid #222;
  filter: grayscale(80%) sepia(20%) hue-rotate(180deg) brightness(0.7) contrast(1.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  flex-shrink: 0;
  cursor: pointer;
}

.slide-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  mix-blend-mode: luminosity;
  transition: opacity 0.5s, transform 0.8s;
}

/* Cyberpunk decorative borders */
.slide-item::before,
.slide-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  transition: all 0.3s;
  z-index: 5;
  pointer-events: none;
}

.slide-item::before {
  top: 5px;
  left: 5px;
  border-top-color: var(--cyan);
  border-left-color: var(--cyan);
  opacity: 0.4;
}

.slide-item::after {
  bottom: 5px;
  right: 5px;
  border-bottom-color: var(--orange);
  border-right-color: var(--orange);
  opacity: 0.4;
}

/* Hover effects */
.slide-item:hover {
  filter: none;
  z-index: 10;
  border-color: var(--pink);
  box-shadow: 0 0 30px rgba(255, 0, 85, 0.3);
  transform: scale(1.05);
}

.slide-item:hover img {
  mix-blend-mode: normal;
  opacity: 1;
}

.slide-item:hover::before,
.slide-item:hover::after {
  opacity: 1;
  width: 35px;
  height: 35px;
}

/* Glitch label overlay */
.slide-item .img-label {
  position: absolute;
  bottom: 15px;
  left: -200px;
  /* Hide off-screen initially */
  background: rgba(0, 0, 0, 0.85);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 8px 15px;
  border-left: 2px solid var(--cyan);
  transition: left 0.4s ease;
  z-index: 5;
  letter-spacing: 2px;
}

.slide-item:hover .img-label {
  left: 15px;
}

/* ════ ENGINE & TRIANGLE ════ */
.engine-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.engine-text p {
  font-size: 1.1rem;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.node-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.node-item {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  padding: 20px;
  position: relative;
  padding-left: 30px;
}

.node-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
}

.node-item.node-top::before {
  background: var(--orange);
  box-shadow: 0 0 10px var(--orange);
}

.node-item.node-left::before {
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.node-item.node-right::before {
  background: var(--pink);
  box-shadow: 0 0 10px var(--pink);
}

.node-item h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.node-item.node-top h3 {
  color: var(--orange);
}

.node-item.node-left h3 {
  color: var(--cyan);
}

.node-item.node-right h3 {
  color: var(--pink);
}

.node-item p {
  font-size: 0.95rem;
  color: var(--text-dim);
}

/* ════ TOPO HERO SLIDESHOW ════ */
.topo-slideshow-section {
  width: 100%;
  padding: 60px 5%;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: center;
}

.slide-viewport {
  position: relative;
  width: 100%;
  max-width: 1000px;
  overflow: hidden;
  background: transparent;
  display: flex;
  align-items: center;
  aspect-ratio: 16 / 9;
  /* Maintains a nice wide shape without forcing a hard height */
  max-height: 600px;
}

.slide-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 0 40px;
  /* Give images some breathing room from the buttons */
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Fit the entire image without cropped overflow */
  opacity: 0.8;
  filter: grayscale(20%) sepia(10%);
  transition: opacity 0.5s, filter 0.5s;
}

.hero-slide:hover img {
  opacity: 1;
  filter: none;
}

/* Navigation Buttons */
.slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  color: var(--pink);
  border: none;
  width: 50px;
  height: 50px;
  font-size: 32px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0.6;
}

.slide-nav:hover {
  color: var(--cyan);
  opacity: 1;
  transform: translateY(-50%) scale(1.2);
  text-shadow: 0 0 15px var(--cyan);
}

.slide-nav.prev {
  left: 10px;
}

.slide-nav.next {
  right: 10px;
}

/* CRT Scanline overlay */
.slide-viewport::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.15) 50%);
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 5;
}

/* ════ PHYSICS GRID ════ */
.param-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.param-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  padding: 30px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
}

.param-card:hover {
  transform: translateY(-5px);
  border-color: #444;
  background: var(--bg-lighter);
}

.param-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, transparent 50%, var(--border-color) 50%);
}

.param-card:hover::after {
  background: linear-gradient(135deg, transparent 50%, var(--cyan) 50%);
}

.param-card h4 {
  font-family: var(--font-mono);
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 15px;
  letter-spacing: 1px;
  display: flex;
  justify-content: space-between;
}

.param-card h4 span {
  color: var(--cyan);
  font-size: 0.8rem;
}

.param-card p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* ════ ROUTING ════ */
.routing-feature {
  display: flex;
  gap: 40px;
  margin-bottom: 60px;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  padding: 40px;
}

.routing-content {
  flex: 1;
}

.routing-content h3 {
  font-family: var(--font-heading);
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 15px;
  letter-spacing: 2px;
}

.routing-content p {
  color: var(--text-dim);
}

.routing-visual {
  flex: 1;
  background: #000;
  border: 1px solid #333;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-mono);
  color: #555;
  min-height: 200px;
  position: relative;
  overflow: hidden;
}

/* Simulated visual elements */
.routing-visual::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 2px;
  background: rgba(0, 229, 255, 0.5);
  top: 50%;
  animation: scanline 4s linear infinite;
}

@keyframes scanline {
  0% {
    transform: translateY(-100px);
  }

  100% {
    transform: translateY(100px);
  }
}

/* ════ CTA / FOOTER ════ */
.cta-section {
  text-align: center;
  padding-top: 150px;
  padding-bottom: 100px;
  border-top: 1px solid var(--border-color);
  background: radial-gradient(ellipse at center, rgba(255, 106, 0, 0.05) 0%, transparent 70%);
}

.cta-glitch {
  font-family: var(--font-heading);
  font-size: 4rem;
  color: #fff;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.btn-huge {
  background: var(--orange);
  color: #000;
  border: none;
  padding: 20px 50px;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 3px;
  cursor: pointer;
  margin-top: 30px;
  transition: all 0.3s;
  box-shadow: 0 0 20px rgba(255, 106, 0, 0.4);
  clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}

.btn-huge:hover {
  background: #fff;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.6);
  transform: scale(1.05);
}

footer {
  text-align: center;
  padding: 40px;
  background: #000;
  border-top: 1px solid #111;
  font-family: var(--font-mono);
  color: #444;
  font-size: 0.85rem;
  letter-spacing: 2px;
}

/* ════ IMAGE MODAL LIGHTBOX ════ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  border: 1px solid var(--cyan);
  box-shadow: 0 0 50px rgba(0, 229, 255, 0.2), inset 0 0 20px rgba(0, 229, 255, 0.1);
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: #000;
  padding: 5px;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-content img {
  max-width: 100%;
  max-height: calc(85vh - 10px);
  display: block;
}

.modal-caption {
  position: absolute;
  bottom: -40px;
  left: 0;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 3px;
}

.modal-close {
  position: absolute;
  top: -40px;
  right: -40px;
  color: var(--pink);
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 300;
  cursor: pointer;
  transition: color 0.3s, text-shadow 0.3s;
  line-height: 1;
  text-shadow: 0 0 10px rgba(255, 0, 85, 0.5);
}

.modal-close:hover {
  color: #fff;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

/* ════ RESPONSIVE ════ */
@media (max-width: 900px) {
  .engine-grid {
    grid-template-columns: 1fr;
  }

  .routing-feature {
    flex-direction: column;
  }

  .glitch {
    font-size: 3rem;
  }

  #triad-plugin-wrapper {
    height: auto;
    min-height: 800px;
    /* enough to scroll plugin sideways if needed */
    overflow-x: auto;
  }
}

/* ════ LANDING PAGE STYLES ════ */
.landing-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('HERO/Screenshot%202026-02-24%20120407.png');
  background-size: cover;
  background-position: center;
  filter: blur(15px) brightness(0.3);
  z-index: -1;
  pointer-events: none;
}

.landing-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100vw;
  text-align: center;
  z-index: 10;
}

.landing-title {
  margin-bottom: 20px;
}

.landing-subtitle {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 400;
  margin-top: 10px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 5px;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.landing-powered {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 400;
  margin-top: 40px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 3px;
  opacity: 0.8;
}