:root {
  --bg: #0d1110;
  --panel: #121816;
  --panel-2: #0f1513;
  --line: #1f2a26;
  --line-2: #3a4a43;
  --text: #e6ebe8;
  --text-2: #c9d3ce;
  --muted: #9fb0a8;
  --dim: #6f7d77;
  --accent: #7ee787;
  --accent-hover: #c8ffd0;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: var(--bg); }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 32px; }
.mono { font-family: var(--mono); }
.accent { color: var(--accent); }
.muted { color: var(--muted); }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--bg); padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* cursor */
@keyframes blink { 50% { opacity: 0; } }
.cur { animation: blink 1s steps(1) infinite; }
.cur--line { color: var(--accent); }
.cur--block { display: inline-block; width: .5em; height: .85em; background: var(--accent); margin-left: 10px; vertical-align: -.05em; }

/* header */
.header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(13, 17, 16, .88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 15px;
}
.header__row { display: flex; align-items: center; gap: 16px 28px; min-height: 72px; }
.logo { color: var(--text); text-decoration: none; font-weight: 700; white-space: nowrap; }
.logo:hover { color: var(--text); }
.nav { display: flex; align-items: center; gap: 4px 22px; margin-left: auto; }
.nav a { color: var(--text-2); text-decoration: none; padding: 10px 2px; white-space: nowrap; }
.nav a:hover { color: var(--accent); }
.nav .nav__cta { border: 1px solid var(--accent); color: var(--accent); padding: 9px 16px; }
.nav .nav__cta:hover { background: var(--accent); color: var(--bg); }

.lang { display: flex; border: 1px solid var(--line-2); }
.lang__btn {
  font: inherit; font-size: 13px; background: transparent; color: var(--dim);
  border: 0; padding: 8px 10px; min-width: 40px; min-height: 38px; cursor: pointer;
}
.lang__btn:hover { color: var(--text); }
.lang__btn[aria-pressed="true"] { background: var(--line-2); color: var(--text); }

/* buttons */
.btns { display: flex; flex-wrap: wrap; gap: 14px; font-family: var(--mono); font-size: 15px; }
.btns--center { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; min-height: 48px;
  padding: 12px 22px; border: 1px solid var(--line-2);
  color: var(--text); text-decoration: none; transition: border-color .15s, background .15s, color .15s;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--bg); font-weight: 700; }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--bg); }

/* hero */
.prompt { font-family: var(--mono); font-size: 15px; color: var(--accent); }
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 96px; padding-bottom: 104px; }
.hero__main { flex: 999 1 520px; min-width: 0; }
.hero__name { margin: 14px 0 12px; font-family: var(--mono); font-size: clamp(40px, 7vw, 64px); line-height: 1.05; letter-spacing: -.02em; }
.hero__typed { font-family: var(--mono); font-size: clamp(17px, 2.4vw, 22px); color: var(--muted); min-height: 1.6em; }
.hero__lead { max-width: 580px; color: var(--text-2); margin: 22px 0 32px; }
.hero__status { flex: 1 1 340px; max-width: 100%; }

/* window */
.window { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.window__bar {
  display: flex; align-items: center; gap: 7px; padding: 11px 14px;
  border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 13px; color: var(--dim);
}
.window__bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3632; }
.window__bar span { margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kv { margin: 0; padding: 18px 20px; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px 12px; font-family: var(--mono); font-size: 14px; }
.kv dt { color: var(--dim); }
.kv dd { margin: 0; }
.ok { color: var(--accent); }

/* sections */
.section { padding: 72px 0; border-top: 1px solid var(--line); }
.section__num { font-family: var(--mono); font-size: 14px; color: var(--accent); }
.section__head h2 { margin-top: 6px; font-family: var(--mono); font-size: clamp(28px, 4vw, 34px); }
.section__head--mb { margin-bottom: 32px; }
.split { display: flex; flex-wrap: wrap; gap: 24px 64px; }
.split > .section__head { flex: 1 1 260px; }
.split__body { flex: 999 1 560px; min-width: 0; }
.split__body p + p { margin-top: 16px; }

.grid { display: grid; gap: 18px; }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 20px 22px; transition: border-color .15s; }
.card:hover { border-color: var(--accent); }
.card__cmd { font-family: var(--mono); font-size: 14px; color: var(--accent); }
.card__title { font-size: 20px; font-weight: 600; margin: 4px 0 14px; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-family: var(--mono); font-size: 13px; color: var(--text-2); border: 1px solid var(--line-2); padding: 3px 9px; }

/* projects */
.project { display: flex; flex-direction: column; transition: border-color .15s; }
.project:hover { border-color: var(--accent); }
.project__cover {
  height: 180px; background: var(--panel-2); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.project__cover pre { margin: 0; font-family: var(--mono); font-size: 13px; line-height: 1.35; color: #4f8f5a; }
.project__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.project__body h3 { font-size: 21px; line-height: 1.3; }
.project__body p { font-size: 15px; }
.project__tags { margin-top: auto; padding-top: 8px; gap: 6px; }
.project__tags li { font-size: 12px; color: var(--accent); border-color: #2c4a35; white-space: nowrap; }
.project--next {
  justify-content: center; gap: 12px; padding: 32px 28px; text-decoration: none; color: var(--text);
  background: transparent; border-style: dashed; border-color: var(--line-2); min-height: 280px;
}
.project--next:hover { color: var(--text); }
.project--next h3 { font-size: 21px; }
.project--next p { font-size: 15px; }
.project__plus { font-family: var(--mono); font-size: 28px; color: var(--accent); }

/* services list */
.list__row {
  display: grid; grid-template-columns: 56px minmax(0, 300px) minmax(0, 1fr); gap: 8px 24px; align-items: baseline;
  padding: 22px 0; border-bottom: 1px dashed var(--line);
}
.list__row:first-child { border-top: 1px dashed var(--line); }
.list__n { font-family: var(--mono); color: var(--accent); font-size: 15px; }
.list__row h3 { font-size: 20px; font-weight: 600; }

/* contact */
.contact { text-align: center; padding: 96px 0; }
.contact__title { margin: 14px 0 12px; font-family: var(--mono); font-size: clamp(30px, 5vw, 44px); line-height: 1.15; }
.contact__lead { max-width: 540px; margin: 0 auto 32px; }

/* footer */
.footer { border-top: 1px solid var(--line); font-family: var(--mono); font-size: 13px; color: var(--dim); }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 24px; padding-bottom: 32px; }

/* responsive */
@media (max-width: 860px) {
  .header__row { flex-wrap: wrap; padding-top: 10px; padding-bottom: 6px; }
  .nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .nav::-webkit-scrollbar { display: none; }
  .lang { margin-left: auto; }
  html { scroll-padding-top: 130px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .hero { padding-top: 56px; padding-bottom: 64px; gap: 36px; }
  .section { padding: 56px 0; }
  .list__row { grid-template-columns: 40px minmax(0, 1fr); }
  .list__row p { grid-column: 2; }
  .contact { padding: 72px 0; }
  .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cur { animation: none; }
}
