/* ========================================
   AboveAI Concepts — Dark Tech Portfolio
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #0f0f18;
  --bg-card: #12121e;
  --bg-card-hover: #181828;
  --border-subtle: #1a1a2e;
  --border-glow: #00d4ff33;

  --text-primary: #e0e0e8;
  --text-secondary: #8888a0;
  --text-muted: #555570;

  --cyan: #00d4ff;
  --green: #00ff88;
  --magenta: #ff006e;
  --yellow: #ffd000;

  --glow-cyan: 0 0 20px #00d4ff44, 0 0 40px #00d4ff22;
  --glow-green: 0 0 20px #00ff8844, 0 0 40px #00ff8822;
  --glow-magenta: 0 0 20px #ff006e44, 0 0 40px #ff006e22;

  --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;

  --section-gap: 120px;
  --content-width: 1100px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--cyan);
  color: var(--bg-primary);
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.25s, text-shadow 0.25s;
}

a:hover {
  color: #fff;
  text-shadow: 0 0 8px var(--cyan);
}

/* --- Background Grid --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

/* --- Scanline overlay --- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: box-shadow 0.3s;
}

.nav.scrolled {
  box-shadow: 0 2px 30px rgba(0, 212, 255, 0.08);
  border-bottom-color: var(--border-glow);
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-logo span {
  color: var(--text-muted);
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
  transition: width 0.3s;
}

.nav-links a:hover {
  color: var(--text-primary);
  text-shadow: none;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Nav Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a {
  cursor: default;
}

.nav-dropdown > a::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-right: 5px;
  vertical-align: middle;
  transition: transform 0.25s;
}

.nav-dropdown:hover > a::before {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 12px;
  min-width: 160px;
  z-index: 100;
}

.nav-dropdown-menu ul {
  list-style: none;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 8px 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.nav-dropdown-menu li {
  padding: 0;
}

.nav-dropdown-menu a {
  display: block;
  padding: 8px 20px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.nav-dropdown-menu a::after {
  display: none;
}

.nav-dropdown-menu a:hover {
  color: var(--text-primary);
  background: rgba(0, 212, 255, 0.06);
  text-shadow: none;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-secondary);
  transition: transform 0.3s, opacity 0.3s;
}

/* --- Sections --- */
section {
  position: relative;
  z-index: 1;
  padding: var(--section-gap) 40px;
}

.container {
  max-width: var(--content-width);
  margin: 0 auto;
}

/* --- Section Header --- */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
  opacity: 0.8;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 48px;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 64px;
}

.hero-content {
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--green);
  border: 1px solid rgba(0, 255, 136, 0.3);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 32px;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: pulse-border 3s ease-in-out infinite;
}

@keyframes pulse-border {
  0%, 100% { border-color: rgba(0, 255, 136, 0.3); box-shadow: none; }
  50% { border-color: rgba(0, 255, 136, 0.6); box-shadow: 0 0 15px rgba(0, 255, 136, 0.15); }
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 8px;
}

.hero-title .above {
  color: var(--text-primary);
}

.hero-title .ai {
  background: linear-gradient(135deg, var(--cyan), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.hero-title .ai::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  border-radius: 2px;
  box-shadow: 0 0 20px var(--cyan);
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  margin-bottom: 40px;
  min-height: 1.5em;
}

.hero-tagline .cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--cyan);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-name {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 48px;
}

.hero-name strong {
  color: var(--text-primary);
  font-weight: 600;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--cyan);
  border: 1px solid var(--cyan);
  padding: 12px 28px;
  border-radius: 4px;
  letter-spacing: 1px;
  transition: all 0.3s;
}

.hero-cta:hover {
  background: rgba(0, 212, 255, 0.1);
  box-shadow: var(--glow-cyan);
  color: #fff;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: var(--font-mono);
  animation: float 3s ease-in-out infinite;
}

.hero-scroll-hint .arrow {
  width: 1px;
  height: 30px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* --- About Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-vision {
  max-width: 780px;
}

.about-text p,
.about-vision p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 0.95rem;
  line-height: 1.9;
}

.about-text p strong,
.about-vision p strong {
  color: var(--text-primary);
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 20px;
  transition: all 0.3s;
}

.skill-card:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.05);
}

.skill-card h4 {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cyan);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.skill-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Concept Sections --- */
.concept {
  border-top: 1px solid var(--border-subtle);
}

.concept-header {
  margin-bottom: 48px;
}

.concept-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 3px;
  margin-bottom: 16px;
}

.concept-badge.isc {
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.25);
}

.concept-badge.trading {
  color: var(--green);
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.25);
}

.concept-badge.mastermind {
  color: var(--magenta);
  background: rgba(255, 0, 110, 0.1);
  border: 1px solid rgba(255, 0, 110, 0.25);
}

.concept-badge.usecase {
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.25);
}

.concept-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 6px;
}

.concept-catchphrase {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* Problem → Solution */
.problem-solution {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.problem, .solution {
  padding: 24px;
  border-radius: 8px;
  font-size: 0.92rem;
  line-height: 1.7;
}

.problem {
  background: rgba(255, 0, 110, 0.04);
  border: 1px solid rgba(255, 0, 110, 0.15);
  color: var(--text-secondary);
}

.solution {
  background: rgba(0, 255, 136, 0.04);
  border: 1px solid rgba(0, 255, 136, 0.15);
  color: var(--text-secondary);
}

.problem-label, .solution-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.problem-label {
  color: var(--magenta);
}

.solution-label {
  color: var(--green);
}

/* Feature Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 28px 24px;
  transition: all 0.35s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.35s;
}

.feature-card:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.08);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card.accent-green::before {
  background: linear-gradient(90deg, transparent, var(--green), transparent);
}

.feature-card.accent-magenta::before {
  background: linear-gradient(90deg, transparent, var(--magenta), transparent);
}

.feature-icon {
  font-size: 1.6rem;
  margin-bottom: 14px;
  display: block;
}

.feature-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Architecture Diagram */
.arch-diagram {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 32px;
  margin-bottom: 32px;
  overflow-x: auto;
}

.arch-diagram pre {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--text-secondary);
  white-space: pre;
  margin: 0;
}

.arch-diagram .hl-cyan { color: var(--cyan); }
.arch-diagram .hl-green { color: var(--green); }
.arch-diagram .hl-magenta { color: var(--magenta); }
.arch-diagram .hl-yellow { color: var(--yellow); }
.arch-diagram .hl-dim { color: var(--text-muted); }

.arch-diagram svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Tech Stack Tags */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 5px 12px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  transition: all 0.25s;
}

.tech-tag:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* --- Contact Section --- */
.contact {
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 700px;
  margin: 0 auto 48px;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 28px 20px;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.contact-card:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0, 212, 255, 0.06);
}

.contact-icon {
  font-size: 1.5rem;
}

.contact-card h4 {
  font-size: 0.85rem;
  font-weight: 600;
}

.contact-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.contact-card a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

/* --- Team --- */
.team-member {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: start;
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  margin-bottom: 32px;
}

.team-photo img {
  width: 200px;
  height: 200px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid var(--border-subtle);
}

.team-photo-placeholder {
  width: 200px;
  height: 200px;
  border-radius: 12px;
  border: 2px solid var(--border-subtle);
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 4px;
}

.team-role {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--cyan);
  margin-top: 4px;
  margin-bottom: 16px;
}

.team-bio {
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 640px;
}

.team-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
}

.team-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  transition: all 0.3s;
}

.team-link:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(0, 212, 255, 0.05);
}

/* --- Home Cards --- */
.home-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
}

.home-card:hover {
  border-color: var(--cyan);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.home-card-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  width: 44px;
  text-align: center;
}

.home-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.home-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.home-card-arrow {
  margin-left: auto;
  font-size: 1.2rem;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all 0.3s;
}

.home-card:hover .home-card-arrow {
  color: var(--cyan);
  transform: translateX(4px);
}

/* --- Floating Launch Button --- */
.floating-launch {
  position: fixed;
  right: 28px;
  top: 80px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--bg-card);
  border: 1px solid var(--cyan);
  border-radius: 50px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--glow-cyan);
  transition: all 0.3s;
  backdrop-filter: blur(12px);
}

.floating-launch:hover {
  background: rgba(0, 212, 255, 0.1);
  box-shadow: 0 0 30px #00d4ff55, 0 0 60px #00d4ff33;
  transform: translateY(-2px);
}

/* --- Footer --- */
.footer {
  padding: 40px;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  position: relative;
  z-index: 1;
}

.footer p {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.footer .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  margin: 0 8px;
  vertical-align: middle;
  box-shadow: 0 0 8px var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* --- Stats Bar --- */
.stats-bar-section {
  position: relative;
  z-index: 1;
  padding: 0 40px 40px;
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  max-width: var(--content-width);
  margin: 0 auto;
}

.stat-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 20px 16px;
  text-align: center;
  transition: all 0.3s;
}

.stat-item:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
}

.stat-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1.2;
  margin-bottom: 4px;
}

.stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* --- Status Badge with Dot --- */
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
  box-shadow: 0 0 8px var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}

/* --- Deep Dive Blocks --- */
.deep-dive-block {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 32px;
  margin-bottom: 24px;
}

.deep-dive-heading {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.deep-dive-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.deep-dive-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.deep-dive-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* --- Detail Groups & Tags --- */
.detail-group {
  margin-bottom: 0;
}

.detail-group-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: 4px;
  transition: all 0.25s;
}

.detail-tag:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.detail-tag.accent-tag {
  border-color: rgba(0, 255, 136, 0.2);
}

.detail-tag.accent-tag:hover {
  border-color: var(--green);
  color: var(--green);
}

.tag-source {
  color: var(--text-muted);
  font-size: 0.68rem;
}

.detail-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Risk Pipeline --- */
.pipeline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.pipeline-step {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--green);
  background: rgba(0, 255, 136, 0.06);
  border: 1px solid rgba(0, 255, 136, 0.2);
  padding: 6px 14px;
  border-radius: 4px;
}

.pipeline-arrow {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* --- Roadmap Phases --- */
.roadmap-phase {
  margin-bottom: 48px;
}

.phase-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.phase-number {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  color: var(--yellow);
  opacity: 0.3;
  line-height: 1;
}

.phase-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.phase-tagline {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* --- Participate & Donate --- */
.participate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.participate-panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 36px 32px;
}

.participate-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  background: rgba(0, 255, 136, 0.08);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  animation: pulse-border 3s ease-in-out infinite;
}

.participate-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.participate-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.participate-text strong {
  color: var(--green);
}

.donate-heading {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--cyan);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.wallet-section {
  margin-bottom: 24px;
}

.wallet-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 600;
}

.wallet-address-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.25s;
}

.wallet-address-box:hover {
  border-color: var(--cyan);
  background: rgba(0, 212, 255, 0.04);
}

.wallet-address-box.copied {
  border-color: var(--green);
}

.wallet-address {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  user-select: all;
}

.copy-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.copy-btn:hover { color: var(--cyan); }
.copy-btn.copied { color: var(--green); }

.networks-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-weight: 600;
}

.networks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 24px;
}

.network-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 14px;
  transition: all 0.25s;
}

.network-chip:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: var(--bg-card-hover);
}

.network-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.network-dot.arbitrum { background: #28a0f0; }
.network-dot.base { background: #0052ff; }
.network-dot.ethereum { background: #627eea; }
.network-dot.polygon { background: #8247e5; }

.network-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.network-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
}

.network-tokens {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.preferred-badge {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  background: rgba(0, 255, 136, 0.1);
  color: var(--green);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-left: auto;
  flex-shrink: 0;
}

.donate-footer-note {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.5;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.donate-footer-note span {
  color: var(--cyan);
}

/* --- Coaching CTA --- */
.coaching-cta-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 48px 40px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.coaching-cta-content .participate-text {
  max-width: 520px;
  margin: 12px auto 0;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  :root {
    --section-gap: 80px;
  }

  section {
    padding-left: 24px;
    padding-right: 24px;
  }

  .nav {
    padding: 0 24px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .problem-solution {
    grid-template-columns: 1fr;
  }

  .stats-bar {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats-bar-section {
    padding-left: 24px;
    padding-right: 24px;
  }

  .deep-dive-grid,
  .deep-dive-grid-3 {
    grid-template-columns: 1fr;
  }

  .participate-grid {
    grid-template-columns: 1fr;
  }

  .team-member {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .team-info {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .team-bio {
    text-align: left;
  }

  .team-links {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  :root {
    --section-gap: 60px;
  }

  section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .home-card {
    padding: 16px;
    gap: 14px;
  }

  .home-card-icon {
    display: none;
  }

  .nav {
    padding: 0 16px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    padding: 20px 24px;
    gap: 8px;
    border-bottom: 1px solid var(--border-subtle);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-dropdown > a::before {
    border-top: 4px solid currentColor;
  }

  .nav-dropdown.mobile-open > a::before {
    transform: rotate(180deg);
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    padding-top: 4px;
    min-width: 0;
    display: none !important;
  }

  .nav-dropdown.mobile-open .nav-dropdown-menu {
    display: block !important;
  }

  .nav-dropdown-menu ul {
    background: none;
    border: none;
    border-left: 1px solid var(--border-subtle);
    border-radius: 0;
    padding: 4px 0 4px 12px;
    box-shadow: none;
    margin-left: 8px;
  }

  .nav-dropdown-menu a {
    padding: 6px 12px;
    font-size: 0.78rem;
  }

  .hero-title {
    letter-spacing: -1px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .arch-diagram {
    padding: 16px;
  }

  .arch-diagram pre {
    font-size: 0.65rem;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-bar-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .deep-dive-block {
    padding: 20px;
  }

  .pipeline {
    gap: 6px;
  }

  .pipeline-step {
    font-size: 0.68rem;
    padding: 4px 10px;
  }

  .participate-panel {
    padding: 24px 16px;
  }

  .networks-grid {
    grid-template-columns: 1fr;
  }

  .wallet-address {
    font-size: 0.68rem;
  }
}

/* --- Blog / AI Stories --- */
.blog-post {
  max-width: 860px;
  margin: 0 auto;
}

.blog-post-header {
  margin-bottom: 48px;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.blog-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.blog-separator {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.blog-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--green);
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.2);
  padding: 3px 10px;
  border-radius: 3px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.blog-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.blog-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 720px;
  margin-bottom: 28px;
}

.blog-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.blog-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cyan);
  flex-shrink: 0;
}

.blog-author-name {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.blog-author-role {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Blog Stats */
.blog-stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 56px;
  padding: 28px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}

.blog-stat {
  text-align: center;
}

.blog-stat-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1.2;
  margin-bottom: 4px;
}

.blog-stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Blog Sections */
.blog-section {
  margin-bottom: 56px;
}

.blog-section-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.blog-list {
  list-style: none;
  padding: 0;
}

.blog-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.blog-list li::before {
  content: '\25B8';
  position: absolute;
  left: 0;
  color: var(--cyan);
}

.blog-list code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.08);
  padding: 2px 6px;
  border-radius: 3px;
}

/* Blog Timeline */
.blog-timeline {
  position: relative;
  padding-left: 32px;
}

.blog-timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--cyan), var(--green), var(--magenta), var(--yellow));
  opacity: 0.3;
}

.timeline-item {
  position: relative;
  margin-bottom: 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -32px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--marker-color, var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--marker-color, var(--cyan));
  flex-shrink: 0;
  z-index: 1;
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 18px 22px;
  flex: 1;
  transition: all 0.3s;
}

.timeline-content:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
}

.timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.timeline-header h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.timeline-duration {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--green);
  background: rgba(0, 255, 136, 0.08);
  padding: 2px 10px;
  border-radius: 3px;
  border: 1px solid rgba(0, 255, 136, 0.15);
  flex-shrink: 0;
}

.timeline-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Blog Problems Grid */
.blog-problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.blog-problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 22px 20px;
  transition: all 0.3s;
}

.blog-problem-card:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}

.blog-problem-icon {
  font-size: 1.3rem;
  display: block;
  margin-bottom: 10px;
}

.blog-problem-card h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.blog-problem-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.blog-problem-card code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--magenta);
  background: rgba(255, 0, 110, 0.08);
  padding: 1px 5px;
  border-radius: 3px;
}

/* Blog Decisions */
.blog-decisions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blog-decision {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  transition: all 0.25s;
}

.blog-decision:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
}

.blog-decision-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  min-width: 160px;
  flex-shrink: 0;
}

.blog-decision-chosen {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--green);
}

.blog-decision-alt {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: auto;
  font-style: italic;
}

/* Blog Tools Grid */
.blog-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}

.blog-tool {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  transition: all 0.25s;
}

.blog-tool:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
}

.blog-tool code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
}

.blog-tool span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Blog Files */
.blog-files-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.blog-files-heading {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.blog-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-left: 2px solid var(--border-subtle);
  margin-bottom: 6px;
  transition: border-color 0.25s;
}

.blog-file:hover {
  border-left-color: var(--cyan);
}

.blog-file code {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--text-secondary);
}

.blog-file span {
  font-size: 0.73rem;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-left: 12px;
}

/* Blog Files Preview (visible files) */
.blog-files-preview {
  margin-bottom: 16px;
}

/* Blog Files Toggle (collapsible) */
.blog-files-toggle {
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
}

.blog-files-toggle > summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 24px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.25s;
}

.blog-files-toggle > summary:hover {
  background: rgba(0, 212, 255, 0.04);
}

.blog-files-toggle > summary::-webkit-details-marker {
  display: none;
}

.blog-files-toggle > summary::before {
  content: "\25B6";
  font-size: 0.55rem;
  color: var(--cyan);
  transition: transform 0.3s;
}

.blog-files-toggle[open] > summary::before {
  transform: rotate(90deg);
}

.blog-files-toggle[open] > summary {
  border-bottom: 1px solid var(--border-subtle);
}

.blog-files-toggle > .blog-files-grid {
  padding: 24px;
}

/* Blog Conclusion */
.blog-conclusion {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.06), rgba(0, 255, 136, 0.06));
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 12px;
  padding: 36px 32px;
  text-align: center;
}

.blog-conclusion-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 12px;
}

.blog-conclusion h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.blog-conclusion p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 640px;
  margin: 0 auto;
}

.blog-conclusion strong {
  color: var(--green);
}

/* Blog Responsive */
@media (max-width: 900px) {
  .blog-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .blog-problems-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-files-grid {
    grid-template-columns: 1fr;
  }

  .blog-decision-label {
    min-width: 120px;
  }
}

@media (max-width: 640px) {
  .blog-stats {
    grid-template-columns: repeat(2, 1fr);
    padding: 20px 16px;
  }

  .blog-problems-grid {
    grid-template-columns: 1fr;
  }

  .blog-decision {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .blog-decision-alt {
    margin-left: 0;
  }

  .blog-tools-grid {
    grid-template-columns: 1fr;
  }

  .blog-tool {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .blog-file {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .blog-file span {
    margin-left: 0;
  }

  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* --- Language Toggle --- */
.lang-toggle {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border-subtle);
  padding: 4px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.25s;
  margin-left: 16px;
  flex-shrink: 0;
}

.lang-toggle:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(0, 212, 255, 0.06);
}

@media (max-width: 640px) {
  .lang-toggle {
    position: absolute;
    right: 56px;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0;
  }
}

/* --- Floating TOC --- */
#page-toc {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 950;
  width: 180px;
  pointer-events: auto;
  opacity: 0;
  animation: toc-reveal 0.6s ease 1s forwards;
}

@keyframes toc-reveal {
  to { opacity: 1; }
}

#page-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 1px solid var(--border-subtle);
}

#page-toc li {
  position: relative;
}

#page-toc a {
  display: block;
  padding: 6px 0 6px 16px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.25s;
  line-height: 1.4;
}

#page-toc a:hover {
  color: var(--text-primary);
  text-shadow: none;
}

#page-toc li.active a {
  color: var(--cyan);
}

#page-toc li.active::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

@media (max-width: 1400px) and (min-width: 901px) {
  #page-toc {
    width: auto;
    left: 12px;
  }

  #page-toc ul {
    border-left: none;
  }

  #page-toc a {
    font-size: 0;
    padding: 4px 0;
    display: flex;
    align-items: center;
  }

  #page-toc a::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: background 0.25s, box-shadow 0.25s;
  }

  #page-toc a:hover::before {
    background: var(--text-primary);
  }

  #page-toc li.active a::before {
    background: var(--cyan);
    box-shadow: 0 0 6px var(--cyan);
  }

  #page-toc li.active::before {
    display: none;
  }
}

@media (max-width: 900px) {
  #page-toc {
    display: none;
  }
}
