/* ============================================
   SHAMBA NETWORK — Main Stylesheet
   Glass UI Dark Theme + Web3 Aesthetic
   ============================================ */

/* === CSS Custom Properties === */
:root {
  /* Brand Colors */
  --purple-primary: #6C3AED;
  --purple-secondary: #8B5CF6;
  --purple-light: #C4B5FD;
  --purple-glow: rgba(108, 58, 237, 0.4);
  --navy-dark: #1E1B4B;
  --bg-deep: #0F0B2E;
  --bg-deeper: #0A0720;
  --green-accent: #10B981;
  --green-dark: #059669;
  --green-glow: rgba(16, 185, 129, 0.3);
  --white: #F8FAFC;
  --white-muted: #CBD5E1;
  --white-dim: #94A3B8;

  /* Glass UI */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-bg-hover: rgba(255, 255, 255, 0.08);
  --glass-bg-strong: rgba(255, 255, 255, 0.10);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-hover: rgba(255, 255, 255, 0.20);
  --glass-blur: blur(16px) saturate(180%);

  /* Gradients */
  --gradient-purple: linear-gradient(135deg, #6C3AED 0%, #8B5CF6 50%, #C4B5FD 100%);
  --gradient-green: linear-gradient(135deg, #059669 0%, #10B981 100%);
  --gradient-purple-green: linear-gradient(135deg, #6C3AED 0%, #10B981 100%);
  --gradient-bg: linear-gradient(135deg, #0F0B2E 0%, #1E1B4B 50%, #0F0B2E 100%);
  --gradient-mesh: radial-gradient(ellipse at 20% 50%, rgba(108, 58, 237, 0.15) 0%, transparent 50%),
                   radial-gradient(ellipse at 80% 20%, rgba(16, 185, 129, 0.10) 0%, transparent 50%),
                   radial-gradient(ellipse at 50% 80%, rgba(139, 92, 246, 0.12) 0%, transparent 50%);

  /* Typography */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --section-padding: 6rem 2rem;
  --container-max: 1200px;
  --card-radius: 16px;
  --btn-radius: 12px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.6s ease;
}

/* === Reset & Base === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: var(--purple-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--green-accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

img.partner-logo,
img.trust-logo-img,
img.blockchain-logo,
img.data-source-logo {
  height: auto;
  display: inline-block;
}

ul, ol {
  list-style: none;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h5 { font-size: 1.125rem; }

p {
  color: var(--white-muted);
  font-size: 1.05rem;
  max-width: 65ch;
}

.text-gradient {
  background: var(--gradient-purple);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-green {
  color: var(--green-accent);
}

.text-center { text-align: center; }
.text-muted { color: var(--white-dim); }

/* === Layout === */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.section {
  padding: var(--section-padding);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header p {
  margin: 1rem auto 0;
  max-width: 600px;
}

.section-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--green-accent);
  margin-bottom: 1rem;
  font-family: var(--font-mono);
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; align-items: stretch; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; align-items: stretch; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; align-items: stretch; }

.grid-2 > .glass-card,
.grid-3 > .glass-card,
.grid-4 > .glass-card {
  display: flex;
  flex-direction: column;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* === Glass UI Components === */
.glass {
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  background-color: var(--glass-bg);
  border-radius: var(--card-radius);
  border: 1px solid var(--glass-border);
  transition: all var(--transition-medium);
}

.glass:hover {
  background-color: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
}

.glass-strong {
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  background-color: var(--glass-bg-strong);
  border-radius: var(--card-radius);
  border: 1px solid var(--glass-border);
}

.glass-card {
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  background-color: var(--glass-bg);
  border-radius: var(--card-radius);
  border: 1px solid var(--glass-border);
  padding: 2rem;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}

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

.glass-card:hover {
  background-color: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(108, 58, 237, 0.15);
}

.glass-gradient-border {
  position: relative;
  background: var(--glass-bg);
  border-radius: var(--card-radius);
  padding: 2rem;
  border: none;
}

.glass-gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--card-radius);
  padding: 1px;
  background: var(--gradient-purple-green);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* === Navigation === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all var(--transition-medium);
}

.navbar.scrolled {
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  background-color: rgba(15, 7, 46, 0.85);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.75rem 0;
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo img {
  height: 56px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--white-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-purple-green);
  transition: width var(--transition-medium);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

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

.nav-cta {
  padding: 0.6rem 1.5rem !important;
  background: var(--gradient-purple) !important;
  border-radius: var(--btn-radius) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  box-shadow: 0 4px 20px var(--purple-glow) !important;
  transform: translateY(-1px);
}

/* Mobile Menu */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
  padding: 4px;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition-fast);
  display: block;
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--btn-radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition-medium);
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-purple);
  color: var(--white);
  box-shadow: 0 4px 15px var(--purple-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--purple-glow);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
}

.btn-secondary:hover {
  border-color: var(--purple-secondary);
  background: rgba(108, 58, 237, 0.1);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-green {
  background: var(--gradient-green);
  color: var(--white);
  box-shadow: 0 4px 15px var(--green-glow);
}

.btn-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--green-glow);
  color: var(--white);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* === Hero Section === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 1;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: rgba(108, 58, 237, 0.2);
  top: -10%;
  right: -5%;
  animation: float-orb 8s ease-in-out infinite;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: rgba(16, 185, 129, 0.15);
  bottom: -5%;
  left: -5%;
  animation: float-orb 10s ease-in-out infinite reverse;
}

.hero-orb-3 {
  width: 300px;
  height: 300px;
  background: rgba(139, 92, 246, 0.15);
  top: 40%;
  left: 30%;
  animation: float-orb 12s ease-in-out infinite 2s;
}

.hero-split {
  position: relative;
  z-index: 2;
  max-width: 800px;
  width: 100%;
  padding: 0 2rem;
}

.hero-content {
  text-align: center;
}

.hero h1 {
  margin-bottom: 1.25rem;
  line-height: 1.1;
}

.hero p {
  font-size: 1.1rem;
  margin: 0 auto 2rem;
  max-width: 600px;
  line-height: 1.7;
  color: var(--white-muted);
}

.hero .btn-group {
  justify-content: center;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat-value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--white-dim);
  margin-top: 0.15rem;
}

/* Trust Bar */
.trust-bar {
  padding: 3rem 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.02);
}

.trust-bar-label {
  text-align: center;
  font-size: 0.85rem;
  color: var(--white-dim);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
}

.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.trust-logo {
  color: var(--white-dim);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  opacity: 0.6;
  transition: opacity var(--transition-medium);
  white-space: nowrap;
}

.trust-logo:hover {
  opacity: 1;
  color: var(--white);
}

/* === Stat Cards === */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  text-align: center;
  padding: 2rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-purple);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--white-dim);
}

/* === Icon Circles === */
.icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  background: rgba(108, 58, 237, 0.15);
  border: 1px solid rgba(108, 58, 237, 0.3);
}

.icon-circle svg {
  width: 28px;
  height: 28px;
  color: var(--purple-light);
}

.icon-circle-green {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.icon-circle-green svg {
  color: var(--green-accent);
}

/* === Steps / How It Works === */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, var(--purple-primary), var(--green-accent));
  opacity: 0.3;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  background: var(--gradient-purple);
  color: var(--white);
  box-shadow: 0 4px 20px var(--purple-glow);
}

.step h4 {
  margin-bottom: 0.75rem;
}

.step p {
  margin: 0 auto;
  font-size: 0.95rem;
}

.step .glass-card {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* === Use Case Tabs === */
.tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  justify-content: center;
}

.tab-btn {
  padding: 0.6rem 1.5rem;
  border-radius: 100px;
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--white-muted);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-btn:hover,
.tab-btn.active {
  background: var(--purple-primary);
  border-color: var(--purple-primary);
  color: var(--white);
  box-shadow: 0 4px 15px var(--purple-glow);
}

.tab-panel {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-panel.active {
  display: block;
}

/* === Timeline === */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--purple-primary), var(--green-accent));
  opacity: 0.3;
}

.timeline-item {
  display: flex;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-item:nth-child(odd) {
  justify-content: flex-start;
  padding-right: calc(50% + 2rem);
}

.timeline-item:nth-child(even) {
  justify-content: flex-end;
  padding-left: calc(50% + 2rem);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--purple-primary);
  border: 3px solid var(--bg-deep);
  box-shadow: 0 0 20px var(--purple-glow);
  z-index: 2;
}

.timeline-dot.active {
  background: var(--green-accent);
  box-shadow: 0 0 20px var(--green-glow);
  width: 20px;
  height: 20px;
}

.timeline-content {
  padding: 1.5rem;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--purple-light);
  margin-bottom: 0.5rem;
}

/* === Partner Grid === */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.partner-card {
  text-align: center;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 140px;
}

.partner-card span {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--white-muted);
  font-size: 0.95rem;
}

/* === Partner & Network Logos === */
.partner-logo {
  width: 48px;
  height: 48px;
  margin-bottom: 0.75rem;
  object-fit: contain;
}

.trust-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.trust-logo-with-img {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.blockchain-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.data-source-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

/* === Media Ticker === */
.media-scroll {
  display: flex;
  gap: 3rem;
  padding: 1rem 0;
  overflow: hidden;
  position: relative;
}

.media-scroll-inner {
  display: flex;
  gap: 3rem;
  animation: scroll-left 30s linear infinite;
  white-space: nowrap;
}

.media-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white-dim);
  opacity: 0.5;
  flex-shrink: 0;
}

/* === Featured Articles === */
.article-card {
  padding: 2rem;
}

.article-card .article-source {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--purple-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.article-card h4 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.article-card .article-link {
  font-size: 0.9rem;
  color: var(--green-accent);
  font-weight: 500;
}

/* === CTA Banner === */
.cta-section {
  background: var(--gradient-mesh);
  position: relative;
}

.cta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.cta-card {
  padding: 2.5rem;
  text-align: center;
}

.cta-card h3 {
  margin-bottom: 1rem;
}

.cta-card p {
  margin: 0 auto 2rem;
}

/* === Forms === */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white-muted);
  margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--btn-radius);
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--purple-secondary);
  box-shadow: 0 0 20px rgba(108, 58, 237, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23CBD5E1' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-select option {
  background: var(--navy-dark);
  color: var(--white);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--purple-primary);
  cursor: pointer;
  margin-top: 2px;
}

.form-error {
  color: #EF4444;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  display: none;
}

.form-input.error,
.form-select.error {
  border-color: #EF4444;
}

/* === Accordion / FAQ === */
.accordion-item {
  border-bottom: 1px solid var(--glass-border);
}

.accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
}

.accordion-btn svg {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-fast);
  flex-shrink: 0;
  color: var(--purple-light);
}

.accordion-item.active .accordion-btn svg {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-medium);
}

.accordion-content p {
  padding-bottom: 1.25rem;
  font-size: 0.95rem;
}

/* === Footer === */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 4rem 0 2rem;
  background: rgba(0, 0, 0, 0.2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--white-dim);
}

.footer-heading {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 1.25rem;
  font-family: var(--font-mono);
}

.footer-links a {
  display: block;
  color: var(--white-dim);
  font-size: 0.9rem;
  padding: 0.3rem 0;
  transition: color var(--transition-fast);
}

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

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--white-muted);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--purple-primary);
  border-color: var(--purple-primary);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-social a svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--white-dim);
}

/* Newsletter in footer */
.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.6rem 1rem;
  border-radius: var(--btn-radius);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
}

.newsletter-form input:focus {
  border-color: var(--purple-secondary);
}

.newsletter-form button {
  padding: 0.6rem 1rem;
  border-radius: var(--btn-radius);
  background: var(--purple-primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.newsletter-form button:hover {
  background: var(--purple-secondary);
}

/* === Badge === */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-purple {
  background: rgba(108, 58, 237, 0.2);
  color: var(--purple-light);
  border: 1px solid rgba(108, 58, 237, 0.3);
}

.badge-green {
  background: rgba(16, 185, 129, 0.2);
  color: var(--green-accent);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-coming-soon {
  background: rgba(251, 191, 36, 0.15);
  color: #FCD34D;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

/* === Code Block === */
.code-block {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  padding: 1.5rem;
  overflow-x: auto;
}

.code-block code {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--purple-light);
  line-height: 1.8;
}

.code-block .code-keyword { color: #C084FC; }
.code-block .code-string { color: #34D399; }
.code-block .code-comment { color: var(--white-dim); }
.code-block .code-function { color: #60A5FA; }

/* === Page Header (inner pages) === */
.page-header {
  padding: 10rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header .hero-bg,
.page-header .hero-grid {
  position: absolute;
  inset: 0;
}

.page-header-content {
  position: relative;
  z-index: 2;
}

.page-header h1 {
  margin-bottom: 1rem;
}

.page-header p {
  margin: 0 auto;
  font-size: 1.15rem;
}

/* === Table === */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.data-table th,
.data-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
}

.data-table th {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--purple-light);
  font-weight: 600;
}

.data-table td {
  font-size: 0.95rem;
  color: var(--white-muted);
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

/* === Case Study Card === */
.case-study {
  padding: 2rem;
}

.case-study-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--green-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.case-study h3 {
  margin-bottom: 1rem;
}

.case-study-metrics {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
  flex-wrap: wrap;
}

.case-study-metric {
  text-align: center;
}

.case-study-metric .value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--purple-light);
}

.case-study-metric .label {
  font-size: 0.8rem;
  color: var(--white-dim);
  margin-top: 0.25rem;
}

/* === Team Member === */
.team-member {
  padding: 2rem;
}

.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--gradient-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
}

.team-role {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--green-accent);
  margin-bottom: 0.5rem;
}

.team-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.team-links a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--white-muted);
  transition: all var(--transition-fast);
}

.team-links a:hover {
  background: var(--purple-primary);
  border-color: var(--purple-primary);
  color: var(--white);
}

/* === Architecture Diagram === */
.arch-diagram {
  padding: 2rem;
  position: relative;
}

.arch-layer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.arch-node {
  padding: 1rem 1.5rem;
  border-radius: 12px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  min-width: 140px;
}

.arch-node-purple {
  background: rgba(108, 58, 237, 0.2);
  border: 1px solid rgba(108, 58, 237, 0.4);
  color: var(--purple-light);
}

.arch-node-green {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--green-accent);
}

.arch-arrow {
  text-align: center;
  font-size: 1.5rem;
  color: var(--white-dim);
  margin: 1rem 0;
}

/* === Donut Chart (CSS) === */
.donut-chart {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  position: relative;
  margin: 0 auto;
}

.donut-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--bg-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* === Map (SVG placeholder) === */
.map-container {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
}

.map-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green-accent);
  box-shadow: 0 0 20px var(--green-glow);
  animation: pulse-dot 2s ease-in-out infinite;
}

.map-dot::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--green-accent);
  opacity: 0.3;
  animation: pulse-ring 2s ease-in-out infinite;
}

/* === Scroll indicator === */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--white-dim);
  font-size: 0.8rem;
  animation: bounce-soft 2s ease-in-out infinite;
}

.scroll-indicator svg {
  width: 24px;
  height: 24px;
}

/* === Visibility for scroll animations === */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Ensure sections with logos are always visible even without JS */
.partner-grid.reveal,
.grid-6.reveal,
.trust-bar.reveal,
#blockchains.reveal,
#data-sources.reveal {
  opacity: 1;
  transform: none;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* === Success message === */
.form-success {
  display: none;
  text-align: center;
  padding: 3rem;
}

.form-success.show {
  display: block;
}

.form-success svg {
  width: 64px;
  height: 64px;
  color: var(--green-accent);
  margin-bottom: 1rem;
}

.form-success h3 {
  margin-bottom: 0.5rem;
}

/* ============================================
   WHITEPAPER PAGE
   ============================================ */

/* Layout: sidebar + content */
.wp-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  max-width: 1300px;
  margin: 0 auto;
  padding: 3rem 2rem 6rem;
  position: relative;
}

/* Sticky sidebar TOC */
.wp-toc {
  position: sticky;
  top: 100px;
  align-self: start;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: 1rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(108, 58, 237, 0.3) transparent;
}

.wp-toc::-webkit-scrollbar {
  width: 4px;
}

.wp-toc::-webkit-scrollbar-thumb {
  background: rgba(108, 58, 237, 0.3);
  border-radius: 4px;
}

.wp-toc-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--white-dim);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--glass-border);
}

.wp-toc-list {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.wp-toc-link {
  display: block;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  color: var(--white-dim);
  border-left: 2px solid transparent;
  border-radius: 0 6px 6px 0;
  transition: all var(--transition-fast);
  line-height: 1.4;
}

.wp-toc-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.03);
  border-left-color: var(--glass-border);
}

.wp-toc-link.active {
  color: var(--purple-light);
  background: rgba(108, 58, 237, 0.1);
  border-left-color: var(--purple-primary);
  font-weight: 500;
}

/* Mobile TOC toggle */
.wp-toc-mobile-toggle {
  display: none;
  width: 100%;
  padding: 1rem 1.25rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.wp-toc-mobile-toggle svg {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-fast);
  color: var(--purple-light);
}

.wp-toc-mobile-toggle.open svg {
  transform: rotate(180deg);
}

/* Content area */
.wp-content {
  min-width: 0;
}

/* Section styling */
.wp-section {
  margin-bottom: 4rem;
  scroll-margin-top: 100px;
}

.wp-section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.wp-section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gradient-purple);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.wp-subsection-title {
  font-size: 1.25rem;
  margin: 2rem 0 1rem;
  color: var(--purple-light);
}

.wp-text {
  color: var(--white-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
  max-width: none;
}

/* Stat highlight cards */
.wp-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.wp-stat-card {
  backdrop-filter: var(--glass-blur);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  padding: 1.5rem;
  text-align: center;
  transition: all var(--transition-medium);
}

.wp-stat-card:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-2px);
}

.wp-stat-value {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--gradient-purple);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.35rem;
}

.wp-stat-label {
  font-size: 0.85rem;
  color: var(--white-dim);
}

/* Tables */
.wp-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: var(--card-radius);
  border: 1px solid var(--glass-border);
}

.wp-table {
  width: 100%;
  border-collapse: collapse;
}

.wp-table th,
.wp-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
  font-size: 0.9rem;
}

.wp-table th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--purple-light);
  font-weight: 600;
  background: rgba(108, 58, 237, 0.08);
  position: sticky;
  top: 0;
}

.wp-table td {
  color: var(--white-muted);
}

.wp-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.wp-table tbody tr:last-child td {
  border-bottom: none;
}

/* Blockquote */
.wp-blockquote {
  border-left: 3px solid var(--purple-primary);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: rgba(108, 58, 237, 0.06);
  border-radius: 0 var(--card-radius) var(--card-radius) 0;
}

.wp-blockquote p {
  color: var(--white-muted);
  font-style: italic;
  font-size: 0.95rem;
  max-width: none;
  margin-bottom: 0;
}

.wp-blockquote cite {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--white-dim);
  font-style: normal;
}

/* Diagrams */
.wp-diagram {
  margin: 2rem 0;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  overflow-x: auto;
}

.wp-diagram-layer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.wp-diagram-node {
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  min-width: 130px;
}

.wp-diagram-node-purple {
  background: rgba(108, 58, 237, 0.15);
  border: 1px solid rgba(108, 58, 237, 0.3);
  color: var(--purple-light);
}

.wp-diagram-node-green {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--green-accent);
}

.wp-diagram-node-blue {
  background: rgba(96, 165, 250, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: #93C5FD;
}

.wp-diagram-arrow {
  text-align: center;
  font-size: 1.25rem;
  color: var(--white-dim);
  padding: 0.25rem 0;
}

.wp-diagram-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white-dim);
  margin-bottom: 0.75rem;
}

/* Timeline (roadmap) */
.wp-timeline {
  position: relative;
  padding-left: 2rem;
  margin: 2rem 0;
}

.wp-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--purple-primary), var(--green-accent));
  opacity: 0.3;
}

.wp-timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 1.5rem;
}

.wp-timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.5rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--purple-primary);
  border: 3px solid var(--bg-deep);
  box-shadow: 0 0 12px var(--purple-glow);
}

.wp-timeline-item.active::before {
  background: var(--green-accent);
  box-shadow: 0 0 12px var(--green-glow);
}

.wp-timeline-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--purple-light);
  margin-bottom: 0.25rem;
}

.wp-timeline-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.35rem;
}

.wp-timeline-desc {
  font-size: 0.9rem;
  color: var(--white-muted);
  line-height: 1.6;
}

/* Team cards */
.wp-team-card {
  backdrop-filter: var(--glass-blur);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  padding: 2rem;
  transition: all var(--transition-medium);
}

.wp-team-card:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
}

.wp-team-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.wp-team-role {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--green-accent);
  margin-bottom: 1rem;
}

.wp-team-bio {
  font-size: 0.9rem;
  color: var(--white-muted);
  line-height: 1.7;
  max-width: none;
}

.wp-team-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.wp-team-links a {
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--white-muted);
  font-size: 0.8rem;
  transition: all var(--transition-fast);
}

.wp-team-links a:hover {
  background: var(--purple-primary);
  border-color: var(--purple-primary);
  color: var(--white);
}

/* Feature / role cards grid */
.wp-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.wp-card {
  backdrop-filter: var(--glass-blur);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  padding: 1.75rem;
  transition: all var(--transition-medium);
}

.wp-card:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-2px);
}

.wp-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.wp-card-text {
  font-size: 0.9rem;
  color: var(--white-muted);
  line-height: 1.6;
  max-width: none;
}

/* Ordered/unordered lists in whitepaper */
.wp-list {
  margin: 1rem 0 1.5rem 1.5rem;
  list-style: none;
}

.wp-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--white-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.wp-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple-secondary);
}

.wp-ordered-list {
  margin: 1rem 0 1.5rem 0;
  counter-reset: wp-counter;
  list-style: none;
}

.wp-ordered-list li {
  position: relative;
  padding-left: 2.25rem;
  margin-bottom: 0.75rem;
  color: var(--white-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  counter-increment: wp-counter;
}

.wp-ordered-list li::before {
  content: counter(wp-counter);
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(108, 58, 237, 0.15);
  color: var(--purple-light);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Code blocks */
.wp-code {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.wp-code code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--purple-light);
  line-height: 1.6;
}

/* Reference list */
.wp-ref-list {
  margin: 1rem 0;
  list-style: none;
  counter-reset: ref-counter;
}

.wp-ref-list li {
  counter-increment: ref-counter;
  padding: 0.5rem 0;
  padding-left: 2.5rem;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.9rem;
  color: var(--white-muted);
  line-height: 1.6;
}

.wp-ref-list li::before {
  content: '[' counter(ref-counter) ']';
  position: absolute;
  left: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--purple-light);
  font-weight: 500;
}

.wp-ref-list li a {
  word-break: break-all;
}

/* Flow steps */
.wp-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 2rem 0;
}

.wp-flow-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  position: relative;
}

.wp-flow-step:first-child {
  border-radius: var(--card-radius) var(--card-radius) 0 0;
}

.wp-flow-step:last-child {
  border-radius: 0 0 var(--card-radius) var(--card-radius);
}

.wp-flow-step:not(:last-child) {
  border-bottom: none;
}

.wp-flow-num {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--gradient-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.wp-flow-text {
  font-size: 0.9rem;
  color: var(--white-muted);
  line-height: 1.6;
  max-width: none;
}

.wp-flow-text strong {
  color: var(--white);
}

/* Version badge in header */
.wp-version-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  background: rgba(108, 58, 237, 0.15);
  border: 1px solid rgba(108, 58, 237, 0.3);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--purple-light);
  margin-top: 1rem;
}

/* Responsive whitepaper */
@media (max-width: 900px) {
  .wp-layout {
    grid-template-columns: 1fr;
    padding: 1.5rem 1rem 4rem;
  }

  .wp-toc {
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
    display: none;
  }

  .wp-toc.mobile-open {
    display: block;
    margin-bottom: 1rem;
  }

  .wp-toc-mobile-toggle {
    display: flex;
  }

  .wp-diagram-layer {
    flex-direction: column;
  }

  .wp-diagram-node {
    min-width: auto;
    width: 100%;
    max-width: 280px;
  }

  .wp-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .wp-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .wp-stat-grid {
    grid-template-columns: 1fr;
  }
}
