@font-face {
  font-family: "IBM Plex Mono";
  font-weight: 400;
  src: url("/fonts/IBMPlexMono-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-weight: 500;
  src: url("/fonts/IBMPlexMono-Medium.ttf") format("truetype");
  font-display: swap;
}

:root {
  --navy: #00243d;
  --navy-deep: #001a2c;
  --white: #ffffff;
  --green: #00ad68;
  --green-hover: #008f58;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--navy);
  color: var(--white);
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  font-family: "IBM Plex Mono", monospace;
}

main {
  width: 100%;
  max-width: 640px;
  animation: rise 0.5s ease-out both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  main { animation: none; }
}

.breadcrumb {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  margin-bottom: 28px;
}
.breadcrumb:hover { color: rgba(255, 255, 255, 0.75); }

.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 14px;
}

h1 {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}

.lead {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
  max-width: 52ch;
  margin: 0 0 40px;
}

.cta-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green);
  color: var(--white);
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 16px 32px;
  border: none;
  transition: background-color 0.15s ease;
}
.cta:hover { background: var(--green-hover); }
.cta:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}
.cta-arrow { transition: transform 0.15s ease; }
.cta:hover .cta-arrow { transform: translateX(3px); }

.helper {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
  margin: 16px 0 0;
  max-width: 46ch;
}

.source-link {
  display: inline-block;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 13px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
}
.source-link:hover { color: var(--white); border-color: var(--white); }

.specs {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.specs span:not(:last-child)::after {
  content: "·";
  margin: 0 10px;
  color: rgba(255, 255, 255, 0.25);
}

/* список инструментов (главная) */
.tool-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: rgba(255, 255, 255, 0.14);
}
.tool-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--navy);
  padding: 22px 20px;
  text-decoration: none;
  color: var(--white);
  transition: background-color 0.15s ease;
}
.tool-card:hover { background: #002d4c; }
.tool-card:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: -2px;
}
.tool-info { min-width: 0; }
.tool-eyebrow {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 6px;
}
.tool-title {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
  font-size: 17px;
  margin: 0 0 6px;
}
.tool-desc {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
}
.tool-arrow {
  flex: none;
  font-family: "IBM Plex Mono", monospace;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.5);
  transition: transform 0.15s ease, color 0.15s ease;
}
.tool-card:hover .tool-arrow {
  transform: translateX(4px);
  color: var(--white);
}

/* превью кнопки (wnc-ext) */
.preview-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 10px;
}
.viewport {
  position: relative;
  height: 168px;
  background: #e9edf0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 44px;
  overflow: hidden;
}
.viewport-host {
  position: absolute;
  top: 12px;
  left: 16px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  color: rgba(0, 0, 0, 0.35);
}
.preview-btn {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border: none;
  background: var(--navy);
  color: var(--white);
  font: 500 13px/1.2 "IBM Plex Mono", monospace;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  cursor: default;
}
.viewport:hover .preview-btn { background: var(--navy-deep); }

@media (max-width: 480px) {
  body { padding: 40px 20px; }
  .tool-card { flex-direction: column; align-items: flex-start; gap: 10px; }
  .tool-arrow { align-self: flex-end; }
  .cta { width: 100%; justify-content: center; }
  .viewport { height: 140px; }
  .specs span { display: block; margin-bottom: 6px; }
  .specs span::after { display: none; }
}
