@import url("https://fonts.googleapis.com/css2?family=Audiowide&family=IBM+Plex+Sans:wght@400;500;700&display=swap");

:root {
  --bg-0: #070707;
  --bg-1: #111111;
  --bg-2: #1d0f0f;
  --ink: #f6f2ef;
  --muted: #b6a9a2;
  --line: rgba(255, 120, 120, 0.2);
  --line-2: rgba(255, 255, 255, 0.1);
  --panel: rgba(14, 10, 10, 0.85);
  --accent: #e33b2f;
  --accent-2: #ff8c42;
  --ok: #78ebba;
  --warn: #ffd279;
  --risk: #ff6666;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  background: radial-gradient(circle at 8% 5%, rgba(227, 59, 47, 0.16) 0%, transparent 28%),
    radial-gradient(circle at 94% 16%, rgba(255, 140, 66, 0.1) 0%, transparent 30%),
    linear-gradient(155deg, var(--bg-0), var(--bg-1) 55%, var(--bg-2));
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: linear-gradient(var(--line-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 40px 40px;
}

main,
.topbar,
.site-footer {
  position: relative;
  z-index: 2;
  width: min(1180px, 92vw);
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
}

.brand small {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-2);
  font-size: 0.66rem;
}

.brand strong {
  display: block;
  font-family: "Audiowide", "Trebuchet MS", sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
}

.brand-mark {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 0.7rem;
  position: relative;
  background: linear-gradient(135deg, #1f1f1f, #080808);
  border: 1px solid rgba(255, 120, 120, 0.45);
  box-shadow: 0 0 24px rgba(227, 59, 47, 0.26);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  background: var(--accent);
}

.brand-mark::before {
  width: 3px;
  height: 72%;
  left: calc(50% - 1.5px);
  top: 14%;
}

.brand-mark::after {
  height: 3px;
  width: 72%;
  top: calc(50% - 1.5px);
  left: 14%;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-menu a {
  color: var(--muted);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.9rem;
}

.nav-menu a:hover {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.topbar-actions {
  display: flex;
  gap: 0.5rem;
}

.eyebrow {
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin: 0;
  font-size: 0.8rem;
}

h1,
h2 {
  font-family: "Audiowide", "Trebuchet MS", sans-serif;
  margin: 0;
}

main {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1rem;
  margin-top: 1.3rem;
  margin-bottom: 2rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}

.hero-main,
.spotlight {
  background: linear-gradient(180deg, rgba(20, 14, 14, 0.95), rgba(8, 8, 8, 0.96));
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  padding: 1.1rem;
}

.hero-main h1 {
  font-size: clamp(2rem, 4.9vw, 3.7rem);
  line-height: 1.05;
  margin-top: 0.55rem;
  margin-bottom: 0;
}

.subtitle {
  width: min(70ch, 98%);
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.65;
  margin-top: 0.8rem;
}

.hero-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.hero-pills {
  margin-top: 1rem;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.hero-pills article {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line-2);
  border-radius: 0.75rem;
  padding: 0.7rem;
}

.hero-pills h3 {
  margin: 0;
  font-size: 0.98rem;
}

.hero-pills p {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.spotlight-cards {
  display: grid;
  gap: 0.65rem;
}

.spotlight-card {
  border: 1px solid var(--line-2);
  border-radius: 0.8rem;
  background: rgba(2, 2, 2, 0.45);
  padding: 0.8rem;
}

.spotlight-card h3 {
  margin: 0;
  font-size: 1rem;
}

.spotlight-card p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.9rem;
}

.btn {
  border: 0;
  border-radius: 0.65rem;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  padding: 0.7rem 1rem;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #120909;
  box-shadow: 0 7px 18px rgba(227, 59, 47, 0.25);
  font-weight: 700;
}

.btn-secondary {
  background: rgba(0, 0, 0, 0.3);
  color: var(--ink);
  border: 1px solid var(--line);
}

.panel {
  background: linear-gradient(180deg, var(--panel), rgba(6, 6, 6, 0.88));
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1.2rem;
  backdrop-filter: blur(5px);
}

.panel-cta {
  background: linear-gradient(180deg, rgba(40, 13, 13, 0.85), rgba(7, 7, 7, 0.96));
}

.panel-head {
  margin-bottom: 0.9rem;
}

.panel-head h2 {
  font-size: 1.35rem;
}

.coming-soon-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  background: linear-gradient(180deg, rgba(20, 14, 14, 0.95), rgba(8, 8, 8, 0.96));
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  box-shadow: 0 0 80px rgba(227, 59, 47, 0.15), inset 0 0 40px rgba(227, 59, 47, 0.04);
  gap: 0.75rem;
}

.coming-soon-text {
  font-family: "Audiowide", "Trebuchet MS", sans-serif;
  font-size: clamp(2.4rem, 6.5vw, 4.2rem);
  color: var(--accent);
  text-align: center;
  line-height: 1.15;
  text-shadow: 0 0 48px rgba(227, 59, 47, 0.55);
  margin: 0;
}

.coming-soon-sub {
  color: var(--muted);
  font-size: 1rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin: 0;
}

.panel-head p {
  margin: 0.3rem 0 0;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.8rem;
}

.cards-lg {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  border: 1px solid var(--line-2);
  background: rgba(5, 5, 5, 0.48);
  border-radius: 0.8rem;
  padding: 0.85rem;
}

.card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.meta {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.45rem;
  margin-bottom: 0.5rem;
}

.badge {
  display: inline-block;
  margin-top: 0.5rem;
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  font-weight: 700;
  font-size: 0.78rem;
}

.badge.ok {
  background: color-mix(in srgb, var(--ok) 22%, transparent);
  color: var(--ok);
}

.badge.warn {
  background: color-mix(in srgb, var(--warn) 22%, transparent);
  color: var(--warn);
}

.badge.risk {
  background: color-mix(in srgb, var(--risk) 22%, transparent);
  color: var(--risk);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  border-bottom: 1px solid var(--line-2);
  padding: 0.6rem;
}

th {
  color: #ffb286;
  font-size: 0.92rem;
}

.api-tools {
  display: grid;
  gap: 0.65rem;
}

input[type="url"] {
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: rgba(2, 2, 2, 0.35);
  color: var(--ink);
  padding: 0.65rem;
  font: inherit;
}

.codeblock {
  background: rgba(2, 2, 2, 0.65);
  border: 1px solid var(--line-2);
  border-radius: 0.55rem;
  padding: 0.65rem;
  max-height: 260px;
  overflow: auto;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  animation: rise 600ms ease forwards;
}

.reveal:nth-of-type(2) {
  animation-delay: 120ms;
}

.reveal:nth-of-type(3) {
  animation-delay: 240ms;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  padding: 1rem 0 2rem;
  color: var(--muted);
}

.footer-title {
  margin: 0;
  color: var(--ink);
}

.footer-meta {
  font-size: 0.86rem;
  color: #8f7f78;
}

@media (max-width: 980px) {
  .topbar-inner {
    flex-wrap: wrap;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .spotlight {
    order: -1;
  }
}

@media (max-width: 700px) {
  .nav-menu {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .topbar-actions {
    width: 100%;
  }

  .topbar-actions .btn {
    flex: 1;
  }

  .subtitle {
    font-size: 1rem;
  }
}
