:root {
  color-scheme: dark;
  --bg: #0a0e1a;
  --bg-alt: #12182b;
  --text: #e8edf9;
  --muted: #94a3c4;
  --accent: #00d4ff;
  --accent-2: #9d7fff;
  --glass-bg: rgba(18, 24, 43, 0.4);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-highlight: rgba(255, 255, 255, 0.02);
  --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.4);
  --nav-offset: 110px;
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 212, 255, 0.08), transparent),
    radial-gradient(ellipse 60% 50% at 50% 120%, rgba(157, 127, 255, 0.06), transparent),
    linear-gradient(180deg, #0a0e1a 0%, #050812 100%);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  max-width: 1600px;
  margin: 0 auto;
  padding: 32px 64px 80px;
}

/* Section spacing - creates rhythm and breathing room */
section {
  margin-bottom: 140px;
}

section:last-of-type {
  margin-bottom: 0;
}

/* Hero gets extra top space */
.hero {
  margin-bottom: 180px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  padding: 20px 0;
  z-index: 10;
  backdrop-filter: blur(20px) saturate(180%);
  background: rgba(10, 14, 26, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s var(--transition-smooth);
}

.nav::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--glass-highlight),
    transparent
  );
  opacity: 0.3;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s var(--transition-smooth);
}

.brand:hover {
  transform: translateY(-1px);
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  display: grid;
  place-items: center;
  box-shadow: 
    0 8px 16px rgba(0, 212, 255, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.2);
  overflow: hidden;
  position: relative;
  transition: all 0.3s var(--transition-smooth);
}

.logo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s var(--transition-smooth);
}

.brand:hover .logo::after {
  opacity: 1;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav-links {
  display: flex;
  gap: 24px;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  position: relative;
  transition: color 0.3s var(--transition-smooth);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.3s var(--transition-smooth);
  border-radius: 2px;
}

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

.nav-links a:hover::after {
  width: 100%;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.3s var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s var(--transition-smooth);
}

.button:hover::before {
  opacity: 1;
}

.button.primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #0a0e1a;
  box-shadow: 
    0 4px 16px rgba(0, 212, 255, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 24px rgba(0, 212, 255, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.button.ghost {
  color: var(--text);
  border-color: var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
}

.button.ghost:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(18, 24, 43, 0.6);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
  gap: 40px;
  padding: 120px 0 0;
  margin-bottom: 180px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--accent);
}

.hero h1 {
  font-size: clamp(2.8rem, 4vw, 4.2rem);
  line-height: 1.05;
  margin: 16px 0;
}

.lede {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 520px;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-meta {
  display: flex;
  gap: 16px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-visual {
  position: relative;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--transition-smooth);
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
  box-shadow: 
    0 24px 48px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.status-indicator {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00ff88, #00d4ff);
  box-shadow: 
    0 0 12px rgba(0, 255, 136, 0.6),
    0 0 24px rgba(0, 255, 136, 0.3);
  animation: pulse-glow 2s ease-in-out infinite;
  flex-shrink: 0;
  margin-top: 4px;
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

.status-text strong {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.status-text p {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

.metric-item {
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  transition: all 0.3s var(--transition-smooth);
}

.metric-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.metric-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 8px;
}

.metric-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.animated-pulse {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: slide 3s ease-in-out infinite;
}

/* Content sections */
.content-section {
  padding: 0;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 64px;
  align-items: start;
}

.content-block h2 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--text), var(--muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.content-block p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 20px;
}

.info-badge {
  display: flex;
  gap: 12px;
  padding: 20px;
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 16px;
  margin-top: 24px;
}

.info-badge svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.info-badge p {
  font-size: 0.95rem;
  margin: 0;
  color: var(--text);
}

.roles-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 20px 0;
}

.roles-table thead th {
  text-align: left;
  padding: 16px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.roles-table tbody tr {
  transition: background 0.2s var(--transition-smooth);
}

.roles-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.roles-table td {
  padding: 20px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.95rem;
}

.role-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 8px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
}

.highlight {
  color: var(--accent);
}

.table-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px;
  margin-top: 12px;
  background: rgba(157, 127, 255, 0.05);
  border: 1px solid rgba(157, 127, 255, 0.2);
  border-radius: 12px;
  font-size: 0.9rem;
  color: var(--accent-2);
}

.table-footer svg {
  flex-shrink: 0;
}

/* Quick start section */
.quickstart-section {
  padding: 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 80px;
}

.section-header h2 {
  font-size: 3rem;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text), var(--muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.6;
}

.quickstart-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 1400px;
  margin: 0 auto;
}

.feature-card {
  position: relative;
  padding: 40px 32px;
}

.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.03), rgba(157, 127, 255, 0.03));
  border-radius: 24px;
  opacity: 0;
  transition: opacity 0.4s var(--transition-smooth);
  pointer-events: none;
}

.feature-card:hover::after {
  opacity: 1;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--text);
}

.feature-card p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.download-buttons .button {
  flex: 1;
  min-width: 100px;
}

.code-block {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 20px;
  overflow-x: auto;
  margin: 20px 0;
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  font-size: 0.9rem;
  line-height: 1.6;
}

.code-block code {
  color: #e8edf9;
}

.card-footer {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 20px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--transition-smooth);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--glass-highlight),
    transparent
  );
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.card h3,
.card h4 {
  margin-bottom: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.card p {
  color: var(--muted);
  line-height: 1.7;
}

.note {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* Protocol grid section */
.grid {
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Earn grid - 2x2 layout */
.earn-grid {
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 1300px;
  margin: 0 auto;
}

.earn-card {
  position: relative;
  padding: 36px 32px;
  background: linear-gradient(135deg, rgba(10, 14, 26, 0.6), rgba(18, 24, 43, 0.5));
  border-left: 3px solid transparent;
  transition: all 0.3s var(--transition-smooth);
}

.earn-card:nth-child(1) {
  border-left-color: var(--accent);
}

.earn-card:nth-child(2) {
  border-left-color: var(--accent-2);
}

.earn-card:nth-child(3) {
  border-left-color: #22c55e;
}

.earn-card:nth-child(4) {
  border-left-color: #f59e0b;
}

.earn-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.earn-card h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--text);
  font-weight: 600;
}

.earn-card > p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.earn-amount {
  display: inline-block;
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(157, 127, 255, 0.15));
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 16px;
}

.earn-card .note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: rgba(148, 163, 196, 0.7);
  line-height: 1.5;
}

.protocol-card {
  position: relative;
  padding: 40px 32px;
  transition: all 0.3s var(--transition-smooth);
}

.protocol-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.02), rgba(157, 127, 255, 0.02));
  border-radius: 24px;
  opacity: 0;
  transition: opacity 0.4s var(--transition-smooth);
  pointer-events: none;
}

.protocol-card:hover::after {
  opacity: 1;
}

.grid .glass-card h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.grid .glass-card p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Split layout sections */
.split {
  padding: 0;
}

.split-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 64px;
  max-width: 1400px;
  margin: 0 auto;
}

.intent-content {
  max-width: 1200px;
  margin: 0 auto;
}

.intent-card {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 48px;
  padding: 48px;
  align-items: center;
}

.intent-section h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.intent-section p {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--muted);
}

.intent-divider {
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(0, 212, 255, 0.3),
    transparent
  );
  align-self: stretch;
}

.split-content > div h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.split-content > div > p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 24px;
}

/* Inline code blocks for steps */
.inline-code {
  margin: 16px 0 0 0;
  padding: 20px 24px;
  background: rgba(0, 0, 0, 0.6);
  border-left: 2px solid rgba(0, 212, 255, 0.3);
  font-size: 0.95rem;
  line-height: 1.7;
}

.step-note {
  margin: 12px 0 0 0;
  font-size: 0.92rem;
  color: rgba(148, 163, 196, 0.8);
  font-style: italic;
  line-height: 1.6;
}

.split h2 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  line-height: 1.2;
}

.split p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 20px;
}

/* Bulleted lists */
.bullets {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.bullets li {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--muted);
  line-height: 1.6;
}

.bullets li:last-child {
  border-bottom: none;
}

.bullets strong {
  color: var(--accent);
  font-weight: 600;
}

/* Job spec list */
.job-spec-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 32px;
}

.job-spec-item {
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.job-spec-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.job-spec-item strong {
  display: block;
  color: var(--accent);
  font-size: 1.15rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.job-spec-item p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0;
}

/* Terminal styling */
.terminal-wrapper {
  background: rgba(10, 14, 26, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.terminal-header {
  background: rgba(20, 24, 36, 0.9);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-buttons {
  display: flex;
  gap: 8px;
}

.terminal-buttons span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.terminal-buttons span:nth-child(1) {
  background: #ff5f56;
}

.terminal-buttons span:nth-child(2) {
  background: #ffbd2e;
}

.terminal-buttons span:nth-child(3) {
  background: #27c93f;
}

.terminal-title {
  flex: 1;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono', monospace;
}

.terminal-code {
  background: transparent !important;
  margin: 0;
  padding: 24px;
  border-radius: 0;
}

.terminal-prompt {
  color: var(--accent);
  margin-right: 8px;
  user-select: none;
}

/* Numbered steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 40px 0;
}

.steps li {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px 0;
  color: var(--muted);
  line-height: 1.8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.steps li:last-child {
  border-bottom: none;
}

.steps li > div {
  display: flex;
  align-items: center;
  gap: 20px;
}

.steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 12px;
  color: #0a0e1a;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

/* Diagram visualization */
.diagram {
  padding: 60px 40px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: center;
  justify-content: center;
}

.diagram .row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.diagram .pill {
  padding: 18px 32px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 100px;
  color: var(--accent);
  font-weight: 600;
  font-size: 1.05rem;
  white-space: nowrap;
}

.diagram .arrow {
  color: var(--accent);
  font-size: 1.8rem;
  opacity: 0.6;
}

.diagram .row.subtle .pill {
  background: rgba(157, 127, 255, 0.1);
  border-color: rgba(157, 127, 255, 0.3);
  color: var(--accent-2);
}

.diagram .row.subtle .arrow {
  color: var(--accent-2);
}

/* Download/Build section */
.download {
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 64px;
  max-width: 1200px;
  margin: 0 auto;
}

.download > div:first-child {
  max-width: 580px;
}

.download h2 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}

.download p {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.download .code {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 6px;
  color: var(--accent);
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  font-size: 0.9em;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.download-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.code-card {
  padding: 28px;
  transition: all 0.3s var(--transition-smooth);
}

.code-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.12);
}

.download-list h4 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--text);
  font-weight: 600;
}

.code-card .code-block {
  margin: 0;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* CTA / Binaries section */
.cta {
  padding: 0;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.cta h2 {
  font-size: 3rem;
  margin-bottom: 16px;
}

.cta > p {
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 48px;
}

.cta-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.cta-box > div {
  padding: 32px 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  transition: all 0.3s var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.cta-box > div:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.cta-box span {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.cta-box strong {
  font-size: 1.2rem;
  color: var(--text);
  font-weight: 700;
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
}

/* Glassy modifier for cards */
.glassy {
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(180%);
}

/* Footer */
.footer {
  margin-top: 160px;
  padding: 56px 0;
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
}

.footer strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--text);
}

.footer p {
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
  .page {
    padding: 24px 20px 60px;
  }

  .nav-links {
    display: none;
  }
  
  .hero {
    grid-template-columns: 1fr;
    padding: 48px 0;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .section-grid,
  .split,
  .download {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .split-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .grid,
  .earn-grid {
    grid-template-columns: 1fr;
  }
  
  .cta h2 {
    font-size: 2rem;
  }
  
  .footer {
    flex-direction: column;
    text-align: center;
  }
}

.bullets {
  margin-top: 14px;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}

.bullets li {
  margin-bottom: 10px;
}

.bullets strong {
  color: var(--accent);
  font-size: 1.1rem;
  display: block;
  margin-bottom: 4px;
}

pre {
  margin-top: 16px;
  padding: 20px 22px;
  border-radius: 16px;
  background: rgba(10, 14, 26, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  overflow-x: auto;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

pre code {
  font-family: "SF Mono", "Menlo", "Monaco", "Consolas", "Liberation Mono", "Courier New", monospace;
  font-size: 0.9rem;
  color: var(--text);
  white-space: pre;
  line-height: 1.6;
}

.roles table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 0.95rem;
}

.roles th,
.roles td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--stroke);
  text-align: left;
  vertical-align: top;
}

.roles th {
  color: var(--text);
  font-weight: 700;
}

.roles td {
  color: var(--muted);
}

.split h2 {
  font-size: 2.1rem;
  margin-bottom: 16px;
}

.steps {
  list-style: none;
  margin-top: 24px;
  display: grid;
  gap: 16px;
}

.steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-right: 10px;
  border-radius: 10px;
  background: rgba(108, 242, 255, 0.1);
  color: var(--accent);
  font-weight: 700;
}

.diagram {
  border-radius: 24px;
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.05) 0%,
    rgba(157, 127, 255, 0.08) 100%
  );
  backdrop-filter: blur(16px);
  padding: 36px;
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}

.diagram::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
}

.diagram .row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.diagram .row.subtle {
  opacity: 0.6;
}

.pill {
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  font-weight: 500;
  transition: all 0.3s var(--transition-smooth);
}

.pill:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.arrow {
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 300;
}

.onboard {
  margin: 80px 0 40px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  margin-bottom: 24px;
}

.section-head p {
  color: var(--muted);
  max-width: 460px;
}

.onboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.glassy {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
}

.glassy ol {
  margin-top: 18px;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.9;
}

.code {
  font-family: "SF Mono", "Menlo", "Monaco", "Consolas", monospace;
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 10px;
  border-radius: 6px;
  color: var(--text);
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.download {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 70px 0;
}

.download-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.download-list {
  display: grid;
  gap: 16px;
}

.cta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
  gap: 24px;
  padding: 32px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(108, 242, 255, 0.15), rgba(185, 131, 255, 0.15));
  border: 1px solid var(--stroke);
}

.cta-box {
  display: grid;
  gap: 12px;
}

.cta-box div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(5, 7, 14, 0.6);
  border: 1px solid var(--stroke);
}

.footer {
  margin-top: 80px;
  padding-top: 30px;
  border-top: 1px solid var(--stroke);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
}

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

[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: 
    opacity 0.8s var(--transition-smooth),
    transform 0.8s var(--transition-smooth);
}

[data-animate].in-view {
  opacity: 1;
  transform: translateY(0);
}

.hero h1 {
  background: linear-gradient(
    135deg,
    var(--text) 0%,
    rgba(232, 237, 249, 0.7) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

main#top,
main section[id] {
  scroll-margin-top: var(--nav-offset);
}

@media (max-width: 900px) {
  :root {
    --nav-offset: 150px;
  }
  .nav {
    flex-wrap: wrap;
  }
  .nav-links {
    flex-wrap: wrap;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
  [data-animate] {
    opacity: 1;
    transform: none;
    transition: none !important;
  }
}
