:root {
  --bg-deep: #050505;
  --bg-alt: #080a14;
  --neon-purple: #bb00ff;
  --neon-cyan: #00f0ff;
  --text-main: #e0e0e0;
  --text-dim: #a0a0a0;
  --font-main: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Effects */
.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.2) 50%),
    linear-gradient(
      90deg,
      rgba(255, 0, 0, 0.03),
      rgba(0, 255, 0, 0.01),
      rgba(0, 0, 255, 0.03)
    );
  z-index: 9999;
  background-size: 100% 2px, 3px 100%;
  pointer-events: none;
}

.noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("image-placeholder.png"); /* Fallback to noise filter in JS */
  opacity: 0.05;
  z-index: 9998;
  pointer-events: none;
}

/* Header */
.neon-system-panel {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(5, 5, 5, 0.9);
  border-bottom: 2px solid var(--neon-purple);
  box-shadow: 0 0 15px var(--neon-purple);
}

.header-inner {
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 15px;
}

.system-id {
  font-weight: bold;
  letter-spacing: 2px;
  color: var(--neon-cyan);
  text-shadow: 0 0 5px var(--neon-cyan);
}

.nav-system a {
  text-decoration: none;
  color: var(--text-main);
  margin-left: 20px;
  font-size: 0.9rem;
  text-transform: uppercase;
  transition: 0.3s;
  letter-spacing: 1px;
}

.nav-system a:hover {
  color: var(--neon-purple);
  text-shadow: 0 0 8px var(--neon-purple);
}

.nav-auth-btn {
  border: 1px solid var(--neon-cyan);
  padding: 8px 15px;
  border-radius: 4px;
  box-shadow: inset 0 0 5px var(--neon-cyan);
}

.burger {
  display: none;
  cursor: pointer;
}

.b-line {
  width: 25px;
  height: 2px;
  background: var(--neon-cyan);
  margin: 5px;
}

/* Hero */
.hero-plexi {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
}

.hero-grid-bg {
  position: absolute;
  width: 200%;
  height: 200%;
  background-image: linear-gradient(var(--neon-purple) 1px, transparent 1px),
    linear-gradient(90deg, var(--neon-purple) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.05;
  transform: perspective(500px) rotateX(60deg);
  top: -50%;
  left: -50%;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  from {
    transform: perspective(500px) rotateX(60deg) translateY(0);
  }
  to {
    transform: perspective(500px) rotateX(60deg) translateY(50px);
  }
}

.plexi-panel {
  background: rgba(20, 20, 30, 0.6);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 60px;
  max-width: 800px;
  position: relative;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.glitch-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1;
  margin: 20px 0;
  text-shadow: 2px 2px var(--neon-purple), -2px -2px var(--neon-cyan);
}

.hero-lead {
  color: var(--text-dim);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.cyber-btn {
  display: inline-block;
  padding: 15px 30px;
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: 0.3s;
  margin-right: 20px;
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
}

.cyber-btn.primary {
  background: var(--neon-purple);
  color: white;
}

.cyber-btn.secondary {
  border: 2px solid var(--neon-cyan);
  color: var(--neon-cyan);
}

.cyber-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px currentColor;
}

/* Sections */
.section {
  padding: 100px 0;
}

.section-tag {
  color: var(--neon-cyan);
  font-family: monospace;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

/* Grid Board */
.grid-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.grid-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(187, 0, 255, 0.2);
  padding: 40px;
  transition: 0.3s;
}

.grid-box:hover {
  background: rgba(187, 0, 255, 0.05);
  border-color: var(--neon-purple);
}

.box-icon {
  color: var(--neon-cyan);
  margin-bottom: 20px;
}

/* Glitch Story */
.split-glitch {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.glitch-img-wrap {
  height: 400px;
  background: url("/images/international-day-education-futuristic-style-with-robots\ \(1\).jpg")
    center/cover;
  position: relative;
  border: 2px solid var(--neon-purple);
}

/* Hex Tech */
.hex-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 50px;
}

.hex-item {
  width: 150px;
  height: 170px;
  background: var(--neon-purple);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hex-inner {
  width: 140px;
  height: 160px;
  background: var(--bg-deep);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--neon-cyan);
}

/* Holo Section */
.holo-display {
  border: 1px solid var(--neon-cyan);
  padding: 80px;
  background: rgba(0, 240, 255, 0.03);
  position: relative;
  text-align: center;
  box-shadow: inset 0 0 30px rgba(0, 240, 255, 0.1);
}

.holo-glow {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 10px;
  background: var(--neon-cyan);
  filter: blur(20px);
}

/* Terminal */
.terminal-mockup {
  background: #111;
  border-radius: 8px;
  border: 1px solid #333;
  overflow: hidden;
  font-family: "Courier New", Courier, monospace;
}

.term-head {
  background: #222;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.term-dots span {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 5px;
}

.term-dots span:nth-child(1) {
  background: #ff5f56;
}
.term-dots span:nth-child(2) {
  background: #ffbd2e;
}
.term-dots span:nth-child(3) {
  background: #27c93f;
}

.term-body {
  padding: 30px;
  color: #00ff00;
}

.term-line {
  margin-bottom: 10px;
}

/* Pulse Bars */
.bars-container {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 100px;
  margin-bottom: 30px;
}

.pulse-bar {
  flex: 1;
  background: var(--neon-purple);
  height: var(--h);
  animation: pulseHeight 1.5s ease-in-out infinite alternate;
}

@keyframes pulseHeight {
  from {
    opacity: 0.5;
  }
  to {
    opacity: 1;
    height: calc(var(--h) + 10%);
  }
}

/* Synth Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.synth-card {
  background: #0d0d12;
  padding: 40px;
  border-left: 4px solid var(--neon-cyan);
  position: relative;
  overflow: hidden;
}

.card-noise {
  position: absolute;
  inset: 0;
  background: url("image-placeholder.png");
  opacity: 0.05;
}

/* FAQ */
.faq-list {
  margin-top: 50px;
}

.faq-item {
  border: 1px solid #222;
  margin-bottom: 15px;
  background: rgba(255, 255, 255, 0.01);
}

.faq-trigger {
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  color: var(--neon-cyan);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: 0.3s ease;
  padding: 0 20px;
  color: var(--text-dim);
}

.faq-item.active .faq-content {
  max-height: 200px;
  padding-bottom: 20px;
}

/* Form */
.auth-panel {
  max-width: 600px;
  margin: 0 auto;
  border: 2px solid var(--neon-purple);
  padding: 50px;
  background: var(--bg-alt);
}

.auth-header {
  text-align: center;
  font-weight: bold;
  letter-spacing: 3px;
  margin-bottom: 30px;
  color: var(--neon-purple);
}

.cyber-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-wrap {
  display: flex;
  flex-direction: column;
}

.input-wrap label {
  font-size: 0.8rem;
  color: var(--neon-cyan);
  margin-bottom: 5px;
}

.input-wrap input {
  background: transparent;
  border: 1px solid #333;
  padding: 12px;
  color: white;
  outline: none;
}

.input-wrap input:focus {
  border-color: var(--neon-cyan);
}

.checkbox-wrap {
  display: flex;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.auth-btn {
  background: var(--neon-cyan);
  border: none;
  padding: 15px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 20px;
}

/* Footer */
.cyber-lower-system {
  background: #030303;
  padding: 80px 0 20px;
  border-top: 1px solid #222;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  margin-bottom: 50px;
}

.f-contacts p {
  color: var(--text-dim);
  margin-bottom: 10px;
}

.f-legal nav a {
  display: block;
  color: var(--text-dim);
  text-decoration: none;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.f-bottom {
  border-top: 1px solid #222;
  padding-top: 20px;
  font-size: 0.7rem;
  color: #444;
  text-align: center;
}

/* Mobile Menu */
.glitch-menu {
  position: fixed;
  top: 0;
  left: 100%;
  width: 100%;
  height: 100%;
  background: var(--bg-deep);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: 0.5s cubic-bezier(0.7, 0, 0.3, 1);
}

.glitch-menu.active {
  left: 0;
}

.menu-close {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 3rem;
  cursor: pointer;
}

.mobile-links a {
  display: block;
  color: var(--neon-cyan);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 20px;
  text-shadow: 0 0 10px var(--neon-cyan);
}

/* Cookie */
.neon-modal {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 5000;
  display: none;
}

.modal-border {
  background: var(--bg-alt);
  border: 1px solid var(--neon-cyan);
  padding: 30px;
  max-width: 350px;
  box-shadow: 0 0 20px var(--neon-cyan);
}

/* Responsive */
@media (max-width: 992px) {
  .nav-system {
    display: none;
  }
  .burger {
    display: block;
  }
  .grid-content,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .split-glitch {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .plexi-panel {
    padding: 30px;
  }
  .hex-grid {
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    align-items: center;
  }
  .hero-plexi {
    margin-top: 100px;
  }
  .holo-display {
    padding: 30px;
  }
  .auth-header {
    text-align: left;
    display: flex;
    justify-content: center;
    white-space: normal;
  }
}

.pages {
  padding: 120px 0;
}

.pages-wrap {
  max-width: 1000px;
  padding: 0 20px;
  margin: 0 auto 20px;
}

.pages h1 {
  font-size: 40px;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 40px;
  text-align: center;
}

.text-wrapper {
  background: #f8fafc;
  padding: 50px 40px;
  border-radius: 20px;
  line-height: 1.8;
}

.text-wrapper h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  margin-top: 40px;
  margin-bottom: 15px;
  border-bottom: 2px solid rgba(99, 102, 241, 0.2);
  padding-bottom: 5px;
}

.text-wrapper h3 {
  color: #000000;
  margin-bottom: 20px;
}

.text-wrapper p {
  color: #64748b;
  margin-bottom: 20px;
}

.text-wrapper ul {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.text-wrapper ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 15px;
  color: #1e293b;
}

.text-wrapper ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  font-size: 20px;
  line-height: 1;
  color: var(--primary);
  top: 0;
}

.text-wrapper strong {
  color: var(--color-error);
}

.text-wrapper a {
  color: #001eff;
  text-decoration: underline;
  font-weight: 600;
}

.text-wrapper ol {
  display: flex;
  flex-direction: column;
  padding: 20px;
  color: #000000;
}

.margin {
  margin: 120px 0 50px;
  font-size: 40px;
  color: var(--accent);
}

@media (max-width: 768px) {
  .pages {
    padding: 100px 0 60px;
  }
  .pages h1 {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .text-wrapper {
    padding: 30px 20px;
  }
  .text-wrapper h2 {
    font-size: 24px;
    margin-top: 30px;
  }
  .margin {
    font-size: 28px;
  }
}
