:root {
  color-scheme: dark;
  --black: #050505;
  --dark-grey: #0c0c0c;
  --white: #ffffff;
  --grey: #a3a3a3;
  --dim: #737373;
  --line: #222222;
  --glow-color: rgba(255, 255, 255, 0.35);
  --glow-spread: 12px;
}

* { 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));
  }
}

/* Hero Section */
.hero-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: min(800px, calc(100% - 32px));
  margin: 0 auto;
  text-align: center;
  padding: 64px 0;
}

.hero-eyebrow {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--dim);
  margin-bottom: 16px;
  font-weight: 700;
}

h1 {
  margin: 0 0 24px;
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  background: linear-gradient(to right, #ffffff, #888888);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--grey);
  max-width: 600px;
  margin: 0 0 54px;
  font-weight: 300;
  line-height: 1.6;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  width: 100%;
  max-width: 700px;
}

.stat-card {
  background: rgba(12, 12, 12, 0.4);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 36px 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  border-color: #444;
  background: rgba(12, 12, 12, 0.6);
  transform: translateY(-4px);
}

.stat-value {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 12px;
  text-shadow: 0 0 5px var(--glow-color), 0 0 12px rgba(255, 255, 255, 0.15);
  transition: text-shadow 0.3s ease, transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-block;
}

.stat-value.pulse {
  transform: scale(1.05);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px var(--glow-color);
}

.stat-label {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--dim);
  font-weight: 600;
  margin: 0;
}

/* Call to Action buttons on landing */
.cta-buttons {
  margin-top: 56px;
  display: flex;
  gap: 16px;
}

.cta-btn {
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.cta-btn-primary {
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--white);
}

.cta-btn-primary:hover {
  background: transparent;
  color: var(--white);
}

.cta-btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--line);
}

.cta-btn-secondary:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.03);
}

footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  text-align: center;
  color: var(--dim);
  font-size: 0.9rem;
  width: min(1000px, calc(100% - 32px));
  margin: 0 auto;
}

@media (max-width: 640px) {
  .topbar-container {
    flex-direction: column;
    height: auto;
    padding: 16px 0;
    gap: 12px;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .cta-buttons {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .cta-btn {
    width: 100%;
    text-align: center;
  }
  .hero-container {
    padding: 40px 0;
  }
}
