body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #020617;
  color: white;
  text-align: center;
}

* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
}

/* HERO */
.hero {
  padding: 96px 20px 88px;
  background: radial-gradient(circle at top, #0f172a, #020617);
}

.logo {
  width: min(440px, 86vw);
  margin-bottom: 28px;
  display: inline-block;
}

.hero h1 {
  font-size: clamp(34px, 6vw, 58px);
  margin-bottom: 10px;
  line-height: 1.1;
}

.hero p {
  color: #94a3b8;
  max-width: 820px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.6;
}

/* BUTTONS */
.buttons {
  margin-top: 25px;
}

.btn {
  padding: 12px 22px;
  margin: 8px;
  border-radius: 10px;
  text-decoration: none;
  display: inline-block;
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
}

.primary {
  background: linear-gradient(90deg, #22c55e, #16a34a);
  color: white;
}

.outline {
  border: 1px solid #64748b;
  color: white;
}

.btn-blue {
  background: #2563eb;
  color: #ffffff;
}

/* FEATURES */
.features {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  background: #e5e7eb;
  color: #020617;
  padding: 40px 20px;
}

.feature {
  max-width: 220px;
  line-height: 1.5;
}

.feature .icon {
  font-size: 28px;
  margin-bottom: 10px;
}

/* BENCHMARK */
.benchmark {
  padding: 60px 20px;
}

.cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.card {
  background: linear-gradient(145deg, #0f172a, #020617);
  padding: 20px;
  border-radius: 12px;
  width: 220px;
  border: 1px solid #1e293b;
  line-height: 1.55;
}

.card span {
  color: #94a3b8;
  font-size: 14px;
}

.link-button {
  margin-top: 8px;
  background: transparent;
  border: none;
  color: #38bdf8;
  font-size: 13px;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}

.result-card:hover,
.leaderboard-card:hover,
.top3-card:hover {
  transform: translateY(-2px);
  transition: transform 0.15s ease-out;
}

/* RESULTS */
.results {
  background: #e5e7eb;
  color: #020617;
  padding: 60px 20px;
}

.result-card {
  background: linear-gradient(145deg, #0f172a, #020617);
  color: white;
  padding: 25px;
  border-radius: 12px;
  width: min(320px, 100%);
  text-align: left;
  border: 1px solid #1e293b;
}

.result-card .value {
  font-size: 36px;
  font-weight: bold;
  color: #22c55e;
  margin: 10px 0 6px;
}

.result-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.result-card .meta {
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.5;
}

.result-card .subvalue {
  color: #cbd5e1;
  font-size: 14px;
  display: block;
  line-height: 1.5;
}

/* CTA */
.cta {
  padding: 60px 20px;
  background: radial-gradient(circle at bottom, #0f172a, #020617);
}

.contact {
  padding: 60px 20px 40px;
  background: #020617;
}

.contact-form {
  max-width: 520px;
  margin: 24px auto 0;
  text-align: left;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.field label {
  font-size: 14px;
  color: #cbd5e1;
}

.field input,
.field textarea {
  border-radius: 10px;
  border: 1px solid #1e293b;
  background: #020617;
  color: #e5e7eb;
  padding: 10px 12px;
  font: inherit;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #64748b;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid #22c55e;
  outline-offset: 1px;
}

.contact-submit {
  margin-top: 4px;
}

.top3 {
  background: #020617;
  color: #ffffff;
  padding: 60px 20px 40px;
}

.top3-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 28px;
}

.top3-card {
  position: relative;
  background: radial-gradient(circle at top, #0f172a, #020617);
  border-radius: 14px;
  border: 1px solid #1e293b;
  padding: 22px 20px 18px;
  width: min(320px, 100%);
  text-align: left;
}

.top3-ribbon {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 13px;
}

.top3-gold {
  color: #facc15;
}

.top3-silver {
  color: #e5e7eb;
}

.top3-bronze {
  color: #fb923c;
}

.top3-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.top3-name {
  margin: 0 0 4px;
  color: #e5e7eb;
  font-size: 15px;
}

.top3-meta {
  margin: 0 0 10px;
  color: #94a3b8;
  font-size: 13px;
}

.top3-metric {
  margin: 0 0 10px;
  color: #22c55e;
  font-size: 16px;
  font-weight: 600;
}

.top3-link {
  background: transparent;
  border: none;
  color: #38bdf8;
  font-size: 13px;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}

.contact {
  padding: 60px 20px 40px;
  background: #020617;
}

.contact-form {
  max-width: 520px;
  margin: 24px auto 0;
  text-align: left;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.field label {
  font-size: 14px;
  color: #cbd5e1;
}

.field input,
.field textarea {
  border-radius: 10px;
  border: 1px solid #1e293b;
  background: #020617;
  color: #e5e7eb;
  padding: 10px 12px;
  font: inherit;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #64748b;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid #22c55e;
  outline-offset: 1px;
}

.contact-submit {
  margin-top: 4px;
}

.toast-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.toast {
  background: #020617;
  border-radius: 14px;
  border: 1px solid #1e293b;
  padding: 20px 22px 18px;
  max-width: 360px;
  width: calc(100% - 40px);
  text-align: left;
}

.toast-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
}

.toast-body {
  margin: 0 0 14px;
  font-size: 14px;
  color: #cbd5e1;
}

.toast-close {
  width: 100%;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
}

.modal {
  background: #020617;
  border-radius: 18px;
  border: 1px solid #1e293b;
  padding: 20px 22px 18px;
  max-width: 720px;
  width: calc(100% - 40px);
  text-align: left;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 10px;
}

.modal-header h3 {
  margin: 0 0 4px;
  font-size: 20px;
}

.modal-subtitle {
  margin: 0;
  font-size: 14px;
  color: #94a3b8;
}

.modal-close {
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  font-size: 18px;
}

.modal-section {
  margin-top: 14px;
}

.modal-section h4 {
  margin: 0 0 6px;
  font-size: 15px;
}

.modal-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
}

.modal-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 0;
}

.modal-list .k {
  color: #94a3b8;
}

.modal-list .v {
  color: #e5e7eb;
}

.modal-text {
  margin: 0 0 8px;
  font-size: 13px;
  color: #cbd5e1;
}

.stability-chart {
  border-radius: 12px;
  border: 1px solid #1e293b;
  padding: 8px 10px;
  font-size: 12px;
}

.stability-row {
  display: grid;
  grid-template-columns: 60px 1fr 110px;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}

.stability-bar {
  height: 8px;
  border-radius: 999px;
}

.stability-bar-ok {
  background: linear-gradient(90deg, #22c55e, #4ade80);
}

.stability-label {
  color: #bbf7d0;
  text-align: right;
}

.modal-footer-close {
  margin-top: 14px;
  width: 100%;
}

.tabs {
  display: inline-flex;
  gap: 8px;
  margin-top: 20px;
  border-radius: 999px;
  background: #e2e8f0;
  padding: 4px;
}

.tab {
  border-radius: 999px;
  border: none;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
  background: transparent;
  color: #020617;
}

.tab.active {
  background: #020617;
  color: #f9fafb;
}

.tabs-scope {
  margin-top: 14px;
  background: #cbd5e1;
}

.tabs-category {
  margin-top: 10px;
  background: #e2e8f0;
}

.tabs-category .tab.active {
  background: #2563eb;
  color: #ffffff;
}

.quant-table {
  max-width: 540px;
  margin: 18px auto 0;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  overflow: hidden;
  font-size: 13px;
}

.quant-row {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1.4fr;
  padding: 8px 10px;
  background: #f8fafc;
}

.quant-row:nth-child(2n+3) {
  background: #e5e7eb;
}

.quant-head {
  background: #020617;
  color: #e5e7eb;
  font-weight: 600;
}

.labtools {
  padding: 60px 20px;
  background: #020617;
  color: #f9fafb;
}

.labtools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 28px;
}

.lab-card {
  background: radial-gradient(circle at top, #0f172a, #020617);
  border-radius: 14px;
  border: 1px solid #1e293b;
  padding: 22px 20px 18px;
  width: min(420px, 100%);
  text-align: left;
}

.lab-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.lab-subtitle {
  margin: 0 0 16px;
  font-size: 13px;
  color: #94a3b8;
}

.wizard-step {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wizard-label {
  font-size: 14px;
  color: #e5e7eb;
}

.wizard select {
  border-radius: 10px;
  border: 1px solid #1e293b;
  background: #020617;
  color: #e5e7eb;
  padding: 8px 10px;
  font: inherit;
}

.wizard-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.wizard-result {
  margin: 4px 0 10px;
  font-size: 14px;
  color: #bbf7d0;
}

.wizard-command-label {
  margin: 0 0 4px;
  font-size: 13px;
  color: #cbd5e1;
}

.wizard-command-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.wizard-command {
  background: #020617;
  border-radius: 8px;
  border: 1px solid #1e293b;
  padding: 6px 8px;
  font-size: 12px;
}

.wizard-copy {
  padding-inline: 10px;
}

.wizard-restart {
  margin-top: 4px;
}

.savings {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.savings-label {
  font-size: 13px;
  color: #e5e7eb;
}

.savings input,
.savings select {
  border-radius: 10px;
  border: 1px solid #1e293b;
  background: #020617;
  color: #e5e7eb;
  padding: 8px 10px;
  font: inherit;
}

.savings-run {
  margin-top: 8px;
}

.savings-result {
  margin-top: 8px;
  font-size: 14px;
  color: #bbf7d0;
}

/* FOOTER */
footer {
  padding: 20px;
  border-top: 1px solid #1e293b;
  font-size: 14px;
  color: #64748b;
}

.benchmark h2,
.results h2,
.leaderboard h2,
.cta h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-top: 0;
}

.hint {
  color: #94a3b8;
  margin: 12px auto 0;
  max-width: 900px;
  font-size: 14px;
  line-height: 1.6;
}

.data-status {
  margin-top: 12px;
  font-size: 14px;
}

.data-status[data-kind="success"] {
  color: #22c55e;
}

.data-status[data-kind="error"] {
  color: #ef4444;
}

.data-status[data-kind="info"],
.data-status[data-kind="loading"] {
  color: #94a3b8;
}

.refresh-status {
  margin: 6px auto 0;
  color: #64748b;
  font-size: 13px;
}

/* LEADERBOARD */
.leaderboard {
  background: #e5e7eb;
  color: #020617;
  padding: 60px 20px;
}

.leaderboard-cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 980px;
  margin: 26px auto 0;
}

.leaderboard-row {
  background: linear-gradient(145deg, #0f172a, #020617);
  border: 1px solid #1e293b;
  color: #ffffff;
  padding: 16px;
  border-radius: 12px;
  text-align: left;
  display: grid;
  grid-template-columns: 56px 1.2fr 1fr;
  gap: 16px;
  align-items: center;
}

.leaderboard-rank {
  font-size: 18px;
  font-weight: 700;
  color: #22c55e;
  text-align: center;
}

.leaderboard-main h3 {
  margin: 0 0 4px;
}

.leaderboard-card {
  background: linear-gradient(145deg, #0f172a, #020617);
  border: 1px solid #1e293b;
  color: #ffffff;
  padding: 22px;
  border-radius: 12px;
  width: min(320px, 100%);
  text-align: left;
}

.leaderboard-card h3 {
  font-size: 18px;
  margin: 0 0 8px;
}

.leaderboard-subtitle {
  color: #94a3b8;
  font-size: 14px;
  margin-bottom: 14px;
  line-height: 1.5;
}

.leaderboard-metrics {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.metric {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.metric .k {
  color: #94a3b8;
}

.metric .v {
  color: #22c55e;
  font-weight: bold;
}

.comparator {
  margin: 24px auto 0;
  max-width: 980px;
  text-align: left;
  background: #cbd5e1;
  border-radius: 14px;
  padding: 16px;
}

.comparator h3 {
  margin: 0 0 8px;
}

.comparator-pickers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.comparator-pickers select {
  border: 1px solid #94a3b8;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
}

.comparator-table {
  margin-top: 14px;
  border: 1px solid #94a3b8;
  border-radius: 10px;
  overflow: hidden;
}

.comp-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  padding: 8px 10px;
  background: #f8fafc;
  color: #020617;
}

.comp-row:nth-child(2n+3) {
  background: #e2e8f0;
}

.comp-head {
  background: #020617;
  color: #e5e7eb;
  font-weight: 600;
}

@media (max-width: 900px) {
  .hero {
    padding: 72px 20px 64px;
  }

  .hero p {
    font-size: 16px;
  }

  .cards,
  .leaderboard-cards {
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .hero,
  .benchmark,
  .results,
  .leaderboard,
  .cta {
    padding-left: 16px;
    padding-right: 16px;
  }

  .buttons {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  .btn {
    width: 100%;
    margin: 6px 0;
  }

  .card,
  .result-card,
  .leaderboard-card {
    width: 100%;
  }

  .leaderboard-row {
    grid-template-columns: 1fr;
  }

  .leaderboard-rank {
    text-align: left;
  }

  .comparator-pickers,
  .comp-row {
    grid-template-columns: 1fr;
  }

  .feature {
    max-width: 100%;
  }

}