/**
 * 0G Decision Tree - Animated Horizontal Flow
 *
 * Layout: Horizontal left-to-right tree
 * Animations: Flowing dots on bezier curves, node transitions
 * Interactions: Click to expand, fade inactive branches
 */

/* ═══════════════════════════════════════════════════════════════════════════
   Regola Pro Font Faces
   ═══════════════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Regola Pro';
  src: url('fonts/RegolaProLight.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Regola Pro';
  src: url('fonts/Regola Pro Book.woff2') format('woff2');
  font-weight: 350;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Regola Pro';
  src: url('fonts/RegolaProRegular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Regola Pro';
  src: url('fonts/RegolaProMedium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Regola Pro';
  src: url('fonts/Regola Pro Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Design Tokens (0G Brand)
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* Typography */
  --font-primary: 'Regola Pro', system-ui, -apple-system, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;

  /* Font Sizes */
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 32px;
  --text-4xl: 40px;

  /* Colors - 0G Purple Brand Palette */
  --color-purple-50: #FBF5FF;
  --color-purple-100: #F4E6FF;
  --color-purple-200: #E9CCFF;
  --color-purple-300: #D9A3FF;
  --color-purple-400: #C673FF;
  --color-purple-500: #B042FF;
  --color-purple-600: #9C1DFF;
  --color-purple-700: #9200E1;
  --color-purple-800: #6F00AD;
  --color-purple-900: #54007D;

  /* Neutrals */
  --color-white: #ffffff;
  --color-black: #000000;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;

  /* Spacing */
  --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;

  /* Tree Layout */
  --tree-node-width: 280px;
  --tree-node-height: 88px;
  --tree-horizontal-gap: 100px;
  --tree-vertical-gap: 28px;
  --tree-line-width: 2px;

  /* Animation */
  --transition-fast: 150ms;
  --transition-base: 300ms;
  --transition-slow: 500ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Navbar */
  --navbar-bg: rgba(0, 0, 0, 0.15);
  --navbar-radius: 21.5px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Reset & Base
   ═══════════════════════════════════════════════════════════════════════════ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-normal);
  line-height: 1.5;
  color: var(--color-gray-900);
  background: #F7F6F4;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Navigation (matches 0G Research site — floating glass pill)
   ═══════════════════════════════════════════════════════════════════════════ */

.nav {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  padding: 12px 16px 0;
  transition: colors 300ms;
}

@media (min-width: 768px) {
  .nav { padding: 16px 24px 0; }
}
@media (min-width: 1024px) {
  .nav { padding: 16px 32px 0; }
}

/* Left spacer to balance right CTA on large screens */
.nav_spacer {
  display: none;
}

/* The pill container */
.nav_pill {
  margin: 0 auto;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 8px 8px 8px 16px;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  transition: all 300ms;
}

@media (min-width: 768px) {
  .nav_pill {
    width: auto;
    border-radius: 20px;
    padding: 12px 12px 12px 20px;
  }
}

/* Logo */
.nav_logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.nav_logo img,
.nav_logo svg {
  width: 64px;
  height: 31px;
}

/* Desktop nav links */
.nav_links {
  display: none;
  align-items: center;
  gap: 20px;
}

@media (min-width: 768px) {
  .nav_links { display: flex; }
}

/* Individual nav link with dropdown support */
.nav_item {
  position: relative;
}

.nav_item > a,
.nav_item > button {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  text-transform: capitalize;
  color: #0A0D12;
  transition: opacity 300ms, color 300ms;
  background: none;
  border: none;
  font-family: var(--font-primary);
  cursor: pointer;
}

.nav_item > a:hover,
.nav_item > button:hover {
  opacity: 0.8;
}

.nav_item > button svg {
  width: 14px;
  height: 14px;
  opacity: 0.5;
}

/* Dropdown menu */
.nav_dropdown {
  position: absolute;
  left: 50%;
  top: 100%;
  padding-top: 16px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: all 300ms ease-out;
}

.nav_item:hover .nav_dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav_dropdown_inner {
  transform: translateX(-36%);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  background: var(--color-white);
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
}

.nav_dropdown_inner a {
  display: block;
  white-space: nowrap;
  padding: 12px 12px;
  font-size: 16px;
  text-transform: capitalize;
  color: #0A0D12;
  border-radius: 8px;
  transition: background 300ms;
}

.nav_dropdown_inner a:hover {
  background: #e3c1ff;
}

/* Desktop CTA buttons (inside pill) */
.nav_ctas {
  display: none;
  align-items: center;
  gap: 8px;
}

@media (min-width: 768px) {
  .nav_ctas { display: flex; }
}

.nav_btn_outline {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: transparent;
  padding: 14px 18px;
  font-size: 16px;
  font-family: var(--font-primary);
  font-weight: var(--font-weight-medium);
  text-transform: capitalize;
  color: #0A0D12;
  transition: all 300ms;
}

.nav_btn_outline:hover {
  border-color: #b75fff;
  background: #f3e6fe;
  color: #0A0D12;
}

.nav_btn_solid {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: none;
  background: #0A0D12;
  padding: 14px 18px;
  font-size: 16px;
  font-family: var(--font-primary);
  font-weight: var(--font-weight-medium);
  text-transform: capitalize;
  color: var(--color-white);
  transition: all 300ms;
}

.nav_btn_solid:hover {
  background: #9200E1;
  color: var(--color-white);
}

/* ── Nav dark state (when overlapping dark sections like footer) ── */
.nav--dark .nav_pill {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
}

.nav--dark .nav_logo svg path {
  fill: white;
}

.nav--dark .nav_item > a,
.nav--dark .nav_item > button {
  color: var(--color-white);
}

.nav--dark .nav_btn_outline {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
}

.nav--dark .nav_btn_outline:hover {
  border-color: #b75fff;
  background: #f3e6fe;
  color: #0A0D12;
}

.nav--dark .nav_btn_solid {
  background: var(--color-white);
  color: #0A0D12;
}

.nav--dark .nav_btn_solid:hover {
  background: #9200E1;
  color: var(--color-white);
}

.nav--dark .nav_bell {
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.08);
}

/* Right side: Bell + Apply (outside pill, large screens only) */
.nav_right {
  display: none;
  align-items: center;
  gap: 12px;
}

@media (min-width: 1024px) {
  .nav_right { display: none; }
}

.nav_bell {
  display: flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  color: var(--color-white);
  transition: opacity 300ms;
  cursor: pointer;
}

.nav_bell:hover {
  opacity: 0.8;
}

.nav_apply {
  border-radius: 16px;
  padding: 14px 18px;
  font-size: 16px;
  font-family: var(--font-primary);
  font-weight: var(--font-weight-medium);
  color: #0A0D12;
  background: var(--color-white);
  transition: all 300ms;
}

.nav_apply:hover {
  background: #9200E1;
  color: var(--color-white);
}

/* Mobile: Apply + Hamburger */
.nav_mobile {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (min-width: 768px) {
  .nav_mobile { display: none; }
}

.nav_mobile_apply {
  border-radius: 10px;
  background: #0A0D12;
  padding: 6px 12px;
  font-size: var(--text-sm);
  font-family: var(--font-primary);
  font-weight: var(--font-weight-medium);
  color: var(--color-white);
  transition: background 100ms;
}

.nav_mobile_apply:hover {
  background: #9200E1;
}

.nav_hamburger {
  display: flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #0A0D12;
  transition: background 100ms;
}

.nav_hamburger:hover {
  background: rgba(0, 0, 0, 0.05);
}

.nav_hamburger svg {
  width: 20px;
  height: 20px;
}

/* Mobile menu overlay */
.nav_mobile_menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 199;
  background: var(--color-white);
  padding: 80px 24px 32px;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.nav_mobile_menu.is-open {
  display: flex;
}

.nav_mobile_menu a {
  display: block;
  padding: 8px 0;
  font-size: 28px;
  font-weight: 300;
  line-height: 1.2;
  color: #0A0D12;
}

.nav_mobile_menu .nav_mobile_sub a {
  font-size: 20px;
  font-weight: 300;
  color: #555;
  padding: 6px 0 6px 4px;
}

.nav_mobile_menu .nav_mobile_sub a:hover {
  color: #0A0D12;
}


/* ═══════════════════════════════════════════════════════════════════════════
   Hero Content (inside tree section)
   ═══════════════════════════════════════════════════════════════════════════ */

.hero_content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding-bottom: 0;
  animation: heroFadeIn 0.8s ease-out;
}

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

.hero_badge {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.1em;
  color: var(--color-purple-700);
  background: var(--color-purple-50);
  border: 1px solid var(--color-purple-200);
  border-radius: 20px;
  margin-bottom: var(--space-4);
}

.hero_title {
  font-size: clamp(var(--text-3xl), 5vw, 48px);
  font-weight: var(--font-weight-light);
  color: var(--color-gray-900);
  line-height: 1.1;
  margin-bottom: var(--space-4);
}

.hero_subtitle {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-light);
  color: var(--color-gray-500);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Tree Section
   ═══════════════════════════════════════════════════════════════════════════ */

.section_tree {
  min-height: calc(100vh - 250px);
  padding: 80px var(--space-6) 48px;
  background: #F7F6F4;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.section_tree_center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.section_tree_center.is-hidden {
  display: none;
}

/* Main layout wrapper - split view */
.tree_layout {
  display: none;
  gap: var(--space-8);
  max-width: 1400px;
  width: 100%;
  min-height: 500px;
  position: relative;
}

.tree_layout.is-expanded {
  display: flex;
}

/* Left side - Tree */
.tree_left {
  flex: 0 0 auto;
  width: 100%;
  transition: width 0.5s var(--ease-out), flex 0.5s var(--ease-out);
  position: relative;
}

/* Right side - Detail Panel */
.tree_right {
  flex: 0 0 0;
  width: 0;
  opacity: 0;
  overflow: hidden;
  transition: flex 0.5s var(--ease-out), width 0.5s var(--ease-out), opacity 0.3s ease;
}

/* When expanded (after first click) - tree takes full width until detail shown */
.tree_layout.is-expanded .tree_left {
  flex: 1;
  width: 100%;
}

.tree_layout.is-expanded .tree_right {
  flex: 0 0 0;
  width: 0;
  opacity: 0;
  display: none;
}

/* When detail is shown (leaf node selected) */
.tree_layout.is-expanded.has-detail .tree_left {
  flex: 0 0 55%;
  width: 55%;
}

.tree_layout.is-expanded.has-detail .tree_right {
  flex: 1;
  width: auto;
  opacity: 1;
  display: block;
}

.tree_container {
  position: relative;
  width: 100%;
  min-height: 500px;
}

/* Back/Reset button */
.tree_back_btn {
  position: absolute;
  top: -10px;
  left: var(--space-4);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-gray-700);
  background: var(--color-white);
  border: 1px solid var(--color-gray-300);
  border-radius: 20px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition:
    opacity var(--transition-base),
    transform var(--transition-base),
    background var(--transition-fast),
    border-color var(--transition-fast);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.tree_back_btn.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.tree_back_btn:hover {
  background: var(--color-gray-50);
  border-color: var(--color-gray-900);
}

.tree_back_btn svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.tree_back_btn:hover svg {
  transform: translateX(-3px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Initial State - Big Centered Cards
   ═══════════════════════════════════════════════════════════════════════════ */

.initial_cards {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: var(--space-6);
  padding: 72px 0;
  transition: opacity 0.4s ease, transform 0.4s var(--ease-out);
}

.initial_cards.is-hidden {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  position: absolute;
  visibility: hidden;
}

.initial_card {
  flex: 0 0 280px;
  min-height: 200px;
  padding: var(--space-8);
  background: var(--color-white);
  border: 2px solid var(--color-gray-200);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  text-align: center;
  transition:
    transform 0.3s var(--ease-out),
    border-color 0.3s,
    box-shadow 0.3s,
    background 0.3s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.initial_card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--color-gray-300);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  background: var(--color-white);
}

.initial_card_icon {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-5);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gray-100);
  border-radius: 20px;
  color: var(--color-gray-500);
  transition: transform 0.3s var(--ease-out), background 0.3s;
}

.initial_card:hover .initial_card_icon {
  transform: scale(1.1);
  background: var(--color-gray-200);
}

.initial_card_icon svg {
  width: 36px;
  height: 36px;
}

.initial_card_text {
  flex: 1;
  min-width: 0;
}

.initial_card_title {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-gray-900);
  margin-bottom: var(--space-2);
}

.initial_card_desc {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
  line-height: 1.5;
}

.initial_card_arrow {
  margin-top: var(--space-4);
  color: var(--color-gray-900);
  transition: transform 0.3s, color 0.3s;
}

.initial_card:hover .initial_card_arrow {
  transform: translateX(4px);
  color: var(--color-black);
}

.initial_card_arrow svg {
  width: 24px;
  height: 24px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Detail Panel (Right Side)
   ═══════════════════════════════════════════════════════════════════════════ */

.detail_panel {
  background: var(--color-white);
  border-radius: 24px;
  box-shadow: none;
  padding: var(--space-5);
  padding-bottom: var(--space-6);
  height: fit-content;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  overflow-x: hidden;
  position: sticky;
  top: 80px;
  scrollbar-width: thin;
  scrollbar-color: var(--color-gray-300) transparent;
}

.detail_panel::-webkit-scrollbar {
  width: 6px;
}

.detail_panel::-webkit-scrollbar-track {
  background: transparent;
}

.detail_panel::-webkit-scrollbar-thumb {
  background: var(--color-gray-300);
  border-radius: 3px;
}

.detail_panel::-webkit-scrollbar-thumb:hover {
  background: var(--color-gray-400);
}

/* Scroll fade gradient at bottom - removed to prevent CTA overlap */
/* Using scroll hint arrow instead */

/* Hide empty state completely - panel should not show until detail selected */
.detail_empty_state {
  display: none;
}

.detail_empty {
  display: none;
}

/* Detail Panel Content */
.detail_content {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.detail_content.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.detail_steps_title {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-gray-700);
  margin-bottom: var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail_header {
  text-align: left;
  margin-bottom: var(--space-3);
  animation: detailFadeIn 0.4s ease-out;
}

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

.detail_icon {
  width: 44px;
  height: 44px;
  margin: 0 0 var(--space-2);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gray-100);
  border-radius: 12px;
  color: var(--color-gray-500);
  box-shadow: none;
}

.detail_icon svg {
  width: 22px;
  height: 22px;
}

.detail_title {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-gray-900);
  margin-bottom: var(--space-1);
}

.detail_description {
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  line-height: 1.6;
}

.detail_warning {
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #f59e0b;
  border-radius: 12px;
  font-size: var(--text-sm);
  color: #78350f;
}

.detail_steps {
  margin: var(--space-3) 0;
  padding: var(--space-3);
  background: var(--color-gray-50);
  border-radius: 12px;
}

.detail_step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-gray-100);
}

.detail_step:last-child {
  border-bottom: none;
}

.detail_step_num {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-gray-500);
  background: var(--color-gray-100);
  border-radius: 50%;
}

.detail_step_text {
  font-size: var(--text-sm);
  color: var(--color-gray-700);
  padding-top: 2px;
}

.detail_meta {
  display: flex;
  justify-content: space-around;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--color-gray-50);
  border-radius: 10px;
  margin-bottom: var(--space-3);
}

.detail_meta_item {
  text-align: center;
}

.detail_meta_label {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  color: var(--color-gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail_meta_value {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-gray-900);
  margin-top: var(--space-1);
}

/* Action Buttons Container */
.detail_actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-gray-200);
}

.detail_cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-4);
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
  background: var(--color-gray-900);
  border-radius: 14px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 5;
}

.detail_cta:hover {
  transform: translateY(-2px);
  background: #9200E1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.detail_cta svg {
  width: 18px;
  height: 18px;
}

/* Close button - hidden on desktop, shown on mobile */
.detail_close_btn {
  display: none;
}

/* Watch How Video Button */
.detail_video_btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-gray-900);
  background: transparent;
  border: 1px solid var(--color-gray-300);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.detail_video_btn:hover {
  background: #f3e6fe;
  color: #0A0D12;
  border-color: #b75fff;
  transform: translateY(-1px);
}

.detail_video_btn svg {
  width: 16px;
  height: 16px;
}

/* Video Modal */
.video_modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.video_modal.is-open {
  display: flex;
}

.video_modal_backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease;
}

.video_modal_content {
  position: relative;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  background: var(--color-gray-900);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5);
  animation: modalSlideIn 0.3s ease;
}

.video_modal_close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  z-index: 10;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}

.video_modal_close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.video_modal_close svg {
  width: 24px;
  height: 24px;
  color: var(--color-white);
}

.video_modal_player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video_modal_player video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Video Placeholder */
.video_placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 400px;
  padding: var(--space-8);
  text-align: center;
  color: var(--color-white);
  background: linear-gradient(135deg, rgba(146, 0, 225, 0.2) 0%, rgba(146, 0, 225, 0.2) 100%);
}

.video_placeholder svg {
  width: 80px;
  height: 80px;
  margin-bottom: var(--space-6);
  color: var(--color-purple-400);
  opacity: 0.8;
}

.video_placeholder h3 {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-3);
  color: var(--color-white);
}

.video_placeholder p {
  font-size: var(--text-base);
  color: var(--color-gray-300);
  line-height: 1.6;
  max-width: 400px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Scroll hint - floating indicator that fades when scrolled */
.detail_scroll_hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  margin: var(--space-3) auto;
  width: fit-content;
  color: var(--color-purple-600);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  background: var(--color-purple-100);
  border: 1px solid var(--color-purple-200);
  border-radius: 20px;
  animation: scrollHintPulse 2s ease-in-out infinite;
  position: relative;
  z-index: 5;
}

.detail_scroll_hint svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
  animation: scrollHintBounce 1.5s ease-in-out infinite;
}

@keyframes scrollHintBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

@keyframes scrollHintPulse {
  0%, 100% {
    opacity: 0.8;
    box-shadow: 0 2px 8px rgba(146, 0, 225, 0.15);
  }
  50% {
    opacity: 1;
    box-shadow: 0 4px 16px rgba(146, 0, 225, 0.25);
  }
}

/* Hide scroll hint when user has scrolled */
.detail_panel.has-scrolled .detail_scroll_hint {
  display: none;
}

/* Also hide if content doesn't overflow */
.detail_panel:not(.is-scrollable) .detail_scroll_hint {
  display: none;
}

/* SVG Layer for Lines */
.tree_svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

/* Nodes Layer */
.tree_nodes {
  position: relative;
  width: 100%;
  height: 100%;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Tree Node Cards
   ═══════════════════════════════════════════════════════════════════════════ */

.tree_node {
  position: absolute;
  width: var(--tree-node-width);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6) var(--space-4) var(--space-4);
  background: var(--color-white);
  border: 2px solid var(--color-gray-200);
  border-radius: 16px;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.04),
    0 1px 2px rgba(0, 0, 0, 0.02);
  cursor: pointer;
  transition:
    transform var(--transition-base) var(--ease-out),
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    opacity var(--transition-slow),
    background var(--transition-base);
  will-change: transform, opacity;
}

.tree_node:hover {
  border-color: var(--color-gray-400);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.1),
    0 4px 12px rgba(0, 0, 0, 0.05);
  transform: scale(1.03) translateY(-2px);
  background: var(--color-white);
}

/* Selected state */
.tree_node.is-selected {
  border-color: var(--color-gray-900);
  background: var(--color-white);
  box-shadow:
    0 0 0 3px rgba(0, 0, 0, 0.08),
    0 8px 24px rgba(0, 0, 0, 0.1);
  animation: selectedPulse 2s ease-in-out infinite;
}

@keyframes selectedPulse {
  0%, 100% {
    box-shadow:
      0 0 0 3px rgba(0, 0, 0, 0.08),
      0 8px 24px rgba(0, 0, 0, 0.1);
  }
  50% {
    box-shadow:
      0 0 0 5px rgba(0, 0, 0, 0.05),
      0 8px 32px rgba(0, 0, 0, 0.12);
  }
}

/* Active path (selected ancestors) */
.tree_node.is-active {
  opacity: 1;
  border-color: var(--color-gray-400);
}

/* Faded state (not on active path) - MORE PROMINENT */
/* Entering animation */
.tree_node.is-entering {
  opacity: 0;
  transform: translateX(40px) scale(0.9);
}

.tree_node.is-visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* Faded MUST come after is-visible to override opacity/transform */
.tree_node.is-visible.is-faded {
  opacity: 0.3;
  filter: grayscale(40%);
  box-shadow: none;
}

.tree_node.is-visible.is-faded:hover {
  opacity: 0.6;
  filter: grayscale(10%);
}

/* Hidden */
.tree_node.is-hidden {
  display: none;
}

/* Node icon */
.tree_node_icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gray-100);
  border-radius: 12px;
  color: var(--color-gray-500);
  transition: transform var(--transition-base), background var(--transition-base);
}

.tree_node:hover .tree_node_icon {
  transform: scale(1.08);
  background: var(--color-gray-200);
}

.tree_node_icon svg {
  width: 24px;
  height: 24px;
}

/* Node content */
.tree_node_content {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.tree_node_label {
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-gray-900);
  line-height: 1.3;
  transition: color var(--transition-base);
}

.tree_node:hover .tree_node_label {
  color: var(--color-gray-900);
}

.tree_node_desc {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
  margin-top: 2px;
  line-height: 1.3;
}

/* Leaf node indicator */
.tree_node.is-leaf::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: var(--color-gray-900);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
  animation: leafPulse 2s ease-in-out infinite;
}

@keyframes leafPulse {
  0%, 100% {
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1);
  }
  50% {
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.3);
    transform: translateY(-50%) scale(1.15);
  }
}

/* Expand indicator for non-leaf nodes */
.tree_node:not(.is-leaf)::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--color-gray-400);
  border-bottom: 2px solid var(--color-gray-400);
  transform: translateY(-50%) rotate(-45deg);
  transition: transform var(--transition-base), border-color var(--transition-base);
}

.tree_node:not(.is-leaf):hover::after {
  border-color: var(--color-purple-500);
  transform: translateY(-50%) rotate(-45deg) translateX(2px);
}

.tree_node.is-selected:not(.is-leaf)::after {
  transform: translateY(-50%) rotate(45deg);
  border-color: var(--color-purple-500);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Connection Lines (SVG)
   ═══════════════════════════════════════════════════════════════════════════ */

.tree_line {
  fill: none;
  stroke: url(#lineGradient);
  stroke-width: 3px;
  stroke-linecap: round;
  opacity: 0;
  transition: opacity var(--transition-base), stroke-width var(--transition-base);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.1));
}

.tree_line.is-visible {
  opacity: 1;
}

.tree_line.is-active {
  stroke-width: 4px;
  filter: drop-shadow(0 3px 12px rgba(0, 0, 0, 0.15));
}

.tree_line.is-faded {
  opacity: 0.1;
  stroke: var(--color-gray-300);
  stroke-width: 2px;
  filter: none;
}

/* Available lines (from selected node to children) - animated */
.tree_line.is-available {
  opacity: 1;
  stroke-width: 3px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.12));
}

.tree_line.is-hidden {
  display: none;
}

/* Line drawing animation */
.tree_line.is-drawing {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawLine 0.6s var(--ease-out) forwards;
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

/* Flowing dot on line */
.flow_dot {
  fill: var(--color-gray-900);
  opacity: 0;
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.3));
}

.flow_dot.is-active {
  opacity: 1;
  animation: dotGlow 1s ease-in-out infinite alternate;
}

/* Flowing dot on available lines (more visible animation) */
.flow_dot.is-available {
  opacity: 1;
  fill: var(--color-gray-700);
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.3));
  animation: dotPulse 0.8s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% {
    r: 4;
    filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.2));
  }
  50% {
    r: 6;
    filter: drop-shadow(0 0 12px rgba(0, 0, 0, 0.4));
  }
}

@keyframes dotGlow {
  from {
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.2));
  }
  to {
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.4));
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Tree Instructions
   ═══════════════════════════════════════════════════════════════════════════ */

.tree_instructions {
  text-align: center;
  margin-top: 0;
  padding: var(--space-4) var(--space-6);
  background: rgba(0, 0, 0, 0.03);
  border-radius: 12px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.tree_instructions p {
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

.tree_instructions p::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--color-purple-400);
  border-radius: 50%;
  animation: instructionPulse 2s ease-in-out infinite;
}

@keyframes instructionPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

.tree_instructions.is-hidden {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Popup / Modal
   ═══════════════════════════════════════════════════════════════════════════ */

.popup_overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--transition-base) var(--ease-out),
    visibility var(--transition-base);
}

.popup_overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.popup_container {
  position: relative;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--color-white);
  border-radius: 28px;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(0, 0, 0, 0.08);
  transform: scale(0.85) translateY(30px);
  opacity: 0;
  transition:
    transform 0.4s var(--ease-out),
    opacity 0.3s ease-out;
}

.popup_overlay.is-open .popup_container {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Custom scrollbar for popup */
.popup_container::-webkit-scrollbar {
  width: 6px;
}

.popup_container::-webkit-scrollbar-track {
  background: transparent;
}

.popup_container::-webkit-scrollbar-thumb {
  background: rgba(146, 0, 225, 0.2);
  border-radius: 3px;
}

.popup_container::-webkit-scrollbar-thumb:hover {
  background: rgba(146, 0, 225, 0.4);
}

.popup_close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-400);
  border-radius: 50%;
  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast);
  z-index: 1;
}

.popup_close:hover {
  background: var(--color-gray-100);
  color: var(--color-gray-700);
  transform: rotate(90deg);
}

.popup_close svg {
  width: 20px;
  height: 20px;
}

.popup_content {
  padding: var(--space-8);
}

/* Popup header */
.popup_header {
  text-align: center;
  margin-bottom: var(--space-6);
  animation: popupFadeIn 0.5s ease-out 0.1s both;
}

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

.popup_icon {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-5);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-purple-100) 0%, var(--color-purple-200) 100%);
  border-radius: 50%;
  color: var(--color-purple-600);
  box-shadow: 0 8px 24px rgba(146, 0, 225, 0.2);
  animation: iconBounce 0.6s ease-out 0.2s both;
}

@keyframes iconBounce {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  60% {
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.popup_icon svg {
  width: 36px;
  height: 36px;
}

.popup_title {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-gray-900);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.popup_description {
  font-size: var(--text-base);
  color: var(--color-gray-600);
  line-height: 1.7;
}

/* Warning banner */
.popup_warning {
  margin-top: var(--space-5);
  padding: var(--space-4);
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #f59e0b;
  border-radius: 12px;
  font-size: var(--text-sm);
  color: #78350f;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  animation: warningShake 0.5s ease-out 0.3s both;
}

@keyframes warningShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

/* Popup steps */
.popup_steps {
  margin: var(--space-6) 0;
  padding: var(--space-5);
  background: var(--color-white);
  border-radius: 16px;
  border: 1px solid rgba(146, 0, 225, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  animation: popupFadeIn 0.5s ease-out 0.2s both;
}

.popup_step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-gray-100);
  transition: background var(--transition-fast);
}

.popup_step:hover {
  background: rgba(146, 0, 225, 0.02);
  margin: 0 calc(var(--space-3) * -1);
  padding-left: var(--space-3);
  padding-right: var(--space-3);
  border-radius: 8px;
}

.popup_step:last-child {
  border-bottom: none;
}

.popup_step_num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-purple-600);
  background: linear-gradient(135deg, var(--color-purple-50) 0%, var(--color-purple-100) 100%);
  border-radius: 50%;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.popup_step:hover .popup_step_num {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(146, 0, 225, 0.2);
}

.popup_step_text {
  font-size: var(--text-sm);
  color: var(--color-gray-700);
  padding-top: 4px;
  line-height: 1.5;
}

/* Popup meta info */
.popup_meta {
  display: flex;
  justify-content: space-around;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--color-gray-50);
  border-radius: 16px;
  margin-bottom: var(--space-6);
  border: 1px solid rgba(146, 0, 225, 0.1);
  animation: popupFadeIn 0.5s ease-out 0.3s both;
}

.popup_meta_item {
  text-align: center;
  flex: 1;
  padding: var(--space-2) 0;
  transition: transform var(--transition-fast);
}

.popup_meta_item:hover {
  transform: translateY(-2px);
}

.popup_meta_label {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  color: var(--color-purple-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-1);
}

.popup_meta_value {
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-gray-900);
}

/* Popup actions */
.popup_actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  animation: popupFadeIn 0.5s ease-out 0.4s both;
}

.popup_cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-purple-600) 0%, var(--color-purple-700) 100%);
  border-radius: 14px;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast);
  box-shadow: 0 4px 16px rgba(146, 0, 225, 0.3);
}

.popup_cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(146, 0, 225, 0.4);
  background: linear-gradient(135deg, var(--color-purple-500) 0%, var(--color-purple-600) 100%);
}

.popup_cta:active {
  transform: translateY(0);
}

.popup_cta svg {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-fast);
}

.popup_cta:hover svg {
  transform: translate(2px, -2px);
}

/* Video placeholder */
.popup_video {
  margin-top: var(--space-6);
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--color-gray-100) 0%, var(--color-gray-200) 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-400);
  cursor: pointer;
  transition: all var(--transition-base);
  border: 2px dashed var(--color-gray-200);
  animation: popupFadeIn 0.5s ease-out 0.5s both;
}

.popup_video:hover {
  background: linear-gradient(135deg, var(--color-purple-50) 0%, var(--color-purple-100) 100%);
  border-color: var(--color-purple-300);
  color: var(--color-purple-500);
}

.popup_video svg {
  width: 56px;
  height: 56px;
  transition: transform var(--transition-base);
}

.popup_video:hover svg {
  transform: scale(1.1);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Footer (matches 0G Research site)
   ═══════════════════════════════════════════════════════════════════════════ */

.footer {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  min-height: 950px;
}

.footer_video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.footer_overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(173,87,210,0.85) 0%, rgba(173,87,210,0.5) 50%, rgba(173,87,210,0) 100%);
}

.footer_inner {
  position: relative;
  z-index: 10;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding: var(--space-16) var(--space-6) 0;
}

.footer_top {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: var(--space-12);
}

.footer_newsletter h3 {
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.2;
  color: var(--color-white);
}

.newsletter_form {
  display: flex;
  align-items: center;
  max-width: 420px;
  margin-top: var(--space-6);
  padding: 4px 4px 4px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.newsletter_input {
  flex: 1;
  padding: 0;
  font-size: var(--text-sm);
  font-family: var(--font-primary);
  color: var(--color-white);
  background: transparent;
  border: none;
  outline: none;
}

.newsletter_input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter_button {
  flex-shrink: 0;
  padding: 10px 20px;
  font-size: var(--text-sm);
  font-family: var(--font-primary);
  font-weight: var(--font-weight-medium);
  color: #0A0D12;
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 2px 20px rgba(255, 255, 255, 0.6);
  transition: background 200ms, color 200ms;
}

.newsletter_button:hover {
  background: #9200E1;
  color: var(--color-white);
}

.footer_copyright {
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
}

.footer_links {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: var(--space-6);
}

.footer_column h4 {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.footer_column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer_column a {
  display: block;
  font-size: 0.9375rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  transition: color 200ms;
}

.footer_column a:hover {
  color: var(--color-white);
}

.footer_socials {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.footer_socials a {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  color: var(--color-white);
  transition: background 100ms;
}

.footer_socials a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.footer_socials svg {
  width: 100%;
  height: 100%;
}

.footer_bottom {
  position: relative;
  z-index: 10;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding: var(--space-12) var(--space-6) var(--space-8);
}

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

.footer_brand_text {
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1;
  color: var(--color-white);
}

.footer_brand_center {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 2px;
}

.footer_brand_paren {
  display: none;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  font-size: 2.5rem;
}

.footer_logo {
  width: 3rem;
  height: auto;
  color: var(--color-white);
}

@media (min-width: 640px) {
  .footer_brand_text {
    font-size: 4rem;
  }
  .footer_brand_center {
    gap: 16px;
    padding-bottom: 8px;
  }
  .footer_logo {
    width: 4rem;
  }
}

@media (min-width: 768px) {
  .footer_brand_paren {
    display: inline;
    font-size: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .footer_inner {
    padding-left: var(--space-8);
    padding-right: var(--space-8);
  }
  .footer_bottom {
    padding: var(--space-16) var(--space-8) var(--space-12);
  }
  .footer_brand_text {
    font-size: 7.5rem;
  }
  .footer_brand_paren {
    font-size: 3.75rem;
  }
  .footer_logo {
    width: 6.5rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════════════════════════ */

/* Tablet & smaller desktops */
@media (max-width: 1024px) {
  .footer_top {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer_links {
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-6) var(--space-6);
  }

  :root {
    --tree-node-width: 240px;
    --tree-horizontal-gap: 80px;
  }
}

/* Tablets */
@media (max-width: 768px) {
  .hero_badge {
    font-size: 10px;
    padding: var(--space-1) var(--space-3);
  }

  .hero_title {
    font-size: var(--text-2xl);
    line-height: 1.2;
  }

  .hero_subtitle {
    font-size: var(--text-base);
  }

  .section_tree {
    padding: 72px var(--space-4) 48px;
  }

  /* ═══════════════════════════════════════════════════════════════════════════
     MOBILE: Initial Cards - Vertical Stack
     ═══════════════════════════════════════════════════════════════════════════ */
  .initial_cards {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-4);
    padding: var(--space-4) 0;
  }

  .initial_card {
    flex: none;
    width: 100%;
    min-height: auto;
    padding: var(--space-5);
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: var(--space-4);
  }

  .initial_card_icon {
    width: 56px;
    height: 56px;
    margin: 0;
    flex-shrink: 0;
    border-radius: 14px;
  }

  .initial_card_icon svg {
    width: 28px;
    height: 28px;
  }

  .initial_card_text {
    flex: 1;
    min-width: 0;
  }

  .initial_card_title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-1);
  }

  .initial_card_desc {
    font-size: var(--text-sm);
    color: var(--color-gray-500);
  }

  .initial_card_arrow {
    margin-top: 0;
    flex-shrink: 0;
  }

  .initial_card_arrow svg {
    width: 20px;
    height: 20px;
  }

  /* ═══════════════════════════════════════════════════════════════════════════
     MOBILE: Tree Layout - Vertical Flow
     ═══════════════════════════════════════════════════════════════════════════ */
  .tree_layout.is-expanded {
    flex-direction: column;
    gap: var(--space-4);
  }

  .tree_layout.is-expanded .tree_left {
    flex: none;
    width: 100%;
  }

  .tree_layout.is-expanded .tree_right {
    flex: none;
    width: 100%;
    display: none;
  }

  .tree_layout.is-expanded.has-detail .tree_left {
    flex: none;
    width: 100%;
  }

  .tree_layout.is-expanded.has-detail .tree_right {
    flex: none;
    width: 100%;
    opacity: 1;
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    max-height: 70vh;
  }

  .tree_container {
    min-height: auto;
    overflow: visible;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--space-4);
    position: relative;
    /* Container for absolutely positioned SVG */
  }

  /* Mobile: Use CSS vars for vertical layout */
  :root {
    --tree-node-width: 100%;
    --tree-horizontal-gap: 0;
    --tree-vertical-gap: var(--space-3);
  }

  /* Mobile: HIDE SVG lines - use CSS-only visual hierarchy instead */
  .tree_svg {
    display: none !important;
  }

  /* Mobile tree nodes - CSS-based tree structure */
  .tree_nodes {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0; /* No gap - we control spacing via margin */
    padding: var(--space-2);
    padding-left: 0;
  }

  /* ═══════════════════════════════════════════════════════════════════════════
     MOBILE: Clean Tree Node Styles with Visual Hierarchy
     ═══════════════════════════════════════════════════════════════════════════ */

  .tree_node {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100%;
    max-width: none;
    padding: var(--space-4);
    margin-bottom: var(--space-3);
    border-radius: 16px;
    transform: none !important;
    min-height: 56px;
    background: var(--color-white);
    border: 2px solid var(--color-gray-200);
  }

  .tree_node_icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .tree_node_icon svg {
    width: 22px;
    height: 22px;
  }

  .tree_node_label {
    font-size: var(--text-base);
  }

  .tree_node_desc {
    font-size: var(--text-sm);
    display: block;
    line-height: 1.4;
  }

  /* Root level (depth 0) - full width, subtle styling */
  .tree_node[data-depth="0"] {
    margin-left: 0;
    width: 100%;
  }

  /* ═══════════════════════════════════════════════════════════════════════════
     MOBILE: Child Nodes with Connector Lines
     Uses a vertical bar on left + indentation for visual hierarchy
     ═══════════════════════════════════════════════════════════════════════════ */

  /* Child nodes - indented with colored left accent */
  .tree_node[data-depth="1"] {
    margin-left: 24px;
    width: calc(100% - 24px);
    border-left: 4px solid var(--color-purple-400);
    border-radius: 4px 16px 16px 4px;
    background: linear-gradient(90deg, var(--color-purple-50) 0%, var(--color-white) 10%);
  }

  .tree_node[data-depth="2"] {
    margin-left: 48px;
    width: calc(100% - 48px);
    border-left: 4px solid var(--color-purple-500);
    border-radius: 4px 16px 16px 4px;
    background: linear-gradient(90deg, var(--color-purple-100) 0%, var(--color-white) 15%);
  }

  .tree_node[data-depth="3"] {
    margin-left: 72px;
    width: calc(100% - 72px);
    border-left: 4px solid var(--color-purple-600);
    border-radius: 4px 16px 16px 4px;
    background: linear-gradient(90deg, var(--color-purple-200) 0%, var(--color-white) 20%);
  }

  /* Horizontal connector line - extends from node to show parent connection */
  .tree_node[data-depth="1"]::before,
  .tree_node[data-depth="2"]::before,
  .tree_node[data-depth="3"]::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    width: 16px;
    height: 2px;
    background: var(--color-purple-400);
    transform: translateY(-50%);
    border-radius: 1px;
  }

  .tree_node[data-depth="2"]::before {
    left: -20px;
    background: var(--color-purple-500);
  }

  .tree_node[data-depth="3"]::before {
    left: -20px;
    background: var(--color-purple-600);
  }

  /* Leaf node indicator - pulsing dot */
  .tree_node.is-leaf {
    padding-right: var(--space-10);
  }

  .tree_node.is-leaf .tree_node_content::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, var(--color-purple-400), var(--color-purple-600));
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(146, 0, 225, 0.5);
    animation: leafPulse 2s ease-in-out infinite;
  }

  /* Non-leaf node indicator - chevron arrow */
  .tree_node:not(.is-leaf) {
    padding-right: var(--space-10);
  }

  .tree_node:not(.is-leaf) .tree_node_content::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--color-gray-400);
    border-bottom: 2px solid var(--color-gray-400);
    transform: translateY(-50%) rotate(-45deg);
  }

  /* Selected parent - chevron rotated down */
  .tree_node.is-selected:not(.is-leaf) .tree_node_content::after {
    transform: translateY(-50%) rotate(45deg);
    border-color: var(--color-purple-500);
  }

  /* Active state - brighter colors */
  .tree_node.is-active[data-depth="1"]::before,
  .tree_node.is-active[data-depth="2"]::before,
  .tree_node.is-active[data-depth="3"]::before {
    background: var(--color-purple-500);
  }

  .tree_node.is-active[data-depth="1"]::after,
  .tree_node.is-active[data-depth="2"]::after,
  .tree_node.is-active[data-depth="3"]::after {
    background: var(--color-purple-500);
  }

  /* Faded siblings - less prominent */
  .tree_node.is-visible.is-faded {
    opacity: 0.5;
  }

  .tree_node.is-faded::before,
  .tree_node.is-faded::after {
    background: var(--color-gray-300) !important;
  }

  .tree_back_btn {
    position: relative;
    top: 0;
    left: 0;
    margin-bottom: var(--space-3);
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    width: auto;
    display: inline-flex;
  }

  .tree_back_btn span {
    display: inline;
  }

  .tree_back_btn.is-visible {
    opacity: 1;
    transform: none;
  }

  .tree_instructions {
    margin: var(--space-4) 0;
    padding: var(--space-3) var(--space-4);
  }

  .tree_instructions p {
    font-size: var(--text-sm);
  }

  /* ═══════════════════════════════════════════════════════════════════════════
     MOBILE: Detail Panel - Bottom Sheet
     ═══════════════════════════════════════════════════════════════════════════ */
  .detail_panel {
    border-radius: 24px 24px 0 0;
    max-height: 70vh;
    padding: var(--space-5);
    padding-top: var(--space-8);
    padding-bottom: var(--space-4);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15);
    position: relative;
    /* Reserve space for sticky buttons at bottom */
    margin-bottom: 0;
  }

  /* Drag handle indicator */
  .detail_panel::before {
    content: '';
    position: absolute;
    top: var(--space-3);
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: var(--color-gray-300);
    border-radius: 2px;
    z-index: 10;
  }

  /* Close button for mobile - shown only on mobile */
  .detail_close_btn {
    display: flex;
    position: absolute;
    top: var(--space-3);
    right: var(--space-4);
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--color-gray-500);
    background: var(--color-gray-100);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s, color 0.2s;
  }

  .detail_close_btn:active {
    background: var(--color-gray-200);
    color: var(--color-gray-700);
  }

  .detail_header {
    margin-bottom: var(--space-4);
    padding-top: var(--space-2);
  }

  .detail_icon {
    width: 52px;
    height: 52px;
    margin-bottom: var(--space-3);
  }

  .detail_icon svg {
    width: 26px;
    height: 26px;
  }

  .detail_title {
    font-size: var(--text-lg);
  }

  .detail_description {
    font-size: var(--text-sm);
  }

  .detail_steps {
    margin: var(--space-4) 0;
    padding: var(--space-3);
  }

  .detail_step {
    padding: var(--space-2) 0;
  }

  .detail_step_num {
    width: 22px;
    height: 22px;
    font-size: 11px;
  }

  .detail_step_text {
    font-size: var(--text-sm);
  }

  .detail_meta {
    padding: var(--space-3);
    margin-bottom: var(--space-4);
    gap: var(--space-2);
  }

  .detail_meta_label {
    font-size: 10px;
  }

  .detail_meta_value {
    font-size: var(--text-sm);
  }

  /* MOBILE: Sticky bottom bar for action buttons */
  .detail_actions {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, var(--color-white) 85%, transparent 100%);
    padding: var(--space-4);
    padding-bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 20px));
    margin: 0 calc(var(--space-5) * -1);
    margin-top: var(--space-4);
    border-top: none;
    z-index: 50;
  }

  .detail_cta {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
    border-radius: 12px;
  }

  .detail_video_btn {
    padding: var(--space-3);
    font-size: var(--text-sm);
  }

  /* Remove old spacer - not needed with sticky buttons */
  .detail_actions::after {
    display: none;
  }

  /* Mobile bottom sheet backdrop */
  .tree_layout.is-expanded.has-detail::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 99;
    animation: fadeIn 0.2s ease;
  }

  .footer_links {
    grid-template-columns: 1.2fr 1fr;
  }

  .footer_copyright {
    display: none;
  }

  .popup_overlay {
    padding: var(--space-4);
    align-items: flex-end;
  }

  .popup_container {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 24px 24px 0 0;
    margin: 0;
  }

  .popup_overlay.is-open .popup_container {
    transform: translateY(0);
  }

  .popup_container:not(.is-open) {
    transform: translateY(100%);
  }

  .popup_content {
    padding: var(--space-5);
  }

  .popup_icon {
    width: 56px;
    height: 56px;
  }

  .popup_icon svg {
    width: 26px;
    height: 26px;
  }

  .popup_title {
    font-size: var(--text-lg);
  }

  .popup_description {
    font-size: var(--text-sm);
  }

  .popup_meta {
    flex-wrap: wrap;
    gap: var(--space-2);
    padding: var(--space-3);
  }

  .popup_meta_item {
    min-width: 70px;
  }

  .popup_cta {
    padding: var(--space-3);
    font-size: var(--text-sm);
  }

  .popup_video {
    margin-top: var(--space-4);
  }

  /* Video modal mobile */
  .video_modal_content {
    width: 95%;
    max-width: none;
    border-radius: 12px;
  }

  .video_placeholder {
    min-height: 250px;
    padding: var(--space-6);
  }

  .video_placeholder svg {
    width: 60px;
    height: 60px;
  }

  .video_placeholder h3 {
    font-size: var(--text-xl);
  }

  .video_placeholder p {
    font-size: var(--text-sm);
  }
}

/* Mobile phones */
@media (max-width: 480px) {
  .hero_title {
    font-size: var(--text-xl);
  }

  .hero_subtitle {
    font-size: var(--text-sm);
  }

  .section_tree {
    padding: 64px var(--space-3) 48px;
  }

  /* Smaller initial cards on phones */
  .initial_cards {
    gap: var(--space-3);
  }

  .initial_card {
    padding: var(--space-4);
    gap: var(--space-3);
  }

  .initial_card_icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .initial_card_icon svg {
    width: 24px;
    height: 24px;
  }

  .initial_card_title {
    font-size: var(--text-base);
  }

  .initial_card_desc {
    font-size: var(--text-xs);
  }

  /* Tree nodes on phones - smaller sizes */
  .tree_nodes {
    gap: 0;
    padding: var(--space-1);
  }

  .tree_node {
    padding: var(--space-3);
    margin-bottom: var(--space-2);
    border-radius: 14px;
  }

  .tree_node_icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .tree_node_icon svg {
    width: 20px;
    height: 20px;
  }

  .tree_node_label {
    font-size: var(--text-sm);
  }

  .tree_node_desc {
    font-size: var(--text-xs);
  }

  /* Smaller indentation on phones */
  .tree_node[data-depth="1"] {
    margin-left: 20px;
    width: calc(100% - 20px);
  }

  .tree_node[data-depth="2"] {
    margin-left: 40px;
    width: calc(100% - 40px);
  }

  .tree_node[data-depth="3"] {
    margin-left: 60px;
    width: calc(100% - 60px);
  }

  /* Adjust connector positions for smaller phones */
  .tree_node[data-depth="1"]::before,
  .tree_node[data-depth="2"]::before,
  .tree_node[data-depth="3"]::before {
    left: -16px;
    width: 12px;
  }

  /* Detail panel adjustments */
  .detail_panel {
    max-height: 75vh;
    padding: var(--space-4);
  }

  .detail_header {
    padding-top: var(--space-2);
  }

  .detail_icon {
    width: 48px;
    height: 48px;
  }

  .detail_icon svg {
    width: 24px;
    height: 24px;
  }

  .detail_title {
    font-size: var(--text-base);
  }

  .detail_steps {
    padding: var(--space-3);
    margin: var(--space-3) 0;
  }

  .detail_step_num {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }

  .detail_step_text {
    font-size: var(--text-xs);
  }

  .detail_meta {
    padding: var(--space-2);
  }

  /* MOBILE 480px: Sticky bottom bar - inherits from 768px */
  .detail_actions {
    gap: var(--space-2);
    margin-top: var(--space-3);
    padding: var(--space-3);
    padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom, 16px));
  }

  .detail_cta {
    padding: var(--space-3);
    font-size: var(--text-sm);
    border-radius: 10px;
  }

  .detail_video_btn {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
    border-radius: 10px;
  }

  /* No spacer needed - sticky positioning handles visibility */
  .detail_actions::after {
    display: none;
  }

  .popup_content {
    padding: var(--space-4);
  }

  .popup_steps {
    padding: var(--space-3);
  }

  .popup_step {
    gap: var(--space-2);
  }

  .popup_step_num {
    width: 22px;
    height: 22px;
    font-size: 11px;
  }

  .popup_step_text {
    font-size: var(--text-xs);
  }

  .popup_warning {
    padding: var(--space-2);
    font-size: var(--text-xs);
  }

  .footer_inner {
    padding: var(--space-8) var(--space-4) 0;
  }

  .footer_bottom {
    padding: var(--space-8) var(--space-4) var(--space-6);
  }
}

/* Small phones */
@media (max-width: 360px) {
  .hero_badge {
    font-size: 9px;
    padding: 3px 10px;
  }

  .hero_title {
    font-size: var(--text-lg);
  }

  .hero_subtitle {
    font-size: var(--text-xs);
  }

  .section_tree {
    padding: 56px var(--space-2) 48px;
  }

  .initial_card {
    padding: var(--space-3);
    gap: var(--space-2);
  }

  .initial_card_icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .initial_card_icon svg {
    width: 20px;
    height: 20px;
  }

  .initial_card_title {
    font-size: var(--text-sm);
  }

  .initial_card_desc {
    font-size: 11px;
    line-height: 1.3;
  }

  .tree_node {
    padding: var(--space-2) var(--space-3);
  }

  .tree_node_icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }

  .tree_node_icon svg {
    width: 18px;
    height: 18px;
  }

  .tree_node_label {
    font-size: var(--text-xs);
  }

  .tree_node_desc {
    font-size: 11px;
  }

  /* Tighter indentation for small phones */
  .tree_node[data-depth="1"] {
    margin-left: 16px;
    width: calc(100% - 16px);
  }

  .tree_node[data-depth="2"] {
    margin-left: 32px;
    width: calc(100% - 32px);
  }

  .tree_node[data-depth="3"] {
    margin-left: 48px;
    width: calc(100% - 48px);
  }

  /* Adjust connector positions for smaller indentation */
  .tree_node[data-depth="1"]::before,
  .tree_node[data-depth="2"]::before,
  .tree_node[data-depth="3"]::before {
    left: -12px;
    width: 8px;
  }

  .detail_panel {
    padding: var(--space-3);
  }

  .detail_icon {
    width: 44px;
    height: 44px;
  }

  .detail_title {
    font-size: var(--text-sm);
  }

  .detail_description {
    font-size: var(--text-xs);
  }

  .tree_back_btn {
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
  }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .hero_badge {
    margin-bottom: var(--space-2);
  }

  .hero_title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-2);
  }

  .popup_overlay {
    align-items: center;
  }

  .popup_container {
    max-height: 95vh;
    border-radius: 20px;
  }
}

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

  .tree_line.is-drawing {
    animation: none;
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }
}

/* Recommended Badge */
.tree_node_badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-purple-600);
  background: var(--color-purple-100);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}

.tree_node.is-recommended .tree_node_icon {
  color: var(--color-gray-600);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Utility Classes
   ═══════════════════════════════════════════════════════════════════════════ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
