/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  background: #0b1020;
  color: #e6e9ef;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: #7aa7ff; text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* ---------- layout ---------- */
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

header.site {
  padding: 40px 0 20px;
  border-bottom: 1px solid #1e2742;
  background: linear-gradient(180deg, #0b1020 0%, #0f1630 100%);
}
header.site .meta { color: #8b93a7; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
header.site h1 {
  margin: 6px 0 8px;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}
header.site .sub { color: #a4aec9; font-size: 17px; max-width: 780px; }

nav.tabs {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #0b1020ee;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #1e2742;
  padding: 0;
}
nav.tabs .container { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
nav.tabs .container::-webkit-scrollbar { display: none; }
nav.tabs button {
  appearance: none;
  background: transparent;
  color: #a4aec9;
  border: none;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all .15s ease;
}
nav.tabs button:hover { color: #e6e9ef; }
nav.tabs button.active {
  color: #ffffff;
  border-bottom-color: #7aa7ff;
}

/* ---------- hero ---------- */
.hero { padding: 32px 0 24px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 760px) { .hero-grid { grid-template-columns: 1fr; } }
.card {
  background: #141b36;
  border: 1px solid #1e2742;
  border-radius: 14px;
  padding: 20px 22px;
}
.card h3 {
  margin: 0 0 10px;
  font-size: 13px;
  color: #8b93a7;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
}
.stat { font-size: 34px; font-weight: 700; color: #ffffff; line-height: 1.1; }
.stat .unit { font-size: 16px; color: #8b93a7; font-weight: 400; margin-left: 6px; }

.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 14px;
}
@media (max-width: 760px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.kpi {
  background: #141b36;
  border: 1px solid #1e2742;
  border-radius: 10px;
  padding: 14px 16px;
}
.kpi .n { font-size: 24px; font-weight: 700; color: #fff; }
.kpi .l { font-size: 12px; color: #8b93a7; text-transform: uppercase; letter-spacing: .06em; }

.tldr {
  background: linear-gradient(135deg, #141b36 0%, #1a2347 100%);
  border: 1px solid #2a3460;
  border-radius: 14px;
  padding: 22px 26px;
  margin-top: 18px;
}
.tldr h2 { margin: 0 0 10px; font-size: 16px; color: #7aa7ff; text-transform: uppercase; letter-spacing: .1em; }
.tldr ol { margin: 0; padding-left: 20px; }
.tldr li { margin-bottom: 8px; color: #d2d8e6; }
.tldr li strong { color: #fff; }

/* ---------- picks strip ---------- */
.picks { margin-top: 24px; }
.picks h2 {
  margin: 0 0 14px;
  font-size: 14px;
  color: #8b93a7;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 600;
}
.pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.pick {
  background: #141b36;
  border: 1px solid #1e2742;
  border-radius: 12px;
  padding: 16px 18px;
}
.pick .rank { color: #7aa7ff; font-size: 12px; font-weight: 600; }
.pick .name { font-size: 20px; font-weight: 700; color: #fff; margin: 4px 0 6px; }
.pick .domains { font-size: 13px; color: #a4aec9; font-family: ui-monospace, monospace; }
.pick .why { font-size: 13px; color: #8b93a7; margin-top: 8px; }
.pick .badge {
  display: inline-block;
  background: #1a3a2a;
  color: #6de3a5;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  margin-right: 4px;
  margin-top: 6px;
  font-weight: 600;
}

/* ---------- sections ---------- */
section.view {
  padding: 28px 0 80px;
  display: none;
}
section.view.active { display: block; }

/* ---------- markdown rendered content ---------- */
.md {
  max-width: 860px;
}
.md h1 { font-size: 30px; color: #fff; margin: 32px 0 16px; font-weight: 700; letter-spacing: -0.02em; }
.md h1:first-child { margin-top: 0; }
.md h2 {
  font-size: 22px; color: #fff; margin: 36px 0 12px; font-weight: 700;
  padding-top: 16px; border-top: 1px solid #1e2742;
}
.md h3 { font-size: 17px; color: #c8cfe0; margin: 24px 0 10px; font-weight: 600; }
.md h4 { font-size: 15px; color: #a4aec9; margin: 18px 0 8px; font-weight: 600; }
.md p { margin: 0 0 14px; color: #d2d8e6; }
.md ul, .md ol { margin: 0 0 16px; padding-left: 22px; }
.md li { margin-bottom: 6px; color: #d2d8e6; }
.md li::marker { color: #6b7494; }
.md strong { color: #fff; }
.md em { color: #c8cfe0; }
.md hr { border: none; border-top: 1px solid #1e2742; margin: 28px 0; }
.md blockquote {
  border-left: 3px solid #7aa7ff;
  padding: 2px 0 2px 14px;
  margin: 14px 0;
  color: #c8cfe0;
}
.md code {
  background: #0b1020;
  border: 1px solid #1e2742;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 13px;
  color: #f0b37e;
}
.md pre {
  background: #0b1020;
  border: 1px solid #1e2742;
  border-radius: 8px;
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 13px;
}
.md pre code { background: transparent; border: none; padding: 0; color: #d2d8e6; }

/* tables */
.md table, table.results {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 13.5px;
  background: #141b36;
  border-radius: 8px;
  overflow: hidden;
  display: block;
  overflow-x: auto;
}
.md table thead, table.results thead { background: #1a2347; }
.md table th, table.results th {
  text-align: left;
  padding: 10px 12px;
  font-weight: 600;
  color: #c8cfe0;
  border-bottom: 1px solid #2a3460;
  white-space: nowrap;
}
.md table td, table.results td {
  padding: 9px 12px;
  border-bottom: 1px solid #1e2742;
  color: #d2d8e6;
  vertical-align: top;
}
.md table tr:last-child td, table.results tr:last-child td { border-bottom: none; }
.md table tr:hover td, table.results tr:hover td { background: #1a2140; }

/* ---------- domain results table widget ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 14px 0 8px;
  padding: 14px;
  background: #141b36;
  border: 1px solid #1e2742;
  border-radius: 10px;
}
.filters input[type="text"] {
  flex: 1 1 220px;
  background: #0b1020;
  color: #e6e9ef;
  border: 1px solid #2a3460;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
}
.filters input[type="text"]:focus { border-color: #7aa7ff; }
.filters label { color: #a4aec9; font-size: 13px; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.filters label input { accent-color: #7aa7ff; }
.filters .count { color: #6de3a5; font-size: 13px; font-weight: 600; margin-left: auto; }

.tag {
  display: inline-block;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: .03em;
}
.tag.avail { background: #14372a; color: #6de3a5; }
.tag.taken { background: #3a1a1a; color: #f07a7a; }

footer.site {
  padding: 28px 0;
  border-top: 1px solid #1e2742;
  color: #6b7494;
  font-size: 13px;
  text-align: center;
}
footer.site a { color: #8b93a7; }
