:root {
  --p31-bg: #0A0A0F;
  --p31-surface: #12121A;
  --p31-surface-alt: #1C1C2A;
  --p31-border: rgba(255,255,255,0.08);
  --p31-text: #F5F5F7;
  --p31-text-secondary: rgba(245,245,247,0.6);
  --p31-text-tertiary: rgba(245,245,247,0.3);
  --p31-accent: #00F0FF;
  --p31-accent-alt: #A78BFA;
  --p31-success: #34D399;
  --p31-phosphor: #34D399;
  --p31-gold: #FBBF24;
  --p31-glass-bg: rgba(255,255,255,0.04);
  --p31-radius: 24px;
  --p31-radius-btn: 12px;
  --p31-font: 'Inter', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--p31-font);
  font-size: 16px;
  background: var(--p31-bg);
  color: var(--p31-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  line-height: 1.6;
  padding-top: 80px;
}

::selection {
  background: var(--p31-accent);
  color: var(--p31-bg);
}

:focus-visible {
  outline: 2px solid var(--p31-accent);
  outline-offset: 2px;
}

a {
  color: var(--p31-accent);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--p31-border);
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  font-size: 16px;
  font-weight: 700;
  color: var(--p31-accent);
  text-decoration: none;
  letter-spacing: 0.05em;
}
.logo:hover { text-decoration: none; opacity: 0.85; }

.site-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}
.site-nav a {
  color: var(--p31-text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}
.site-nav a:hover { color: var(--p31-accent); text-decoration: none; }

.hero {
  padding: 80px 24px 60px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.hero h1 {
  font-size: clamp(2rem,5vw,3rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--p31-text);
}
.hero p {
  font-size: 18px;
  color: var(--p31-text-secondary);
  margin-bottom: 24px;
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: var(--p31-radius-btn);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.15s;
  cursor: pointer;
  border: none;
  line-height: 1.5;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--p31-accent);
  color: var(--p31-bg);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,240,255,0.3);
}

.btn-outline {
  border: 2px solid var(--p31-border);
  color: var(--p31-text);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--p31-accent);
  color: var(--p31-accent);
}

.btn-secondary {
  background: rgba(167,139,250,0.1);
  color: var(--p31-accent-alt);
  font-weight: 700;
  padding: 8px 24px;
  border-radius: var(--p31-radius-btn);
  border: 1px solid rgba(167,139,250,0.3);
  transition: all 0.2s ease;
}
.btn-secondary:hover {
  background: rgba(167,139,250,0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(167,139,250,0.15);
}

section {
  padding: 56px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
section h2 {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  color: var(--p31-text);
}
section h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--p31-text);
}

.section-alt {
  background: var(--p31-surface);
  border-top: 1px solid var(--p31-border);
  border-bottom: 1px solid var(--p31-border);
  max-width: none;
}
.section-alt-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  border: 1px solid var(--p31-border);
  border-radius: var(--p31-radius);
  padding: 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.card:hover {
  border-color: rgba(0,240,255,0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,240,255,0.1);
}
.card h3 {
  font-size: 16px;
  color: var(--p31-accent);
  margin-bottom: 6px;
}
.card p {
  font-size: 14px;
  color: var(--p31-text-secondary);
  margin-top: 6px;
  line-height: 1.7;
}

.stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin: 32px 0;
}
.stat { text-align: center; }
.stat-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--p31-accent);
  line-height: 1.2;
}
.stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--p31-text-secondary);
  display: block;
  margin-top: 4px;
}

.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 24px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-live {
  background: rgba(52,211,153,0.15);
  color: var(--p31-success);
}
.badge-alpha {
  background: rgba(251,191,36,0.15);
  color: var(--p31-gold);
}

.paper-list { list-style: none; }
.paper-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--p31-border);
  font-size: 14px;
  color: var(--p31-text-secondary);
}
.paper-list a { color: var(--p31-accent); text-decoration: none; font-weight: 600; }
.paper-list a:hover { text-decoration: underline; }

.site-footer {
  border-top: 1px solid var(--p31-border);
  padding: 32px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--p31-text-secondary);
  line-height: 1.8;
}
.site-footer a { color: var(--p31-accent); font-weight: 500; }

/* DATA-SPOONS MOTION SCALING */
[data-spoons="0"] *, [data-spoons="1"] * {
  animation-duration: 0s !important;
  transition-duration: 0s !important;
}
[data-spoons="2"] * {
  animation-duration: 2s !important;
  transition-duration: 0.6s !important;
}
[data-spoons="4"] * {
  animation-duration: 0.75s !important;
  transition-duration: 0.15s !important;
}
[data-spoons="5"] * {
  animation-duration: 0.5s !important;
  transition-duration: 0.1s !important;
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 768px) {
  html { font-size: 16px; }
  .site-header { padding: 12px 16px; }
  .site-nav { gap: 16px; }
  .site-nav a { font-size: 12px; }
  .hero { padding: 48px 16px 40px; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 16px; }
  section { padding: 40px 16px; }
  .grid { grid-template-columns: 1fr; }
  .stats { gap: 20px; }
  .stat-num { font-size: 28px; }
}
