:root {
  --bg-dark: #050505;
  --bg-panel: #0d0d12;
  --neon-blue: #00f3ff;
  --neon-pink: #ff00ff;
  --neon-lime: #ccff00;
  --text-main: #e0e0e0;
  --text-dim: #8888aa;
  --font-main: "Courier New", Courier, monospace;
  --font-display: "Arial Black", sans-serif;
  --border-color: rgba(0, 243, 255, 0.3);
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-main);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Global Effects */
.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0) 50%,
    rgba(0, 0, 0, 0.1) 50%,
    rgba(0, 0, 0, 0.1)
  );
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.3;
}

.noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9998;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

/* Header */
.cyber-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(5, 5, 5, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
}

.cyber-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--neon-blue);
  text-transform: uppercase;
  position: relative;
  letter-spacing: 2px;
}

.cyber-logo::before {
  content: attr(data-text);
  position: absolute;
  left: -2px;
  text-shadow: 2px 0 var(--neon-pink);
  top: 0;
  color: var(--neon-blue);
  background: var(--bg-dark);
  overflow: hidden;
  clip: rect(0, 900px, 0, 0);
  animation: glitch-anim 3s infinite linear alternate-reverse;
}

.cyber-nav {
  display: flex;
  gap: 30px;
}

.nav-glitch {
  position: relative;
  color: var(--text-main);
  text-transform: uppercase;
  font-weight: bold;
  font-size: 0.9rem;
}

.nav-glitch:hover {
  color: var(--neon-blue);
  text-shadow: 0 0 8px var(--neon-blue);
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--neon-lime);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--neon-lime);
  margin-right: 5px;
}

.header-status {
  font-size: 0.7rem;
  color: var(--neon-lime);
  border: 1px solid var(--neon-lime);
  padding: 2px 8px;
}

/* Mobile Menu */
.burger-menu {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.burger-menu span {
  width: 30px;
  height: 3px;
  background: var(--neon-blue);
}

.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-dark);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateY(-100%);
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-overlay.active {
  transform: translateY(0);
}

.close-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--neon-pink);
  cursor: pointer;
}

.mobile-links a {
  display: block;
  font-size: 2rem;
  margin: 20px 0;
  text-transform: uppercase;
  color: var(--neon-blue);
  font-family: var(--font-display);
}

/* Hero */
.hero-cyber-grid {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 60px;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg-panel) 1px, transparent 1px),
    linear-gradient(180deg, var(--bg-panel) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.3;
  z-index: -1;
  transform: perspective(500px) rotateX(20deg);
}

.hero-container {
  text-align: center;
  max-width: 800px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--neon-lime);
  color: var(--neon-lime);
  padding: 5px 15px;
  font-size: 0.8rem;
  margin-bottom: 20px;
  box-shadow: 0 0 15px rgba(204, 255, 0, 0.2);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1;
  color: #fff;
  margin-bottom: 30px;
  position: relative;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--bg-dark);
}

.glitch-text::before {
  left: 2px;
  text-shadow: -1px 0 var(--neon-pink);
  clip: rect(24px, 550px, 90px, 0);
  animation: glitch-anim 3s infinite linear alternate-reverse;
}

.glitch-text::after {
  left: -2px;
  text-shadow: -1px 0 var(--neon-blue);
  clip: rect(85px, 550px, 140px, 0);
  animation: glitch-anim 2s infinite linear alternate-reverse;
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-dim);
  margin-bottom: 40px;
  border-left: 2px solid var(--neon-blue);
  padding-left: 20px;
  text-align: left;
  background: linear-gradient(90deg, rgba(0, 243, 255, 0.1), transparent);
}

.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.cyber-btn {
  position: relative;
  padding: 15px 40px;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  clip-path: polygon(
    10px 0,
    100% 0,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    0 100%,
    0 10px
  );
  transition: 0.3s;
}

.primary-btn {
  background: var(--neon-blue);
  color: #000;
  border: none;
}

.primary-btn:hover {
  background: #fff;
  box-shadow: 0 0 20px var(--neon-blue);
}

.secondary-btn {
  background: transparent;
  border: 1px solid var(--neon-pink);
  color: var(--neon-pink);
}

.secondary-btn:hover {
  background: rgba(255, 0, 255, 0.1);
  box-shadow: 0 0 15px var(--neon-pink);
}

/* Section: Neon Panels */
.section-neon-panels {
  padding: 80px 0;
  position: relative;
}

.neon-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 10px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.deco-line {
  width: 100px;
  height: 4px;
  background: var(--neon-blue);
  margin-bottom: 50px;
  box-shadow: 0 0 10px var(--neon-blue);
}

.panels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.data-panel {
  background: rgba(13, 13, 18, 0.8);
  border: 1px solid var(--border-color);
  padding: 30px;
  position: relative;
  transition: 0.3s;
}

.data-panel:hover {
  transform: translateY(-10px);
  border-color: var(--neon-blue);
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.1);
}

.panel-corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 20px;
  border-top: 2px solid var(--neon-blue);
  border-right: 2px solid var(--neon-blue);
}

.panel-icon {
  color: var(--neon-blue);
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
}

.data-panel h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
  color: #fff;
}

/* Section: Glitch Story */
.section-glitch-story {
  padding: 100px 0;
  background: #080a14;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.glitch-header {
  font-family: var(--font-display);
  font-size: 3rem;
  margin-bottom: 30px;
  color: var(--neon-pink);
}

.cyber-text {
  margin-bottom: 20px;
  font-size: 1.1rem;
  border-left: 1px solid var(--text-dim);
  padding-left: 15px;
}

.status-bar {
  margin-top: 30px;
  background: #1a1a24;
  height: 30px;
  position: relative;
  border: 1px solid var(--border-color);
}

.bar-fill {
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    var(--neon-lime),
    var(--neon-lime) 10px,
    #000 10px,
    #000 20px
  );
  animation: load-bar 2s linear infinite;
}

.status-bar span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-weight: bold;
  text-shadow: 0 0 5px #000;
  width: 100%;
  text-align: center;
}

.hologram-box {
  height: 300px;
  border: 2px solid var(--neon-blue);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 243, 255, 0.05);
}

.hologram-box i {
  width: 100px;
  height: 100px;
  color: var(--neon-blue);
  filter: drop-shadow(0 0 10px var(--neon-blue));
}

.holo-scan {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background: rgba(0, 243, 255, 0.5);
  box-shadow: 0 0 10px var(--neon-blue);
  animation: scan-vertical 3s infinite linear;
}

/* Section: Hex Cluster */
.section-hex-cluster {
  padding: 80px 0;
}

.hex-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 50px;
}

.hex-item {
  width: 200px;
  height: 220px;
  background: #111;
  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;
  margin: 0 10px;
  transition: 0.3s;
}

.hex-item::before {
  content: "";
  position: absolute;
  inset: 2px;
  background: #080a14;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  z-index: 0;
}

.hex-item:hover {
  background: var(--neon-pink);
}

.hex-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hex-num {
  display: block;
  font-size: 3rem;
  font-weight: bold;
  color: var(--neon-blue);
}

.hex-label {
  color: var(--text-dim);
  text-transform: uppercase;
}

.section-sub {
  margin-top: 30px;
  color: var(--neon-lime);
}

/* Section: Timeline */
.section-timeline-neon {
  padding: 80px 0;
  border-top: 1px solid var(--border-color);
}

.cyber-timeline {
  margin-top: 50px;
  position: relative;
  padding-left: 50px;
}

.cyber-timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 0;
  height: 100%;
  width: 2px;
  background: var(--neon-blue);
  box-shadow: 0 0 10px var(--neon-blue);
}

.timeline-entry {
  margin-bottom: 50px;
  position: relative;
}

.time-marker {
  position: absolute;
  left: -50px;
  width: 32px;
  height: 32px;
  background: #000;
  border: 2px solid var(--neon-pink);
  color: var(--neon-pink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  box-shadow: 0 0 10px var(--neon-pink);
}

.time-content {
  background: rgba(255, 255, 255, 0.02);
  padding: 20px;
  border-right: 2px solid var(--neon-blue);
}

.time-content h4 {
  color: var(--neon-blue);
  font-size: 1.3rem;
  margin-bottom: 10px;
  text-transform: uppercase;
}

/* Section: Terminal */
.section-deep-terminal {
  padding: 60px 0;
  background: #000;
}

.terminal-window {
  max-width: 800px;
  margin: 0 auto;
  background: #111;
  border: 1px solid #333;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  font-family: monospace;
}

.terminal-header {
  background: #222;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.buttons .dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.red {
  background: #ff5f56;
}
.yellow {
  background: #ffbd2e;
}
.green {
  background: #27c93f;
}

.terminal-body {
  padding: 20px;
  color: #ccc;
  font-size: 0.9rem;
}

.command {
  color: var(--neon-lime);
}
.output {
  margin-bottom: 5px;
}
.highlight {
  color: var(--neon-blue);
}
.cursor {
  animation: blink 1s infinite;
}

/* Section: Pulse Bars */
.section-pulse-bars {
  padding: 100px 0;
  overflow: hidden;
}

.pulse-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.bars-visual {
  height: 300px;
  display: flex;
  align-items: flex-end;
  gap: 15px;
}

.bar {
  flex: 1;
  background: var(--neon-pink);
  box-shadow: 0 0 15px var(--neon-pink);
  opacity: 0.7;
  animation: pulse-height 2s infinite ease-in-out alternate;
}

.bar:nth-child(even) {
  animation-duration: 1.5s;
  background: var(--neon-blue);
  box-shadow: 0 0 15px var(--neon-blue);
}

/* FAQ */
.section-faq-cyber {
  padding: 80px 0;
  border-top: 1px solid var(--border-color);
}

.accordion-cyber {
  max-width: 800px;
  margin: 40px auto 0;
}

.acc-item {
  margin-bottom: 20px;
  border: 1px solid var(--text-dim);
}

.acc-btn {
  width: 100%;
  padding: 20px;
  background: transparent;
  border: none;
  color: #fff;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-main);
  font-weight: bold;
}

.acc-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.acc-panel {
  max-height: 0;
  overflow: hidden;
  transition: 0.3s;
  background: rgba(0, 243, 255, 0.05);
}

.acc-panel p {
  padding: 20px;
  color: var(--text-dim);
}

/* Auth Terminal (Form) */
.section-auth {
  padding: 100px 0;
  background: radial-gradient(circle at center, #1a1a24, #000);
}

.auth-container {
  max-width: 500px;
  margin: 0 auto;
  border: 2px solid var(--neon-lime);
  padding: 40px;
  background: #000;
  box-shadow: 0 0 30px rgba(204, 255, 0, 0.1);
  position: relative;
}

.auth-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
  color: var(--neon-lime);
  border-bottom: 1px solid var(--neon-lime);
  padding-bottom: 15px;
}

.input-group {
  margin-bottom: 25px;
}

.input-group label {
  display: block;
  color: var(--neon-lime);
  font-size: 0.8rem;
  margin-bottom: 5px;
}

.input-group input {
  width: 100%;
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font-main);
  font-size: 1.1rem;
  padding: 10px 0;
}

.input-group input:focus {
  outline: none;
}

.input-line {
  height: 1px;
  background: var(--text-dim);
  transition: 0.3s;
}

.input-group input:focus + .input-line {
  background: var(--neon-lime);
  box-shadow: 0 0 10px var(--neon-lime);
}

.checkbox-cyber {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 30px;
  font-size: 0.7rem;
  color: var(--text-dim);
}

.auth-btn {
  width: 100%;
  padding: 15px;
  background: var(--neon-lime);
  border: none;
  color: #000;
  font-weight: bold;
  cursor: pointer;
  font-family: var(--font-main);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.auth-btn:hover {
  background: #fff;
  box-shadow: 0 0 20px #fff;
}

/* Footer */
.cyber-footer {
  border-top: 4px solid var(--neon-blue);
  padding-top: 60px;
  background: #020202;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-col h4 {
  color: var(--neon-blue);
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.brand-col .highlight {
  color: var(--neon-pink);
  margin: 10px 0;
}

.links-col ul {
  list-style: none;
}

.links-col li {
  margin-bottom: 10px;
}

.links-col a {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.links-col a:hover {
  color: var(--neon-blue);
  text-decoration: underline;
}

.copyright-col {
  text-align: right;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  color: var(--text-dim);
  font-size: 0.8rem;
}

.footer-decor {
  height: 10px;
  background: repeating-linear-gradient(
    90deg,
    var(--neon-blue),
    var(--neon-blue) 20px,
    #000 20px,
    #000 40px
  );
}

/* Cookie */
.cookie-modal {
  position: fixed;
  bottom: -200px;
  right: 20px;
  width: 300px;
  background: rgba(0, 0, 0, 0.95);
  border: 1px solid var(--neon-pink);
  padding: 20px;
  z-index: 9999;
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.2);
  transition: 0.5s;
}

.cookie-modal.show {
  bottom: 20px;
}

.cookie-content h4 {
  color: var(--neon-pink);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.cookie-btn {
  margin-top: 15px;
  background: transparent;
  border: 1px solid var(--neon-pink);
  color: var(--neon-pink);
  padding: 5px 15px;
  cursor: pointer;
  width: 100%;
}

.cookie-btn:hover {
  background: var(--neon-pink);
  color: #000;
}

/* Animations */
@keyframes glitch-anim {
  0% {
    clip: rect(44px, 9999px, 56px, 0);
  }
  20% {
    clip: rect(10px, 9999px, 80px, 0);
  }
  40% {
    clip: rect(60px, 9999px, 20px, 0);
  }
  60% {
    clip: rect(30px, 9999px, 90px, 0);
  }
  80% {
    clip: rect(90px, 9999px, 10px, 0);
  }
  100% {
    clip: rect(50px, 9999px, 70px, 0);
  }
}

@keyframes scan-vertical {
  0% {
    top: 0;
  }
  100% {
    top: 100%;
  }
}

@keyframes load-bar {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 40px 0;
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

@keyframes pulse-height {
  0% {
    height: 20%;
  }
  100% {
    height: 90%;
  }
}

/* Media Queries */
@media (max-width: 992px) {
  .split-layout {
    grid-template-columns: 1fr;
  }
  .pulse-container {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .desktop-only {
    display: none;
  }
  .mobile-only {
    display: flex;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .copyright-col {
    justify-content: flex-start;
    text-align: left;
  }
  .glitch-header {
    font-size: 2.5rem;
  }
}

.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;
}

@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;
  }
}

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

.margin {
  margin: 120px 0 50px;
}

.logo-img {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: left;
  justify-content: left;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.3s ease;
}

.logo-wrapper:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
  opacity: 0.5;
}
