*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* =========================================
   Theme Custom Properties (Off-White Light Default & Dark Mode)
   ========================================= */
:root,
[data-theme="light"] {
  /* Off-White Editorial Light Palette (Default - Zero pure-white glare, distinct 3-layer off-white) */
  --bg-top-layer: #f7f5f0; /* Layer 1: Soft warm alabaster off-white */
  --border-content-frame: rgba(24, 23, 20, 0.16); /* Crisp architectural borderline */
  --border-content-glow: rgba(255, 255, 255, 0.65);

  --nav-icon-color: rgba(24, 23, 20, 0.86);
  --nav-icon-hover-color: #0d0d0b;
  --nav-icon-hover-bg: rgba(24, 23, 20, 0.08);

  --sidebar-text: rgba(28, 27, 24, 0.82);
  --sidebar-text-hover: #0d0d0b;
  --sidebar-hover-bg: rgba(24, 23, 20, 0.07);
  --sidebar-active-text: #0d0d0b;
  --sidebar-active-bg: rgba(24, 23, 20, 0.12);

  --advert-bg: #e4e0d4; /* Distinct warm stone off-white ticker bar */
  --advert-border: rgba(24, 23, 20, 0.12);
  --advert-text: rgba(24, 23, 20, 0.78);
  --advert-dot: rgba(24, 23, 20, 0.36);

  --dark-section-bg: #ece8de; /* Layer 2: Deeper warm stone/oatmeal off-white */
  --effect-layer-bg: #f3f0e8; /* Layer 3: Soft intermediate parchment off-white */
  --footer-bg: #e2ddd1; /* Footer: Grounded warm stone off-white base */

  /* Modal in Off-White Light Mode */
  --modal-backdrop-bg: rgba(24, 23, 20, 0.16);
  --modal-backdrop-blur: 1px;
  --modal-dialog-bg: rgba(247, 245, 240, 0.94);
  --modal-dialog-border: rgba(24, 23, 20, 0.15);
  --modal-dialog-shadow: 0 24px 60px rgba(0, 0, 0, 0.16), 0 0 1px rgba(24, 23, 20, 0.2);
  --modal-close-bg: rgba(24, 23, 20, 0.07);
  --modal-close-border: rgba(24, 23, 20, 0.15);
  --modal-close-color: rgba(24, 23, 20, 0.85);

  --sidebar-mobile-bg: rgba(247, 245, 240, 0.96);
  --sidebar-mobile-border: rgba(24, 23, 20, 0.14);
  --sidebar-mobile-shadow: 0 16px 36px rgba(0, 0, 0, 0.14);

  /* Toggle switch tokens in Off-White Light Mode */
  --toggle-track-bg: rgba(24, 23, 20, 0.09);
  --toggle-track-border: rgba(24, 23, 20, 0.18);
  --toggle-track-hover-border: rgba(24, 23, 20, 0.34);
  --toggle-thumb-bg: #fbf9f5;
  --toggle-thumb-border: rgba(24, 23, 20, 0.22);
  --toggle-thumb-shadow: rgba(0, 0, 0, 0.15);
  --toggle-sun-color: #141311;
  --toggle-moon-color: rgba(24, 23, 20, 0.5);
}

[data-theme="dark"] {
  /* Dark Mode Palette */
  --bg-top-layer: #101010;
  --border-content-frame: rgba(255, 255, 255, 0.12);
  --border-content-glow: rgba(255, 255, 255, 0.03);

  --nav-icon-color: rgba(226, 228, 233, 0.85);
  --nav-icon-hover-color: rgba(255, 255, 255, 0.98);
  --nav-icon-hover-bg: rgba(255, 255, 255, 0.07);

  --sidebar-text: rgba(226, 228, 233, 0.85);
  --sidebar-text-hover: rgba(255, 255, 255, 0.98);
  --sidebar-hover-bg: rgba(255, 255, 255, 0.08);
  --sidebar-active-text: #ffffff;
  --sidebar-active-bg: rgba(255, 255, 255, 0.12);

  --advert-bg: #0d0d10;
  --advert-border: rgba(255, 255, 255, 0.08);
  --advert-text: rgba(226, 228, 233, 0.72);
  --advert-dot: rgba(255, 255, 255, 0.25);

  --dark-section-bg: #060606;
  --effect-layer-bg: #101010;
  --footer-bg: #060606;

  /* Modal in Dark Mode: Crystal clear illuminated overlay so background & globe remain 100% visible! */
  --modal-backdrop-bg: rgba(255, 255, 255, 0.04);
  --modal-backdrop-blur: 1px;
  --modal-dialog-bg: rgba(18, 18, 22, 0.88);
  --modal-dialog-border: rgba(255, 255, 255, 0.14);
  --modal-dialog-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 1px rgba(255, 255, 255, 0.2);
  --modal-close-bg: rgba(255, 255, 255, 0.08);
  --modal-close-border: rgba(255, 255, 255, 0.12);
  --modal-close-color: rgba(226, 228, 233, 0.85);

  --sidebar-mobile-bg: rgba(12, 12, 14, 0.96);
  --sidebar-mobile-border: rgba(255, 255, 255, 0.12);
  --sidebar-mobile-shadow: 0 16px 36px rgba(0, 0, 0, 0.85);

  /* Toggle switch tokens in Dark Mode */
  --toggle-track-bg: rgba(255, 255, 255, 0.08);
  --toggle-track-border: rgba(255, 255, 255, 0.14);
  --toggle-track-hover-border: rgba(255, 255, 255, 0.28);
  --toggle-thumb-bg: #1c1c22;
  --toggle-thumb-border: rgba(255, 255, 255, 0.18);
  --toggle-thumb-shadow: rgba(0, 0, 0, 0.6);
  --toggle-sun-color: rgba(226, 228, 233, 0.45);
  --toggle-moon-color: #ffffff;
}

html {
  width: 100%;
  background-color: var(--bg-top-layer);
  scroll-behavior: smooth;
  transition: background-color 0.25s ease;
}

body {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background-color: var(--bg-top-layer);
  overflow-x: hidden;
  overflow-y: auto; /* Natural smooth vertical page scrolling */
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: none;
  transition: background-color 0.25s ease;
}

/* =========================================
   Top Navigation Bar & Dynamic Island (Completely Decoupled)
   ========================================= */
.top-nav {
  position: fixed;
  top: 8px; /* Clean elevation */
  left: 0;
  width: 100%;
  height: 48px; /* Fixed height: ensures icons NEVER move or shift */
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  pointer-events: none;
}

/* Standalone Dynamic Island Wrapper: Centered independently, zero layout coupling to icons */
.dynamic-island-wrapper {
  position: fixed;
  top: 8px;
  left: 0;
  width: 100%;
  height: 48px; /* Reference height matching nav for perfect alignment */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  pointer-events: none;
}

/* Navigation Icon Buttons */
.nav-icon-btn {
  pointer-events: auto;
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  color: var(--nav-icon-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-icon-btn:hover {
  color: var(--nav-icon-hover-color);
  background: var(--nav-icon-hover-bg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-icon-btn:active {
  transform: scale(0.94);
  background: var(--nav-icon-hover-bg);
}

/* Dynamic Island Container */
.dynamic-island-container {
  pointer-events: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Dynamic Island Pill */
.dynamic-island {
  width: 210px;
  height: 35px;
  background-color: #000000;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  cursor: pointer;
  /* Smart snappy spring transition */
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

/* Island Content */
.island-content {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
}

.default-content {
  justify-content: flex-end;
  transition: opacity 0.2s ease;
}

.expanded-content {
  position: absolute;
  top: 0;
  left: 0;
  padding: 0 16px;
  opacity: 0;
  pointer-events: none;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.status-badge {
  display: flex;
  align-items: center;
  justify-content: center;
}

.status-badge .label {
  color: #e5e7eb;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

/* Dynamic Island Expansion: Opens wide when hovered or tapped/touched, closes when cursor leaves or hand released */
.dynamic-island:hover,
.dynamic-island.expanded {
  width: 310px;
  height: 48px;
  border-radius: 24px;
  background-color: #050505;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 255, 255, 0.05);
}

.dynamic-island:hover .default-content,
.dynamic-island.expanded .default-content {
  opacity: 0;
}

.dynamic-island:hover .expanded-content,
.dynamic-island.expanded .expanded-content {
  opacity: 1;
  pointer-events: auto;
}

/* =========================================
   1. Top Layer (Holds Sidebar & Content Frame in the SAME layer)
   ========================================= */
.top-layer {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding-top: 68px; /* Clearance below fixed top navigation */
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* Flex Row Container in the Same Layer */
.top-layer-wrapper {
  display: flex;
  width: 100%;
  flex: 1;
  padding: 0 10px;
  box-sizing: border-box;
  position: relative;
}

/* Sidebar: In document flow, scrolls away naturally with the top layer */
.app-sidebar {
  position: relative;
  width: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  margin-right: 0;
  height: auto;
  min-height: calc(100vh - 80px);
  background: transparent;
  border: none;
  box-shadow: none;
  z-index: 2;
  /* Smart snappy spring transition */
  transition: width 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.16s ease, margin-right 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: width, opacity, margin-right;
  display: flex;
  flex-direction: column;
  padding: 10px 0;
  box-sizing: border-box;
}

/* Sidebar Open: Expands smoothly in the same plane */
body.sidebar-open .app-sidebar {
  width: 132px;
  opacity: 1;
  pointer-events: auto;
  margin-right: 10px;
  padding: 10px 6px;
}

/* Sidebar Navigation (Home and About) */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.sidebar-nav-item {
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  font-family: "Newsreader", Georgia, serif; /* Anthropic Claude-style editorial serif */
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--sidebar-text);
  padding: 8px 14px;
  border-radius: 10px;
  text-align: left;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  width: 100%;
  user-select: none;
  white-space: nowrap;
}

.sidebar-nav-item:hover {
  color: var(--sidebar-text-hover);
  background: var(--sidebar-hover-bg);
}

.sidebar-nav-item.active {
  color: var(--sidebar-active-text);
  background: var(--sidebar-active-bg);
  font-weight: 600;
}

/* Sidebar Bottom Container: Pinned to the very bottom of the sidebar, far from Home and About */
.sidebar-bottom-wrap {
  margin-top: auto;
  padding: 24px 8px 20px 8px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}

.theme-toggle-switch {
  position: relative;
  width: 52px;
  height: 28px;
  border-radius: 9999px;
  background: var(--toggle-track-bg);
  border: 1px solid var(--toggle-track-border);
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.theme-toggle-switch:hover {
  border-color: var(--toggle-track-hover-border);
  transform: scale(1.03);
}

.theme-toggle-switch:active {
  transform: scale(0.96);
}

/* Sliding active thumb */
.toggle-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--toggle-thumb-bg);
  border: 1px solid var(--toggle-thumb-border);
  box-shadow: 0 2px 5px var(--toggle-thumb-shadow);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

/* In Light Mode (Default): Thumb is on the Sun (left) */
:root .toggle-slider,
[data-theme="light"] .toggle-slider {
  transform: translateX(0);
}

/* In Dark Mode: Thumb is on the Moon (right) */
[data-theme="dark"] .toggle-slider {
  transform: translateX(24px);
}

.toggle-icon-wrap {
  position: relative;
  z-index: 2;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, opacity 0.2s ease;
  pointer-events: none;
}

.icon-sun-wrap {
  color: var(--toggle-sun-color);
}

.icon-moon-wrap {
  color: var(--toggle-moon-color);
}

/* Stiff Curved Content Frame: Flexes smoothly alongside sidebar */
.content-frame {
  position: relative;
  margin: 0;
  flex: 1;
  min-height: calc(100vh - 80px);
  border-top: 1.5px solid var(--border-content-frame);
  border-left: 1.5px solid var(--border-content-frame);
  border-right: 1.5px solid var(--border-content-frame);
  border-bottom: none; /* Open at bottom, flowing into middle layer */
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  background: transparent;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 1px 0 var(--border-content-glow);
  overflow: hidden;
  /* Smart snappy flex adjustment */
  transition: flex 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
  will-change: flex;
}

.top-layer-content {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* 3D Globe Container (Home View) */
.globe-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
}

/* Trending & About Views (Completely empty inside borderline) */
.trending-view,
.about-view {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 1;
}

/* =========================================
   Slim Advert Ticker Bar (Between Layer 1 & Layer 2)
   ========================================= */
.advert-ticker-bar {
  width: 100%;
  height: 30px;
  background-color: var(--advert-bg);
  border-top: 1px solid var(--advert-border);
  border-bottom: 1px solid var(--advert-border);
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative;
  user-select: none;
  z-index: 5;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.ticker-track {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
  animation: marqueeScroll 22s linear infinite;
  will-change: transform;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

.ticker-text {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: var(--advert-text);
  text-transform: uppercase;
  padding: 0 4px;
  transition: color 0.25s ease;
}

.ticker-dot {
  font-size: 11px;
  color: var(--advert-dot);
  padding: 0 16px;
  transition: color 0.25s ease;
}

/* =========================================
   2. Dark Section (Black Layer in #060606 - Reduced Height)
   ========================================= */
.dark-section {
  position: relative;
  width: 100%;
  min-height: 50vh; /* Reduced balanced height as requested */
  background-color: var(--dark-section-bg);
  border: none; /* Completely borderless */
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  transition: background-color 0.25s ease;
}

.dark-section-content {
  flex: 1;
  width: 100%;
  padding: 30px 24px;
}

/* =========================================
   3. Second-to-Last Section (Restored Canvas / Effect Color)
   ========================================= */
.effect-layer {
  position: relative;
  width: 100%;
  min-height: 50vh; /* Sits before the footer, separating dark section from footer */
  background-color: var(--effect-layer-bg);
  border: none; /* Completely borderless */
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  transition: background-color 0.25s ease;
}

.effect-layer-content {
  flex: 1;
  width: 100%;
  padding: 30px 24px;
}

/* =========================================
   4. Footer Page (At Bottom under Effect Layer)
   ========================================= */
.app-footer {
  position: relative;
  width: 100%;
  min-height: 180px; /* Dedicated footer page */
  background-color: var(--footer-bg);
  border: none; /* Seamless borderless connection to the section above */
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  transition: background-color 0.25s ease;
}

/* =========================================
   5. Mobile Responsiveness (<= 768px)
   ========================================= */
@media (max-width: 768px) {
  .top-nav {
    padding: 0 12px;
    height: 44px;
  }

  .dynamic-island-wrapper {
    top: 8px;
    height: 44px;
  }

  /* Compact dynamic island on mobile to fit nicely */
  .dynamic-island {
    width: 155px;
    height: 32px;
  }

  .dynamic-island:hover,
  .dynamic-island.expanded {
    width: 245px;
    height: 42px;
  }

  .status-badge .label {
    font-size: 12px;
  }

  .top-layer {
    padding-top: 60px;
  }

  .top-layer-wrapper {
    padding: 0 8px;
    position: relative;
  }

  /* Sleek floating drawer on mobile */
  .app-sidebar {
    position: absolute;
    top: 0;
    left: 8px;
    bottom: 0;
    height: 100%;
    min-height: auto;
    z-index: 50;
    background: var(--sidebar-mobile-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--sidebar-mobile-border);
    border-radius: 18px;
    box-shadow: var(--sidebar-mobile-shadow);
    width: 0;
    opacity: 0;
    pointer-events: none;
    margin-right: 0;
    transition: width 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.16s ease;
  }

  body.sidebar-open .app-sidebar {
    width: 144px;
    opacity: 1;
    pointer-events: auto;
    padding: 14px 10px;
  }

  /* Full screen width content frame on mobile */
  .content-frame {
    width: 100%;
    flex: 1;
    min-height: calc(100vh - 72px);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
  }

  .advert-ticker-bar {
    height: 28px;
  }

  .ticker-text {
    font-size: 10px;
    letter-spacing: 2px;
  }

  .dark-section {
    min-height: 40vh;
  }

  .effect-layer {
    min-height: 40vh;
  }

  .app-footer {
    min-height: 140px;
  }
}

/* =========================================
   6. App Grid Pop-up Modal (Empty Dialog)
   ========================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  /* Lightened frosted overlay so background & globe remain clearly visible! */
  background: var(--modal-backdrop-bg);
  backdrop-filter: blur(var(--modal-backdrop-blur));
  -webkit-backdrop-filter: blur(var(--modal-backdrop-blur));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  position: relative;
  width: min(90vw, 440px);
  min-height: 280px;
  background-color: var(--modal-dialog-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--modal-dialog-border);
  border-radius: 24px;
  box-shadow: var(--modal-dialog-shadow);
  display: flex;
  flex-direction: column;
  padding: 24px;
  box-sizing: border-box;
  transform: scale(0.94) translateY(8px);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease, border-color 0.25s ease;
}

.modal-backdrop.active .modal-dialog {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--modal-close-bg);
  border: 1px solid var(--modal-close-border);
  color: var(--modal-close-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: var(--modal-close-border);
  color: var(--nav-icon-hover-color);
  transform: scale(1.05);
}

.modal-close-btn:active {
  transform: scale(0.95);
}

.modal-body {
  flex: 1;
  width: 100%;
  min-height: 200px;
  /* Empty modal interior as requested */
}


/* =========================================
   7. About Page (#aboutView inside .content-frame)
   Editorial Manifesto, Free-Will AI Ecosystem & Directory
   Website DNA: Zero heavy box covers, crisp 1px borderlines, Light/Dark adaptive
   ========================================= */
:root,
[data-theme="light"] {
  --ed-text-primary: #0f1419;
  --ed-text-secondary: #4a5560;
  --ed-text-muted: #68737d;
  --ed-line: rgba(24, 23, 20, 0.14);
  --ed-line-strong: rgba(24, 23, 20, 0.24);
  --ed-sticky-bg: rgba(247, 245, 240, 0.88);
  --ed-accent: #1d9bf0;
  --ed-green: #00a86b;
  --ed-btn-primary-bg: #121210;
  --ed-btn-primary-text: #f7f5f0;
}

[data-theme="dark"] {
  --ed-text-primary: #f3f4f6;
  --ed-text-secondary: #b0b7c3;
  --ed-text-muted: #8b949e;
  --ed-line: rgba(255, 255, 255, 0.13);
  --ed-line-strong: rgba(255, 255, 255, 0.24);
  --ed-sticky-bg: rgba(16, 16, 16, 0.86);
  --ed-accent: #1d9bf0;
  --ed-green: #00ba7c;
  --ed-btn-primary-bg: #f3f4f6;
  --ed-btn-primary-text: #0d0d0f;
}

/* Bounded Scrollable Area Inside Content Frame for Tutorial & About Views */
.tutorial-view,
.about-view {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: auto;
  background: transparent;
  color: var(--ed-text-primary);
  z-index: 2;
  user-select: text;
}

/* App Grid Modal Item: Pure Solid Lucide Icon + Label, Zero Background / Box Cover */
.modal-body {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 12px;
}

.modal-app-item {
  background: transparent;
  border: none;
  box-shadow: none;
  outline: none;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 6px;
  color: var(--ed-text-primary);
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.18s ease;
  user-select: none;
}

.modal-app-item:hover {
  transform: translateY(-2px);
  opacity: 0.86;
}

.modal-app-item:active {
  transform: scale(0.95);
}

.modal-app-icon {
  background: transparent;
  border: none;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ed-text-primary);
}

.modal-app-label {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--ed-text-primary);
  background: transparent;
}

.about-view::-webkit-scrollbar {
  width: 6px;
}

.about-view::-webkit-scrollbar-track {
  background: transparent;
}

.about-view::-webkit-scrollbar-thumb {
  background: var(--ed-line-strong);
  border-radius: 9999px;
}

.about-editorial-column {
  width: 100%;
  max-width: 760px;
  min-height: 100%;
  margin: 0 auto;
  border-left: 1px solid var(--ed-line);
  border-right: 1px solid var(--ed-line);
  background: transparent;
  padding-bottom: 64px;
}

.about-sticky-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 24px;
  background-color: var(--ed-sticky-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ed-line);
}

.about-header-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.about-header-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--ed-green);
  box-shadow: 0 0 8px var(--ed-green);
}

.about-header-title {
  font-family: "Newsreader", Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--ed-text-primary);
}

.about-header-sub {
  font-size: 12.5px;
  color: var(--ed-text-muted);
}

.about-header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.about-header-nav::-webkit-scrollbar {
  display: none;
}

.about-jump-btn {
  background: transparent;
  border: none;
  border-bottom: 1.5px solid transparent;
  padding: 4px 8px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ed-text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.about-jump-btn:hover {
  color: var(--ed-text-primary);
  border-bottom-color: var(--ed-text-primary);
}

.about-section {
  padding: 36px 28px;
  border-bottom: 1px solid var(--ed-line);
  background: transparent;
}

.about-eyebrow {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--ed-text-muted);
  margin-bottom: 12px;
}

.about-hero-headline {
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 500;
  line-height: 1.24;
  letter-spacing: -0.3px;
  color: var(--ed-text-primary);
  margin-bottom: 18px;
}

.about-hero-headline em {
  font-style: italic;
  font-weight: 600;
}

.about-lead-paragraph {
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(17px, 2.1vw, 20px);
  line-height: 1.56;
  color: var(--ed-text-primary);
  margin-bottom: 14px;
}

.about-body-paragraph {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ed-text-secondary);
  margin-bottom: 18px;
}

.about-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 14px 0;
  border-top: 1px solid var(--ed-line);
  border-bottom: 1px solid var(--ed-line);
  margin: 18px 0 22px 0;
}

.about-tag-pill {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ed-accent);
  background: transparent;
  letter-spacing: 0.1px;
}

.about-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.about-action-primary {
  background-color: var(--ed-btn-primary-bg);
  color: var(--ed-btn-primary-text);
  border: 1px solid var(--ed-btn-primary-bg);
  border-radius: 9999px;
  padding: 10px 20px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.18s ease;
}

.about-action-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.about-action-secondary {
  background: transparent;
  color: var(--ed-text-primary);
  border: 1px solid var(--ed-line-strong);
  border-radius: 9999px;
  padding: 10px 18px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.about-action-secondary:hover {
  border-color: var(--ed-text-primary);
}

/* Metrics Strip */
.about-metrics-section {
  padding: 0;
}

.about-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
}

.about-metric-item {
  padding: 22px 18px;
  border-right: 1px solid var(--ed-line);
  background: transparent;
}

.about-metric-item:last-child {
  border-right: none;
}

.about-metric-number {
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  color: var(--ed-text-primary);
  line-height: 1.1;
  margin-bottom: 6px;
}

.about-metric-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ed-text-primary);
  margin-bottom: 4px;
}

.about-metric-note {
  font-size: 12px;
  line-height: 1.4;
  color: var(--ed-text-muted);
}

/* Section Titles & Pillars */
.about-section-title {
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(22px, 2.8vw, 28px);
  font-weight: 500;
  line-height: 1.28;
  color: var(--ed-text-primary);
  margin-bottom: 12px;
}

.about-pillars-list {
  display: flex;
  flex-direction: column;
  margin-top: 12px;
  border-top: 1px solid var(--ed-line);
}

.about-pillar-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--ed-line);
  background: transparent;
}

.about-pillar-row:last-child {
  border-bottom: none;
  padding-bottom: 4px;
}

.about-pillar-index {
  font-family: "Newsreader", Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--ed-text-muted);
  min-width: 28px;
  padding-top: 2px;
}

.about-pillar-heading {
  font-family: "Newsreader", Georgia, serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--ed-text-primary);
  margin-bottom: 6px;
}

.about-pillar-text {
  font-size: 14px;
  line-height: 1.62;
  color: var(--ed-text-secondary);
}

.about-pillar-text code,
.about-contact-sub code,
.footer-col-list code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  color: var(--ed-accent);
}

/* Economy Table (Borderlines Only) */
.about-economy-table {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--ed-line);
  margin-top: 14px;
}

.about-economy-row {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 1.4fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--ed-line);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ed-text-secondary);
}

.about-economy-row strong {
  color: var(--ed-text-primary);
  font-weight: 600;
}

.about-economy-head {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--ed-text-muted);
  padding: 10px 0;
}

/* Global Free-Will AI Roster */
.about-roster-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--ed-line);
  margin-top: 14px;
}

.about-roster-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--ed-line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.about-roster-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.about-roster-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ed-text-primary);
}

.about-roster-badge {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ed-accent);
}

.about-roster-handle {
  font-size: 13px;
  color: var(--ed-text-muted);
}

.about-roster-role {
  font-size: 13.5px;
  line-height: 1.52;
  color: var(--ed-text-secondary);
}

/* Contact & API Grid */
.about-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--ed-line);
  margin-top: 14px;
}

.about-contact-block {
  padding: 18px 16px 18px 0;
  border-bottom: 1px solid var(--ed-line);
}

.about-contact-block:nth-child(odd) {
  border-right: 1px solid var(--ed-line);
  padding-right: 18px;
}

.about-contact-block:nth-child(even) {
  padding-left: 18px;
}

.about-contact-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ed-text-muted);
  margin-bottom: 6px;
}

.about-contact-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--ed-text-primary);
  margin-bottom: 4px;
}

.about-contact-sub {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ed-text-secondary);
}

/* =========================================
   8. Homepage About Section (#effectLayer / .home-about-showcase)
   Third Layer right above the Footer — Zero box covers, pure editorial
   ========================================= */
.home-about-showcase {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 18px 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  background: transparent;
  border: none;
  color: var(--ed-text-primary);
  user-select: text;
}

.home-about-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-bottom: 1px solid var(--ed-line);
  padding-bottom: 22px;
}

.home-about-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--ed-text-muted);
}

.home-about-title {
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 500;
  line-height: 1.28;
  color: var(--ed-text-primary);
}

.home-about-description {
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--ed-text-secondary);
  max-width: 720px;
}

.home-about-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-bottom: 1px solid var(--ed-line);
  padding-bottom: 24px;
}

.home-about-pillar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
}

.home-about-pillar-num {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--ed-text-muted);
}

.home-about-pillar-title {
  font-family: "Newsreader", Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--ed-text-primary);
}

.home-about-pillar-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ed-text-secondary);
}

.home-about-footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.home-about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ed-accent);
}

.home-about-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.home-about-link-btn {
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--ed-text-primary);
  padding: 3px 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ed-text-primary);
  cursor: pointer;
  transition: opacity 0.18s ease;
}

.home-about-link-btn.secondary {
  color: var(--ed-text-secondary);
  border-bottom-color: var(--ed-line-strong);
}

.home-about-link-btn:hover {
  opacity: 0.75;
}

/* =========================================
   9. Site Footer (#appFooter — Last Page of Homepage Layers)
   Multi-Column Editorial Sitemap, Newsletter, Tags & Legal
   ========================================= */
.app-footer {
  position: relative;
  width: 100%;
  min-height: 220px;
  background-color: var(--footer-bg);
  border-top: 1px solid var(--ed-line);
  box-sizing: border-box;
  display: block;
  padding: 52px 24px 38px 24px;
  color: var(--ed-text-primary);
  user-select: text;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.footer-inner {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.footer-top-row {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--ed-line);
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.footer-brand-logo {
  font-family: "Newsreader", Georgia, serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.4px;
  color: var(--ed-text-primary);
}

.footer-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ed-text-secondary);
}

.footer-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--ed-green);
  box-shadow: 0 0 8px var(--ed-green);
}

.footer-brand-mission {
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--ed-text-secondary);
  max-width: 560px;
}

.footer-meta-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ed-text-muted);
}

.footer-newsletter-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-newsletter-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ed-text-muted);
}

.footer-newsletter-copy {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ed-text-secondary);
}

.footer-newsletter-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  border-bottom: 1px solid var(--ed-line-strong);
  padding-bottom: 6px;
}

.footer-newsletter-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 13.5px;
  color: var(--ed-text-primary);
  padding: 6px 2px;
}

.footer-newsletter-input::placeholder {
  color: var(--ed-text-muted);
}

.footer-newsletter-btn {
  background: transparent;
  border: none;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--ed-text-primary);
  cursor: pointer;
  padding: 6px 10px;
  transition: opacity 0.18s ease;
}

.footer-newsletter-btn:hover {
  opacity: 0.72;
}

.footer-newsletter-feedback {
  font-size: 12px;
  font-weight: 600;
  color: var(--ed-green);
  min-height: 16px;
}

/* 5-Column Sitemap Grid */
.footer-columns-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--ed-line);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-title {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ed-text-primary);
}

.footer-col-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footer-nav-link {
  background: transparent;
  border: none;
  padding: 0;
  text-align: left;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ed-text-secondary);
  cursor: pointer;
  transition: color 0.16s ease;
}

.footer-nav-link:hover {
  color: var(--ed-text-primary);
  text-decoration: underline;
}

/* Footer Tags Row */
.footer-tags-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ed-line);
}

.footer-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--ed-text-muted);
}

/* Bottom Legal & Social Row */
.footer-bottom-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-copyright {
  font-size: 12.5px;
  color: var(--ed-text-secondary);
}

.footer-copyright span {
  color: var(--ed-text-muted);
}

.footer-social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.footer-social-item {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ed-text-secondary);
  text-decoration: none;
  transition: color 0.16s ease;
}

.footer-social-item:hover {
  color: var(--ed-text-primary);
  text-decoration: underline;
}

.footer-back-top-btn {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ed-line-strong);
  padding: 2px 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ed-text-primary);
  cursor: pointer;
}

/* Responsive Adjustments for About, Homepage About & Footer */
@media (max-width: 900px) {
  .about-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-metric-item:nth-child(2) {
    border-right: none;
  }

  .about-metric-item:nth-child(1),
  .about-metric-item:nth-child(2) {
    border-bottom: 1px solid var(--ed-line);
  }

  .footer-top-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-columns-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
}

@media (max-width: 768px) {
  .about-editorial-column {
    border-left: none;
    border-right: none;
  }

  .about-sticky-header {
    padding: 10px 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .about-section {
    padding: 26px 16px;
  }

  .about-economy-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .about-economy-head {
    display: none;
  }

  .about-contact-grid {
    grid-template-columns: 1fr;
  }

  .about-contact-block:nth-child(odd),
  .about-contact-block:nth-child(even) {
    border-right: none;
    padding-left: 0;
    padding-right: 0;
  }

  .home-about-pillars {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .app-footer {
    padding: 36px 16px 28px 16px;
  }

  .footer-columns-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}
