:root {
  --bg-1: #09131b;
  --bg-2: #0e2431;
  --bg-3: #153647;
  --text: #eef6fb;
  --muted: #a3becc;
  --accent: #ffc857;
  --accent-2: #2de2e6;
  --card: rgba(255, 255, 255, 0.06);
  --stroke: rgba(255, 255, 255, 0.16);
  --radius: 18px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  font-family: "Syne", system-ui, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(1200px 700px at 10% 10%, #1a4a5e 0%, transparent 60%),
    radial-gradient(900px 650px at 100% 0%, #244b2b 0%, transparent 55%),
    linear-gradient(135deg, var(--bg-1), var(--bg-2) 60%, var(--bg-3));
}

.aura {
  position: fixed;
  width: 54vmax;
  height: 54vmax;
  right: -18vmax;
  top: -18vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 200, 87, 0.22), rgba(255, 200, 87, 0) 65%);
  pointer-events: none;
  z-index: 0;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(circle at center, black 22%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 6vw 0.7rem;
  position: relative;
  z-index: 3;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.11em;
  font-size: 0.82rem;
}

.nav-links {
  display: flex;
  gap: 1.1rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

main {
  position: relative;
  z-index: 2;
}

.hero {
  width: min(1050px, 92vw);
  margin: 4vh auto 0;
  animation: fade-in 0.8s ease;
}

.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  color: var(--muted);
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  margin: 0;
}

h1 {
  margin: 0.55rem 0 1rem;
  line-height: 1.08;
  font-size: clamp(2.1rem, 6.2vw, 4.6rem);
  max-width: 14ch;
}

.lead {
  color: var(--muted);
  max-width: 64ch;
  line-height: 1.7;
  font-size: 1.02rem;
}

.cta-row {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  border-radius: 999px;
  padding: 0.68rem 1.1rem;
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #142534;
  background: var(--accent);
  box-shadow: 0 10px 30px rgba(255, 200, 87, 0.35);
}

.btn-secondary {
  color: var(--text);
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
}

.stats-strip {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.stats-strip div {
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  padding: 0.9rem 1rem;
}

.stats-strip strong {
  display: block;
  font-size: 1rem;
}

.stats-strip span {
  color: var(--muted);
  font-size: 0.85rem;
}

.panel {
  width: min(1050px, 92vw);
  margin: 2.4rem auto 0;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: rgba(5, 15, 23, 0.46);
  backdrop-filter: blur(3px);
  padding: 1.4rem;
}

.panel h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 3.4vw, 2.1rem);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  border: 1px solid var(--stroke);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(4px);
  border-radius: 14px;
  padding: 1.05rem;
  animation: rise 0.7s ease both;
}

.card:nth-child(2) { animation-delay: 0.12s; }
.card:nth-child(3) { animation-delay: 0.24s; }

.card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
}

.card p {
  margin: 0;
  line-height: 1.6;
  color: #d4e3ef;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.2rem;
  align-items: start;
}

.lead-alt {
  color: var(--muted);
  line-height: 1.65;
}

.stack-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.stack-list li {
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  color: #d8e5f1;
  background: rgba(255, 255, 255, 0.03);
}

.stack-list span {
  color: var(--accent-2);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
}

.footer {
  display: flex;
  justify-content: space-between;
  padding: 2rem 6vw 2rem;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
}

.notfound main {
  min-height: 100vh;
  display: grid;
  place-content: center;
  gap: 0.8rem;
  text-align: center;
  padding: 1.5rem;
}

.notfound h1 {
  margin: 0;
  font-size: clamp(3rem, 10vw, 6rem);
}

.notfound a {
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 920px) {
  .nav-links { display: none; }
  .stats-strip { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .footer { flex-direction: column; gap: 0.5rem; }
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}
