:root {
  color-scheme: dark;
  --black: #050505;
  --dark-grey: #0c0c0c;
  --white: #ffffff;
  --grey: #a3a3a3;
  --dim: #737373;
  --line: #222222;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at center, #101010 0%, var(--black) 100%);
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Topbar Layout */
.topbar {
  background: transparent;
  position: relative;
  z-index: 100;
  padding-top: 32px;
  padding-bottom: 12px;
}

.topbar-container {
  width: min(800px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.topbar-nav {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.topbar-nav a {
  color: var(--grey);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 6px;
  transition: all 0.25s ease;
}

.topbar-nav a:hover {
  color: var(--white);
  background: var(--line);
}

.topbar-nav a.active {
  color: var(--black);
  background: var(--white);
  font-weight: 700;
}

.topbar-nav a#developerPortalLink {
  display: none;
  border: 1px solid var(--white);
}

.topbar-nav a#developerPortalLink.is-visible {
  display: inline-block;
}

/* Scroll Ornament Line */
.topbar-scroll-line {
  width: 100%;
  max-width: 680px;
  margin-top: 12px;
  color: var(--line);
  display: flex;
  justify-content: center;
}

.topbar-scroll-line svg {
  width: 100%;
  height: auto;
  display: block;
  animation: idlePulse 4s ease-in-out 1.6s infinite;
}

.topbar-scroll-line line {
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  animation: drawLine 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.topbar-scroll-line path {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: drawLine 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: 0.6s;
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes idlePulse {
  0%, 100% {
    opacity: 0.5;
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.05));
  }
  50% {
    opacity: 0.85;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.25));
  }
}

main {
  width: min(820px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 56px;
  flex: 1;
}

main header {
  min-height: 20vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  margin-bottom: 42px;
  padding-bottom: 24px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--grey);
  font-size: 0.9rem;
  text-transform: uppercase;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 8vw, 4rem);
  line-height: 1.1;
  letter-spacing: -1px;
}

.intro {
  max-width: 690px;
  margin: 20px 0 0;
  color: var(--grey);
  font-size: 1.08rem;
}

section {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
}

p {
  margin: 0 0 12px;
  color: var(--grey);
}

p:last-child {
  margin-bottom: 0;
}

ul {
  margin: 0;
  padding-left: 20px;
  color: var(--grey);
}

li {
  margin: 5px 0;
}

strong {
  color: var(--white);
  font-weight: 700;
}

footer {
  padding-top: 24px;
  color: var(--dim);
  font-size: 0.92rem;
}

@media (max-width: 640px) {
  .topbar-container {
    flex-direction: column;
    height: auto;
    padding: 12px 0;
    gap: 10px;
  }
  main {
    width: min(100% - 24px, 820px);
    padding-top: 24px;
  }
}
