@import url("./tokens.css");

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: radial-gradient(
      1200px 800px at 20% -10%,
      rgba(120, 120, 255, 0.12),
      transparent 60%
    ),
    radial-gradient(
      1000px 700px at 90% 0%,
      rgba(0, 200, 255, 0.1),
      transparent 55%
    ),
    var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 18px 60px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: baseline;
}

.brand .name {
  font-family: var(--mono);
  letter-spacing: 0.2px;
  font-weight: 650;
}

.brand .hint {
  color: var(--muted);
  font-size: 13px;
}

.nav {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--stroke);
  background: var(--panel2);
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

/* active nav pill */
.pill.is-active {
  border-color: rgba(120, 120, 255, 0.42);
  background: rgba(120, 120, 255, 0.14);
}

.pill:hover {
  border-color: var(--stroke2);
  text-decoration: none;
}

.hero {
  padding: 18px 18px;
  border: 1px solid var(--stroke);
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 10px 0 18px;
}

.hero h1 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: 0.1px;
}

.hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.section {
  margin-top: 18px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
}

.section-head h2 {
  margin: 0;
  font-size: 14px;
  font-family: var(--mono);
  letter-spacing: 0.5px;
  color: var(--faint);
  font-weight: 650;
  text-transform: uppercase;
}

.section-head .meta {
  font-size: 12px;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(12, 1fr);
}

.card {
  grid-column: span 12;
  border: 1px solid var(--stroke);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 14px 14px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

@media (min-width: 720px) {
  .card.span-6 {
    grid-column: span 6;
  }
  .card.span-4 {
    grid-column: span 4;
  }
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.card-title {
  margin: 0;
  font-weight: 650;
  font-size: 15px;
}

.card-desc {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 13px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  padding: 5px 9px;
}

.badge {
  font-family: var(--mono);
  font-size: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--muted);
  white-space: nowrap;
}

.footer {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--stroke);
  color: var(--muted);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.notice {
  border: 1px dashed var(--stroke2);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- Landing polish ---------- */

.hero-landing {
  padding: 20px;
}

.hero-inner {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 860px) {
  .hero-inner {
    grid-template-columns: 1.4fr 0.9fr;
    align-items: stretch;
  }
}

.hero-copy h1 {
  font-size: 28px;
  letter-spacing: -0.2px;
  margin-bottom: 10px;
}

.hero-copy p {
  font-size: 14px;
  max-width: 62ch;
}

.cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 13px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none !important;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.btn:hover {
  border-color: var(--stroke2);
}

.btn.primary {
  background: rgba(120, 120, 255, 0.18);
  border-color: rgba(120, 120, 255, 0.28);
}

.hero-meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.hero-side .glass {
  height: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
  padding: 14px 14px;
}

.kicker {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.35px;
  font-size: 12px;
  color: var(--faint);
}

.quote {
  margin-top: 8px;
  line-height: 1.5;
  color: var(--text);
  font-size: 14px;
}

/* Featured gets a bit more “product tile” feel */
#featured-grid .card {
  padding: 16px;
}

#featured-grid .card-title {
  font-size: 16px;
}

#featured-grid .card-desc {
  font-size: 13px;
}

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

.contact-primary {
  border-color: rgba(120, 120, 255, 0.35);
  background: rgba(120, 120, 255, 0.1);
}

/* --- status page bits --- */
.status-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.status-url {
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-url .subdomain {
  color: rgba(120, 120, 255, 0.92);
  font-weight: 750;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.pill-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.pill-chip a {
  color: inherit;
  text-decoration: none;
}
.pill-chip a:hover {
  text-decoration: underline;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.dot.up {
  background: rgba(61, 220, 151, 0.95);
}
.dot.slow {
  background: rgba(255, 209, 102, 0.95);
}
.dot.down {
  background: rgba(255, 92, 92, 0.95);
}
.dot.checking {
  background: rgba(255, 255, 255, 0.45);
}
