/* chloe.cx - Pixel Chrome Cathedral */
:root {
  --bg-deep: #1C1E26;
  --bg-primary: #2E3241;
  --bg-secondary: #3A3F4B;
  --accent-green: #00FFAA;
  --accent-cyan: #00E5FF;
  --accent-gold: #FFD700;
  --accent-pink: #FF006E;
  --text-light: #C8CCD4;
  --text-muted: #A8B2C1;
  --chrome-start: #C8CCD4;
  --chrome-mid: #FFFFFF;
  --chrome-end: #8A8F9A;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-deep);
  color: var(--text-light);
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

.hidden { display: none !important; }

.mono { font-family: "JetBrains Mono", monospace; }

.chrome-text {
  background: linear-gradient(135deg, #8A8F9A 0%, #C8CCD4 25%, #FFFFFF 50%, #C8CCD4 75%, #8A8F9A 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: chrome-shift 6s ease-in-out infinite;
}

@keyframes chrome-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.accent-green { color: var(--accent-green); }
.accent-cyan { color: var(--accent-cyan); }
.accent-gold { color: var(--accent-gold); }
.accent-pink { color: var(--accent-pink); }

.accent-border-green { border-color: var(--accent-green); }
.accent-border-cyan { border-color: var(--accent-cyan); }
.accent-border-gold { border-color: var(--accent-gold); }
.accent-border-pink { border-color: var(--accent-pink); }

/* Boot Overlay */
#boot-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: var(--bg-deep);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease;
}

#boot-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

#boot-terminal {
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  color: var(--accent-green);
  position: absolute;
  top: 40px;
  left: 40px;
}

#boot-cursor.blink {
  animation: cursor-blink 0.6s step-end infinite;
}

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

#boot-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

#pixel-logo {
  image-rendering: pixelated;
}

/* Navigation */
#chrome-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60px;
  background: rgba(28, 30, 38, 0.92);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 100;
  border-bottom: 1px solid rgba(200, 204, 212, 0.1);
}

.nav-logo {
  font-family: "Saira Condensed", sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.nav-links { display: flex; gap: 32px; }

.nav-link {
  color: var(--text-light);
  text-decoration: none;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
  position: relative;
}

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

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 1px;
  background: var(--accent-cyan);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav-link:hover::after { transform: scaleX(1); }

.nav-status { display: flex; align-items: center; gap: 8px; }

.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 4px var(--accent-green); }
  50% { opacity: 0.5; box-shadow: 0 0 12px var(--accent-green); }
}

.status-text {
  font-size: 11px;
  color: var(--accent-green);
  letter-spacing: 0.1em;
}

/* Hero Section */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 50%, rgba(0, 229, 255, 0.04) 0%, transparent 70%);
}

.hero-inner {
  text-align: center;
  z-index: 2;
  position: relative;
}

.hero-title {
  font-family: "Saira Condensed", sans-serif;
  font-size: clamp(60px, 12vw, 120px);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 0.9;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-family: "Saira Condensed", sans-serif;
  font-size: clamp(16px, 3vw, 24px);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 24px;
}

.hero-tagline {
  font-size: 14px;
  color: rgba(200, 204, 212, 0.7);
  letter-spacing: 0.02em;
}

.hero-scanlines {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
  z-index: 1;
}

#hero-particles {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Section Titles */
.section-title {
  font-family: "Saira Condensed", sans-serif;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 60px;
}

section {
  padding: 120px 40px;
  position: relative;
}

/* Modules Orbital */
.modules-orbital {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.module-card {
  background: linear-gradient(135deg, rgba(46, 50, 65, 0.8), rgba(58, 63, 75, 0.4));
  border: 1px solid rgba(200, 204, 212, 0.08);
  border-radius: 4px;
  padding: 32px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.module-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

.module-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 229, 255, 0.08);
}

.module-icon {
  width: 64px; height: 64px;
  margin-bottom: 20px;
}

.pixel-icon {
  width: 64px; height: 64px;
  image-rendering: pixelated;
}

.module-name {
  font-family: "Saira Condensed", sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.module-desc {
  font-size: 14px;
  color: rgba(200, 204, 212, 0.7);
  line-height: 1.6;
  margin-bottom: 16px;
}

.module-stats {
  display: flex;
  gap: 16px;
  font-size: 11px;
  letter-spacing: 0.05em;
}

.stat { color: #A8B2C1; }

/* Documentation Section */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.doc-panel {
  background: rgba(28, 30, 38, 0.9);
  border: 1px solid rgba(200, 204, 212, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.doc-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(46, 50, 65, 0.5);
  border-bottom: 1px solid rgba(200, 204, 212, 0.06);
}

.doc-icon { font-size: 12px; }

.doc-title {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-light);
}

.doc-content { padding: 20px; }

.code-block {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-light);
  background: transparent;
  overflow-x: auto;
}

.code-block code { white-space: pre; }

.code-comment { color: rgba(200, 204, 212, 0.4); }
.code-keyword { color: var(--accent-pink); }
.code-string { color: var(--accent-green); }
.code-number { color: var(--accent-gold); }
.code-type { color: var(--accent-cyan); }
.code-func { color: var(--accent-cyan); }

/* Architecture Section */
.arch-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

.arch-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.arch-layer {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.arch-node {
  background: rgba(46, 50, 65, 0.6);
  border: 1px solid;
  border-radius: 4px;
  padding: 12px 20px;
  transition: all 0.3s ease;
}

.arch-node:hover {
  background: rgba(46, 50, 65, 0.9);
  transform: scale(1.05);
}

.arch-node-wide { width: 100%; text-align: center; }

.arch-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.arch-connector {
  width: 2px;
  height: 24px;
  background: linear-gradient(180deg, rgba(200, 204, 212, 0.3), rgba(200, 204, 212, 0.1));
  margin: 0 auto;
}

.arch-info-title {
  font-family: "Saira Condensed", sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.arch-info-text {
  font-size: 15px;
  color: rgba(200, 204, 212, 0.7);
  line-height: 1.7;
  margin-bottom: 32px;
}

.arch-stats {
  display: flex;
  gap: 32px;
}

.arch-stat { display: flex; flex-direction: column; gap: 4px; }

.arch-stat-value {
  font-size: 28px;
  font-weight: 700;
}

.arch-stat-label {
  font-size: 12px;
  color: rgba(200, 204, 212, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Terminal Section */
.terminal-window {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(200, 204, 212, 0.1);
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.4);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: rgba(46, 50, 65, 0.8);
  border-bottom: 1px solid rgba(200, 204, 212, 0.08);
}

.terminal-dots { display: flex; gap: 6px; }

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

.dot-red { background: #FF5F56; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #27C93F; }

.terminal-title {
  font-size: 12px;
  color: rgba(200, 204, 212, 0.5);
}

.terminal-body {
  background: var(--bg-deep);
  padding: 20px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
}

.terminal-output {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 12px;
}

.terminal-line {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-light);
}

.terminal-input-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-prompt {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  white-space: nowrap;
}

.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-light);
  font-size: 13px;
  caret-color: var(--accent-green);
}

/* Footer */
#footer {
  padding: 60px 40px 40px;
  border-top: 1px solid rgba(200, 204, 212, 0.06);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 24px;
}

.footer-logo {
  font-family: "Saira Condensed", sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.footer-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: rgba(200, 204, 212, 0.5);
  letter-spacing: 0.05em;
}

.footer-links { display: flex; gap: 24px; }

.footer-link {
  color: rgba(200, 204, 212, 0.5);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.3s ease;
}

.footer-link:hover { color: var(--accent-cyan); }

.footer-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.2), transparent);
  max-width: 1200px;
  margin: 0 auto;
}

/* Scroll Reveal Animations */
.module-card,
.doc-panel,
.arch-container {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.module-card.visible,
.doc-panel.visible,
.arch-container.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  #chrome-nav { padding: 0 20px; }
  .nav-links { display: none; }
  section { padding: 80px 20px; }
  .modules-orbital { grid-template-columns: 1fr; }
  .docs-grid { grid-template-columns: 1fr; }
  .arch-container { grid-template-columns: 1fr; gap: 32px; }
  .arch-stats { flex-direction: column; gap: 16px; }
  .footer-inner { flex-direction: column; gap: 20px; text-align: center; }
}
