:root {
  --bg: #000000;
  --bg-card: #050505;
  --border: rgba(255, 255, 255, 0.15);
  --border-active: rgba(255, 255, 255, 0.4);
  --text: #a1a1aa;
  --text-bright: #ffffff;
  --text-muted: #6b7280;
  
  /* Classic crisp terminal green */
  --accent: #4ade80;
  --accent-muted: #166534;
  
  --mono: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, monospace;
  
  /* Strictly 0px for that brutalist CLI look */
  --radius: 0px; 
}

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

body {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

/* Subtle dot grid to simulate terminal raster (optional, extreme subtle) */
body::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100vh;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: -1;
}

/* ---- Cursor block blink ---- */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.cursor {
  display: inline-flex;
  align-items: center;
  animation: blink 1s step-end infinite;
  margin-right: 6px;
}
.cursor::after {
  content: '';
  display: inline-block;
  width: 0.4em;
  height: 0.8em;
  background-color: var(--accent);
  vertical-align: baseline;
}

/* ---- Nav (Vim status line aesthetic) ---- */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 0 32px;
  height: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: 'Hubot Sans', var(--mono);
  font-size: 30px;
  font-weight: 600;
  color: var(--text-bright);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  height: 22px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.nav-links a:hover { color: var(--text-bright); }

.lang-switch {
  background: transparent;
  border: 1px solid var(--border);
  padding: 4px 10px;
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
  text-transform: uppercase;
}
.lang-switch:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  padding: 120px 32px 80px;
  max-width: 1000px;
  margin: 0 auto;
}

/* The prompt line simulation above the H1 */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: none;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 24px;
  box-shadow: none;
  background: none;
}
.badge::before {
  content: 'user@termura:~$';
  color: var(--text-muted);
}
.badge-dot { display: none; }

h1 {
  font-family: var(--mono);
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 400; /* Medium weight for clarity, not overly bold */
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--text-bright);
}
h1 .h1-light {
  font-size: 0.6em;
  color: var(--text);
  display: block;
  margin-bottom: 4px;
}
h1 .brand-accent {
  color: var(--accent);
  font-weight: 600;
}
h1 .gradient {
  background: none;
  -webkit-text-fill-color: initial;
}

.hero-sub {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 700px;
  margin-bottom: 48px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 0; /* Raw corners */
  transition: all 0.15s;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border: 1px solid var(--accent);
}
.btn-primary:hover {
  background: transparent;
  color: var(--accent);
}
.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-secondary:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

/* ---- Terminal mockup ---- */
.terminal-mockup {
  margin-top: 64px;
  width: 100%;
  max-width: 900px;
  background: var(--bg);
  border: 1px solid var(--border-active);
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  text-align: left;
}

.terminal-titlebar {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05); /* Solid stark top */
  border-bottom: 1px solid var(--border);
  gap: 0;
}
/* Revert macOS dots to classic raw text CLI title */
.terminal-dot { display: none; }
.terminal-titlebar span {
  flex: 1;
  text-align: center;
  font-size: 11px;
  font-family: var(--mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-right: 0;
}
.terminal-titlebar span::before { content: '['; margin-right: 6px; }
.terminal-titlebar span::after { content: ']'; margin-left: 6px; }

.terminal-body {
  padding: 24px 32px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
}
.terminal-body .prompt { color: var(--accent); }
.terminal-body .cmd { color: var(--text-bright); }
.terminal-body .comment { color: #52525b; }
.terminal-body .output { color: #a1a1aa; }
.terminal-body .success { color: var(--accent); }
.terminal-body .highlight { color: #3b82f6; }
.terminal-body .agent-badge {
  display: inline-flex;
  align-items: center;
  padding: 0 6px;
  border-radius: 0;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid;
}
.terminal-body .badge-thinking {
  background: transparent;
  color: #60a5fa;
  border-color: #60a5fa;
}
.terminal-body .badge-done {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

/* ---- Generic Section ---- */
section {
  padding: 100px 32px;
  max-width: 1000px; /* Aligned tight to hero */
  margin: 0 auto;
}
.section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 20px;
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--accent);
}
h2 {
  font-family: var(--mono);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 500;
  letter-spacing: -1px;
  margin-bottom: 20px;
  color: var(--text-bright);
}
h2::before {
  content: '## ';
  color: var(--text-muted);
}
.section-desc {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 48px;
  line-height: 1.6;
}

/* ---- tmux-inspired Grid (Features & Pillars) ---- */
.tmux-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px; /* The 1px gap forms the borders */
  background: var(--border);
  border: 1px solid var(--border);
}
.tmux-pane {
  background: var(--bg);
  padding: 32px 24px;
}
.tmux-pane:hover { background: var(--bg-card); }
.tmux-pane.wide { grid-column: span 2; }

.tmux-pane h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-bright);
  display: flex;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.tmux-pane h3 i {
  color: var(--accent);
  margin-right: 12px;
  font-size: 18px;
}
.tmux-pane p {
  color: var(--text);
  font-size: 13px;
  line-height: 1.6;
}

/* For 2-column wide elements (e.g. features lists) */
.tmux-grid.twocol {
  grid-template-columns: repeat(2, 1fr);
}

/* ---- Arch List ---- */
.arch-layers {
  display: flex; flex-direction: column; gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.arch-layer {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  background: var(--bg);
}
.arch-layer .layer-label {
  width: 140px;
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.arch-layer.environment {
  background: rgba(74, 222, 128, 0.05); /* very faint green */
  color: var(--accent);
}

/* ---- Roadmap Steps ---- */
.roadmap {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border);
}
.roadmap-phase {
  background: var(--bg);
  padding: 24px;
}
.roadmap-phase.active {
  background: rgba(255, 255, 255, 0.05);
}
.phase-tag { 
  font-size: 10px; color: var(--text-muted); margin-bottom: 16px; 
  display: inline-block; border-bottom: 1px solid var(--border); padding-bottom: 4px;
}
.roadmap-phase.active .phase-tag { color: var(--text-bright); border-color: var(--accent); }
.roadmap-phase h4 { font-size: 14px; font-weight: 600; margin-bottom: 16px; color: var(--text-bright); text-transform: uppercase;}
.roadmap-phase ul { list-style: none; padding: 0; }
.roadmap-phase ul li { color: var(--text); font-size: 12px; margin-bottom: 8px; padding-left: 16px; position:relative;}
.roadmap-phase ul li::before {
  content: '-'; position: absolute; left: 0; color: var(--text-muted);
}
.roadmap-phase.active ul li::before { content: '>'; color: var(--accent); }

/* ---- Comparison Table ---- */
.comparison-table {
  width: 100%; border-collapse: collapse; margin-top: 40px;
  border: 1px solid var(--border);
}
.comparison-table th, .comparison-table td {
  padding: 14px 20px; text-align: left; border: 1px solid var(--border);
}
.comparison-table th {
  font-size: 11px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-muted); background: var(--bg-card); text-align: center;
}
.comparison-table td:first-child { color: var(--text-bright); text-align: left; }
.comparison-table .yes, .comparison-table .no, .comparison-table .partial { text-align: center; }
.comparison-table .yes { color: var(--accent); font-weight: bold; }
.comparison-table .no { color: rgba(255, 255, 255, 0.2); }

/* ---- CTA ---- */
.cta {
  text-align: left;
  padding: 100px 32px;
  border-top: 1px solid var(--border);
  margin-top: 60px;
}
.cta h2 { margin-bottom: 16px; }
.cta .section-desc { margin-bottom: 40px; }

/* ---- Footer ---- */
footer {
  border-top: 1px dashed var(--border);
  padding: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}
.footer-left { color: var(--text-muted); font-size: 12px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 12px; text-transform: uppercase; }
.footer-links a:hover { color: var(--text-bright); }

@media (max-width: 900px) {
  .tmux-grid, .tmux-grid.twocol { grid-template-columns: 1fr; }
  .tmux-pane.wide { grid-column: auto; }
  .roadmap { grid-template-columns: 1fr; }
  .comparison-table { display: block; overflow-x: auto; }
}

[lang="zh"] .en, [lang="en"] .zh { display: none; }
