html { scroll-behavior: smooth; background: #0A0A0A; }

body {
  margin: 0;
  background: #0A0A0A;
  color: #F2F2F2;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: #00A86B; color: #041d12; }

a {
  color: inherit;
  text-decoration-color: #00A86B;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
a:hover { text-decoration-color: #00D26A; color: #fff; }

:focus-visible {
  outline: 2px solid #00D26A;
  outline-offset: 3px;
  border-radius: 2px;
}

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

.container { width: min(1080px, 100% - 40px); margin: 0 auto; }

/* Header */
.site-header { padding: 22px 0; border-bottom: 1px solid #262626; }
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
}
.logo svg { width: 30px; height: 30px; flex: none; }
.site-header nav { display: flex; gap: 26px; }
.nav-link {
  text-decoration: none;
  color: #9C9C9C;
  font-family: "JetBrains Mono", monospace;
  font-size: 14.5px;
}
.nav-link:hover { color: #00D26A; }

/* Hero */
.hero { padding: 64px 0 72px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}
h1 {
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(30px, 3.9vw, 46px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 20px;
  max-width: 22ch;
  text-wrap: pretty;
}
.hero-sub {
  font-size: 18px;
  color: #9C9C9C;
  max-width: 60ch;
  margin: 0 0 32px;
  text-wrap: pretty;
}

/* Buttons */
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-block;
  padding: 13px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-family: "JetBrains Mono", monospace;
  font-weight: 500;
  font-size: 15px;
}
.btn-primary {
  background: #00A86B;
  color: #041d12;
  border: 1px solid #00A86B;
}
.btn-primary:hover { background: #00D26A; border-color: #00D26A; color: #041d12; }
.btn-ghost {
  background: transparent;
  color: #F2F2F2;
  border: 1px solid #3A3A3A;
}
.btn-ghost:hover { border-color: #00A86B; color: #00D26A; background: rgba(0, 168, 107, .14); }

/* Terminal card */
.terminal {
  background: #111111;
  border: 1px solid #262626;
  border-radius: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 14.5px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 168, 107, .06), 0 30px 60px -30px rgba(0, 168, 107, .25);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-bottom: 1px solid #262626;
  background: #161616;
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: #2c2c2c; display: block; }
.dot-green { background: #00A86B; }
.terminal-title { margin-left: auto; color: #5e5e5e; font-size: 13px; }
.terminal-body { padding: 16px 14px 18px; }
.prompt { color: #9C9C9C; margin: 0 0 10px; display: flex; align-items: center; gap: 6px; }
.prompt b { color: #00A86B; font-weight: 500; }
.cursor {
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  background: #F2F2F2;
  animation: blink 1.1s steps(1) infinite;
}
.stack-list { list-style: none; margin: 0; padding: 0; }
.layer-btn {
  display: grid;
  grid-template-columns: 20px 84px 1fr;
  gap: 10px;
  align-items: baseline;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-left: 2px solid transparent;
  padding: 8px 10px 8px 8px;
  cursor: pointer;
  color: #F2F2F2;
  font: inherit;
  border-radius: 3px;
}
.layer-btn:hover { background: #161616; }
.layer-btn .tree { color: #3d3d3d; }
.layer-btn .layer-name { color: #F2F2F2; font-weight: 500; }
.layer-btn .layer-what {
  color: #9C9C9C;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 14.7px;
}
.layer-btn[aria-expanded="true"],
.layer-btn[aria-expanded="true"]:hover {
  background: rgba(0, 168, 107, .14);
  border-left-color: #00A86B;
}
.layer-btn[aria-expanded="true"] .tree { color: #00A86B; }
.layer-btn[aria-expanded="true"] .layer-name { color: #00D26A; }
.layer-detail {
  margin: 2px 0 8px 30px;
  padding: 11px 14px;
  border-left: 2px solid #3A3A3A;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 14.9px;
  color: #cfcfcf;
  line-height: 1.55;
}
.terminal-hint { margin: 14px 0 0; color: #5e5e5e; font-size: 13px; }

/* Sections */
section { padding: 56px 0; border-top: 1px solid #262626; }
.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 40px;
}
h2 {
  font-family: "JetBrains Mono", monospace;
  font-size: 20px;
  letter-spacing: -0.01em;
  font-weight: 700;
  margin: 0;
}
.accent { color: #00A86B; }

.services {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 60ch;
  display: flex;
  flex-direction: column;
}
.services li { padding: 18px 0; border-top: 1px solid #262626; }
.services li:first-child { border-top-color: transparent; }
.services strong { display: block; font-weight: 600; margin-bottom: 5px; color: #fff; }
.services span { color: #9C9C9C; }

.how-list { margin: 0; max-width: 60ch; display: flex; flex-direction: column; }
.how-row {
  display: grid;
  grid-template-columns: 152px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid #262626;
}
.how-row:first-child { border-top-color: transparent; }
.how-row dt {
  font-family: "JetBrains Mono", monospace;
  font-size: 14.5px;
  font-weight: 500;
  color: #00D26A;
}
.how-row dd { margin: 0; color: #9C9C9C; }

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  max-width: 896px;
}
.about-grid p { margin: 0; color: #9C9C9C; }
.about-grid b { display: block; font-weight: 600; margin-bottom: 5px; color: #fff; }

.contact-lede {
  font-size: 19px;
  max-width: 60ch;
  color: #F2F2F2;
  margin: 0 0 16px;
  text-wrap: pretty;
}

/* Footer */
.site-footer {
  padding: 32px 0 48px;
  color: #9C9C9C;
  font-size: 14px;
  font-family: "JetBrains Mono", monospace;
  border-top: 1px solid #262626;
}
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 16px; }

/* Responsive */
@media (max-width: 880px) {
  .hero { padding: 48px 0 56px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .section-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 520px) {
  .how-row { grid-template-columns: 1fr; gap: 2px; }
}
