:root {
  /* Dynamic Palette: Cyberpunk Cooling Matrix (STRICTLY NO BLUE) */
  --bg-canvas: #1a102f; /* Obsidian violet base */
  --bg-surface: #2d1f4b; /* Elevated violet surface */
  --bg-surface-hover: #3b2861; /* Interactive highlight */
  --text-primary: #ffffff; /* Pure white text */
  --text-muted: #bdaee5; /* Muted violet-white text */
  --accent-primary: #84cc16; /* Lime gold */
  --accent-secondary: #eab308; /* Secondary gold accent */
  --border-subtle: rgba(132, 204, 22, 0.2); 
  
  /* Advanced UI Micro-Interactions & Depth */
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 12px 32px -4px rgba(132, 204, 22, 0.25);
  --glow-accent: 0 0 24px -4px var(--accent-primary);
  
  /* Layout constraints */
  --max-width: 1200px;
}

/* Base Reset & Typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  overflow-wrap: anywhere;
  hyphens: auto;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .mono-label, .nav-link, button, .stat-counter, .footer-content {
  font-family: ui-monospace, Consolas, "Courier New", monospace;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.3s var(--ease-kinetic);
}

a:hover {
  color: var(--accent-secondary);
}

img {
  max-width: 100%;
  display: block;
  border-radius: 0; /* Square images as per styling */
  object-fit: cover;
}

.avatar, .badge {
  border-radius: 50%; /* Round badges and avatars */
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.reading-width {
  max-width: 72ch;
  margin: 0 auto;
}

/* Header */
.header-wrapper {
  position: relative; /* Non-fixed, moves up out of view on scroll */
  padding: 24px 12px;
}

.main-header {
  background: rgba(45, 31, 75, 0.85);
  backdrop-filter: blur(12px);
  border-radius: 9999px; /* Rounded ends */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 32px;
  max-width: var(--max-width);
  margin: 0 auto;
  box-shadow: var(--shadow-soft);
}

.brand {
  font-size: 1.1rem;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-mark {
  width: 16px;
  height: 16px;
  background-color: var(--accent-primary);
  border-radius: 50%;
  box-shadow: var(--glow-accent);
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-link {
  color: var(--text-primary);
  font-size: 0.85rem;
}

.nav-link:hover {
  color: var(--accent-primary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--accent-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

.mobile-nav-overlay {
  display: none;
  position: absolute;
  top: 90px;
  right: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 16px;
  min-width: 200px;
  box-shadow: var(--shadow-hover);
  z-index: 1000;
}

.mobile-nav-overlay.active {
  display: block;
}

.mobile-nav-overlay ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Hero Section */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  padding: 64px 24px;
  background-image: 
    linear-gradient(rgba(132, 204, 22, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(132, 204, 22, 0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center center;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, var(--bg-canvas) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--text-primary);
  margin-bottom: 24px;
  line-height: 1.1;
  text-shadow: 0 4px 24px rgba(0,0,0,0.8);
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  font-family: ui-monospace, monospace;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent-primary);
  color: #000000;
  border: none;
  font-family: ui-monospace, Consolas, monospace;
  font-weight: 700;
  text-transform: uppercase;
  padding: 14px 28px;
  cursor: pointer;
  box-shadow: 4px 4px 0px #ffffff;
  transition: all 0.2s var(--ease-kinetic);
  font-size: 1rem;
}

.btn:hover, .btn:focus-visible {
  transform: translate(4px, 4px);
  box-shadow: 0px 0px 0px #ffffff;
  outline: none;
}

/* Timeline Layout */
.timeline-section {
  padding: 80px 0;
  position: relative;
}

.timeline-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-subtle);
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-step {
  position: relative;
  z-index: 2;
  margin-bottom: 80px;
  display: flex;
  justify-content: flex-end;
  width: 50%;
  padding-right: 40px;
}

.timeline-step:nth-child(even) {
  align-self: flex-end;
  margin-left: 50%;
  justify-content: flex-start;
  padding-right: 0;
  padding-left: 40px;
}

.timeline-node {
  position: absolute;
  right: -8px;
  top: 24px;
  width: 16px;
  height: 16px;
  background: var(--bg-canvas);
  border: 2px solid var(--accent-primary);
  border-radius: 50%;
  box-shadow: var(--glow-accent);
}

.timeline-step:nth-child(even) .timeline-node {
  left: -8px;
  right: auto;
}

/* Cards */
.tech-card {
  background: var(--bg-surface);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s var(--ease-kinetic), box-shadow 0.4s var(--ease-kinetic);
  position: relative;
  width: 100%;
}

.tech-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  background: var(--bg-surface-hover);
}

.tech-card-img {
  width: 100%;
  height: 240px;
  margin-bottom: 24px;
}

.tech-card h2, .tech-card h3 {
  color: var(--accent-primary);
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.tech-card p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.card-meta {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed rgba(255,255,255,0.1);
}

.stat-counter {
  font-size: 0.9rem;
  color: var(--text-primary);
}

.stat-value {
  color: var(--accent-primary);
  font-size: 1.2rem;
  display: block;
}

/* Grid layout for inner pages */
.grid-system {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

/* Standard Content Sections */
.content-section {
  padding: 64px 0;
}

.content-header {
  text-align: center;
  margin-bottom: 64px;
}

.content-header h1 {
  font-size: 3rem;
  color: var(--accent-primary);
}

/* Rigid floating tech specs */
.spec-box {
  background: var(--bg-canvas);
  border: 1px solid var(--accent-primary);
  padding: 24px;
  margin: 32px 0;
  box-shadow: 8px 8px 0 rgba(132, 204, 22, 0.2);
}

.spec-box h4 {
  color: var(--accent-secondary);
  margin-bottom: 16px;
}

.spec-list {
  list-style: none;
}

.spec-list li {
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dotted rgba(255,255,255,0.2);
  padding-bottom: 4px;
}

.spec-label {
  color: var(--text-muted);
  font-family: monospace;
}

.spec-data {
  color: var(--text-primary);
  font-weight: bold;
}

/* Terminal Contact Form */
.terminal-container {
  background: #000000;
  border: 1px solid var(--border-subtle);
  padding: 24px;
  font-family: ui-monospace, Consolas, monospace;
  box-shadow: var(--shadow-soft);
  max-width: 800px;
  margin: 0 auto;
}

.terminal-header {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 12px;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-muted);
}

.terminal-dot:nth-child(1) { background: #ff5f56; }
.terminal-dot:nth-child(2) { background: #ffbd2e; }
.terminal-dot:nth-child(3) { background: #27c93f; }

.terminal-group {
  margin-bottom: 16px;
}

.terminal-label {
  display: block;
  color: var(--accent-primary);
  margin-bottom: 8px;
}

.terminal-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--accent-primary);
  color: var(--text-primary);
  font-family: ui-monospace, Consolas, monospace;
  padding: 8px 0;
  outline: none;
}

.terminal-input:focus {
  border-bottom-width: 2px;
}

textarea.terminal-input {
  resize: vertical;
  min-height: 120px;
  border: 1px solid var(--accent-primary);
  padding: 8px;
}

.terminal-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

/* FAQ Styling */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-surface);
  margin-bottom: 16px;
  padding: 24px;
}

.faq-q {
  color: var(--accent-primary);
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.faq-a {
  color: var(--text-muted);
}

/* Footer */
.main-footer {
  background: #000000;
  padding: 64px 24px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 48px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-col h4 {
  color: var(--accent-primary);
  margin-bottom: 24px;
}

.footer-col p, .footer-col a {
  color: var(--text-muted);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.9rem;
  margin-bottom: 8px;
  display: block;
}

.footer-col a:hover {
  color: var(--accent-secondary);
}

.footer-legal {
  text-align: left;
  max-width: var(--max-width);
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-legal-links {
  display: flex;
  gap: 16px;
  list-style: none;
}

.blinking-cursor::after {
  content: '_';
  animation: blink 1s step-end infinite;
}

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

/* Tables */
.table-wrapper {
  overflow-x: auto;
  margin: 32px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-family: monospace;
}

th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

th {
  color: var(--accent-primary);
  text-transform: uppercase;
}

td {
  color: var(--text-muted);
}

/* Scroll Reveal */
.reveal-hidden {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease-kinetic), transform 0.7s var(--ease-kinetic);
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .timeline-line {
    left: 24px;
    transform: none;
  }
  
  .timeline-step {
    width: 100%;
    padding-left: 64px;
    padding-right: 0;
    justify-content: flex-start;
  }
  
  .timeline-step:nth-child(even) {
    margin-left: 0;
    padding-left: 64px;
  }
  
  .timeline-node {
    left: 16px;
    right: auto;
  }
  
  .timeline-step:nth-child(even) .timeline-node {
    left: 16px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .terminal-actions {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
