:root {
  --bg: #070a08;
  --panel: #0d120f;
  --panel-soft: rgba(13, 18, 15, .92);
  --line: #26332b;
  --line-soft: rgba(145, 240, 173, .10);
  --text: #e8f3eb;
  --muted: #93a299;
  --green: #91f0ad;
  --green-soft: rgba(145, 240, 173, .10);
  --amber: #f1d28c;
  --danger: #f09a91;
  --max: 1180px;
  --radius: 12px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(rgba(145, 240, 173, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(145, 240, 173, .035) 1px, transparent 1px),
    var(--bg);
  background-size: 36px 36px;
  font-family: "Courier New", ui-monospace, SFMono-Regular, Consolas, monospace;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--green);
}

.wrap {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 10, 8, .90);
  backdrop-filter: blur(12px);
}

.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  font-weight: 800;
  letter-spacing: .06em;
  white-space: nowrap;
}

.brand::before {
  content: "●";
  margin-right: 10px;
  color: var(--green);
  text-shadow: 0 0 16px var(--green);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  color: var(--muted);
  font-size: 13px;
}

.nav-links a {
  padding: 8px 10px;
  border-radius: 7px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--green);
  background: var(--green-soft);
}

.hero {
  padding: 92px 0 66px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--green);
  font-size: 13px;
}

.status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px var(--green);
}

.hero h1,
.page-hero h1 {
  margin: 24px 0;
  font-size: clamp(46px, 8vw, 96px);
  line-height: .94;
  letter-spacing: -.06em;
}

.hero h1 span,
.page-hero h1 span {
  color: var(--green);
}

.lead,
.page-lead {
  max-width: 750px;
  margin: 0;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(18px, 2.2vw, 21px);
}

.command {
  max-width: 670px;
  margin-top: 34px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--muted);
  white-space: nowrap;
}

.prompt {
  color: var(--green);
}

.section {
  padding: 64px 0;
}

.section-head {
  margin-bottom: 24px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 32px);
}

.section-head p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
}

.console {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(9, 14, 11, .94);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .25);
}

.console-bar {
  height: 44px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #39463e;
}

.console-title {
  margin-left: 8px;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.module {
  min-height: 245px;
  padding: 28px;
  border-right: 1px solid var(--line);
}

.module:last-child {
  border-right: 0;
}

.module .state {
  color: var(--green);
  font-size: 13px;
}

.module h3 {
  margin: 55px 0 10px;
  font-size: 22px;
}

.module p {
  margin: 0;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
}

.rule-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.rule,
.project-card,
.info-card {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.rule .label,
.project-card .label {
  color: var(--amber);
  font-size: 12px;
}

.rule h3,
.project-card h2,
.info-card h2 {
  margin: 15px 0 8px;
  font-size: 24px;
}

.rule p,
.project-card p,
.info-card p,
.info-card li {
  margin: 0;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
}

.project-card {
  min-height: 250px;
}

.project-card h2 {
  margin-top: 50px;
}

.page-hero {
  padding: 80px 0 38px;
}

.content-grid {
  padding: 22px 0 76px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
}

.prose {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(9, 14, 11, .90);
}

.prose h2 {
  margin: 40px 0 10px;
  color: var(--green);
  font-size: 20px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
}

.prose code {
  padding: .15em .4em;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--green);
  background: var(--panel);
}

.side-stack {
  display: grid;
  align-content: start;
  gap: 16px;
}

.info-card ul {
  padding-left: 18px;
}

.notice {
  margin-top: 26px;
  padding: 16px 18px;
  border-left: 3px solid var(--green);
  background: var(--green-soft);
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
  color: var(--muted);
  font-size: 12px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.error-page {
  min-height: calc(100vh - 130px);
  padding: 70px 20px;
  display: grid;
  place-items: center;
  text-align: center;
}

.error-code {
  color: var(--green);
  font-size: clamp(72px, 18vw, 180px);
  line-height: .8;
  letter-spacing: -.08em;
  opacity: .22;
}

.error-page h1 {
  margin: 24px 0 8px;
  font-size: clamp(28px, 5vw, 48px);
}

.error-page p {
  max-width: 560px;
  margin: 0 auto;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
}

.home-link {
  display: inline-block;
  margin-top: 28px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green);
  background: var(--panel-soft);
}

@media (max-width: 800px) {
  .module-grid,
  .rule-grid,
  .project-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .module {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .module:last-child {
    border-bottom: 0;
  }

  .section-head {
    display: block;
  }

  .section-head p {
    margin-top: 12px;
  }
}

@media (max-width: 620px) {
  .wrap {
    width: min(calc(100% - 28px), var(--max));
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 15px 0;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero {
    padding-top: 66px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 48px;
  }
}
