:root {
  --bg-dark: #0f172a;
  --bg-panel: #1e293b;
  --accent-primary: #06b6d4; /* Cyan */
  --accent-secondary: #f59e0b; /* Amber */
  --text-main: #f8fafc;
  --text-dim: #94a3b8;
  --border-color: #334155;
  --grid-line: rgba(6, 182, 212, 0.1);

  --font-sys: "Courier New", Courier, monospace;
  --font-ui: system-ui, -apple-system, sans-serif;

  --space-unit: 1rem;
  --panel-border: 1px solid var(--border-color);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-ui);
  line-height: 1.5;
  overflow-x: hidden;
  background-image: linear-gradient(
      rgba(15, 23, 42, 0.9),
      rgba(15, 23, 42, 0.9)
    ),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    linear-gradient(var(--grid-line) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}
ul {
  list-style: none;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* UTILS */
.sys-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-center {
  text-align: center;
}
.full-width {
  width: 100%;
}

/* TYPOGRAPHY */
.sys-title {
  font-family: var(--font-sys);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--text-main);
  text-transform: uppercase;
}

.sys-h2 {
  font-family: var(--font-sys);
  font-size: 2rem;
  text-transform: uppercase;
  margin-bottom: 2rem;
  color: var(--accent-primary);
  border-left: 4px solid var(--accent-secondary);
  padding-left: 1rem;
}

.sys-text {
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

/* BUTTONS */
.sys-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-family: var(--font-sys);
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.sys-btn.primary {
  background: var(--accent-primary);
  color: var(--bg-dark);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}
.sys-btn.primary:hover {
  background: #fff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

.sys-btn.secondary {
  background: transparent;
  border: 1px solid var(--accent-secondary);
  color: var(--accent-secondary);
}
.sys-btn.secondary:hover {
  background: rgba(245, 158, 11, 0.1);
}
.sys-btn.sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* HEADER */
.sys-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid var(--accent-primary);
  backdrop-filter: blur(5px);
}

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

.sys-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sys);
  font-weight: 700;
  color: var(--text-main);
  transition: all 0.3s ease;
}

.sys-logo:hover {
  color: var(--accent-primary);
  text-shadow: 0 0 5px var(--accent-primary);
  transform: scale(1.05);
  transition: all 0.3s ease;
}

.sys-logo img {
  width: 50px;
  height: auto;
}

.status-online {
  color: var(--accent-secondary);
  animation: blink 2s infinite;
}

.sys-nav {
  display: flex;
  gap: 2rem;
}
.sys-link {
  font-family: var(--font-sys);
  font-size: 0.9rem;
  color: var(--text-dim);
}
.sys-link:hover {
  color: var(--accent-primary);
  text-shadow: 0 0 5px var(--accent-primary);
}

.sys-burger {
  display: none;
  background: none;
  border: 1px solid var(--text-dim);
  padding: 5px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}
.sys-burger .line {
  width: 25px;
  height: 2px;
  background: var(--accent-primary);
  display: block;
}

/* HERO */
.hero-module {
  padding-top: 120px;
  padding-bottom: 4rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
}

.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.panel-header {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  font-family: var(--font-sys);
  font-size: 0.8rem;
  color: var(--accent-secondary);
}

.indicators {
  display: flex;
  gap: 5px;
}
.dot {
  width: 8px;
  height: 8px;
  background: var(--accent-primary);
  border-radius: 50%;
}

.panel-content {
  padding: 3rem;
}
.tech-tag {
  display: inline-block;
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-primary);
  padding: 2px 8px;
  font-family: var(--font-sys);
  font-size: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid var(--accent-primary);
}

.sys-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
}

.image-wrapper {
  position: relative;
  height: 100%;
  border-left: 1px solid var(--border-color);
}
.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.2);
  opacity: 0.7;
}
.hud-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(transparent 90%, rgba(6, 182, 212, 0.1) 95%);
  background-size: 100% 10px;
  pointer-events: none;
}

/* LOGIC FLOW */
.logic-section {
  padding: 4rem 0;
  border-top: 1px solid var(--border-color);
}
.section-label {
  font-family: var(--font-sys);
  color: var(--accent-secondary);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.flow-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.flow-node {
  border: 1px solid var(--accent-primary);
  background: rgba(6, 182, 212, 0.05);
  width: 30%;
}
.node-header {
  background: var(--accent-primary);
  color: var(--bg-dark);
  font-family: var(--font-sys);
  padding: 0.25rem 0.5rem;
  font-weight: 700;
  font-size: 0.8rem;
}
.node-body {
  padding: 1.5rem;
  text-align: center;
  color: var(--text-main);
}
.node-body i {
  width: 32px;
  height: 32px;
  margin-bottom: 1rem;
  color: var(--accent-secondary);
}
.flow-line {
  flex-grow: 1;
  height: 2px;
  background: var(--accent-primary);
  position: relative;
  margin: 0 1rem;
}
.flow-line::after {
  content: "";
  position: absolute;
  right: 0;
  top: -4px;
  width: 0;
  height: 0;
  border-left: 8px solid var(--accent-primary);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

/* MATRIX */
.matrix-section {
  padding: 4rem 0;
}
.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-color); /* Gap color */
  border: 1px solid var(--border-color);
}
.cap-cell {
  background: var(--bg-dark);
  padding: 2rem;
  transition: 0.3s;
}
.cap-cell:hover,
.cap-cell.active {
  background: rgba(30, 41, 59, 0.8);
  box-shadow: inset 0 0 20px rgba(6, 182, 212, 0.1);
}
.cap-icon {
  color: var(--accent-primary);
  margin-bottom: 1rem;
}
.cap-cell h3 {
  font-family: var(--font-sys);
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}
.cap-cell p {
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* ARCHITECTURE */
.arch-section {
  padding: 4rem 0;
  background: rgba(255, 255, 255, 0.02);
}
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.sys-list li {
  margin-bottom: 0.5rem;
  font-family: var(--font-sys);
  color: var(--text-main);
}
.marker {
  color: var(--accent-secondary);
  margin-right: 0.5rem;
}
.sys-link-btn {
  display: inline-block;
  margin-top: 2rem;
  color: var(--accent-primary);
  font-family: var(--font-sys);
  border-bottom: 1px solid var(--accent-primary);
}
.schematic-container {
  position: relative;
  border: 1px solid var(--border-color);
  padding: 5px;
}
.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(var(--accent-primary) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.3;
}

/* CONSOLE */
.console-section {
  padding: 4rem 0;
}
.console-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
}
.console-card {
  border: 1px solid var(--border-color);
  background: var(--bg-panel);
}
.console-card.large {
  grid-column: 1 / -1;
}
.card-header {
  background: rgba(0, 0, 0, 0.5);
  padding: 0.5rem 1rem;
  font-family: var(--font-sys);
  font-size: 0.8rem;
  color: var(--accent-secondary);
  border-bottom: 1px solid var(--border-color);
}
.card-content {
  padding: 2rem;
}
.card-content h3 {
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
}

/* ACCESS */
.access-section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border-color);
}
.progress-bar {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  position: relative;
}
.progress-bar::before {
  content: "";
  position: absolute;
  top: 25px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--border-color);
  z-index: 0;
}
.step {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 30%;
}
.step-num {
  width: 50px;
  height: 50px;
  background: var(--bg-dark);
  border: 2px solid var(--accent-primary);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-family: var(--font-sys);
  font-weight: 700;
}
.step-text h4 {
  color: var(--text-main);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

/* FAQ */
.faq-section {
  padding: 4rem 0;
}
.faq-grid {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border: 1px solid var(--border-color);
  margin-bottom: 1rem;
  background: var(--bg-panel);
}
.faq-question {
  width: 100%;
  padding: 1.5rem;
  background: none;
  border: none;
  text-align: left;
  color: var(--text-main);
  font-family: var(--font-sys);
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}
.faq-question:hover {
  color: var(--accent-primary);
}
.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: 0.3s;
  border-top: 1px solid transparent;
}
.faq-answer.open {
  padding-bottom: 1.5rem;
  border-top-color: var(--border-color);
  max-height: 200px;
}

/* FORM */
.form-section {
  padding: 4rem 0;
  background: rgba(6, 182, 212, 0.02);
}
.input-interface {
  max-width: 600px;
  margin: 0 auto;
  border: 1px solid var(--accent-primary);
  background: var(--bg-dark);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}
.interface-header {
  background: var(--accent-primary);
  color: var(--bg-dark);
  padding: 0.5rem 1rem;
  font-family: var(--font-sys);
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.status-light {
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  animation: blink 1s infinite;
}
.sys-form {
  padding: 2rem;
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
label {
  display: block;
  font-family: var(--font-sys);
  font-size: 0.8rem;
  color: var(--accent-secondary);
  margin-bottom: 0.5rem;
}
input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 0.8rem;
  color: var(--text-main);
  font-family: var(--font-sys);
}
input:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: rgba(6, 182, 212, 0.1);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

input.sys-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--accent-primary);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  padding: 0;
}

input.sys-checkbox:hover {
  background: rgba(6, 182, 212, 0.2);
}

input.sys-checkbox:checked {
  background: rgba(6, 182, 212, 0.1);
}

input.sys-checkbox:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background-color: var(--accent-primary);
  box-shadow: 0 0 5px var(--accent-primary);
}

.checkbox-label {
  margin-bottom: 0;
  cursor: pointer;
  line-height: 1.2;
}

.checkbox-label a {
  color: var(--text-main);
  text-decoration: underline;
  transition: 0.3s;
}

.checkbox-label a:hover {
  color: var(--accent-primary);
  text-shadow: 0 0 5px var(--accent-primary);
}

/* FOOTER */
.sys-footer {
  border-top: 1px solid var(--accent-primary);
  padding: 4rem 0;
  background: var(--bg-dark);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 2rem;
}
.sys-logo.sm {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--accent-primary);
}
.sys-data p {
  font-family: var(--font-sys);
  font-size: 0.8rem;
  color: var(--text-dim);
}
.col-head {
  font-family: var(--font-sys);
  color: var(--accent-secondary);
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  display: inline-block;
}
.footer-col a {
  display: block;
  font-family: var(--font-sys);
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}
.footer-col a:hover {
  color: var(--text-main);
  text-decoration: underline;
}

/* POPUP */
.sys-popup {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 300px;
  background: var(--bg-panel);
  border: 1px solid var(--accent-primary);
  z-index: 999;
  display: none;
}
.popup-head {
  background: var(--accent-primary);
  color: var(--bg-dark);
  padding: 0.25rem 0.5rem;
  font-family: var(--font-sys);
  font-size: 0.8rem;
  font-weight: 700;
}
.popup-body {
  padding: 1rem;
}
.popup-body p {
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

/* MOBILE */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-dark);
  z-index: 200;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateY(-100%);
  transition: 0.3s;
}
.mobile-overlay.active {
  transform: translateY(0);
}
.close-sys {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--accent-primary);
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}
.mobile-nav a {
  font-family: var(--font-sys);
  font-size: 1.5rem;
  color: var(--text-main);
}

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

@media (max-width: 900px) {
  .sys-actions {
    flex-direction: column;
    gap: 1rem;
  }
  .sys-nav {
    display: none;
  }
  .sys-burger {
    display: flex;
  }
  .hero-grid,
  .split-layout,
  .capability-grid,
  .console-grid,
  .form-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-module {
    padding-top: 100px;
    text-align: center;
  }
  .flow-container {
    flex-direction: column;
    gap: 2rem;
  }
  .flow-line {
    width: 2px;
    height: 50px;
    margin: 0;
  }
  .flow-line::after {
    transform: rotate(90deg);
    top: auto;
    bottom: -4px;
    right: -7px;
  }
  .flow-node {
    width: 100%;
  }
  .sys-title {
    font-size: 2rem;
  }
  .image-wrapper {
    height: 300px;
    border-left: none;
    border-top: 1px solid var(--border-color);
  }
  .progress-bar {
    flex-direction: column;
    gap: 2rem;
  }
  .progress-bar::before {
    width: 2px;
    height: 100%;
    left: 25px;
    top: 0;
  }
  .step {
    width: 100%;
    display: flex;
    text-align: left;
    gap: 1rem;
    align-items: flex-start;
  }
}

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