:root {
  --bg-black: #000000;
  --panel-bg: #030305;
  --light-blue: #00f0ff;
  --blue-glow: rgba(0, 240, 255, 0.3);
  --terminal-text: #00ffcc;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --error-red: #ff3366;
}

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

body {
  background-color: var(--bg-black);
  color: var(--text-main);
  /* Changed primary font to Times New Roman */
  font-family: 'Times New Roman', Times, serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.playground-container {
  width: 95vw;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding-bottom: 3rem;
}

/* --- EXPANDED HERO SECTION --- */
.hero-section {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* Massively increased padding to make it longer */
  padding: 8rem 2rem 7rem 2rem; 
  position: relative;
  border-bottom: 1px solid rgba(0, 240, 255, 0.15);
  margin-bottom: 3rem;
}

.hero-glow-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(0, 240, 255, 0.1) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
}

.neon-title {
  color: var(--light-blue);
  font-size: 5rem;
  letter-spacing: 10px;
  text-shadow: 0 0 15px var(--blue-glow), 0 0 30px var(--blue-glow);
  margin-bottom: 0.5rem;
  z-index: 1;
}

.sub-title {
  color: var(--text-muted);
  font-family: 'Courier New', Courier, monospace; /* Kept subtitle techy */
  font-size: 1rem;
  letter-spacing: 8px;
  margin-bottom: 3rem;
  z-index: 1;
}

.hero-description {
  max-width: 800px;
  font-size: 1.3rem;
  line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 4rem;
  z-index: 1;
}
/* --- INSTALLATION TERMINAL --- */
.install-container {
  margin-bottom: 4rem;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.install-text {
  color: var(--text-muted);
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.install-terminal {
  background: #000000;
  border: 1px solid rgba(0, 240, 255, 0.4);
  padding: 1rem 1.5rem;
  border-radius: 4px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.2rem;
  display: flex;
  gap: 1rem;
  box-shadow: inset 0 0 15px rgba(0, 240, 255, 0.1);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.install-terminal:hover {
  border-color: var(--light-blue);
  box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.2), 0 0 15px rgba(0, 240, 255, 0.1);
}

.install-terminal .prompt {
  color: var(--error-red);
  font-weight: bold;
}

.install-terminal .command {
  color: var(--text-main);
  letter-spacing: 1px;
}

.install-note {
  color: #475569;
  font-size: 0.9rem;
  font-style: italic;
  margin-top: 0.5rem;
}

.install-note code {
  font-family: 'Courier New', Courier, monospace;
  color: #64748b;
}

/* --- NEW INFORMATION GRID --- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 1100px;
  margin-bottom: 4rem;
  z-index: 1;
}

.info-card {
  background: rgba(0, 240, 255, 0.03);
  border: 1px solid rgba(0, 240, 255, 0.1);
  padding: 2rem;
  border-radius: 4px;
  text-align: left;
  transition: transform 0.2s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 10px 20px rgba(0, 240, 255, 0.05);
}

.card-title {
  color: var(--light-blue);
  font-size: 1.4rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
  padding-bottom: 0.5rem;
}

.card-text {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

.cyber-btn {
  background: rgba(0, 0, 0, 0.8);
  color: var(--light-blue);
  border: 1px solid var(--light-blue);
  padding: 1rem 3rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.1rem;
  font-weight: bold;
  letter-spacing: 3px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: inset 0 0 15px rgba(0, 240, 255, 0.15);
  z-index: 1;
}

.cyber-btn:hover {
  background: var(--light-blue);
  color: var(--bg-black);
  box-shadow: 0 0 30px var(--blue-glow);
}

/* --- SIDE-BY-SIDE GRID --- */
.arena-grid {
  display: flex;
  flex: 1;
  gap: 2rem;
  min-height: 600px;
}

.panel {
  flex: 1;
  background: var(--panel-bg);
  border: 1px solid rgba(0, 240, 255, 0.2);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.9);
}

.panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--light-blue);
  box-shadow: 0 0 15px var(--blue-glow);
}

.panel-header {
  background: #020202;
  padding: 1rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  font-weight: bold;
  color: #64748b;
  letter-spacing: 2px;
  border-bottom: 1px solid rgba(0, 240, 255, 0.1);
}

#code-editor {
  flex: 1;
  background: transparent;
  color: #e2e8f0;
  border: none;
  padding: 1.5rem;
  font-family: 'Courier New', Courier, monospace; /* Restored to monospace for code */
  font-size: 1.1rem;
  line-height: 1.6;
  resize: none;
  outline: none;
}

#terminal-output {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  font-family: 'Courier New', Courier, monospace; /* Restored to monospace for code */
  color: var(--terminal-text);
  white-space: pre-wrap;
  line-height: 1.6;
  font-size: 1.05rem;
}

.error-text {
  color: var(--error-red);
  text-shadow: 0 0 10px rgba(255, 51, 102, 0.4);
}


/* --- NEW LANGUAGE TOUR (DOCS) SECTION --- */
.docs-section {
  margin-top: 5rem;
  padding-top: 4rem;
  border-top: 1px solid rgba(0, 240, 255, 0.15);
  text-align: center;
}

.docs-title {
  font-size: 3rem;
  letter-spacing: 6px;
  margin-bottom: 1rem;
}

.docs-subtitle {
  color: var(--text-muted);
  font-size: 1.2rem;
  margin-bottom: 3rem;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  text-align: left;
}

.doc-card {
  background: var(--panel-bg);
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 4px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.doc-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 240, 255, 0.4);
}

.doc-code {
  background: #000000;
  padding: 1rem;
  border-left: 3px solid var(--light-blue);
  overflow-x: auto;
  color: #e2e8f0;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1rem;
  line-height: 1.5;
  margin-top: 1rem;
}