@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&family=Noto+Sans+SC:wght@400;700&display=swap');

:root {
  --bg: #060806;
  --fg: #FFB000;
  --fg-dim: #8A6A14;
  --border: #3A2F0E;
  --font-mono: 'JetBrains Mono', monospace;
  --font-sans: 'JetBrains Mono', 'Noto Sans SC', sans-serif;
}

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

html {
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 30px; /* Space for tmux footer */
  position: relative;
}

/* CRT Scanline Overlay */
body::after {
  content: " ";
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  z-index: 9999;
  background-size: 100% 2px, 3px 100%;
  pointer-events: none;
  opacity: 0.3;
}

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

a {
  color: var(--fg);
  text-decoration: none;
  cursor: pointer;
}

a:hover {
  background: var(--fg);
  color: var(--bg);
}

.container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Typography & Layout elements */
h1, h2, h3 {
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.dim {
  color: var(--fg-dim);
}

.bold {
  font-weight: 700;
}

.border-box {
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 2px;
  margin-bottom: 24px;
}

/* Navbar */
.navbar {
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  margin-bottom: 32px;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.logo {
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo:hover {
  background: transparent;
  color: var(--fg);
}

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

.nav-links a {
  padding: 2px 4px;
}

.nav-actions .btn {
  border: 1px solid var(--fg);
  padding: 4px 12px;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-block;
  background: var(--bg);
  color: var(--fg);
}

.nav-actions .btn:hover {
  background: var(--fg);
  color: var(--bg);
}

/* CTA Buttons */
.btn-cta {
  border: 1px solid var(--fg);
  background: var(--bg);
  color: var(--fg);
  padding: 8px 16px;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-block;
  text-align: center;
}

.btn-cta:hover {
  background: var(--fg);
  color: var(--bg);
}

/* Hero CLI Terminal */
.terminal {
  border: 1px solid var(--border);
  background: #040504;
  border-radius: 2px;
  padding: 16px;
  margin-bottom: 40px;
  font-family: var(--font-mono);
  min-height: 200px;
}

.term-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 16px;
  color: var(--fg-dim);
  font-size: 0.85rem;
}

.term-line {
  margin-bottom: 8px;
  word-wrap: break-word;
}

.prompt::before {
  content: "root@local:~# ";
  color: var(--fg-dim);
}

.typing-effect {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 8px solid var(--fg);
  animation: typing 1.5s steps(30, end), blink 1s step-end infinite;
  max-width: 100%;
}

@keyframes typing {
  from { max-width: 0 }
  to { max-width: 100% }
}

@keyframes blink {
  0%, 100% { border-color: transparent }
  50% { border-color: var(--fg) }
}

.type-done {
  border-right: none;
  animation: none;
}

.delayed-line {
  opacity: 0;
  animation: showLine 0.1s forwards;
}

.delay-1 { animation-delay: 1.6s; }
.delay-2 { animation-delay: 2.1s; }
.delay-3 { animation-delay: 2.5s; }
.delay-4 { animation-delay: 3.0s; }
.delay-5 { animation-delay: 3.2s; }

@keyframes showLine {
  to { opacity: 1; }
}

/* Main Sections */
section {
  margin-bottom: 48px;
}

.sec-title {
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
  margin-bottom: 16px;
  display: inline-block;
}

.sec-title::before {
  content: "=== ";
  color: var(--fg-dim);
}
.sec-title::after {
  content: " ===";
  color: var(--fg-dim);
}

/* Man-page style features */
.man-page dl {
  margin-left: 16px;
}

.man-page dt {
  font-weight: 700;
  margin-top: 16px;
}

.man-page dt::before {
  content: "- ";
  color: var(--fg-dim);
}

.man-page dd {
  margin-left: 24px;
  margin-top: 4px;
  color: var(--fg-dim);
}

/* ASCII Pricing Table */
.ascii-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  margin-bottom: 16px;
}

.ascii-table th, .ascii-table td {
  border: 1px solid var(--border);
  padding: 12px;
  text-align: left;
}

.ascii-table th {
  color: var(--fg-dim);
  font-weight: normal;
}

.price-val {
  font-size: 1.2rem;
  font-weight: 700;
}

/* Reviews Syslog */
.syslog {
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.log-entry {
  display: flex;
  gap: 16px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border);
}
.log-entry:last-child {
  border-bottom: none;
}

.log-time {
  color: var(--fg-dim);
  min-width: 140px;
}

.log-user {
  font-weight: 700;
  min-width: 100px;
}

.log-msg {
  flex: 1;
}

/* FAQ Details */
.faq-item {
  border: 1px solid var(--border);
  margin-bottom: 8px;
}

.faq-item summary {
  padding: 12px;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  background: rgba(255, 176, 0, 0.05);
}

.faq-item summary::before {
  content: "[+] ";
  color: var(--fg-dim);
}

.faq-item[open] summary::before {
  content: "[-] ";
  color: var(--fg);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-answer {
  padding: 12px;
  border-top: 1px solid var(--border);
  color: var(--fg-dim);
}

/* Tmux Status Bar Footer */
.tmux-status {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30px;
  background: var(--fg);
  color: var(--bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  z-index: 100;
}

.tmux-left, .tmux-right {
  display: flex;
  gap: 16px;
  align-items: center;
}

.tmux-status a {
  color: var(--bg);
  text-decoration: none;
}

.tmux-status a:hover {
  background: var(--bg);
  color: var(--fg);
}

.tmux-window {
  background: var(--bg);
  color: var(--fg);
  padding: 0 8px;
}

/* Utilities */
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mt-4 { margin-top: 16px; }
.text-center { text-align: center; }

/* Responsive */
@media (max-width: 768px) {
  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .log-entry {
    flex-direction: column;
    gap: 4px;
  }
  .log-time, .log-user {
    min-width: auto;
  }
  .ascii-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  .tmux-status {
    font-size: 0.75rem;
    padding: 0 8px;
  }
  .tmux-left, .tmux-right {
    gap: 8px;
  }
}

/* Floating Button */
.floating-btn {
  position: fixed;
  bottom: 40px;
  right: 20px;
  background: var(--bg);
  border: 1px solid var(--fg);
  color: var(--fg);
  padding: 8px 12px;
  font-weight: 700;
  text-decoration: none;
  z-index: 9999;
  box-shadow: 2px 2px 0 var(--border);
}
.floating-btn:hover {
  background: var(--fg);
  color: var(--bg);
}
.hero-image-container {
  text-align: center;
  margin-bottom: 20px;
  border: 1px dashed var(--border);
  padding: 8px;
}
.hero-image-container img {
  max-width: 100%;
  height: auto;
  opacity: 0.8;
  filter: sepia(1) hue-rotate(10deg) saturate(3) brightness(0.8) contrast(1.2);
}
