:root {
  --bg: #06140f;
  --bg-secondary: #0c231a;
  --panel: rgba(14, 47, 34, 0.84);
  --text: #effff5;
  --muted: #b3cfbf;
  --green: #5ee28f;
  --green-light: #b8f5cd;
  --blue: #78bdfd;
  --yellow: #f8d66d;
  --red: #fb8a7f;
  --border: rgba(122, 225, 159, 0.22);
  --shadow: rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(42, 157, 92, 0.34), transparent 30rem),
    radial-gradient(circle at 90% 9%, rgba(18, 117, 173, 0.22), transparent 28rem),
    linear-gradient(135deg, var(--bg), var(--bg-secondary));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

.container {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0 36px;
}

.hero {
  max-width: 860px;
  margin-bottom: 46px;
}

.badge {
  display: inline-block;
  padding: 8px 13px;
  border: 1px solid rgba(94, 226, 143, 0.48);
  border-radius: 999px;
  color: var(--green-light);
  background: rgba(12, 85, 50, 0.35);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

h1 {
  max-width: 850px;
  margin: 18px 0;
  font-size: clamp(2.35rem, 6vw, 4.55rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

h2 {
  margin: 0 0 13px;
  color: var(--green-light);
  font-size: 1.35rem;
}

h3 {
  margin: 0 0 9px;
  color: #ecfff2;
  font-size: 1rem;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.subtitle {
  max-width: 750px;
  font-size: 1.13rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 27px;
}

.button {
  display: inline-block;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.button:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.button-primary {
  color: #082313;
  background: linear-gradient(135deg, #82f4ae, #68d8b5);
}

.button-secondary {
  border-color: rgba(184, 245, 205, 0.4);
  color: var(--green-light);
  background: rgba(8, 42, 27, 0.55);
}

.section-title {
  margin-bottom: 16px;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.panel {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 20px 50px var(--shadow);
}

.card {
  min-height: 194px;
  padding: 23px;
}

.card-icon {
  display: inline-block;
  margin-bottom: 13px;
  font-size: 1.5rem;
}

.highlight {
  margin-bottom: 8px;
  color: var(--green);
  font-size: 1.27rem;
  font-weight: 800;
}

.panel {
  margin-top: 16px;
  padding: 29px;
}

.panel-description {
  max-width: 840px;
}

code {
  padding: 3px 6px;
  border-radius: 6px;
  color: #d6ffe5;
  background: rgba(0, 0, 0, 0.3);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.88em;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 13px;
  margin-top: 23px;
}

.timeline-step {
  min-height: 170px;
  padding: 18px;
  border: 1px solid rgba(125, 229, 162, 0.2);
  border-radius: 13px;
  background: rgba(3, 23, 14, 0.39);
}

.step-number {
  display: grid;
  width: 31px;
  height: 31px;
  margin-bottom: 13px;
  place-items: center;
  border-radius: 50%;
  color: #062111;
  background: var(--green);
  font-size: 0.88rem;
  font-weight: 900;
}

.timeline-step p {
  font-size: 0.91rem;
  line-height: 1.5;
}

.class-card {
  min-height: 202px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(4, 31, 19, 0.58);
}

.class-card > span {
  display: block;
  margin-bottom: 24px;
  color: var(--green);
  font-size: 0.79rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.class-card > p:not(.class-description) {
  margin-bottom: 13px;
  color: var(--green-light);
  font-weight: 800;
}

.class-description {
  font-size: 0.92rem;
}

.angular {
  border-color: rgba(248, 214, 109, 0.45);
}

.angular > span,
.angular > p:not(.class-description) {
  color: var(--yellow);
}

.rust {
  border-color: rgba(251, 138, 127, 0.45);
}

.rust > span,
.rust > p:not(.class-description) {
  color: var(--red);
}

.results-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 16px;
  margin-top: 21px;
}

.metric-card {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  justify-content: center;
  padding: 25px;
  border: 1px solid rgba(94, 226, 143, 0.37);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(20, 93, 54, 0.55), rgba(5, 40, 24, 0.72));
}

.metric-label {
  color: var(--green-light);
  font-weight: 700;
}

.metric-value {
  margin: 8px 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.to-fill {
  color: var(--yellow);
}

.metric-hint {
  font-size: 0.86rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 430px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
}

th,
td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  text-align: left;
}

th {
  color: var(--green-light);
  background: rgba(20, 86, 51, 0.48);
  font-size: 0.91rem;
}

tr:last-child td {
  border-bottom: 0;
}

pre {
  overflow-x: auto;
  margin: 20px 0;
  padding: 19px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.32);
}

pre code {
  padding: 0;
  color: #d5ffe4;
  background: transparent;
  font-size: 0.9rem;
  line-height: 1.65;
}

.notice {
  padding: 16px;
  border-left: 4px solid var(--yellow);
  border-radius: 8px;
  color: #e7f8ed;
  background: rgba(96, 77, 19, 0.25);
  line-height: 1.6;
}

.notice strong {
  color: #fff0ae;
}

.repository-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}

.repository-link:hover {
  text-decoration: underline;
}

footer {
  padding: 36px 0 10px;
  color: #82a491;
  font-size: 0.9rem;
  text-align: center;
}

@media (max-width: 1000px) {
  .grid-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .container {
    width: min(100% - 24px, 1080px);
    padding-top: 45px;
  }

  .grid-three,
  .results-layout {
    grid-template-columns: 1fr;
  }

  .panel,
  .card,
  .class-card {
    padding: 21px;
  }
}

@media (max-width: 480px) {
  .grid-four,
  .timeline {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    text-align: center;
  }
}