/* Page structure: container, header, sections, grids, footer */
.container { max-width: var(--max); margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 20, 26, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px; padding-top: 14px; padding-bottom: 14px;
  font-family: var(--font-mono); font-size: 14px;
}
.brand { color: var(--text); }
.brand__user { color: var(--green); }
.brand__host { color: var(--faint); }
.brand__cursor { color: var(--accent); animation: blink 1.1s steps(1) infinite; }
.nav { display: flex; flex-wrap: wrap; gap: 22px; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--accent); }
.nav--main { margin-left: auto; }
.site-header__tools { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none; place-items: center; width: 34px; height: 28px; padding: 0; cursor: pointer;
  background: none; border: 1px solid var(--line-strong); color: var(--text);
  font-family: var(--font-mono); font-size: 15px; line-height: 1;
}
.nav-toggle:hover, .nav-toggle[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }

/* Phones: one compact bar; the section links drop down from the menu button */
@media (max-width: 760px) {
  .nav-toggle { display: grid; }
  .nav--main {
    display: none; order: 3; flex-basis: 100%; flex-direction: column; flex-wrap: nowrap; gap: 0;
    margin: 0; border-top: 1px solid var(--line);
  }
  .nav--main.is-open { display: flex; }
  .nav--main a { padding: 13px 2px; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav--main a:last-child { border-bottom: 0; padding-bottom: 4px; }
}
@media (max-width: 380px) { .brand__host { display: none; } }

/* Hero */
.hero {
  display: grid; align-items: center; gap: 56px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  padding-top: 88px; padding-bottom: 72px;
}
.hero__title {
  font-family: var(--font-mono); font-weight: 700; letter-spacing: -.03em;
  font-size: clamp(40px, 6vw, 76px); line-height: 1.05; margin-bottom: 28px;
}
.hero__lead {
  font-size: clamp(18px, 2.2vw, 22px); color: var(--muted);
  max-width: 560px; margin-bottom: 40px; text-wrap: pretty;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.prompt { font-family: var(--font-mono); font-size: 14px; color: var(--faint); margin-bottom: 20px; }

/* Sections */
.section { padding-top: 72px; padding-bottom: 40px; }
.section__index { font-family: var(--font-mono); font-size: 14px; color: var(--green); margin-bottom: 12px; }
.section__title {
  font-family: var(--font-mono); letter-spacing: -.02em; text-wrap: balance;
  font-size: clamp(28px, 4vw, 44px); line-height: 1.15; margin-bottom: 40px;
}
.section__title--sm { font-size: clamp(24px, 3vw, 34px); margin-bottom: 36px; }
.label { font-family: var(--font-mono); font-size: 13px; color: var(--accent); margin-bottom: 16px; }

/* Two-column block (stacks on narrow screens) */
.split {
  display: grid; gap: 48px; margin-bottom: 56px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}
.split > .section__title { margin-bottom: 0; }
.split--top { align-items: start; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); margin-bottom: 0; }

/* Footer */
.site-footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  margin-top: 48px; padding-top: 40px; padding-bottom: 56px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 13px; color: var(--faint);
}
