@import url('https://fonts.googleapis.com/css2?family=DotGothic16&family=Press+Start+2P&family=Share+Tech+Mono&display=swap');

:root {
  --bg: #030704;
  --fg: #33ff6a;
  --fg-dim: #175c2e;
  --fg-bright: #b6ffcf;
  --amber: #ffab1e;
  --glow: 0 0 4px currentColor, 0 0 12px currentColor;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Share Tech Mono', 'Courier New', 'DotGothic16', monospace;
  min-height: 100%;
}

body {
  padding: 0 12px 40px;
}

.crt {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  text-shadow: 0 0 3px rgba(51, 255, 106, 0.55);
}

.scanlines {
  pointer-events: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0px,
    rgba(0, 0, 0, 0.15) 1px,
    rgba(0, 0, 0, 0) 2px
  );
  mix-blend-mode: multiply;
  z-index: 10;
  animation: flicker 6s infinite;
}

@keyframes flicker {
  0%, 100% { opacity: 0.9; }
  92% { opacity: 0.9; }
  93% { opacity: 0.6; }
  94% { opacity: 0.9; }
}

/* top bar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--fg-dim);
  padding: 8px 16px;
  margin-top: 20px;
  font-size: 0.85rem;
  letter-spacing: 0.05rem;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.connected {
  display: flex;
  align-items: center;
  color: var(--fg-bright);
}

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

.lang-switch {
  display: flex;
  gap: 4px;
}

.lang-switch button {
  background: transparent;
  border: 1px solid var(--fg-dim);
  color: var(--fg-dim);
  font-family: 'Share Tech Mono', 'Courier New', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.05rem;
  padding: 2px 8px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.lang-switch button:hover {
  color: var(--fg);
  border-color: var(--fg);
}

.lang-switch button.active {
  color: var(--fg-bright);
  border-color: var(--amber);
  box-shadow: var(--glow);
}

/* header row */
.header-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  border-left: 1px solid var(--fg-dim);
  border-right: 1px solid var(--fg-dim);
  border-bottom: 1px solid var(--fg-dim);
  padding: 22px 24px;
  margin-bottom: 24px;
}

.logo-block {
  border: 1px dashed var(--fg-dim);
  padding: 14px 20px;
  text-align: center;
}

.logo {
  width: 64px;
  height: 64px;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 6px rgba(51, 255, 106, 0.7));
  margin-bottom: 8px;
}

.pixel-logo {
  font-family: 'Press Start 2P', 'Share Tech Mono', monospace;
  font-size: 1.4rem;
  color: var(--fg-bright);
  text-shadow: var(--glow);
  letter-spacing: 0.15rem;
}

.logo-caption {
  margin-top: 6px;
  font-size: 0.65rem;
  color: var(--fg-dim);
  letter-spacing: 0.2rem;
}

.tagline-block .tagline {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--fg-bright);
  overflow-wrap: break-word;
}

.root-prompt {
  margin: 0;
  color: var(--amber);
  font-size: 0.9rem;
}

.cursor {
  animation: blink 1s step-start infinite;
}

.nav-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  white-space: nowrap;
}

.nav-block a {
  color: var(--fg);
  text-decoration: none;
}

.nav-block a:hover {
  color: var(--fg-bright);
  text-shadow: var(--glow);
}

.nav-block .idx {
  color: var(--amber);
}

@media (max-width: 780px) {
  .header-row {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .nav-block {
    align-items: center;
  }
}

/* generic panel */
.panel {
  border: 1px solid var(--fg-dim);
  padding: 20px 24px;
  background: linear-gradient(180deg, rgba(51,255,106,0.03), rgba(0,0,0,0));
  position: relative;
  margin-bottom: 8px;
}

.panel::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 10px; height: 10px;
  border-top: 2px solid var(--amber);
  border-left: 2px solid var(--amber);
}

.panel::after {
  content: "";
  position: absolute;
  bottom: -1px; right: -1px;
  width: 10px; height: 10px;
  border-bottom: 2px solid var(--amber);
  border-right: 2px solid var(--amber);
}

main {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.section-label {
  color: var(--fg);
  font-size: 0.85rem;
  letter-spacing: 0.05rem;
  overflow: hidden;
  white-space: nowrap;
  margin: 0 0 14px;
}

/* hero */
.hero {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 30px;
  align-items: center;
}

.hero-art {
  position: relative;
  border: 1px solid var(--fg-dim);
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
}

.eq-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 140px;
}

.eq-bars span {
  width: 10px;
  background: linear-gradient(180deg, var(--fg-bright), var(--fg-dim));
  box-shadow: 0 0 6px rgba(51,255,106,0.6);
  animation: eq 1.4s ease-in-out infinite;
}

.eq-bars span:nth-child(odd) { animation-duration: 1.1s; }
.eq-bars span:nth-child(3n) { animation-duration: 1.6s; }
.eq-bars span:nth-child(1) { height: 40%; animation-delay: 0.1s; }
.eq-bars span:nth-child(2) { height: 70%; animation-delay: 0.3s; }
.eq-bars span:nth-child(3) { height: 90%; animation-delay: 0.05s; }
.eq-bars span:nth-child(4) { height: 50%; animation-delay: 0.4s; }
.eq-bars span:nth-child(5) { height: 100%; animation-delay: 0.2s; }
.eq-bars span:nth-child(6) { height: 60%; animation-delay: 0.15s; }
.eq-bars span:nth-child(7) { height: 80%; animation-delay: 0.35s; }
.eq-bars span:nth-child(8) { height: 45%; animation-delay: 0.25s; }
.eq-bars span:nth-child(9) { height: 95%; animation-delay: 0.05s; }
.eq-bars span:nth-child(10) { height: 65%; animation-delay: 0.3s; }
.eq-bars span:nth-child(11) { height: 55%; animation-delay: 0.1s; }
.eq-bars span:nth-child(12) { height: 85%; animation-delay: 0.4s; }
.eq-bars span:nth-child(13) { height: 40%; animation-delay: 0.2s; }
.eq-bars span:nth-child(14) { height: 75%; animation-delay: 0.15s; }
.eq-bars span:nth-child(15) { height: 50%; animation-delay: 0.35s; }

@keyframes eq {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.35); }
}

.art-label {
  position: absolute;
  bottom: 14px;
  left: 14px;
  margin: 0;
  border: 1px solid var(--fg-dim);
  background: #000;
  padding: 2px 8px;
  color: var(--amber);
  font-size: 0.8rem;
}

.eyebrow {
  color: var(--amber);
  margin: 0 0 8px;
  font-size: 0.9rem;
}

.hero-text h1 {
  font-family: 'Share Tech Mono', monospace;
  font-size: 2.2rem;
  line-height: 1.25;
  color: var(--amber);
  text-shadow: 0 0 8px rgba(255,171,30,0.5);
  margin: 0 0 16px;
  overflow-wrap: break-word;
}

.hero-text p {
  line-height: 1.6;
  margin: 0 0 20px;
  overflow-wrap: break-word;
}

.term-button {
  display: inline-block;
  border: 1px solid var(--fg);
  color: var(--fg-bright);
  padding: 8px 18px;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.05rem;
  transition: background 0.2s, color 0.2s;
}

.term-button:hover {
  background: var(--fg);
  color: #000;
  box-shadow: var(--glow);
}

@media (max-width: 780px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

/* prompt */
.prompt {
  color: var(--amber);
  margin-right: 4px;
}

p {
  color: var(--fg);
}

/* service cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  border: 1px solid var(--fg-dim);
  padding: 18px 20px;
  position: relative;
  min-width: 0;
}

.card::before, .card::after {
  content: "";
  position: absolute;
  width: 10px; height: 10px;
}
.card::before {
  top: -1px; left: -1px;
  border-top: 2px solid var(--amber);
  border-left: 2px solid var(--amber);
}
.card::after {
  bottom: -1px; right: -1px;
  border-bottom: 2px solid var(--amber);
  border-right: 2px solid var(--amber);
}

.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px dashed var(--fg-dim);
  margin: 0 0 10px;
  color: var(--amber);
  font-size: 1.1rem;
}

.icon-box.small {
  width: 34px;
  height: 34px;
  font-size: 0.85rem;
}

.card h3, .deploy-card h3 {
  margin: 0 0 6px;
  color: var(--fg-bright);
  font-size: 1.1rem;
  letter-spacing: 0.05rem;
}

.box-label {
  display: inline-block;
  margin: 0 0 10px;
  color: var(--amber);
  border: 1px dashed var(--fg-dim);
  padding: 2px 8px;
  font-size: 0.75rem;
}

.card-text {
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0 0 14px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.terminal-block {
  background: #000;
  border: 1px solid var(--fg-dim);
  padding: 10px 14px;
  color: var(--fg-bright);
  font-size: 0.78rem;
  overflow-x: auto;
  margin: 0;
}

.card-text.flow {
  font-size: 0.85rem;
  white-space: normal;
  word-break: break-word;
}

@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

/* features */
.feature-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.85rem;
  flex-wrap: wrap;
}

.feature-row .idx {
  color: var(--amber);
}

.feature-title {
  color: var(--fg-bright);
  white-space: normal;
  overflow-wrap: break-word;
}

.leader {
  flex: 1;
  min-width: 20px;
  border-bottom: 1px dashed var(--fg-dim);
  margin-bottom: 4px;
}

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

/* status */
.status-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.status-list p {
  margin: 6px 0;
  font-size: 0.95rem;
}

.amber-text {
  color: var(--amber);
}

.ascii-vinyl {
  margin: 0;
  color: var(--fg);
  font-size: 0.9rem;
  line-height: 1.2;
  text-align: center;
}

.operational {
  text-align: center;
  color: var(--amber);
  font-size: 0.85rem;
  letter-spacing: 0.1rem;
  margin: 14px 0 0;
}

/* deploy */
.deploy-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.deploy-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

@media (max-width: 780px) {
  .deploy-cards {
    grid-template-columns: 1fr;
  }
}

/* dot */
.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 6px;
}

.dot.online {
  background: var(--fg);
  box-shadow: var(--glow);
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* footer */
.footer-row {
  display: flex;
  justify-content: space-between;
  border: 1px solid var(--fg-dim);
  padding: 10px 16px;
  margin-top: 30px;
  font-size: 0.8rem;
  color: var(--amber);
}

.blink {
  animation: blink 1.2s step-start infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

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