@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;700&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;700;800&display=swap');


:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-border: #e2e8f0;
  --surface-hover: #f1f5f9;
  
  /* Primary blue and secondary dark */
  --primary: #0d6efd;
  --primary-glow: rgba(13, 110, 253, 0.2);
  --primary-dark: #0b5ed7;
  
  --accent: #dc3545;
  --accent-glow: rgba(220, 53, 69, 0.2);
  
  --accent-2: #198754;
  --accent-2-glow: rgba(25, 135, 84, 0.2);
  
  --text: #0f172a;
  --text-muted: #64748b;
  
  --font-mono: "JetBrains Mono", "Fira Code", monospace;
  --font-sans: "Inter", system-ui, sans-serif;
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}


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

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--surface-border);
  border-radius: 6px;
  
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Typography & Layout Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-muted);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.glow-text {
  
}

.accent-glow-text {
  
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 6px;
  
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-dark);
  border: 1px solid var(--primary);
  
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--primary);
  
  transform: translateY(-2px);
}

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

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  
  transform: translateY(-2px);
}

.tag {
  display: inline-flex;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 500;
  background: #f1f5f9;
  border: 1px solid var(--surface-border);
  color: var(--text-muted);
}

.tag-primary {
  color: var(--primary);
  background: rgba(13, 110, 253, 0.07);
  border-color: rgba(13, 110, 253, 0.2);
}

.tag-accent {
  color: var(--accent);
  background: rgba(220, 53, 69, 0.07);
  border-color: rgba(220, 53, 69, 0.2);
}

.tag-accent-2 {
  color: var(--accent-2);
  background: rgba(25, 135, 84, 0.07);
  border-color: rgba(25, 135, 84, 0.2);
}

/* Background Particles Canvas */
#particles-canvas {
  display: none !important;
  display: none !important;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
}

/* Scanline Effect overlay */
.scanlines {
  display: none !important;
  display: none !important;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(0, 0, 0, 0.25) 50%
  );
  background-size: 100% 4px;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.35;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  z-index: 1000;
  border-bottom: 1px solid var(--surface-border);
  background: #ffffff;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  height: 60px;
  background: #ffffff;
  border-bottom: 1px solid var(--surface-border);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: -0.05em;
  
}

.logo span {
  color: var(--primary);
  
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--primary);
  transition: width var(--transition-fast);
  
}

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

.xp-indicator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: transparent;
  border: 1px solid var(--surface-border);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.xp-indicator span.label {
  color: var(--text-muted);
}

.xp-indicator span.value {
  color: var(--primary);
  font-weight: 700;
  
}

.xp-progress-mini {
  width: 60px;
  height: 6px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 6px;
  
  overflow: hidden;
}

.xp-progress-mini-bar {
  height: 100%;
  width: 0%;
  background: var(--primary);
  
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Sections General */
section {
  padding: 80px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px auto;
}

.section-subtitle {
  font-family: var(--font-mono);
  color: var(--primary);
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

/* Hero Section */
.hero {
  padding-top: 140px;
  padding-bottom: 80px;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(13, 110, 253, 0.07);
  border: 1px solid rgba(13, 110, 253, 0.2);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-badge .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--primary);
  
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-title span {
  display: block;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, #00b4d8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.hero-desc {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

/* Hero Visual Console */
.hero-visual {
  position: relative;
}

.console-mockup {
  background: #ffffff;
  color: #334155;
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color var(--transition-normal);
}

.console-mockup:hover {
  border-color: rgba(0, 245, 160, 0.3);
}

.console-header {
  height: 38px;
  background: var(--surface);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  border-bottom: 1px solid var(--surface-border);
  justify-content: space-between;
}

.console-dots {
  display: flex;
  gap: 0.4rem;
}

.console-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.console-dot.red { background-color: #ff5f56; }
.console-dot.yellow { background-color: #ffbd2e; }
.console-dot.green { background-color: #27c93f; }

.console-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.console-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--primary);
}

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

.console-line {
  margin-bottom: 0.75rem;
  opacity: 0;
  transform: translateY(5px);
  animation: slideUpFade 0.3s forwards;
}

.console-line.success { color: var(--accent-2); }
.console-line.error { color: var(--accent); }
.console-line.warning { color: #d97706; }
.console-line.info { color: #2563eb; }
.console-line.input { color: var(--text); }

.console-line.delay-1 { animation-delay: 0.4s; }
.console-line.delay-2 { animation-delay: 1.2s; }
.console-line.delay-3 { animation-delay: 2.2s; }
.console-line.delay-4 { animation-delay: 3.2s; }
.console-line.delay-5 { animation-delay: 4.5s; }

/* Stats Strip */
.stats-strip {
  background: #f8f9fa;
  border-top: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
  padding: 2.5rem 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
  background: linear-gradient(135deg, var(--text) 30%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* How It Works Section */
.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 6px;
  
  padding: 2.5rem 2rem;
  position: relative;
  transition: all var(--transition-normal);
  overflow: hidden;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.step-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 245, 160, 0.25);
  
}

.step-card:hover::before {
  opacity: 1;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(0, 0, 0, 0.04);
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  transition: color var(--transition-normal);
}

.step-card:hover .step-num {
  color: rgba(13, 110, 253, 0.08);
}

.step-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  
  background: transparent;
  border: 1px solid var(--surface-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
  font-size: 1.25rem;
  transition: all var(--transition-normal);
}

.step-card:hover .step-icon-wrapper {
  color: var(--text-dark);
  background: var(--primary);
  
  border-color: var(--primary);
}

.step-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.step-desc {
  font-size: 0.9rem;
}

/* Roadmap/Progression Section */
.roadmap {
  background: #ffffff;
}

.roadmap-container {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 6px;
  
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
  
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.roadmap-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* Roadmap SVG Tree */
.roadmap-tree-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  min-height: 480px;
}

.roadmap-svg-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.roadmap-node {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  width: 150px;
}

.node-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--surface-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-muted);
  
  transition: all var(--transition-normal);
  position: relative;
}

.node-label {
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color var(--transition-normal);
  background: #f1f5f9;
  border: 1px solid var(--surface-border);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  white-space: nowrap;
}

/* Node States */
.roadmap-node.completed .node-circle {
  border-color: var(--primary);
  color: var(--text-dark);
  background: var(--primary);
  
}

.roadmap-node.completed .node-label {
  color: var(--primary);
}

.roadmap-node.active .node-circle {
  border-color: var(--accent-2);
  color: var(--text);
  background: rgba(123, 47, 255, 0.2);
  
  animation: nodePulse 2.5s infinite;
}

.roadmap-node.active .node-label {
  color: var(--accent-2);
  
}

.roadmap-node.locked {
  cursor: not-allowed;
}

.roadmap-node.locked .node-circle {
  opacity: 0.5;
}

.roadmap-node:hover:not(.locked) .node-circle {
  transform: scale(1.1);
}

.roadmap-node.active:hover .node-circle {
  background: var(--accent-2);
  color: var(--text-dark);
}

.node-details-card {
  margin-top: 30px;
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--surface-border);
  border-radius: 6px;
  
  padding: 1.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  transform: translateY(15px);
  transition: all var(--transition-normal);
  display: none;
}

.node-details-card.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.node-details-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--surface-border);
  padding-bottom: 0.5rem;
}

.node-details-title {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--text);
}

.node-details-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.node-details-footer {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.node-details-xp {
  color: var(--primary);
}

/* Day Accordions Section */
.curriculum-days {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.day-accordion {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 6px;
  
  overflow: hidden;
  transition: all var(--transition-normal);
}

.day-accordion.active {
  border-color: rgba(123, 47, 255, 0.4);
  
}

.day-header {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: var(--surface);
  transition: background var(--transition-fast);
}

.day-header:hover {
  background: var(--surface-hover);
}

.day-header-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.day-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  
  min-width: 80px;
  text-align: center;
}

.day-badge.d1 { background: rgba(220, 53, 69, 0.07); border: 1px solid rgba(220, 53, 69, 0.3); color: var(--accent); }
.day-badge.d2 { background: rgba(13, 110, 253, 0.07); border: 1px solid rgba(13, 110, 253, 0.3); color: var(--primary); }
.day-badge.d3 { background: rgba(25, 135, 84, 0.07); border: 1px solid rgba(25, 135, 84, 0.3); color: var(--accent-2); }
.day-badge.d4 { background: rgba(13, 110, 253, 0.07); border: 1px solid rgba(13, 110, 253, 0.3); color: var(--primary); }
.day-badge.d5 { background: rgba(123, 47, 255, 0.07); border: 1px solid rgba(123, 47, 255, 0.3); color: #7b2fff; }

.day-title-info h3 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.day-title-info p {
  font-size: 0.8rem;
}

.day-header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.day-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  gap: 1rem;
}

.day-chevron {
  font-size: 0.8rem;
  transition: transform var(--transition-normal);
  color: var(--text-muted);
}

.day-accordion.active .day-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.day-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-out;
  border-top: 0 solid var(--surface-border);
}

.day-accordion.active .day-content {
  max-height: 800px; /* high enough limit */
  border-top-width: 1px;
}

.day-content-inner {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--surface);
}

.module-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-radius: 6px;
  
  background: var(--surface);
  border: 1px solid var(--surface-border);
  transition: all var(--transition-fast);
}

.module-row:hover {
  border-color: var(--surface-border);
  background: var(--surface-hover);
}

.module-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.module-type-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.module-type-icon.theory { background: rgba(13, 110, 253, 0.07); color: var(--primary); border: 1px solid rgba(13, 110, 253, 0.2); }
.module-type-icon.lab { background: rgba(25, 135, 84, 0.07); color: var(--accent-2); border: 1px solid rgba(25, 135, 84, 0.2); }
.module-type-icon.ctf { background: rgba(220, 53, 69, 0.07); color: var(--accent); border: 1px solid rgba(220, 53, 69, 0.2); }

.module-details h4 {
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
  font-family: var(--font-sans);
}

.module-details p {
  font-size: 0.75rem;
}

.module-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.module-time {
  color: var(--text-muted);
}

.module-xp {
  color: var(--primary);
  font-weight: 700;
}

/* Simulator Section */
.simulator {
  background: #ffffff;
}

.simulator-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}

.sim-info h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.sim-info p {
  margin-bottom: 1.5rem;
}

.attack-templates {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.template-btn {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  padding: 0.8rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all var(--transition-fast);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: left;
}

.template-btn span.tag {
  margin-right: 0.5rem;
}

.template-btn:hover {
  border-color: var(--primary);
  color: var(--text);
  background: var(--surface-hover);
  transform: translateX(4px);
}

.template-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(13, 110, 253, 0.05);
}

/* Interactive Simulator Terminal */
.sim-terminal {
  display: flex;
  flex-direction: column;
  height: 480px;
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.terminal-header {
  height: 40px;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  border-bottom: 1px solid var(--surface-border);
  justify-content: space-between;
}

.terminal-tabs {
  display: flex;
  gap: 0.5rem;
}

.terminal-tab {
  padding: 0.25rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  cursor: pointer;
}

.terminal-tab.active {
  color: var(--primary);
  background: #ffffff;
  border-color: var(--surface-border);
}

.terminal-content {
  flex-grow: 1;
  padding: 1.5rem;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  color: #334155;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: #ffffff;
}

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-top: 1px solid var(--surface-border);
  padding: 0.75rem 1rem;
  background: #f8f9fa;
}

.terminal-prompt {
  color: #2563eb;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
}

.terminal-input {
  flex-grow: 1;
  background: transparent;
  border: none;
  color: #0f172a;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  outline: none;
}

.terminal-send-btn {
  background: transparent;
  border: none;
  color: #2563eb;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.terminal-send-btn:hover {
  color: var(--primary);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-8px); }
}

.fade-in {
  animation: fadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.fade-out {
  animation: fadeOut 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Comparison Section */
.comparison-table-wrapper {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 6px;
  
  overflow: hidden;
  
  max-width: 900px;
  margin: 0 auto;
}

table.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th, .comparison-table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--surface-border);
}

.comparison-table th {
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.comparison-table th:first-child, .comparison-table td:first-child {
  font-weight: 600;
  color: var(--text);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table td.highlight {
  background: rgba(0, 245, 160, 0.02);
  color: var(--primary);
  font-weight: 600;
}

.comparison-table td .check-icon {
  color: var(--primary);
  font-weight: 700;
}

.comparison-table td .cross-icon {
  color: var(--accent);
  font-weight: 700;
}

/* FAQ Section */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 6px;
  
  overflow: hidden;
}

.faq-question {
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: #f8f9fa;
  transition: background var(--transition-fast);
}

.faq-question:hover {
  background: var(--surface-hover);
}

.faq-question h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
}

.faq-chevron {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: transform var(--transition-normal);
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-out;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  border-top: 1px solid var(--surface-border);
}

.faq-answer p {
  padding: 1.25rem 1.5rem;
  font-size: 0.9rem;
}

/* Call To Action */
.cta-section {
  text-align: center;
  padding: 100px 0;
}

.cta-box {
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: 6px;
  padding: 4.5rem 2rem;
  position: relative;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

.cta-box::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 30%;
  width: 40%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.cta-box h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-box p {
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
  font-size: 1.1rem;
}

/* Footer */
footer {
  border-top: 1px solid var(--surface-border);
  background: #f8f9fa;
  padding: 4rem 0 2rem 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col-brand p {
  margin-top: 1rem;
  font-size: 0.85rem;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1.25rem;
  letter-spacing: 0.08em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--surface-border);
  padding-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

/* Animations & Keyframes */
@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 1;  }
  100% { transform: scale(0.9); opacity: 0.5; }
}

@keyframes nodePulse {
  0% {  }
  50% {  }
  100% {  }
}

@keyframes slideUpFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll Reveal (for JS interaction) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

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

/* Responsive styles */
@media (max-width: 992px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-content {
    align-items: center;
    text-align: center;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .how-it-works-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
  .simulator-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.75rem;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .roadmap-container {
    padding: 2rem 1rem;
  }
  .nav-links {
    display: none; /* simple mobile nav */
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* Lab View Styles */
.lab-split-pane {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: stretch;
}

.lab-instructions-panel {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 6px;
  
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 520px;
  
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.markdown-body h3 {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--text);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--surface-border);
  padding-bottom: 0.25rem;
}

.markdown-body h3:first-of-type {
  margin-top: 0;
}

.markdown-body p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.markdown-body code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: #f1f5f9;
  border: 1px solid var(--surface-border);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  color: var(--primary);
}

.markdown-body pre {
  background: #f1f3f5;
  border: 1px solid var(--surface-border);
  border-radius: 6px;
  
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1rem;
}

.markdown-body pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: var(--text);
}

.markdown-body ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.markdown-body li {
  margin-bottom: 0.25rem;
}

.error-shake {
  animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
  border-color: var(--accent) !important;
  
}

/* Roadmap Selected Node Node Glow */
.roadmap-node.selected-node .node-circle {
  border-color: var(--primary);
  color: var(--primary);
  
  transform: scale(1.15);
}

@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}

@media (max-width: 992px) {
  .lab-split-pane {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Quiz panel styles */
.lab-quiz-panel {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 6px;
  
  
}

.quiz-question-text {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 0.85rem;
  color: var(--text-muted);
  user-select: none;
}

.quiz-option:hover {
  border-color: var(--primary);
  color: var(--text);
  background: rgba(13, 110, 253, 0.04);
}

.quiz-option input[type="radio"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
  margin: 0;
}

.quiz-option.selected {
  border-color: var(--primary);
  background: rgba(13, 110, 253, 0.05);
  color: var(--text);
}

/* Auth Styles */
#auth-username:focus, #auth-password:focus {
  border-color: var(--primary) !important;
  
}

#auth-tab-login:hover, #auth-tab-register:hover {
  color: var(--text) !important;
}


.challenge-item {
  background: #f8f9fa !important;
  border: 1px solid var(--surface-border) !important;
}

/* --- ART ACADEMY IMMERSIVE FORMAT STYLES --- */

/* Hook Screen */
.hook-screen {
  background-color: #0f172a;
  color: #f8fafc;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 2rem;
  border-radius: 12px;
  border: 1px solid rgba(13, 110, 253, 0.3);
  box-shadow: 0 0 40px rgba(13, 110, 253, 0.1);
}

.hook-screen h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hook-screen p {
  font-size: 1.25rem;
  color: #94a3b8;
  max-width: 700px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

/* Story/Narrative */
.story-container {
  background: var(--surface);
  border-left: 4px solid var(--primary);
  padding: 2.5rem;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.story-text {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.story-text.quote {
  font-style: italic;
  color: var(--text-muted);
  border-left: 3px solid var(--surface-border);
  padding-left: 1.5rem;
  margin-left: 1rem;
}

/* Lab Chat Interface */
.lab-chat-container {
  display: flex;
  flex-direction: column;
  height: 600px;
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.lab-objective-box {
  background: rgba(13, 110, 253, 0.05);
  border-bottom: 1px solid var(--surface-border);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lab-objective-box i {
  color: var(--primary);
  font-size: 1.5rem;
}

.lab-objective-text {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
}

.lab-chat-messages {
  flex-grow: 1;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #f8fafc;
}

.chat-message {
  max-width: 80%;
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.5;
  animation: slideUpFade 0.3s forwards;
}

.chat-message.system {
  align-self: center;
  background: #e2e8f0;
  color: #475569;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
}

.chat-message.agent {
  align-self: flex-start;
  background: #ffffff;
  border: 1px solid var(--surface-border);
  color: var(--text);
  border-bottom-left-radius: 0;
}

.chat-message.user {
  align-self: flex-end;
  background: var(--primary);
  color: #ffffff;
  border-bottom-right-radius: 0;
}

.chat-message.error {
  align-self: flex-start;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

.lab-chat-controls {
  padding: 1rem;
  background: #ffffff;
  border-top: 1px solid var(--surface-border);
}

.variant-btn-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.variant-btn {
  background: #f8fafc;
  border: 1px solid var(--surface-border);
  padding: 0.75rem 1rem;
  border-radius: 6px;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 0.85rem;
  color: var(--text);
}

.variant-btn:hover {
  border-color: var(--primary);
  background: rgba(13, 110, 253, 0.05);
  transform: translateY(-2px);
}

.variant-btn-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--primary);
  display: block;
}

.variant-btn-desc {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Flag Capture */
.flag-capture-container {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 3rem;
  text-align: center;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

.flag-capture-container h3 {
  color: #f8fafc;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.flag-capture-container p {
  color: #94a3b8;
  margin-bottom: 2rem;
}

.flag-input-group {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: 0.5rem;
}

.flag-input {
  flex-grow: 1;
  background: #1e293b;
  border: 1px solid #475569;
  padding: 1rem;
  border-radius: 6px;
  color: #22c55e;
  font-family: var(--font-mono);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.flag-input:focus {
  border-color: #22c55e;
}

.flag-submit {
  background: #22c55e;
  color: #ffffff;
  border: none;
  padding: 0 1.5rem;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

.flag-submit:hover {
  background: #16a34a;
}

.flag-captured-anim {
  animation: flagSuccess 1s ease-out forwards;
}

@keyframes flagSuccess {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); box-shadow: 0 0 30px rgba(34, 197, 94, 0.4); border-color: #22c55e; }
  100% { transform: scale(1); box-shadow: 0 0 20px rgba(34, 197, 94, 0.2); border-color: #22c55e; }
}
