/* Main Stylesheet - Deferred loading for below-fold content */

/* ===== Sticky High-Contrast Page Progress Bar ===== */
.scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  z-index: 10001;
  pointer-events: none;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #38bdf8, #06b6d4, #10b981);
  background-size: 200% 100%;
  animation: progressGlow 3s ease infinite;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.8), 0 0 4px rgba(56, 189, 248, 0.9);
  transition: width 0.08s ease-out;
  border-radius: 0 2px 2px 0;
}

@keyframes progressGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===== Full-Screen Remote Viewing Glowing Border Overlay ===== */
.remoat-remote-glow-overlay,
#__remoat-glow-border__,
.telepath-remote-glow-overlay,
#__telepath-glow-border__ {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 2147483640;
  box-shadow: inset 0 0 28px 4px rgba(99, 102, 241, 0.75), inset 0 0 60px 10px rgba(56, 189, 248, 0.45), inset 0 0 4px 2px rgba(139, 92, 246, 0.9);
  border: 2px solid rgba(99, 102, 241, 0.85);
  animation: remoatGlowPulse 2.5s ease-in-out infinite alternate;
  transition: opacity 0.3s ease;
}

@keyframes remoatGlowPulse {
  0% {
    box-shadow: inset 0 0 20px 3px rgba(99, 102, 241, 0.6), inset 0 0 45px 6px rgba(56, 189, 248, 0.35), inset 0 0 3px 1px rgba(139, 92, 246, 0.7);
    border-color: rgba(99, 102, 241, 0.6);
  }
  100% {
    box-shadow: inset 0 0 36px 6px rgba(99, 102, 241, 0.9), inset 0 0 80px 14px rgba(56, 189, 248, 0.6), inset 0 0 6px 2px rgba(139, 92, 246, 1);
    border-color: rgba(56, 189, 248, 0.95);
  }
}

@keyframes telepathGlowPulse {
  0% {
    box-shadow: inset 0 0 20px 3px rgba(99, 102, 241, 0.6), inset 0 0 45px 6px rgba(56, 189, 248, 0.35), inset 0 0 3px 1px rgba(139, 92, 246, 0.7);
    border-color: rgba(99, 102, 241, 0.6);
  }
  100% {
    box-shadow: inset 0 0 36px 6px rgba(99, 102, 241, 0.9), inset 0 0 80px 14px rgba(56, 189, 248, 0.6), inset 0 0 6px 2px rgba(139, 92, 246, 1);
    border-color: rgba(56, 189, 248, 0.95);
  }
}

/* ===== Remote Viewing Demo Pill & Radio Toggle ===== */
.remote-viewing-demo-pill {
  max-width: 640px;
  margin: 1.5rem auto 0;
  background: rgba(18, 18, 26, 0.85);
  border: 1px solid rgba(99, 102, 241, 0.35);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), 0 0 12px rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.remote-pill-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text);
}

.live-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 8px var(--color-accent);
  animation: pulse-dot 1.8s infinite;
}

.remote-pill-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
}

.remote-radio-option {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  transition: all 0.2s;
}

.remote-radio-option:hover {
  color: var(--color-text);
  border-color: var(--color-primary);
}

.remote-radio-option input {
  accent-color: var(--color-primary);
  cursor: pointer;
}

/* ===== 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;
}

/* ===== Section Shared Styles ===== */
.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0.5rem auto 2.5rem;
  text-align: center;
}

section h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.01em;
}

/* ===== Comparison Table ===== */
.comparison {
  padding: var(--spacing-2xl) 0;
}

.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: var(--spacing-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.comparison table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 640px;
}

.comparison thead {
  background: var(--color-surface-elevated);
}

.comparison th,
.comparison td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.comparison th[scope="col"] {
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.comparison th[scope="row"] {
  font-weight: 500;
  color: var(--color-text);
}

.comparison td {
  color: var(--color-text-muted);
}

.comparison .highlight-col {
  background: rgba(108, 92, 231, 0.06);
  color: var(--color-accent);
  font-weight: 600;
}

.comparison thead .highlight-col {
  color: var(--color-primary);
  background: rgba(108, 92, 231, 0.1);
}

.comparison tbody tr:last-child th,
.comparison tbody tr:last-child td {
  border-bottom: none;
}

.comparison tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* ===== Features Grid ===== */
.features {
  padding: var(--spacing-2xl) 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
  line-height: 1;
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ===== Install / Code Section ===== */
.install {
  padding: var(--spacing-2xl) 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.code-tabs {
  display: flex;
  gap: 0;
  margin-top: var(--spacing-lg);
  border-bottom: 1px solid var(--color-border);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.code-tab {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  background: none;
}

.code-tab:hover {
  color: var(--color-text);
}

.code-tab.active,
.code-tab[aria-selected="true"] {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.code-panels {
  max-width: 640px;
  margin: 0 auto;
}

.code-panel {
  position: relative;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: var(--spacing-md) var(--spacing-lg);
}

.code-panel[hidden] {
  display: none;
}

.code-panel pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-success);
  overflow-x: auto;
}

.copy-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: color 0.2s, border-color 0.2s;
}

.copy-btn:hover {
  color: var(--color-text);
  border-color: var(--color-primary);
}

.copy-btn.copied {
  color: var(--color-success);
  border-color: var(--color-success);
}

.code-usage {
  max-width: 640px;
  margin: var(--spacing-lg) auto 0;
}

.code-usage h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.code-usage-panel {
  position: relative;
}

.code-usage-panel pre,
.code-usage pre {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--spacing-md) var(--spacing-lg);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.8;
  overflow-x: auto;
}

.token-keyword { color: var(--color-primary); font-weight: 600; }
.token-string { color: var(--color-success); }
.token-comment { color: var(--color-text-muted); font-style: italic; }
.token-boolean { color: #f472b6; font-weight: 600; }

/* ===== FAQ Section ===== */
.faq {
  padding: var(--spacing-2xl) 0;
}

.faq-list {
  max-width: 768px;
  margin: var(--spacing-lg) auto 0;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
  overflow: hidden;
  transition: border-color 0.2s;
}

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

.faq-item[open] {
  border-color: var(--color-primary);
}

.faq-item summary {
  padding: var(--spacing-md) var(--spacing-lg);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  color: var(--color-text);
  transition: background 0.2s;
}

.faq-item summary:hover {
  background: var(--color-surface);
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--color-text-muted);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "\2212";
  color: var(--color-primary);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-answer {
  padding: 0 var(--spacing-lg) var(--spacing-lg);
}

.faq-answer p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.faq-answer code {
  background: var(--color-surface-elevated);
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--color-accent);
}

/* ===== Footer ===== */
.site-footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--color-border);
  background: #080b14;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-brand .logo {
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
  max-width: 320px;
}

.footer-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 9999px;
  padding: 5px 12px;
  font-size: 0.775rem;
  font-weight: 600;
  color: #34d399;
}

.status-dot-pulse {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.site-footer nav h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  margin-bottom: 16px;
}

.site-footer nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer nav li {
  margin-bottom: 10px;
}

.site-footer nav a {
  font-size: 0.875rem;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-footer nav a:hover {
  color: #818cf8;
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #34d399;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-sm);
}

.footer-copyright {
  font-size: 0.825rem;
  color: #64748b;
}

/* ===== Responsive: Tablet ===== */
@media (max-width: 1080px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
  .footer-brand {
    grid-column: span 3;
  }
}

/* ===== Responsive: Mobile ===== */
@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-brand {
    grid-column: span 2;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .comparison {
    padding: var(--spacing-xl) 0;
  }

  .features,
  .faq,
  .install {
    padding: var(--spacing-xl) 0;
  }

  .code-tabs {
    overflow-x: auto;
  }
}

/* ===== Responsive: Small Mobile ===== */
@media (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-sm);
  }

  .feature-card {
    padding: var(--spacing-md);
  }

  .faq-item summary {
    padding: var(--spacing-md);
    font-size: 0.9rem;
  }

  .faq-answer {
    padding: 0 var(--spacing-md) var(--spacing-md);
  }
}

/* ===== Content Visibility for Below-Fold Performance ===== */
.comparison,
.features,
.faq {
  content-visibility: auto;
  contain-intrinsic-size: 0 600px;
}

/* ===== Focus Styles for Keyboard Navigation ===== */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

/* ===== Print Styles ===== */
@media print {
  .site-header,
  .hero-cta-group,
  .code-tabs,
  .copy-btn,
  .footer-badges {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}

/* ===== Auth Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
}

.modal-overlay[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.modal-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
}

.modal-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  color: var(--color-text-muted);
  line-height: 1;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}

.modal-close:hover {
  color: var(--color-text);
  background: var(--color-surface-elevated);
}

/* Modal Tabs */
.modal-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--spacing-lg);
}

.modal-tab {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-align: center;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  background: none;
}

.modal-tab:hover {
  color: var(--color-text);
}

.modal-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* Modal Content */
.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
}

.modal-subtitle {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-lg);
}

.modal-panel[hidden] {
  display: none;
}

/* Auth Form (inside modal) */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.form-group label {
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--color-text);
}

.auth-form input {
  width: 100%;
  padding: 0.7rem 1rem;
  font-size: 0.875rem;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.auth-form input::placeholder {
  color: var(--color-text-muted);
  opacity: 0.5;
}

.auth-form input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper input {
  padding-right: 2.5rem;
}

.toggle-password {
  position: absolute;
  right: 0.75rem;
  color: var(--color-text-muted);
  display: flex;
  padding: 0.25rem;
  transition: color 0.2s;
}

.toggle-password:hover {
  color: var(--color-text);
}

/* Form errors & messages */
.form-error {
  font-size: 0.75rem;
  color: #ef4444;
  min-height: 0;
  opacity: 0;
  transition: opacity 0.2s;
}

.form-error.visible {
  opacity: 1;
  min-height: 1rem;
}

.form-message {
  padding: 0.625rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  font-weight: 500;
}

.form-message--error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}

.form-message--success {
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid rgba(0, 230, 118, 0.25);
  color: var(--color-success);
}

/* Submit button in modal */
.auth-submit {
  width: 100%;
  justify-content: center;
  padding: 0.8rem 2rem;
  margin-top: var(--spacing-xs);
}

.auth-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Legal text & switch links */
.form-legal {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.5;
}

.form-legal a {
  color: var(--color-primary);
}

.modal-switch {
  text-align: center;
  font-size: 0.825rem;
  color: var(--color-text-muted);
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--color-border);
}

.link-btn {
  color: var(--color-primary);
  font-weight: 500;
  font-size: inherit;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
}

.link-btn:hover {
  text-decoration: underline;
}

/* Responsive modal */
@media (max-width: 480px) {
  .modal-card {
    padding: var(--spacing-md);
  }

  .modal-title {
    font-size: 1.25rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .btn-spinner {
    animation: none;
  }

  .modal-overlay {
    transition: none;
  }
}

/* ===== Level 10 PSEO & Programmatic Hub Styles ===== */
.pseo-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.pseo-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.pseo-breadcrumb a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.pseo-breadcrumb a:hover {
  color: var(--color-primary);
}

.pseo-hero {
  text-align: center;
  max-width: 840px;
  margin: 0 auto 56px;
}

.pseo-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.775rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.3);
  margin-bottom: 16px;
}

.pseo-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 40%, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pseo-tagline {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.pseo-summary {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

.pseo-cta-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.pseo-section {
  margin-bottom: 64px;
}

.table-container {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.pseo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.925rem;
  text-align: left;
}

.pseo-table th,
.pseo-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
}

.pseo-table th {
  background: rgba(255, 255, 255, 0.03);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pseo-table .winner-cell {
  background: rgba(99, 102, 241, 0.08);
  color: #fff;
  font-weight: 600;
}

.pseo-table .check-icon {
  color: var(--color-success);
  font-weight: 800;
  margin-right: 6px;
}

.pseo-table .competitor-cell {
  color: var(--color-text-muted);
}

.pseo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.pseo-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.pseo-card .card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}

.pseo-card .card-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0;
}

.pseo-card-highlight {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.15));
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  margin-top: 40px;
}

.pseo-code-compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.code-box {
  background: #090d16;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.code-box.winner {
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
}

.code-header {
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.8rem;
  font-weight: 700;
  color: #94a3b8;
}

.code-box pre {
  padding: 16px;
  margin: 0;
  overflow-x: auto;
  font-family: var(--font-mono, monospace);
  font-size: 0.85rem;
  line-height: 1.5;
  color: #e2e8f0;
}

.pseo-cta-card {
  background: radial-gradient(circle at top, rgba(99, 102, 241, 0.25), transparent 70%), var(--color-surface);
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  margin-top: 48px;
}

.pseo-cta-card h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.pseo-cta-card p {
  color: var(--color-text-muted);
  max-width: 500px;
  margin: 0 auto 24px;
}

/* Tool & Terminal Boxes */
.tool-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.terminal-box {
  background: #090d16;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  min-height: 200px;
  max-height: 360px;
  overflow-y: auto;
  font-family: var(--font-mono, monospace);
  font-size: 0.825rem;
}

.terminal-line {
  margin: 4px 0;
  color: #94a3b8;
}

.terminal-line.success { color: #34d399; font-weight: 600; }
.terminal-line.warn { color: #facc15; }
.terminal-line.error { color: #f87171; font-weight: 600; }

.stat-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 6px;
}

.stat-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #e2e8f0;
  cursor: pointer;
}

.symptoms-box {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-md);
  padding: 20px;
}

.symptoms-box ul {
  margin: 0;
  padding-left: 20px;
}

.symptoms-box li {
  margin: 8px 0;
}

.symptoms-box code {
  color: #fca5a5;
  font-family: var(--font-mono, monospace);
  font-size: 0.85rem;
}

.cause-num {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ===== Tools Directory Hub (/tools) ===== */
.tools-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.tool-directory-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.tool-directory-card:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.tool-card-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.tool-card-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #818cf8;
  margin-bottom: 8px;
}

.tool-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.tool-card-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
  flex: 1;
}

.tool-launch-btn {
  align-self: flex-start;
}

/* ===== Blog Hub & Articles (/blog, /blog/:slug) ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
  margin-bottom: 48px;
}

.blog-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s;
}

.blog-card:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 102, 241, 0.5);
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.blog-category {
  color: #818cf8;
  font-weight: 700;
  text-transform: uppercase;
}

.blog-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 12px;
}

.blog-card-title a {
  color: #fff;
  text-decoration: none;
}

.blog-card-title a:hover {
  color: var(--color-primary);
}

.blog-card-intro {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  flex: 1;
}

.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
  font-size: 0.825rem;
}

.blog-read-link {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.blog-read-link:hover {
  text-decoration: underline;
}

.article-container {
  max-width: 800px;
}

.article-header {
  margin-bottom: 36px;
  text-align: left;
}

.article-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 16px 0 12px;
  color: #fff;
}

.article-byline {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
}

.author-meta-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  transition: color 0.2s, transform 0.2s;
}

.author-meta-link:hover {
  color: var(--color-primary);
  transform: translateX(2px);
}

.author-meta-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-primary);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

.author-meta-name {
  font-weight: 700;
  text-transform: uppercase;
}

.article-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.article-meta-item svg,
.article-meta-readtime svg {
  width: 15px;
  height: 15px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.article-meta-readtime {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #a5b4fc;
}

/* In-Article Author Footer Card */
.author-about-card {
  margin: 48px 0 36px;
  padding: 32px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

@media (max-width: 640px) {
  .author-about-card {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
}

.author-about-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-primary);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.5);
}

.author-about-header {
  margin-bottom: 8px;
}

.author-about-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.author-about-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.author-about-name a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}

.author-about-name a:hover {
  color: var(--color-primary);
}

.author-about-role {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 12px;
}

.author-about-bio {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #cbd5e1;
  margin-bottom: 16px;
}

.author-about-credentials {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.author-about-credentials li {
  font-size: 0.85rem;
  color: #a5b4fc;
  display: flex;
  align-items: center;
  gap: 8px;
}

.author-about-credentials li::before {
  content: '✓';
  color: #22c55e;
  font-weight: 800;
}

.author-about-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.author-social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.author-social-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

/* ===== Dedicated Author Profile Page (/author/:slug) ===== */
.author-profile-hero {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-xl);
  padding: 48px;
  margin-bottom: 56px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: start;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .author-profile-hero {
    grid-template-columns: 1fr;
    padding: 28px;
    text-align: center;
    justify-items: center;
  }
}

.author-profile-avatar-wrapper {
  position: relative;
}

.author-profile-avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--color-primary);
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.6);
}

.author-profile-verified-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: #22c55e;
  color: #fff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border: 2px solid #0f172a;
}

.author-profile-header {
  margin-bottom: 12px;
}

.author-profile-name {
  font-size: 2.25rem;
  font-weight: 900;
  color: #fff;
  margin: 6px 0 8px;
}

.author-profile-role {
  font-size: 1.1rem;
  color: #94a3b8;
  font-weight: 500;
}

.author-profile-bio {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #cbd5e1;
  margin-bottom: 24px;
}

.author-topics-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.author-topic-pill {
  padding: 4px 12px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #818cf8;
}

.author-section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.authors-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  margin-bottom: 48px;
}

.author-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.author-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.author-card-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-primary);
  margin-bottom: 16px;
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.4);
}

.author-card-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.author-card-name a {
  color: #fff;
  text-decoration: none;
}

.author-card-name a:hover {
  color: var(--color-primary);
}

.author-card-role {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 14px;
}

.author-card-bio {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  flex: 1;
}

.author-card-link {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.author-card-link:hover {
  text-decoration: underline;
}

.article-lead {
  font-size: 1.2rem;
  line-height: 1.65;
  color: #e2e8f0;
  margin-bottom: 32px;
  border-left: 3px solid var(--color-primary);
  padding-left: 18px;
}

.article-section {
  margin-bottom: 32px;
}

.article-section-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.article-section p {
  font-size: 1.025rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* ===== Debug Guides Directory Hub (/debug) ===== */
.debug-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.debug-guide-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.debug-guide-card:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.debug-card-framework {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #818cf8;
  margin-bottom: 8px;
}

.debug-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 12px;
}

.debug-card-title a {
  color: #fff;
  text-decoration: none;
}

.debug-card-title a:hover {
  color: var(--color-primary);
}

.debug-card-symptoms {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 20px;
  font-size: 0.8rem;
  flex: 1;
}

.debug-symptom-tag {
  display: block;
  font-weight: 700;
  color: #f87171;
  text-transform: uppercase;
  font-size: 0.7rem;
  margin-bottom: 4px;
}

.debug-card-symptoms code {
  color: #fca5a5;
  font-family: var(--font-mono, monospace);
  word-break: break-all;
}

.debug-card-btn {
  align-self: flex-start;
}

/* ===== Documentation Hub (/docs, /docs/:slug) ===== */
.docs-container {
  max-width: 1200px;
}

.docs-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: flex-start;
  margin-bottom: 48px;
}

@media (max-width: 860px) {
  .docs-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.docs-sidebar {
  position: sticky;
  top: 90px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.docs-sidebar-header {
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}

.docs-nav-group {
  margin-bottom: 20px;
}

.docs-nav-heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #818cf8;
  margin-bottom: 8px;
}

.docs-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.docs-nav-list li {
  margin: 4px 0;
}

.docs-nav-link {
  display: block;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.15s ease;
}

.docs-nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
}

.docs-nav-link.active {
  color: #fff;
  background: rgba(99, 102, 241, 0.15);
  border-left: 3px solid var(--color-primary);
  font-weight: 600;
}

.docs-content {
  min-width: 0;
}

.docs-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  margin: 12px 0 16px;
  line-height: 1.25;
}

.docs-summary {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.docs-section {
  margin-bottom: 36px;
}

.docs-section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.docs-section-text {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  white-space: pre-line;
}

.docs-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.docs-link-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.docs-link-card:hover {
  border-color: var(--color-primary);
  background: rgba(99, 102, 241, 0.08);
  transform: translateY(-2px);
  text-decoration: none;
}

.docs-arrow {
  color: var(--color-primary);
  font-weight: 700;
}

.docs-points-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.docs-points-list li {
  position: relative;
  padding-left: 24px;
  margin: 10px 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.docs-points-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: 700;
}

.docs-code-box {
  margin: 16px 0;
}

/* ===== Modern Code Snapshot & Syntax Highlighter ===== */
.code-snapshot {
  background: #0d111d;
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-lg);
  margin: 20px 0 28px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.code-snapshot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #090c15;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 16px;
  min-height: 44px;
}

.code-snapshot-title {
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #818cf8;
}

.code-snapshot-tabs {
  display: flex;
  gap: 4px;
}

.code-snapshot-tab {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.code-snapshot-tab:hover {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.05);
}

.code-snapshot-tab.active {
  color: #fff;
  background: rgba(99, 102, 241, 0.18);
  box-shadow: inset 0 -2px 0 #818cf8;
}

.code-snapshot-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: #cbd5e1;
  font-size: 0.775rem;
  font-weight: 600;
  padding: 5px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.code-snapshot-copy-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.code-snapshot-copy-btn.copied {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
  color: #34d399;
}

.code-snapshot-panel {
  display: none;
  padding: 20px 24px;
  overflow-x: auto;
}

.code-snapshot-panel.active {
  display: block;
}

.code-snapshot-pre {
  margin: 0;
  padding: 0;
  background: transparent;
  overflow-x: auto;
}

.code-snapshot-code {
  font-family: 'JetBrains Mono', 'Fira Code', var(--font-mono, monospace);
  font-size: 0.925rem;
  line-height: 1.65;
  color: #e2e8f0;
  display: block;
}

/* Syntax Highlighting Tokens */
.tok-keyword {
  color: #f472b6; /* pink */
  font-weight: 600;
}

.tok-string {
  color: #34d399; /* emerald */
}

.tok-prop {
  color: #fbbf24; /* amber */
}

.tok-type {
  color: #38bdf8; /* electric cyan */
  font-weight: 600;
}

.tok-func {
  color: #60a5fa; /* light blue */
}

.tok-comment {
  color: #64748b; /* slate */
  font-style: italic;
}

.tok-bool,
.tok-number {
  color: #c084fc; /* purple */
}

.tok-tag {
  color: #f87171; /* coral */
}

/* ===== Competitor Comparisons Hub (/vs, /compare) ===== */
.comparisons-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.comparison-directory-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.comparison-directory-card:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.comparison-card-badge {
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #818cf8;
  margin-bottom: 8px;
}

.comparison-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.comparison-card-tagline {
  font-size: 0.85rem;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 12px;
}

.comparison-card-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-bottom: 20px;
  flex: 1;
}

.comparison-key-metrics {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 20px;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  margin: 4px 0;
}

.metric-label {
  color: var(--color-text-muted);
}

.metric-val.winner {
  color: #10b981;
  font-weight: 700;
}

.metric-comp {
  color: #64748b;
  font-size: 0.75rem;
}

.comparison-launch-btn {
  align-self: flex-start;
}

/* ===== Interactive JSON Beautifier & Colorizer Suite ===== */
.json-beautifier-suite {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.json-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  background: #090d16;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.json-actions-left,
.json-actions-right {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.json-textarea {
  width: 100%;
  height: 160px;
  padding: 14px;
  background: #070a12;
  border: 1px solid var(--color-border);
  color: #e2e8f0;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  border-radius: var(--radius-md);
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}

.json-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
}

.json-stats-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 16px;
  background: #090d16;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.825rem;
}

.json-stats-bar.valid {
  border-left: 4px solid #10b981;
}

.json-stats-bar.invalid {
  border-left: 4px solid #ef4444;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #cbd5e1;
}

.stat-lbl {
  color: #64748b;
}

.status-indicator {
  color: #10b981;
}

.json-stats-bar.invalid .status-indicator {
  color: #ef4444;
}

.json-output-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.json-output-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #818cf8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.json-color-viewer {
  background: #090c15;
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  max-height: 480px;
  overflow-y: auto;
  overflow-x: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.json-color-pre {
  margin: 0;
  padding: 0;
  background: transparent;
}

.json-color-code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.925rem;
  line-height: 1.65;
  color: #e2e8f0;
  display: block;
}

/* JSON Color Tokens */
.json-key {
  color: #fbbf24; /* amber/warm yellow */
  font-weight: 600;
}

.json-string {
  color: #34d399; /* emerald green */
}

.json-number {
  color: #c084fc; /* purple/violet */
  font-weight: 600;
}

.json-bool {
  color: #f472b6; /* pink/magenta */
  font-weight: 600;
}

.json-null {
  color: #94a3b8; /* slate */
  font-style: italic;
}

.json-brace {
  color: #38bdf8; /* cyan */
}

.json-bracket {
  color: #a78bfa; /* lavender */
}

.json-punct {
  color: #64748b; /* muted slate */
}

.json-error {
  color: #f87171;
  background: rgba(239, 68, 68, 0.1);
  padding: 12px;
  border-radius: 4px;
  display: block;
  font-family: monospace;
}

/* ─── Made in India Banner ─────────────────────────────────────────────────── */
.made-in-india-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  padding: 6px 16px;
  margin-bottom: 24px;
  font-size: 0.85rem;
  color: #e2e8f0;
  backdrop-filter: blur(8px);
}

.india-flag-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(255, 153, 51, 0.2), rgba(19, 136, 8, 0.2));
  border: 1px solid rgba(255, 153, 51, 0.4);
  color: #ffedd5;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
}

/* ─── V2 Capabilities Pill Grid ────────────────────────────────────────────── */
.v2-capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 36px 0;
}

.v2-capability-pill {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.8));
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 12px;
  padding: 16px 20px;
  text-align: left;
  transition: all 0.2s ease;
}

.v2-capability-pill:hover {
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
}

.v2-cap-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.v2-cap-desc {
  font-size: 0.825rem;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
}

/* ─── Client Trust & Case Studies Showcase ─────────────────────────────────── */
.clients-section {
  padding: 80px 0;
  background: rgba(15, 23, 42, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.client-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.5), rgba(15, 23, 42, 0.7));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.client-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.client-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.client-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.client-website-link {
  font-size: 0.75rem;
  color: #60a5fa;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.client-website-link:hover {
  text-decoration: underline;
}

.client-impact-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.client-quote {
  font-size: 0.875rem;
  color: #cbd5e1;
  line-height: 1.55;
  margin-bottom: 16px;
}

/* ─── Pricing Section ──────────────────────────────────────────────────────── */
.pricing-section {
  padding: 90px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.pricing-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.5), rgba(15, 23, 42, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.25s ease;
}

.pricing-card.featured {
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.2);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.95));
}

.pricing-card:hover {
  transform: translateY(-4px);
}

.pricing-badge-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 14px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.pricing-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px 0;
}

.pricing-desc {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 24px;
  min-height: 40px;
}

.pricing-cost {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 24px;
}

.price-currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.price-num {
  font-size: 3rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.price-period {
  font-size: 0.85rem;
  color: #94a3b8;
}

.pricing-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
}

.pricing-features-list li {
  font-size: 0.875rem;
  color: #cbd5e1;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pricing-features-list li span.check {
  color: #34d399;
  font-weight: 800;
}

/* ─── Blog Preview Section ─────────────────────────────────────────────────── */
.blog-preview-section {
  padding: 90px 0;
  background: rgba(10, 10, 15, 0.5);
}

.blog-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.blog-preview-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.4), rgba(15, 23, 42, 0.7));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.blog-preview-card:hover {
  border-color: rgba(99, 102, 241, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.blog-preview-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.blog-preview-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.blog-preview-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin: 8px 0 10px 0;
}

.blog-preview-title a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}

.blog-preview-title a:hover {
  color: #60a5fa;
}

.blog-preview-desc {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 16px;
}

