/* ==========================================================================
   REED PROGRAMMING LANGUAGE & RPK REGISTRY — BRAND DESIGN SYSTEM
   "Modern programming, refined."
   Aesthetic: Apple × Linear × Rust/Go documentation × futuristic hardware
   ========================================================================== */

:root {
  /* Core Brand Palette (Dark by default) */
  --reed-bg: #07090D;
  --reed-surface: #0D1117;
  --reed-surface-2: #121A27;
  --reed-border: #202A38;
  --reed-border-hover: #354255;

  --reed-text: #F5F7FA;
  --reed-text-secondary: #AAB6C5;
  --reed-text-muted: #6F7C8C;

  --reed-silver: #C9D2DE;
  --reed-blue: #8FA9C8;
  --reed-ice: #DCE8F5;
  --reed-accent: #6EA8E5;

  --reed-line: rgba(143, 169, 200, 0.25);
  --reed-subtle-glow: rgba(110, 168, 229, 0.08);

  /* Code Syntax Theme: Reed Dark */
  --code-bg: #090C11;
  --code-border: #202A38;
  --syn-kw: #C7D8EA;
  --syn-fn: #8FB5DE;
  --syn-str: #AFC9B4;
  --syn-type: #D5C7E8;
  --syn-num: #D8B58A;
  --syn-comment: #657386;
  --syn-interp: #F6AD55;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Dimensions & Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;

  --transition: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Variables */
[data-theme="light"] {
  --reed-bg: #F6F8FB;
  --reed-surface: #FFFFFF;
  --reed-surface-2: #EDF2F7;
  --reed-border: #D8E0EA;
  --reed-border-hover: #CBD5E1;

  --reed-text: #10151C;
  --reed-text-secondary: #526070;
  --reed-text-muted: #7B8BA0;

  --reed-silver: #718096;
  --reed-blue: #537AA5;
  --reed-ice: #10151C;
  --reed-accent: #3182CE;

  --reed-line: rgba(83, 122, 165, 0.25);
  --reed-subtle-glow: rgba(83, 122, 165, 0.05);

  --code-bg: #F1F4F8;
  --code-border: #D8E0EA;
  --syn-kw: #1E40AF;
  --syn-fn: #0369A1;
  --syn-str: #15803D;
  --syn-type: #6B21A8;
  --syn-num: #B45309;
  --syn-comment: #64748B;
  --syn-interp: #C2410C;
}

/* Base & Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--reed-bg);
  color: var(--reed-text);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--reed-bg);
  transition: background-color var(--transition), color var(--transition);
}

/* Subtle Technical Grid Background */
.bg-grid {
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
}

[data-theme="light"] .bg-grid {
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

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

button, input, select, textarea {
  font-family: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* View Sections Routing */
.view-section {
  display: none;
}

.view-section.active {
  display: block;
  animation: fadeInView 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* The "Reed Line" Motif */
.reed-line-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 40px 0;
  color: var(--reed-text-muted);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reed-line-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--reed-line), transparent);
}

.reed-line-divider::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--reed-line);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 9, 13, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--reed-border);
  transition: all var(--transition);
}

[data-theme="light"] .site-header {
  background: rgba(246, 248, 251, 0.88);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.25rem;
  color: var(--reed-text);
}

.brand-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 6px;
  filter: drop-shadow(0 2px 8px rgba(110, 168, 229, 0.25));
  transition: transform var(--transition);
}

.brand-link:hover .brand-logo-img {
  transform: scale(1.05);
}

.brand-wordmark {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.04em;
  font-size: 1.3rem;
  color: var(--reed-text);
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 6px;
}

.nav-item button {
  background: transparent;
  border: none;
  color: var(--reed-text-secondary);
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.nav-item button:hover {
  color: var(--reed-text);
  background: rgba(255, 255, 255, 0.04);
}

[data-theme="light"] .nav-item button:hover {
  background: rgba(0, 0, 0, 0.04);
}

.nav-item button.active {
  color: var(--reed-text);
  background: var(--reed-surface);
  border: 1px solid var(--reed-border);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--reed-border);
  color: var(--reed-text-secondary);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}

.theme-toggle-btn:hover {
  border-color: var(--reed-border-hover);
  color: var(--reed-text);
  background: var(--reed-surface);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
  outline: none;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--reed-ice);
  color: #07090D;
  border-color: var(--reed-ice);
}

.btn-primary:hover {
  background: #F5F7FA;
  border-color: #F5F7FA;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--reed-border-hover);
  color: var(--reed-text);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--reed-text-muted);
  transform: translateY(-1px);
}

[data-theme="light"] .btn-secondary:hover {
  background: rgba(0, 0, 0, 0.04);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.84rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
  padding: 90px 0 70px;
  text-align: center;
  position: relative;
  background: radial-gradient(circle at 50% 15%, var(--reed-subtle-glow), transparent 45%), var(--reed-bg);
}

.hero-identity-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--reed-blue);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  background: var(--reed-surface);
  border: 1px solid var(--reed-border);
}

.hero-title {
  font-size: clamp(2.6rem, 5.2vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin-bottom: 22px;
  color: var(--reed-text);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--reed-text-secondary);
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

/* Terminal Install Bar */
.install-bar-wrapper {
  max-width: 620px;
  margin: 0 auto 50px;
  background: var(--code-bg);
  border: 1px solid var(--reed-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-align: left;
}

.install-bar-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: var(--reed-surface);
  border-bottom: 1px solid var(--reed-border);
}

.os-tab-group {
  display: flex;
  gap: 4px;
}

.os-tab-btn {
  background: transparent;
  border: none;
  color: var(--reed-text-muted);
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.os-tab-btn:hover {
  color: var(--reed-text);
}

.os-tab-btn.active {
  color: var(--reed-text);
  background: var(--reed-border);
  font-weight: 600;
}

.install-bar-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  font-family: var(--font-mono);
  font-size: 0.92rem;
}

.cmd-text {
  color: var(--reed-text);
  user-select: all;
  white-space: nowrap;
  overflow-x: auto;
  margin-right: 12px;
}

.cmd-text span.prompt {
  color: var(--reed-text-muted);
  margin-right: 8px;
  user-select: none;
}

.copy-btn {
  background: transparent;
  border: 1px solid var(--reed-border);
  color: var(--reed-text-muted);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition);
}

.copy-btn:hover {
  color: var(--reed-text);
  border-color: var(--reed-blue);
  background: var(--reed-surface);
}

/* ==========================================================================
   CODE SHOWCASE (TECHNICAL PANEL)
   ========================================================================== */

.code-showcase-container {
  max-width: 1040px;
  margin: 0 auto;
  background: var(--reed-surface);
  border: 1px solid var(--reed-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: left;
}

.code-showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--reed-surface-2);
  border-bottom: 1px solid var(--reed-border);
  padding: 0 16px;
  overflow-x: auto;
}

.window-dots {
  display: flex;
  gap: 7px;
  padding: 14px 10px 14px 0;
}

.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #354255;
}

.showcase-tabs {
  display: flex;
  gap: 2px;
}

.showcase-tab {
  background: transparent;
  border: none;
  color: var(--reed-text-muted);
  font-size: 0.85rem;
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  font-family: var(--font-mono);
}

.showcase-tab:hover {
  color: var(--reed-text-secondary);
}

.showcase-tab.active {
  color: var(--reed-text);
  border-bottom-color: var(--reed-blue);
  font-weight: 600;
}

.code-showcase-body {
  display: grid;
  grid-template-columns: 1fr 340px;
  min-height: 380px;
}

@media (max-width: 880px) {
  .code-showcase-body {
    grid-template-columns: 1fr;
  }
}

.code-editor-mock {
  padding: 24px;
  background: var(--code-bg);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.65;
  overflow-x: auto;
  color: var(--reed-text);
}

.showcase-info-pane {
  padding: 24px;
  background: var(--reed-surface);
  border-left: 1px solid var(--reed-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.showcase-info-pane h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
  color: var(--reed-text);
}

.showcase-info-pane p {
  font-size: 0.88rem;
  color: var(--reed-text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.showcase-feature-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.showcase-feature-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--reed-text-secondary);
}

.showcase-feature-points li svg {
  width: 14px;
  height: 14px;
  color: var(--reed-blue);
  flex-shrink: 0;
}

/* ==========================================================================
   TECHNICAL PANELS / CARDS SECTION
   ========================================================================== */

.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}

.section-badge {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--reed-blue);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
  color: var(--reed-text);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--reed-text-secondary);
  line-height: 1.6;
}

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

/* Technical Panel Card (8-14px border-radius, clean border) */
.tech-card {
  background: var(--reed-surface);
  border: 1px solid var(--reed-border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

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

.tech-card-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--reed-text-muted);
  font-weight: 600;
}

.tech-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
  color: var(--reed-text);
}

.tech-card p {
  font-size: 0.88rem;
  color: var(--reed-text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.tech-code-pill {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: var(--code-bg);
  border: 1px solid var(--reed-border);
  color: var(--reed-silver);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  display: inline-block;
}

/* ==========================================================================
   BENCHMARK SECTION (PRECISION METRICS)
   ========================================================================== */

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

.benchmark-panel {
  background: var(--reed-surface);
  border: 1px solid var(--reed-border);
  border-radius: var(--radius-md);
  padding: 28px;
}

.benchmark-panel h4 {
  font-size: 0.95rem;
  margin-bottom: 20px;
  color: var(--reed-text);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.benchmark-row {
  margin-bottom: 14px;
}

.benchmark-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 6px;
  color: var(--reed-text-secondary);
  font-family: var(--font-mono);
}

.benchmark-label strong {
  color: var(--reed-text);
}

.benchmark-bar-track {
  height: 6px;
  background: var(--reed-surface-2);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.benchmark-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
}

.fill-reed {
  background: linear-gradient(90deg, var(--reed-silver), var(--reed-blue));
}

.fill-other {
  background: #354255;
}

/* ==========================================================================
   DOCUMENTATION SECTION
   ========================================================================== */

.docs-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
  min-height: 800px;
}

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

.docs-sidebar {
  position: sticky;
  top: 90px;
  height: calc(100vh - 110px);
  overflow-y: auto;
  background: var(--reed-surface);
  border: 1px solid var(--reed-border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.docs-search-input {
  width: 100%;
  background: var(--code-bg);
  border: 1px solid var(--reed-border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: var(--reed-text);
  font-size: 0.85rem;
  margin-bottom: 20px;
  outline: none;
  transition: border-color var(--transition);
}

.docs-search-input:focus {
  border-color: var(--reed-blue);
}

.docs-group-title {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--reed-text-muted);
  margin-bottom: 10px;
  padding-left: 6px;
}

.docs-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 20px;
}

.docs-nav-link {
  display: block;
  padding: 6px 10px;
  font-size: 0.86rem;
  color: var(--reed-text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.docs-nav-link:hover {
  color: var(--reed-text);
  background: var(--reed-surface-2);
}

.docs-nav-link.active {
  color: var(--reed-text);
  background: var(--reed-surface-2);
  border-left: 2px solid var(--reed-blue);
  font-weight: 600;
}

.docs-content {
  background: var(--reed-surface);
  border: 1px solid var(--reed-border);
  border-radius: var(--radius-md);
  padding: 36px;
}

.doc-article h2 {
  font-size: 1.85rem;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  border-bottom: 1px solid var(--reed-border);
  padding-bottom: 12px;
  color: var(--reed-text);
}

.doc-article h3 {
  font-size: 1.25rem;
  margin: 30px 0 12px;
  color: var(--reed-text);
  letter-spacing: -0.02em;
}

.doc-article p {
  font-size: 0.95rem;
  color: var(--reed-text-secondary);
  margin-bottom: 16px;
  line-height: 1.65;
}

.doc-article ul {
  margin: 0 0 20px 20px;
  color: var(--reed-text-secondary);
}

.doc-article li {
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.doc-alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin: 20px 0;
  font-size: 0.9rem;
  background: var(--reed-surface-2);
  border-left: 4px solid var(--reed-blue);
  color: var(--reed-text-secondary);
  line-height: 1.6;
}

.doc-alert.tip {
  border-left-color: #22c55e;
  background: rgba(34, 197, 94, 0.08);
}

.doc-alert.warning {
  border-left-color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
}

.doc-alert.danger {
  border-left-color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
}

.doc-alert.info {
  border-left-color: var(--reed-accent);
  background: rgba(110, 168, 229, 0.08);
}

.doc-table-wrapper {
  overflow-x: auto;
  margin: 20px 0;
}

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

.doc-table th {
  background: var(--reed-surface-2);
  color: var(--reed-text);
  font-weight: 600;
  padding: 10px 14px;
  border: 1px solid var(--reed-border);
}

.doc-table td {
  padding: 10px 14px;
  border: 1px solid var(--reed-border);
  color: var(--reed-text-secondary);
}

.doc-table tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.015);
}

.code-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}

@media (max-width: 768px) {
  .code-compare-grid {
    grid-template-columns: 1fr;
  }
}

.code-compare-card {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--reed-border);
}

.code-compare-card.bad {
  border-color: rgba(239, 68, 68, 0.4);
}

.code-compare-card.good {
  border-color: rgba(34, 197, 94, 0.4);
}

.code-compare-header {
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 8px;
}

.code-compare-card.bad .code-compare-header {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

.code-compare-card.good .code-compare-header {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
}

.code-compare-card pre {
  margin: 0;
  border: none;
  border-radius: 0;
  padding: 12px 14px;
  font-size: 0.85rem;
}

.beginner-step {
  display: flex;
  gap: 16px;
  margin: 24px 0;
  align-items: flex-start;
}

.step-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--reed-accent);
  color: #07090D;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(110, 168, 229, 0.4);
}

.step-content {
  flex: 1;
}

.step-content h4 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 1.05rem;
  color: var(--reed-text);
}

/* ==========================================================================
   PLAYGROUND & REUI SIMULATOR
   ========================================================================== */

.playground-wrapper {
  background: var(--reed-surface);
  border: 1px solid var(--reed-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.playground-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: var(--reed-surface-2);
  border-bottom: 1px solid var(--reed-border);
  flex-wrap: wrap;
  gap: 10px;
}

.playground-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 500px;
}

@media (max-width: 960px) {
  .playground-grid {
    grid-template-columns: 1fr;
  }
}

.editor-pane {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--reed-border);
  background: var(--code-bg);
}

.editor-pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: var(--reed-surface);
  border-bottom: 1px solid var(--reed-border);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--reed-text-muted);
}

.editor-textarea {
  flex: 1;
  width: 100%;
  background: transparent;
  color: var(--reed-text);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.6;
  padding: 20px;
  border: none;
  outline: none;
  resize: none;
  white-space: pre;
}

.output-pane {
  display: flex;
  flex-direction: column;
  background: var(--reed-surface);
}

.output-tabs {
  display: flex;
  background: var(--reed-surface-2);
  border-bottom: 1px solid var(--reed-border);
}

.output-tab-btn {
  padding: 10px 16px;
  background: transparent;
  border: none;
  color: var(--reed-text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
}

.output-tab-btn.active {
  color: var(--reed-text);
  border-bottom-color: var(--reed-blue);
  font-weight: 600;
}

.terminal-viewport {
  flex: 1;
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: #05070A;
  color: #C9D2DE;
  overflow-y: auto;
  min-height: 300px;
  line-height: 1.6;
}

/* Simulated ReUI Desktop Window */
.reui-desktop-canvas {
  flex: 1;
  padding: 30px;
  background: var(--reed-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}

.reui-simulated-window {
  width: 100%;
  max-width: 400px;
  background: #141B28;
  border-radius: 10px;
  border: 1px solid #283548;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

.reui-window-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #0D121C;
  border-bottom: 1px solid #283548;
}

.reui-window-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #AAB6C5;
  font-family: var(--font-mono);
}

.reui-window-controls {
  display: flex;
  gap: 6px;
}

.reui-ctrl-btn {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #354255;
}

.reui-window-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.reui-mock-badge {
  font-size: 2.2rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--reed-ice);
}

.reui-mock-button {
  background: var(--reed-ice);
  color: #07090D;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.reui-mock-button:hover {
  background: #F5F7FA;
}

/* ==========================================================================
   RPK PACKAGE REGISTRY SECTION
   ========================================================================== */

.registry-stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}

.stat-card {
  background: var(--reed-surface);
  border: 1px solid var(--reed-border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--reed-text);
  font-family: var(--font-mono);
}

.stat-label {
  font-size: 0.78rem;
  color: var(--reed-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
  margin-top: 4px;
}

.registry-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.registry-search-wrap {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.registry-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--reed-text-muted);
  pointer-events: none;
}

.registry-search-input {
  width: 100%;
  background: var(--reed-surface);
  border: 1px solid var(--reed-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px 10px 42px;
  color: var(--reed-text);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
}

.registry-search-input:focus {
  border-color: var(--reed-blue);
}

.category-filter-pills {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 26px;
}

.filter-pill {
  background: var(--reed-surface);
  border: 1px solid var(--reed-border);
  color: var(--reed-text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
}

.filter-pill:hover {
  color: var(--reed-text);
  border-color: var(--reed-border-hover);
}

.filter-pill.active {
  background: var(--reed-surface-2);
  color: var(--reed-text);
  border-color: var(--reed-blue);
  font-weight: 600;
}

/* Packages Grid */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.pkg-card {
  background: var(--reed-surface);
  border: 1px solid var(--reed-border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

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

.pkg-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
}

.pkg-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--reed-text);
  font-family: var(--font-mono);
}

.pkg-version-badge {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  background: var(--reed-surface-2);
  color: var(--reed-blue);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--reed-border);
}

.pkg-desc {
  font-size: 0.88rem;
  color: var(--reed-text-secondary);
  line-height: 1.55;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pkg-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.pkg-tag {
  font-size: 0.72rem;
  background: var(--code-bg);
  border: 1px solid var(--reed-border);
  color: var(--reed-text-muted);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
}

.pkg-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--reed-border);
  padding-top: 14px;
  font-size: 0.8rem;
  color: var(--reed-text-muted);
}

/* ==========================================================================
   MODALS
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 7, 11, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: var(--reed-surface);
  border: 1px solid var(--reed-border);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 800px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--reed-border);
  position: sticky;
  top: 0;
  background: var(--reed-surface);
  z-index: 10;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--reed-text-muted);
  font-size: 1.4rem;
  cursor: pointer;
}

.modal-close-btn:hover {
  color: var(--reed-text);
}

.modal-body {
  padding: 24px;
}

.readme-container {
  background: var(--code-bg);
  border: 1px solid var(--reed-border);
  border-radius: var(--radius-sm);
  padding: 20px;
  font-size: 0.9rem;
  color: var(--reed-text-secondary);
  line-height: 1.65;
}

.readme-container h1, .readme-container h2, .readme-container h3 {
  color: var(--reed-text);
  margin: 16px 0 10px;
}

.readme-container pre {
  background: #05070A;
  padding: 14px;
  border-radius: var(--radius-sm);
  margin: 12px 0;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  border: 1px solid var(--reed-border);
}

/* Drag and Drop Zone */
.dropzone {
  border: 1px dashed var(--reed-border-hover);
  background: var(--code-bg);
  border-radius: var(--radius-sm);
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}

.dropzone:hover {
  border-color: var(--reed-blue);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--reed-border);
  background: var(--reed-surface);
  padding: 50px 0 30px;
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand p {
  color: var(--reed-text-secondary);
  margin-top: 12px;
  max-width: 320px;
  line-height: 1.6;
}

.footer-col h5 {
  color: var(--reed-text);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

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

.footer-links a {
  color: var(--reed-text-secondary);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--reed-text);
}

.footer-bottom {
  border-top: 1px solid var(--reed-border);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--reed-text-muted);
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 10px;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--reed-surface-2);
  border: 1px solid var(--reed-border-hover);
  color: var(--reed-text);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Syntax Highlighting (Reed Dark Theme) */
.syn-kw { color: var(--syn-kw); font-weight: 600; }
.syn-type { color: var(--syn-type); }
.syn-str { color: var(--syn-str); }
.syn-num { color: var(--syn-num); }
.syn-comment { color: var(--syn-comment); font-style: italic; }
.syn-fn { color: var(--syn-fn); }
.syn-reui { color: var(--reed-blue); font-weight: 600; }
.syn-interp { color: var(--syn-interp); font-weight: 600; }

/* ==========================================================================
   AUTHENTICATION & USER PROFILE STYLING
   ========================================================================== */

.auth-field-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--reed-text-secondary);
  margin-bottom: 6px;
}

.nav-auth-section {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--reed-surface-2);
  border: 1px solid var(--reed-border-hover);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--reed-text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.user-chip-avatar {
  font-size: 0.85rem;
}

.user-chip-name {
  font-weight: 600;
  color: var(--reed-blue);
}

.user-chip-logout {
  background: transparent;
  border: none;
  color: var(--reed-text-muted);
  cursor: pointer;
  padding: 0 2px;
  font-size: 0.85rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition);
}

.user-chip-logout:hover {
  color: #f43f5e;
}

/* Publish Modal Auth Banner */
.pub-auth-banner {
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.pub-auth-banner.not-signed-in {
  background: rgba(244, 63, 94, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: var(--reed-text);
}

.pub-auth-banner.signed-in {
  background: rgba(110, 168, 229, 0.08);
  border: 1px solid rgba(110, 168, 229, 0.3);
  color: var(--reed-text);
}

.token-item-card {
  background: var(--code-bg);
  border: 1px solid var(--reed-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.84rem;
}

.token-item-label {
  font-weight: 600;
  color: var(--reed-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.token-item-prefix {
  font-family: var(--font-mono);
  color: var(--reed-text-muted);
  font-size: 0.78rem;
}

.token-item-date {
  font-size: 0.75rem;
  color: var(--reed-text-muted);
}

.token-revoke-btn {
  background: transparent;
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #f43f5e;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all var(--transition);
}

.token-revoke-btn:hover {
  background: rgba(244, 63, 94, 0.15);
  border-color: #f43f5e;
}

/* ==========================================================================
   ADMIN PORTAL & MALWARE REPORTING STYLES
   ========================================================================== */

.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.admin-stat-card {
  background: var(--reed-surface);
  border: 1px solid var(--reed-border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: border-color var(--transition);
}

.admin-stat-card.warning {
  border-color: rgba(239, 68, 68, 0.3);
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.05) 0%, var(--reed-surface) 100%);
}

.admin-stat-title {
  font-size: 0.8rem;
  color: var(--reed-text-secondary);
  font-weight: 500;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-stat-val {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--reed-text);
  letter-spacing: -0.02em;
  font-family: var(--font-mono);
}

.admin-stat-card.warning .admin-stat-val {
  color: #ef4444;
}

.admin-stat-desc {
  font-size: 0.78rem;
  color: var(--reed-text-muted);
  margin-top: 4px;
}

.admin-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--reed-border);
  border-radius: var(--radius-md);
  background: var(--reed-surface);
}

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

.admin-table th {
  padding: 12px 16px;
  background: var(--code-bg);
  border-bottom: 1px solid var(--reed-border);
  color: var(--reed-text-secondary);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--reed-border);
  color: var(--reed-text);
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background: rgba(110, 168, 229, 0.02);
}

.report-badge-pending {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-mono);
}

.report-badge-clean {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.25);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  font-family: var(--font-mono);
}

.report-card {
  background: var(--reed-surface);
  border: 1px solid var(--reed-border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: border-color var(--transition);
}

.report-card.pending {
  border-left: 4px solid #ef4444;
}

.report-card.action_taken {
  border-left: 4px solid #22c55e;
  opacity: 0.85;
}

.report-card.dismissed {
  border-left: 4px solid var(--reed-text-muted);
  opacity: 0.75;
}

.report-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-outline-danger {
  background: transparent;
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-outline-danger:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: #ef4444;
}

.btn-danger {
  background: #ef4444;
  color: #ffffff;
  border: 1px solid #dc2626;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-danger:hover {
  background: #dc2626;
}

/* ==========================================================================
   CHANGELOG & RELEASE NOTES STYLES
   ========================================================================== */

.changelog-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.changelog-search-wrapper {
  position: relative;
  flex: 1;
  min-width: 260px;
  max-width: 480px;
}

.changelog-search-wrapper svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--reed-text-muted);
  pointer-events: none;
}

.changelog-search-input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  background: var(--reed-surface);
  border: 1px solid var(--reed-border);
  border-radius: var(--radius-sm);
  color: var(--reed-text);
  font-size: 0.88rem;
  transition: border-color var(--transition);
}

.changelog-search-input:focus {
  outline: none;
  border-color: var(--reed-accent);
}

.changelog-filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.changelog-timeline-feed {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.changelog-card {
  background: var(--reed-surface);
  border: 1px solid var(--reed-border);
  border-radius: var(--radius-md);
  padding: 26px 30px;
  transition: border-color var(--transition), box-shadow var(--transition);
  position: relative;
}

.changelog-card:hover {
  border-color: var(--reed-border-hover);
  box-shadow: 0 4px 20px var(--reed-subtle-glow);
}

.changelog-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.changelog-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.changelog-version-tag {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--reed-accent);
  background: rgba(110, 168, 229, 0.12);
  border: 1px solid rgba(110, 168, 229, 0.3);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  letter-spacing: -0.01em;
}

.changelog-badge-major {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
}

.changelog-badge-minor {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.35);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
}

.changelog-badge-patch {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
}

.changelog-badge-beta {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
}

.changelog-date {
  font-size: 0.85rem;
  color: var(--reed-text-muted);
  font-family: var(--font-sans);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.changelog-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--reed-text);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.changelog-card-summary {
  font-size: 0.95rem;
  color: var(--reed-text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.changelog-categories-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.changelog-cat-box {
  background: var(--code-bg);
  border: 1px solid var(--reed-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.changelog-cat-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.changelog-cat-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.changelog-cat-list li {
  font-size: 0.88rem;
  color: var(--reed-text);
  line-height: 1.5;
  position: relative;
  padding-left: 18px;
}

.changelog-cat-list li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: var(--reed-text-muted);
  font-weight: bold;
}

.changelog-cat-list code,
.changelog-card-summary code {
  background: rgba(143, 169, 200, 0.12);
  color: var(--reed-accent);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.cl-count-badge {
  font-size: 0.72rem;
  background: var(--reed-surface);
  border: 1px solid var(--reed-border);
  color: var(--reed-text-muted);
  padding: 1px 6px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-weight: 600;
}

/* ==========================================================================
   PRIVACY POLICY STYLING
   ========================================================================== */

.privacy-page-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.privacy-hero {
  margin-bottom: 40px;
  position: relative;
}

.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(110, 168, 229, 0.1);
  border: 1px solid rgba(110, 168, 229, 0.25);
  color: var(--reed-accent);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 16px;
  font-family: var(--font-mono);
}

.privacy-hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--reed-text);
  margin-bottom: 12px;
  line-height: 1.15;
}

.privacy-hero-subtitle {
  font-size: 1.08rem;
  color: var(--reed-text-secondary);
  line-height: 1.6;
  max-width: 820px;
  margin-bottom: 28px;
}

.privacy-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 36px;
}

.privacy-meta-card {
  background: var(--reed-surface);
  border: 1px solid var(--reed-border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.privacy-meta-card .meta-label {
  font-size: 0.73rem;
  color: var(--reed-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
}

.privacy-meta-card .meta-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--reed-text);
}

.privacy-meta-card .meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #10b981;
  font-weight: 700;
}

.privacy-highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 48px;
}

.privacy-highlight-card {
  background: var(--reed-surface);
  border: 1px solid var(--reed-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform var(--transition), border-color var(--transition);
}

.privacy-highlight-card:hover {
  border-color: var(--reed-accent);
  transform: translateY(-2px);
}

.privacy-highlight-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
  display: inline-block;
}

.privacy-highlight-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--reed-text);
  margin-bottom: 8px;
}

.privacy-highlight-card p {
  font-size: 0.88rem;
  color: var(--reed-text-secondary);
  line-height: 1.55;
}

.privacy-content-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
  align-items: start;
}

@media (max-width: 960px) {
  .privacy-content-layout {
    grid-template-columns: 1fr;
  }
  .privacy-toc-sidebar {
    display: none;
  }
}

.privacy-toc-sidebar {
  position: sticky;
  top: 90px;
  background: var(--reed-surface);
  border: 1px solid var(--reed-border);
  border-radius: var(--radius-md);
  padding: 20px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.privacy-toc-sidebar h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--reed-text-muted);
  margin-bottom: 14px;
  font-family: var(--font-mono);
}

.privacy-toc-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  margin: 0;
}

.privacy-toc-links a {
  display: block;
  font-size: 0.83rem;
  color: var(--reed-text-secondary);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  line-height: 1.35;
}

.privacy-toc-links a:hover {
  color: var(--reed-accent);
  background: var(--reed-surface-2);
}

.privacy-article {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.policy-block {
  background: var(--reed-surface);
  border: 1px solid var(--reed-border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  scroll-margin-top: 90px;
}

.policy-block-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--reed-border);
}

.policy-block-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--reed-accent);
  background: rgba(110, 168, 229, 0.12);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.policy-block-header h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--reed-text);
  margin: 0;
  line-height: 1.25;
}

.policy-block p {
  color: var(--reed-text-secondary);
  font-size: 0.94rem;
  line-height: 1.65;
  margin-bottom: 16px;
}

.policy-block p:last-child {
  margin-bottom: 0;
}

.policy-block h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--reed-text);
  margin: 22px 0 10px;
}

.policy-block ul {
  margin: 0 0 16px 20px;
  color: var(--reed-text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

.policy-block li {
  margin-bottom: 8px;
}

.policy-block code {
  background: rgba(143, 169, 200, 0.12);
  color: var(--reed-accent);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
}

.policy-table-wrapper {
  overflow-x: auto;
  margin: 18px 0;
  border: 1px solid var(--reed-border);
  border-radius: var(--radius-sm);
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  background: var(--code-bg);
}

.policy-table th {
  background: var(--reed-surface-2);
  color: var(--reed-text);
  text-align: left;
  padding: 10px 14px;
  font-weight: 600;
  border-bottom: 1px solid var(--reed-border);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.policy-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--reed-border);
  color: var(--reed-text-secondary);
  vertical-align: top;
}

.policy-table tr:last-child td {
  border-bottom: none;
}

.policy-table tr:hover td {
  background: rgba(110, 168, 229, 0.04);
}



