@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500;600&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #0b100f;
  --panel: #121a17;
  --line: #ffffff1c;
  --ink: #f2f5ef;
  --muted: #9aa59e;
  --lime: #c9f36b;
}

* {
  box-sizing: border-box;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 88% 5%, #c9f36b1c, transparent 28rem), var(--bg);
  color: var(--ink);
  font:
    16px/1.6 Manrope,
    Arial,
    sans-serif;
}

.shell {
  width: min(1120px, calc(100% - 40px));
  margin: auto;
}

.tool-nav {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.tool-brand {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.tool-brand b {
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 27px;
  margin-right: 8px;
  border-radius: 7px;
  background: var(--lime);
  color: #122018;
  font: italic 1.05rem Georgia;
}

.back {
  color: var(--muted);
  font:
    500 0.72rem "DM Mono",
    monospace;
}

.back:hover {
  color: var(--lime);
}

.tool-hero {
  padding: 76px 0 44px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 45px;
  align-items: center;
}

.label {
  font:
    500 0.67rem "DM Mono",
    monospace;
  letter-spacing: 0.1em;
  color: var(--lime);
}

h1 {
  font-size: clamp(3rem, 6vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.08em;
  margin: 15px 0 22px;
}

h1 em {
  font-family: Georgia, serif;
  font-weight: 400;
  color: var(--lime);
}

.intro {
  color: var(--muted);
  max-width: 545px;
}

.project-visual {
  min-height: 320px;
  display: grid;
  place-items: center;
  position: relative;
}

.visual-ring {
  width: 300px;
  height: 300px;
  border: 1px solid #c9f36b3b;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transform: rotate(-10deg);
}

.visual-inner {
  width: 217px;
  height: 217px;
  border-radius: 26px;
  background: linear-gradient(145deg, #244d3e, #17251f);
  border: 1px solid #c9f36b55;
  display: grid;
  place-items: center;
  overflow: hidden;
  transform: rotate(10deg);
  box-shadow: 0 24px 70px #0008;
}

.visual-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-symbol {
  font:
    700 5rem/1 "DM Mono",
    monospace;
  color: var(--lime);
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.action {
  padding: 13px 16px;
  border-radius: 5px;
  background: var(--lime);
  color: #102018;
  font-size: 0.75rem;
  font-weight: 800;
}

.action:after {
  content: " ↗";
  font-family: "DM Mono", monospace;
}

.action--muted {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.facts div {
  padding: 18px 15px;
  border-right: 1px solid var(--line);
}

.facts div:first-child {
  padding-left: 0;
}

.facts div:last-child {
  border: 0;
}

.facts strong {
  display: block;
  font-size: 0.72rem;
  color: var(--lime);
  font-family: "DM Mono", monospace;
}

.facts span {
  font-size: 0.76rem;
  color: var(--muted);
}

.details {
  padding: 70px 0;
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 65px;
}

.details h2 {
  font-size: 2rem;
  letter-spacing: -0.06em;
}

.details h2 span {
  color: var(--lime);
  font: 400 italic 2rem Georgia;
}

.steps {
  display: grid;
  gap: 12px;
}

.step {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 17px;
  display: flex;
  gap: 16px;
}

.step b {
  color: var(--lime);
  font:
    500 0.68rem "DM Mono",
    monospace;
}

.step p {
  font-size: 0.82rem;
  color: var(--muted);
}

.code-section {
  padding: 0 0 85px;
}

.code-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 16px;
}

.code-title h2 {
  font-size: 2rem;
  letter-spacing: -0.06em;
}

.copy {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 8px 11px;
  border-radius: 4px;
  font:
    500 0.66rem "DM Mono",
    monospace;
  cursor: pointer;
}

.copy:hover {
  border-color: var(--lime);
  color: var(--lime);
}

pre {
  position: relative;
  background: linear-gradient(180deg, #141d18 0%, #101713 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: auto;
  color: #dbe9d9;
  font:
    400 0.78rem/1.7 "DM Mono",
    monospace;
}

.code-chrome {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(
    180deg,
    rgba(32, 42, 35, 0.98),
    rgba(22, 29, 25, 0.98)
  );
}

.code-chrome__lights {
  display: flex;
  align-items: center;
  gap: 8px;
}

.code-chrome__lights span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.code-chrome__lights span:nth-child(1) {
  background: #ff5f57;
}
.code-chrome__lights span:nth-child(2) {
  background: #febc2e;
}
.code-chrome__lights span:nth-child(3) {
  background: #28c840;
}

.code-chrome__title {
  color: #edf1eb;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.code-chrome__file {
  margin-left: auto;
  color: #7f8b84;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

pre > code {
  display: block;
}

.code-lines {
  display: block;
  padding: 16px 0 18px;
}

.code-line {
  display: grid;
  grid-template-columns: 3ch minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 0 22px;
  min-height: 1.7em;
}

.code-line__number {
  color: #5d6d64;
  text-align: right;
  user-select: none;
  font-variant-numeric: tabular-nums;
}

.code-line__content {
  min-width: 0;
  white-space: pre;
}

.token-comment,
.token.comment {
  color: #6e8a78;
  font-style: italic;
}

.token-string,
.token.string {
  color: #e9c77d;
}

.token-keyword,
.token.keyword {
  color: #c792ea;
}

.token-built-in,
.token.builtin {
  color: #82d6ff;
}

.token-number,
.token.number {
  color: #f78c6c;
}

.token-function,
.token.function {
  color: #c9f36b;
}

.token-module,
.token.class-name,
.token.namespace {
  color: #92d192;
}

.token-boolean,
.token.constant {
  color: #ff9e64;
}

.token-operator,
.token.punctuation {
  color: #9aa59e;
}

.token-attr-name,
.token.property {
  color: #7ad1ff;
}

.token.symbol {
  color: #f78c6c;
}

footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  color: var(--muted);
  font:
    0.67rem "DM Mono",
    monospace;
  display: flex;
  justify-content: space-between;
}

.github {
  color: var(--lime);
}

@media (max-width: 700px) {
  .shell {
    width: min(100% - 32px, 1120px);
  }

  .tool-hero,
  .details {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .tool-hero {
    padding-top: 50px;
  }

  .project-visual {
    order: -1;
    min-height: 240px;
  }

  .visual-ring {
    width: 220px;
    height: 220px;
  }

  .visual-inner {
    width: 160px;
    height: 160px;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .facts div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-left: 0;
  }

  .facts div:last-child {
    border-bottom: 0;
  }

  .details {
    padding: 55px 0;
  }

  .code-section {
    padding-bottom: 60px;
  }

  .code-line {
    padding: 0 16px;
    gap: 10px;
  }
}
