/* =============================================================
   Resolved Markets pSEO — Exact Design Token Match
   Mirrors globals.css + app.css from the main frontend
   ============================================================= */

/* Design Tokens */
*, *::before, *::after { box-sizing: border-box; }

:root {
  /* Surfaces (dark tiers) */
  --surface-0: #0a0a0a;
  --surface-1: #111111;
  --surface-2: #161616;
  --surface-3: #1a1a1a;
  --surface-4: #1e1e1e;

  /* Text hierarchy */
  --text-primary: #f0f0f0;
  --text-secondary: #b0b0b0;
  --text-tertiary: #777777;
  --text-muted: #4a4a4a;

  /* Brand */
  --brand: #3fb5a8;
  --brand-hover: #349e93;
  --brand-muted: rgba(63, 181, 168, 0.08);
  --brand-subtle: rgba(63, 181, 168, 0.04);

  /* Semantic */
  --warning: #f5a623;
  --warning-muted: rgba(245, 166, 35, 0.1);

  /* Borders */
  --border-subtle: #131313;
  --border-default: #1a1a1a;
  --border-emphasis: #2a2a2a;
  --border-strong: #333333;

  /* Typography */
  --font-sans: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
  --font-mono: 'SF Mono', 'Consolas', 'Fira Code', monospace;

  --font-size-xs: 0.6875rem;
  --font-size-sm: 0.75rem;
  --font-size-base: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;

  --line-height-tight: 1.15;
  --line-height-snug: 1.35;
  --line-height-normal: 1.55;
  --line-height-relaxed: 1.7;

  /* Spacing (8px grid) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-2xl: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);

  /* Animation */
  --duration-fast: 150ms;
  --duration-normal: 200ms;
  --duration-slow: 300ms;
  --easing-default: cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-Index */
  --z-sticky: 10;

  /* Base */
  font-family: var(--font-sans);
  line-height: var(--line-height-normal);
  font-weight: var(--font-weight-normal);
  color-scheme: dark;
  color: var(--text-secondary);
  background-color: var(--surface-0);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body { margin: 0; min-height: 100vh; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--surface-3); }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: var(--radius-sm); }
::-webkit-scrollbar-thumb:hover { background: var(--text-tertiary); }


/* =============================================================
   Keyframe Animations
   ============================================================= */
@keyframes pulse {
  from { opacity: 0.5; }
  to   { opacity: 1; box-shadow: 0 0 10px var(--brand); }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(10px, -15px) scale(1.05); }
  66% { transform: translate(-8px, 8px) scale(0.95); }
}


/* =============================================================
   Container
   ============================================================= */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}


/* =============================================================
   Global Navigation — matches .global-nav-* from app.css
   ============================================================= */
.global-nav {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-default);
  padding: 0 var(--space-10);
}

.global-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: var(--space-4);
}

.global-nav-left {
  display: flex;
  align-items: center;
}

.global-nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  padding: var(--space-1) 0;
}

.global-nav-logo:hover { text-decoration: none; }

.global-nav-logo-img {
  height: 28px;
  width: auto;
  border-radius: var(--radius-sm);
}

.global-nav-logo-text {
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-md);
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.global-nav-center {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.global-nav-link {
  color: var(--text-tertiary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: color var(--duration-fast), background var(--duration-fast);
}

.global-nav-link:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
  text-decoration: none;
}

.global-nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.global-nav-btn {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  transition: all var(--duration-fast);
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
}

.global-nav-btn:hover {
  color: var(--text-primary);
  border-color: var(--text-tertiary);
  text-decoration: none;
}


/* =============================================================
   Buttons — matches .btn-primary / .btn-ghost from app.css
   ============================================================= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 2rem;
  background: var(--brand);
  color: #000;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-base);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--duration-fast) var(--easing-default);
  min-height: 44px;
}

.btn-primary:hover {
  opacity: 0.85;
  transform: translateY(-1px);
  text-decoration: none;
  color: #000;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.8rem;
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-base);
  text-decoration: none;
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--easing-default),
              color var(--duration-fast) var(--easing-default);
  min-height: 44px;
}

.btn-ghost:hover {
  border-color: var(--text-tertiary);
  color: var(--text-secondary);
  text-decoration: none;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: var(--font-size-md);
}


/* =============================================================
   Section Headings — matches .section-label / .section-title
   ============================================================= */
.section-label {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand);
  margin-bottom: 0.75rem;
  position: relative;
  display: inline-block;
}

.section-label::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--brand), transparent);
  opacity: 0.3;
}

.section-title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-extrabold);
  color: var(--text-primary);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-sub {
  font-size: var(--font-size-md);
  color: var(--text-tertiary);
  line-height: 1.6;
  margin: 0 0 2.5rem;
  max-width: 700px;
}


/* =============================================================
   Hero Section
   ============================================================= */
.hero {
  padding: var(--space-12) 0 var(--space-16);
  border-bottom: 1px solid var(--border-default);
  position: relative;
  overflow: hidden;
}

/* Floating orb background effect */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.06;
  pointer-events: none;
}

.hero::before {
  background: var(--brand);
  top: -100px;
  right: -50px;
  animation: orbFloat 15s ease-in-out infinite;
}

.hero::after {
  background: #9945ff;
  bottom: -80px;
  left: -60px;
  animation: orbFloat 18s ease-in-out infinite reverse;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: var(--space-6);
}

.dot {
  width: 10px;
  height: 10px;
  background: var(--brand);
  border-radius: 50%;
  animation: pulse 1.5s infinite alternate;
}

.hero h1 {
  font-size: clamp(var(--font-size-3xl), 5vw, var(--font-size-4xl));
  font-weight: var(--font-weight-extrabold);
  line-height: var(--line-height-tight);
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-5);
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: var(--font-size-md);
  line-height: var(--line-height-relaxed);
  color: var(--text-tertiary);
  max-width: 680px;
  margin: 0 0 var(--space-8);
}

.hero-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}


/* =============================================================
   Breadcrumbs
   ============================================================= */
.breadcrumbs {
  margin-bottom: var(--space-5);
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

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

.breadcrumbs a:hover { color: var(--brand); text-decoration: none; }

.breadcrumbs .sep {
  margin: 0 var(--space-2);
  color: var(--border-emphasis);
}


/* =============================================================
   Stats Bar — shimmer line effect from app.css
   ============================================================= */
.stats-bar {
  padding: var(--space-12) 0;
  border-bottom: 1px solid var(--border-default);
  background: var(--surface-1);
  position: relative;
}

/* Shimmer line across top */
.stats-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand), #9945ff, #f7931a, transparent);
  animation: shimmer 4s linear infinite;
  background-size: 200% 100%;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.stat-item {
  text-align: center;
  padding: var(--space-6) var(--space-4);
  background: var(--surface-2);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  transition: border-color var(--duration-normal) var(--easing-default);
}

.stat-item:hover { border-color: var(--border-emphasis); }

.stat-number {
  display: block;
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-extrabold);
  font-family: var(--font-mono);
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-1);
}

.stat-label {
  display: block;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}


/* =============================================================
   Content Sections
   ============================================================= */
.section {
  padding: var(--space-16) 0;
  border-bottom: 1px solid var(--border-default);
}

.section-alt { background: var(--surface-1); }

/* Content blocks (paragraphs) */
.content-block p {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
  max-width: 780px;
  margin-bottom: var(--space-4);
}

p {
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
  line-height: var(--line-height-relaxed);
}


/* =============================================================
   Challenges / Pain Points — Card Grid
   ============================================================= */
.challenges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
  gap: var(--space-5);
}

.challenge-card {
  background: var(--surface-2);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: border-color var(--duration-normal) var(--easing-default);
  position: relative;
}

/* Hover glow line at top — matches .asset-card-v2::before */
.challenge-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background: linear-gradient(90deg, transparent, var(--warning), transparent);
  opacity: 0;
  transition: opacity var(--duration-slow) var(--easing-default);
}

.challenge-card:hover { border-color: var(--border-emphasis); }
.challenge-card:hover::before { opacity: 1; }

.challenge-card .card-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-lg);
  background: var(--warning-muted);
  color: var(--warning);
  font-family: var(--font-mono);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-base);
  margin-bottom: var(--space-4);
}

.challenge-card h3 {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin: 0 0 var(--space-3);
}

.challenge-card p {
  font-size: var(--font-size-base);
  color: var(--text-tertiary);
  margin: 0;
  line-height: var(--line-height-normal);
}


/* =============================================================
   Benefits — Numbered List (01, 02, 03 pattern)
   ============================================================= */
.benefits-list {
  display: flex;
  flex-direction: column;
}

.benefit-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: var(--space-5);
  padding: var(--space-8) 0;
  border-bottom: 1px solid var(--border-default);
  align-items: start;
}

.benefit-item:last-child { border-bottom: none; }

.benefit-num {
  font-family: var(--font-mono);
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--border-emphasis);
  line-height: 1;
  padding-top: var(--space-1);
}

.benefit-content h3 {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin: 0 0 var(--space-2);
}

.benefit-content p {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  margin: 0;
  line-height: var(--line-height-relaxed);
}


/* =============================================================
   Use Cases — Numbered Cards
   ============================================================= */
.use-cases-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.use-case-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  background: var(--surface-2);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  transition: border-color var(--duration-normal) var(--easing-default);
}

.use-case-item:hover { border-color: var(--border-emphasis); }

.use-case-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--brand-muted);
  color: var(--brand);
  font-family: var(--font-mono);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.use-case-text {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  line-height: var(--line-height-normal);
}


/* =============================================================
   Features / Services — Grid Cards
   ============================================================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-4);
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-6);
  background: var(--surface-2);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  transition: border-color var(--duration-normal) var(--easing-default);
}

.feature-card:hover { border-color: var(--border-emphasis); }

.feature-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--brand);
}

.feature-text {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--text-secondary);
  line-height: var(--line-height-snug);
}


/* =============================================================
   Quickstart Steps
   ============================================================= */
.quickstart-steps {
  display: flex;
  flex-direction: column;
}

.quickstart-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--space-4);
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--border-default);
  align-items: start;
}

.quickstart-step:last-child { border-bottom: none; }

.step-num {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 2px solid var(--brand);
  color: var(--brand);
  font-family: var(--font-mono);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-base);
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-content {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
}

.step-content code {
  display: inline-block;
  background: var(--surface-3);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: var(--font-size-sm);
  color: var(--brand);
  margin-top: var(--space-1);
  word-break: break-all;
}


/* =============================================================
   Applications Grid
   ============================================================= */
.applications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-4);
}

.application-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--surface-2);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  transition: border-color var(--duration-normal) var(--easing-default);
}

.application-item:hover { border-color: var(--border-emphasis); }

.application-check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--brand);
}

.application-text {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  line-height: var(--line-height-snug);
}


/* =============================================================
   Value Propositions
   ============================================================= */
.value-props {
  list-style: none;
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
}

.value-props li {
  padding: var(--space-5) 0;
  padding-left: 28px;
  position: relative;
  border-bottom: 1px solid var(--border-default);
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  line-height: var(--line-height-normal);
}

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

.value-props li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 22px;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%233fb5a8'%3E%3Cpath d='M8 0a8 8 0 110 16A8 8 0 018 0zm3.28 5.22a.75.75 0 00-1.06 0L7 8.44 5.78 7.22a.75.75 0 00-1.06 1.06l1.75 1.75a.75.75 0 001.06 0l3.75-3.75a.75.75 0 000-1.06z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}


/* =============================================================
   FAQ — Accordion
   ============================================================= */
.faq-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.faq-item {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-3);
  overflow: hidden;
  background: var(--surface-2);
  transition: border-color var(--duration-normal) var(--easing-default);
}

.faq-item:hover { border-color: var(--border-emphasis); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  cursor: pointer;
  user-select: none;
}

.faq-question::after {
  content: '+';
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-normal);
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform var(--duration-slow) var(--easing-default);
}

.faq-item.open .faq-question::after {
  content: '\2212';
  color: var(--brand);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 var(--space-6);
  font-size: var(--font-size-base);
  color: var(--text-tertiary);
  line-height: var(--line-height-relaxed);
}

.faq-item.open .faq-answer {
  max-height: 600px;
  padding: 0 var(--space-6) var(--space-6);
}


/* =============================================================
   Related Links
   ============================================================= */
.related {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-3);
}

.related a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--surface-2);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  color: var(--text-secondary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  transition: all var(--duration-normal) var(--easing-default);
  text-decoration: none;
}

.related a::before {
  content: '\2192';
  color: var(--brand);
  font-size: var(--font-size-md);
  flex-shrink: 0;
}

.related a:hover {
  background: var(--surface-3);
  border-color: var(--border-emphasis);
  color: var(--text-primary);
  text-decoration: none;
}


/* =============================================================
   CTA Section
   ============================================================= */
.cta {
  padding: var(--space-20) 0;
  border-bottom: 1px solid var(--border-default);
}

.cta-card {
  text-align: center;
  padding: var(--space-16) var(--space-10);
  background: var(--surface-1);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-2xl);
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

/* Gradient border glow on hover — mask-composite trick from app.css */
.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-2xl);
  padding: 1px;
  background: linear-gradient(135deg, rgba(63,181,168,0.2), rgba(153,69,255,0.15), transparent 60%);
  -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;
  opacity: 0;
  transition: opacity var(--duration-normal) var(--easing-default);
  pointer-events: none;
}

.cta-card:hover::before { opacity: 1; }

.cta-card .section-label { margin-bottom: var(--space-4); }

.cta-card .section-title {
  font-size: clamp(var(--font-size-xl), 3vw, var(--font-size-2xl));
  margin-bottom: var(--space-3);
}

.cta-card p {
  font-size: var(--font-size-md);
  color: var(--text-muted);
  margin-bottom: var(--space-8);
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}


/* =============================================================
   Footer
   ============================================================= */
.footer {
  padding: var(--space-10) 0;
  background: var(--surface-0);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border-default);
  margin-bottom: var(--space-6);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-base);
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  gap: var(--space-6);
}

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

.footer-links a:hover { color: var(--text-secondary); text-decoration: none; }

.footer-bottom { text-align: center; }

.footer-bottom p {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin: 0;
}


/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 768px) {
  .global-nav-center { display: none; }
  .global-nav-logo-text { display: none; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .challenges-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .applications-grid { grid-template-columns: 1fr; }

  .benefit-item {
    grid-template-columns: 48px 1fr;
    gap: var(--space-3);
  }

  .benefit-num { font-size: var(--font-size-2xl); }

  .hero { padding: var(--space-8) 0 var(--space-12); }
  .section { padding: var(--space-12) 0; }

  .section-title { font-size: var(--font-size-2xl); }

  .cta-card { padding: var(--space-10) var(--space-6); }

  .footer-inner {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }

  .footer-links { flex-wrap: wrap; justify-content: center; }
  .related { grid-template-columns: 1fr; }

  .quickstart-step {
    grid-template-columns: 40px 1fr;
    gap: var(--space-3);
  }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: var(--space-3); }
  .stat-item { padding: var(--space-4) var(--space-3); }
  .stat-number { font-size: var(--font-size-xl); }

  .hero h1 { font-size: var(--font-size-2xl); }
  .section-title { font-size: var(--font-size-xl); }

  .hero-actions { flex-direction: column; }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost { width: 100%; justify-content: center; }
}


/* =============================================================
   ============================================================
   LANDING-PAGE PARITY STYLES
   New sections that mirror the React landing page UI exactly:
   ticker bar, hero w/ depth chart, stats v2, category showcase,
   data preview, coverage cards, why-visual, quickstart cards,
   landing-footer.
   ============================================================
   ============================================================= */

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(63,181,168,0.6); }
  50%      { box-shadow: 0 0 0 6px rgba(63,181,168,0); }
}

.landing { background: var(--surface-0); color: var(--text-secondary); }

/* ============== Section inner wrapper ============== */
.section-inner,
.assets-inner,
.coverage-inner,
.features-inner,
.quickstart-inner,
.data-preview-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  position: relative;
}

/* ============== Ticker Bar ============== */
.ticker-bar {
  position: sticky;
  top: 0;
  z-index: 11;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-default);
  overflow: hidden;
  padding: 8px 0;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerScroll 60s linear infinite;
}

.ticker-set {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: var(--space-6);
  padding-right: var(--space-6);
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-xs);
  white-space: nowrap;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

.ticker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ticker-sym {
  font-weight: var(--font-weight-bold);
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

.ticker-price,
.ticker-label {
  color: var(--text-muted);
}

/* ============== Hero v2 (two-column with depth chart) ============== */
.hero {
  padding: var(--space-16) var(--space-6) var(--space-20);
  border-bottom: 1px solid var(--border-default);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--space-12);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text { max-width: 640px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px;
  border: 1px solid rgba(63,181,168,0.25);
  background: rgba(63,181,168,0.06);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: var(--font-weight-bold);
  color: var(--brand);
  margin-bottom: var(--space-5);
}
.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--brand);
  border-radius: 50%;
  animation: pulseGlow 2s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(var(--font-size-3xl), 4.5vw, var(--font-size-4xl));
  font-weight: var(--font-weight-extrabold);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 var(--space-5);
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--text-primary), #c0c0c0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-accent {
  background: linear-gradient(135deg, var(--brand), #9945ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: var(--font-size-md);
  line-height: 1.7;
  color: var(--text-tertiary);
  margin: 0 0 var(--space-8);
}

/* Depth-chart card */
.hero-viz {
  display: flex;
  justify-content: center;
}

.viz-card {
  width: 100%;
  max-width: 460px;
  background: var(--surface-2);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-2xl);
  padding: var(--space-5);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.viz-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-2xl);
  padding: 1px;
  background: linear-gradient(135deg, rgba(63,181,168,0.4), rgba(153,69,255,0.25), transparent 70%);
  -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;
}

.viz-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
}

.viz-label {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand);
  font-weight: var(--font-weight-bold);
}

.viz-pair {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.depth-svg,
.depth-canvas {
  width: 100%;
  height: 220px;
  display: block;
  border-radius: var(--radius-md);
  background: var(--surface-1);
  border: 1px solid var(--border-default);
}

.viz-legend {
  display: flex;
  gap: var(--space-5);
  margin-top: var(--space-4);
  justify-content: center;
}
.viz-leg-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-xs);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.viz-leg-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
}
.viz-bid .viz-leg-dot { background: #3fb5a8; }
.viz-ask .viz-leg-dot { background: #ff6b6b; }


/* ============== Stats Bar v2 ============== */
.stats-bar {
  padding: var(--space-12) var(--space-6);
  border-bottom: 1px solid var(--border-default);
  background: var(--surface-1);
  position: relative;
  overflow: hidden;
}

.stats-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.stat-block {
  text-align: center;
  min-width: 140px;
  padding: var(--space-3) var(--space-4);
}

.stat-val {
  display: block;
  font-size: clamp(var(--font-size-2xl), 4vw, var(--font-size-3xl));
  font-weight: var(--font-weight-extrabold);
  font-family: var(--font-mono);
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1;
}

.stat-glow {
  background: linear-gradient(135deg, #fff, var(--brand));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-lbl {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: var(--font-weight-medium);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-default);
}

.stats-bar-glow {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 100px;
  background: radial-gradient(ellipse at center, rgba(63,181,168,0.12), transparent 70%);
  pointer-events: none;
}


/* ============== Assets / About Section ============== */
.assets-section {
  padding: var(--space-16) 0;
  border-bottom: 1px solid var(--border-default);
  position: relative;
}
.assets-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}


/* ============== Category Showcase ============== */
.category-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-8);
  position: relative;
}

.category-card {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: border-color var(--duration-normal), transform var(--duration-normal);
  overflow: hidden;
}
.category-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cat-accent, var(--brand)), transparent);
  opacity: 0.4;
}
.category-card:hover {
  border-color: var(--cat-accent, var(--brand-emphasis));
  transform: translateY(-2px);
}

.category-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}

.category-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-card-badge {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
}

.category-card-name {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin: 0 0 var(--space-2);
}

.category-card-desc {
  font-size: var(--font-size-sm);
  line-height: 1.55;
  color: var(--text-tertiary);
  margin: 0;
}


/* ============== Data Preview / Schema ============== */
.data-preview-section {
  padding: var(--space-16) 0;
  background: var(--surface-1);
  border-bottom: 1px solid var(--border-default);
}

.data-preview-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.data-table-card,
.data-schema-card {
  background: var(--surface-2);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.data-table-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  background: var(--surface-3);
  border-bottom: 1px solid var(--border-default);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}
.terminal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
}
.terminal-dots span:nth-child(1) { background: #ff5f56; }
.terminal-dots span:nth-child(2) { background: #ffbd2e; }
.terminal-dots span:nth-child(3) { background: #27c93f; }

.dt-label {
  font-family: var(--font-mono);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  flex: 1;
}

.dt-count {
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

.data-table-wrap {
  overflow-x: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
}
.data-table th,
.data-table td {
  text-align: left;
  padding: 10px var(--space-4);
  border-bottom: 1px solid var(--border-default);
  color: var(--text-tertiary);
}
.data-table th {
  font-weight: var(--font-weight-bold);
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.06em;
}
.dt-side-up {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: rgba(63,181,168,0.12);
  color: var(--brand);
  font-weight: var(--font-weight-bold);
}
.dt-bid { color: #3fb5a8; }
.dt-ask { color: #ff6b6b; }

.schema-rows {
  padding: var(--space-3) 0;
}
.schema-row {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 1fr;
  gap: var(--space-3);
  align-items: center;
  padding: 8px var(--space-5);
  border-bottom: 1px solid var(--border-default);
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
}
.schema-row:last-child { border-bottom: none; }
.schema-col {
  color: var(--brand);
  font-weight: var(--font-weight-bold);
  background: transparent;
  padding: 0;
}
.schema-type { color: var(--text-tertiary); }
.schema-ex { color: var(--text-muted); text-align: right; }


/* ============== Coverage ============== */
.coverage-section {
  padding: var(--space-16) 0;
  border-bottom: 1px solid var(--border-default);
  position: relative;
}

.coverage-particles {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(63,181,168,0.06), transparent 40%),
                    radial-gradient(circle at 80% 70%, rgba(153,69,255,0.06), transparent 40%);
  pointer-events: none;
}

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-8);
  position: relative;
}

.coverage-card {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: border-color var(--duration-normal);
  overflow: hidden;
}
.coverage-card:hover { border-color: var(--border-emphasis); }
.coverage-card-accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(63,181,168,0.4), transparent);
}

.coverage-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.coverage-card-stat {
  font-size: clamp(var(--font-size-2xl), 3vw, var(--font-size-3xl));
  font-weight: var(--font-weight-extrabold);
  font-family: var(--font-mono);
  color: var(--text-primary);
  line-height: 1;
}

.coverage-card-label {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: var(--space-2);
  margin-bottom: var(--space-4);
  font-weight: var(--font-weight-medium);
}

.coverage-card-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.coverage-tag {
  font-size: var(--font-size-xs);
  font-family: var(--font-mono);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03);
  color: var(--text-tertiary);
  border: 1px solid var(--border-default);
}
.coverage-meta {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}
.coverage-rate {
  font-size: var(--font-size-xs);
  color: var(--text-tertiary);
  display: block;
  margin-top: 2px;
}
.coverage-rate strong { color: var(--brand); font-weight: var(--font-weight-bold); }


/* ============== Why This Data — two-column with visual ============== */
.features-section {
  padding: var(--space-16) 0;
  background: var(--surface-1);
  border-bottom: 1px solid var(--border-default);
}

.why-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--space-10);
  margin-top: var(--space-8);
  align-items: start;
}

.why-points { display: flex; flex-direction: column; }

.why-visual { position: relative; }

.why-orb {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(63,181,168,0.2), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
  animation: orbFloat 16s ease-in-out infinite;
}

.why-visual-card {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}

.why-visual-header {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-default);
}

.why-visual-items { display: flex; flex-direction: column; gap: var(--space-3); }

.why-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}
.why-item-check {
  font-weight: var(--font-weight-bold);
  flex-shrink: 0;
  width: 16px;
  text-align: center;
}


/* ============== Quickstart Cards ============== */
.quickstart-section {
  padding: var(--space-16) 0;
  border-bottom: 1px solid var(--border-default);
  position: relative;
}

.qs-code-bg {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(135deg, rgba(63,181,168,0.025) 0 1px, transparent 1px 14px);
  pointer-events: none;
  opacity: 0.5;
}

.qs-progress-bar {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), #9945ff, #f7931a, transparent);
  margin: var(--space-6) 0 var(--space-8);
  border-radius: var(--radius-full);
}

.quickstart-cards {
  display: flex;
  align-items: stretch;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: center;
}

.qs-card {
  flex: 1 1 260px;
  max-width: 320px;
  background: var(--surface-2);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  position: relative;
  transition: border-color var(--duration-normal), transform var(--duration-normal);
}
.qs-card:hover {
  border-color: var(--border-emphasis);
  transform: translateY(-2px);
}

.qs-card-number {
  position: absolute;
  top: -16px;
  left: var(--space-6);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-3);
  border: 2px solid var(--brand);
  color: var(--brand);
  font-family: var(--font-mono);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-sm);
}
.qs-step-ring { box-shadow: 0 0 0 4px rgba(63,181,168,0.08); }

.qs-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: var(--space-4) 0 var(--space-4);
}

.qs-card h3 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin: 0 0 var(--space-2);
}
.qs-card p {
  font-size: var(--font-size-sm);
  line-height: 1.6;
  color: var(--text-tertiary);
  margin: 0 0 var(--space-5);
}

.qs-card-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 16px;
  background: rgba(63,181,168,0.1);
  border: 1px solid rgba(63,181,168,0.3);
  border-radius: var(--radius-md);
  color: var(--brand);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--duration-fast);
}
.qs-card-btn:hover {
  background: rgba(63,181,168,0.18);
  text-decoration: none;
}

.qs-card-connector {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.qs-card-connector svg { display: block; }

.qs-code-mini {
  background: var(--surface-3);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brand);
  word-break: break-all;
}
.qs-code-mini code { background: transparent; padding: 0; color: inherit; }


/* ============== Landing Footer v2 ============== */
.landing-footer {
  padding: var(--space-16) var(--space-6) var(--space-8);
  background: var(--surface-1);
  border-top: 1px solid var(--border-default);
  position: relative;
}

.footer-gradient-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand), #9945ff, #f7931a, transparent);
}

.footer-inner-v2 {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.4fr;
  gap: var(--space-8);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-logo-lockup {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.footer-logo-img {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
}
.footer-logo-text {
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-md);
  color: var(--text-primary);
}

.footer-tagline {
  font-size: var(--font-size-sm);
  line-height: 1.65;
  color: var(--text-tertiary);
  max-width: 360px;
  margin: 0;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-col h4 {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: var(--font-weight-bold);
  margin: 0 0 var(--space-2);
}

.footer-col a,
.footer-col span {
  font-size: var(--font-size-sm);
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color var(--duration-fast);
}
.footer-col a:hover {
  color: var(--brand);
  text-decoration: none;
}

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

.footer-bottom {
  max-width: 1200px;
  margin: var(--space-10) auto 0;
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-default);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}
.footer-bottom a { color: var(--text-tertiary); text-decoration: none; }
.footer-bottom a:hover { color: var(--brand); }

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.footer-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  animation: pulseGlow 2s ease-in-out infinite;
}


/* ============== Responsive: landing additions ============== */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .hero-viz { order: -1; }
  .data-preview-panels { grid-template-columns: 1fr; }
  .why-layout { grid-template-columns: 1fr; }
  .footer-inner-v2 {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .stats-bar-inner { flex-direction: column; }
  .stat-divider { width: 60%; height: 1px; }
  .quickstart-cards { flex-direction: column; align-items: stretch; }
  .qs-card-connector { transform: rotate(90deg); align-self: center; }
  .qs-card { max-width: none; }
  .footer-inner-v2 { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: var(--space-3); text-align: center; }
}


/* =============================================================
   ============================================================
   BLOG / ARTICLE LAYOUT
   Long-form, professional reading experience layered on top of
   the landing-page chrome.
   ============================================================
   ============================================================= */

/* Hero mesh background — soft radial gradients à la the React landing */
.hero { position: relative; }
.hero-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 80% at 12% 8%,  rgba(63,181,168,0.10), transparent 60%),
    radial-gradient(50% 60% at 90% 0%,  rgba(153,69,255,0.10), transparent 60%),
    radial-gradient(45% 65% at 70% 100%, rgba(247,147,26,0.06), transparent 60%);
}
.hero-grid { position: relative; z-index: 1; }


/* ============== Article shell + grid (sidebar TOC + content) ============== */
.article {
  position: relative;
  background: var(--surface-0);
  padding: var(--space-16) 0 var(--space-12);
  border-bottom: 1px solid var(--border-default);
}
.article-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(40% 50% at 0% 30%,  rgba(63,181,168,0.06), transparent 60%),
    radial-gradient(40% 50% at 100% 70%, rgba(153,69,255,0.05), transparent 60%);
  mask-image: linear-gradient(180deg, #000 0%, #000 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 80%, transparent 100%);
}

.article-shell {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: var(--space-10);
  align-items: start;
}

.article-content {
  min-width: 0; /* allow children to shrink inside the grid track */
  display: flex;
  flex-direction: column;
}

.integration-list {
  list-style: none;
  padding: 0;
  margin: var(--space-5) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.integration-list li {
  position: relative;
  padding: 10px 14px 10px 36px;
  background: var(--surface-2);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.55;
}
.integration-list li::before {
  content: '\203A';
  position: absolute;
  left: 14px;
  top: 8px;
  color: var(--brand);
  font-weight: var(--font-weight-bold);
  font-size: 18px;
}
.integration-list code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brand);
  background: rgba(63,181,168,0.08);
  padding: 1px 6px;
  border-radius: var(--radius-sm);
}

/* Article meta strip spans both columns */
.article-meta {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: var(--font-size-xs);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-bottom: var(--space-5);
  margin-bottom: var(--space-2);
  border-bottom: 1px solid var(--border-default);
}
.article-meta-sep { color: var(--text-muted); }
.article-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(63,181,168,0.1);
  border: 1px solid rgba(63,181,168,0.25);
  color: var(--tag-accent, var(--brand));
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.1em;
  border-color: color-mix(in srgb, var(--tag-accent, #3fb5a8) 35%, transparent);
  background: color-mix(in srgb, var(--tag-accent, #3fb5a8) 12%, transparent);
}

/* ============== Sidebar Table of Contents ============== */
.toc {
  position: sticky;
  top: 100px;
  align-self: start;
  background: var(--surface-1);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  font-size: var(--font-size-sm);
  max-height: calc(100vh - 130px);
  overflow-y: auto;
}
.toc-label {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border-default);
}
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.toc-list li {
  counter-increment: toc;
  position: relative;
}
.toc-list a {
  display: block;
  padding: 6px 8px 6px 26px;
  color: var(--text-tertiary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background var(--duration-fast), color var(--duration-fast);
  line-height: 1.4;
}
.toc-list a::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 8px;
  top: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}
.toc-list a:hover {
  background: rgba(255,255,255,0.03);
  color: var(--text-primary);
  text-decoration: none;
}


/* ============== Article sections ============== */
.article-section {
  padding: var(--space-10) 0 var(--space-8);
  border-bottom: 1px solid var(--border-subtle);
  scroll-margin-top: 100px;
}
.article-section:first-of-type { padding-top: var(--space-6); }
.article-section:last-child { border-bottom: none; }

.article-section .section-label {
  margin-bottom: var(--space-3);
}
.article-section .section-title {
  font-size: clamp(var(--font-size-xl), 2.4vw, var(--font-size-3xl));
  margin-bottom: var(--space-4);
}
.article-section .section-sub {
  margin-bottom: var(--space-6);
  max-width: 680px;
  font-size: var(--font-size-base);
  color: var(--text-tertiary);
  line-height: 1.7;
}


/* ============== Prose typography ============== */
.prose {
  max-width: 720px;
  font-size: var(--font-size-base);
  line-height: 1.75;
  color: var(--text-secondary);
}
.prose p {
  margin: 0 0 var(--space-5);
  color: var(--text-secondary);
  line-height: 1.75;
}
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text-primary); font-weight: var(--font-weight-semibold); }
.prose code {
  font-family: var(--font-mono);
  background: var(--surface-2);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 2px 6px;
  font-size: 0.85em;
  color: var(--brand);
}


/* ============== Callouts ============== */
.callout {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-xl);
  background: var(--surface-2);
  border: 1px solid var(--border-default);
  margin: var(--space-6) 0 0;
  position: relative;
  overflow: hidden;
}
.callout::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 3px;
  background: var(--brand);
}
.callout-brand::before { background: linear-gradient(180deg, var(--brand), #9945ff); }
.callout-icon {
  font-size: var(--font-size-xl);
  flex-shrink: 0;
  line-height: 1.2;
}
.callout-body {
  font-size: var(--font-size-base);
  line-height: 1.7;
  color: var(--text-secondary);
}
.callout-body strong { color: var(--text-primary); }


/* ============== Article-scoped section overrides ============== */
/* Inside .article-shell, the assets-grid-bg / mesh / inner wrappers
   shouldn't double up. Make these full-bleed-inside-shell instead. */
.article-section .challenges-grid,
.article-section .features-grid,
.article-section .applications-grid,
.article-section .use-cases-list,
.article-section .data-preview-panels,
.article-section .coverage-grid,
.article-section .quickstart-cards,
.article-section .category-showcase,
.article-section .why-layout {
  margin-top: var(--space-6);
}

/* Tighter card density inside article shell */
.article-section .challenges-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.article-section .category-showcase { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.article-section .coverage-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }


/* ============== Ticker price styling ============== */
.ticker-price {
  font-family: var(--font-mono);
  color: var(--brand);
  font-weight: var(--font-weight-bold);
}


/* ============== Active TOC link via :target ============== */
.article-section:target .section-title {
  color: var(--brand);
}


/* ============== Responsive: blog layout ============== */
@media (max-width: 960px) {
  .article-shell {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .toc {
    position: relative;
    top: auto;
    max-height: none;
  }
  .toc-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
  }
}

@media (max-width: 640px) {
  .toc-list { grid-template-columns: 1fr; }
  .article { padding: var(--space-10) 0 var(--space-8); }
  .article-section { padding: var(--space-8) 0 var(--space-6); }
}


