/*
Theme Name: KnowledgeLM
Theme URI: https://knowledgelm.com
Description: A lightweight Framer-style theme for KnowledgeLM — the modern team knowledge base.
Version: 1.0
Author: KnowledgeLM
Text Domain: knowledgelm
*/

/* =============================================
   Variables
   ============================================= */
:root {
  --bg-dark: #09090b;
  --bg-dark-alt: #111113;
  --bg-card: #18181b;
  --bg-card-hover: #1e1e22;
  --bg-light: #fafafa;
  --bg-white: #ffffff;

  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --text-dark: #09090b;
  --text-dark-secondary: #52525b;

  --accent: #8b5cf6;
  --accent-2: #3b82f6;
  --accent-3: #06b6d4;

  --border-dark: rgba(255, 255, 255, 0.06);
  --border-light: rgba(0, 0, 0, 0.06);

  --gradient: linear-gradient(135deg, #8b5cf6, #3b82f6, #06b6d4);
  --gradient-hover: linear-gradient(135deg, #7c3aed, #2563eb, #0891b2);

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

  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  --shadow-glow: 0 0 80px rgba(139, 92, 246, 0.12);
  --transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* =============================================
   Reset
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font); line-height: 1.6; color: var(--text-primary); background: var(--bg-dark); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { border: none; background: none; cursor: pointer; font: inherit; color: inherit; }

/* =============================================
   Layout
   ============================================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 7rem 0;
  position: relative;
}

/* =============================================
   Typography
   ============================================= */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-dark);
  background: rgba(139, 92, 246, 0.08);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* =============================================
   Navigation
   ============================================= */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all var(--transition);
}

.site-nav.scrolled {
  padding: 0.625rem 0;
  background: rgba(9, 9, 11, 0.75);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border-dark);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-logo svg {
  width: 28px;
  height: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 450;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.25);
}

.btn-primary:hover {
  background: var(--gradient-hover);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  border: 1px solid var(--border-dark);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.btn-lg {
  padding: 0.8125rem 1.75rem;
  font-size: 0.9375rem;
}

.nav-links-actions {
  display: none;
}

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  padding: 8px 0;
  cursor: pointer;
}

.nav-mobile-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* =============================================
   Hero
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 1.5rem 6rem;
  overflow: hidden;
}

.hero-mesh {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-mesh::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background:
    radial-gradient(ellipse at 25% 50%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 75% 30%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(6, 182, 212, 0.07) 0%, transparent 50%);
  animation: meshDrift 25s ease-in-out infinite alternate;
}

.hero-mesh::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, var(--bg-dark) 75%);
}

@keyframes meshDrift {
  0% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(2%, -1%) rotate(1deg); }
  66% { transform: translate(-1%, 2%) rotate(-0.5deg); }
  100% { transform: translate(1%, -2%) rotate(0.5deg); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  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: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero h1 {
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 1.5rem 0;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.1875rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--bg-dark));
  pointer-events: none;
}

/* =============================================
   Value Props
   ============================================= */
.value-props {
  background: var(--bg-dark);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.value-card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.value-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.value-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  background: rgba(139, 92, 246, 0.1);
}

.value-card-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.value-card-icon.blue { background: rgba(59, 130, 246, 0.1); }
.value-card-icon.blue svg { stroke: var(--accent-2); }
.value-card-icon.cyan { background: rgba(6, 182, 212, 0.1); }
.value-card-icon.cyan svg { stroke: var(--accent-3); }

.value-card h3 {
  font-size: 1.1875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.value-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* =============================================
   Section Headers
   ============================================= */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* =============================================
   Feature Showcases
   ============================================= */
.showcase {
  background: var(--bg-dark);
}

.showcase-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.showcase-inner.reverse {
  direction: rtl;
}

.showcase-inner.reverse > * {
  direction: ltr;
}

.showcase-label {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.showcase-text h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.showcase-text p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.showcase-features {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.showcase-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.showcase-feature svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

/* =============================================
   CSS Mockups
   ============================================= */
.mockup-window {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-glow);
}

.mockup-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--border-dark);
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.mockup-dot:nth-child(1) { background: #ef4444; }
.mockup-dot:nth-child(2) { background: #eab308; }
.mockup-dot:nth-child(3) { background: #22c55e; }

.mockup-body {
  padding: 1.5rem;
}

/* Editor Mockup */
.mock-toolbar {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.625rem 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.mock-tbtn {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.mock-tbtn.active {
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent);
}

.mock-divider {
  width: 1px;
  height: 20px;
  background: var(--border-dark);
  margin: 0 0.25rem;
}

.mock-editor-content h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.mock-editor-content p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.mock-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mock-check {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.mock-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mock-checkbox.checked {
  background: var(--accent);
  border-color: var(--accent);
}

.mock-checkbox.checked::after {
  content: '✓';
  color: white;
  font-size: 11px;
  font-weight: 700;
}

.mock-check.done {
  color: var(--text-muted);
  text-decoration: line-through;
}

/* Collaboration Mockup */
.mock-comment {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 0;
}

.mock-comment + .mock-comment {
  border-top: 1px solid var(--border-dark);
}

.mock-comment.reply {
  margin-left: 2.75rem;
  border-top: none;
  padding-top: 0.5rem;
}

.mock-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  flex-shrink: 0;
}

.mock-comment-body {
  flex: 1;
  min-width: 0;
}

.mock-comment-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.mock-comment-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

.mock-comment-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  line-height: 1.6;
}

.mock-comment-text .mention {
  color: var(--accent);
  font-weight: 500;
}

.mock-comment-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.mock-comment-actions span {
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: default;
}

.mock-resolve-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
  margin-top: 0.5rem;
}

/* Permissions Mockup */
.mock-perm-header {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-dark);
  margin-bottom: 0.75rem;
}

.mock-perm-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
}

.mock-perm-row + .mock-perm-row {
  border-top: 1px solid var(--border-dark);
}

.mock-perm-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 600;
  color: white;
  flex-shrink: 0;
}

.mock-perm-name {
  flex: 1;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.mock-role-badge {
  padding: 0.1875rem 0.625rem;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mock-role-badge.admin {
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent);
}

.mock-role-badge.editor {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-2);
}

.mock-role-badge.viewer {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-3);
}

.mock-perm-toggle {
  width: 36px;
  height: 20px;
  background: var(--accent);
  border-radius: 10px;
  position: relative;
}

.mock-perm-toggle::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  top: 2px;
  right: 2px;
}

.mock-perm-toggle.off {
  background: rgba(255, 255, 255, 0.12);
}

.mock-perm-toggle.off::after {
  right: auto;
  left: 2px;
}

/* =============================================
   Bento Grid
   ============================================= */
.bento-section {
  background: var(--bg-dark-alt);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.bento-card {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity var(--transition);
}

.bento-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.bento-card:hover::before {
  opacity: 1;
}

.bento-card.featured {
  grid-column: span 2;
}

.bento-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.bento-icon.purple { background: rgba(139, 92, 246, 0.1); color: var(--accent); }
.bento-icon.blue { background: rgba(59, 130, 246, 0.1); color: var(--accent-2); }
.bento-icon.cyan { background: rgba(6, 182, 212, 0.1); color: var(--accent-3); }

.bento-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bento-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
  letter-spacing: -0.01em;
}

.bento-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.65;
}

/* =============================================
   CTA Section
   ============================================= */
.cta-section {
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.cta-content h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* =============================================
   Footer
   ============================================= */
.site-footer {
  padding: 3rem 0 2rem;
  background: var(--bg-dark);
  border-top: 1px solid var(--border-dark);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-top: 1rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

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

.footer-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-dark);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* =============================================
   Animations
   ============================================= */
.animate-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-in.delay-1 { transition-delay: 0.1s; }
.animate-in.delay-2 { transition-delay: 0.2s; }
.animate-in.delay-3 { transition-delay: 0.3s; }
.animate-in.delay-4 { transition-delay: 0.4s; }

.stagger > .animate-in:nth-child(1) { transition-delay: 0s; }
.stagger > .animate-in:nth-child(2) { transition-delay: 0.08s; }
.stagger > .animate-in:nth-child(3) { transition-delay: 0.16s; }
.stagger > .animate-in:nth-child(4) { transition-delay: 0.24s; }
.stagger > .animate-in:nth-child(5) { transition-delay: 0.32s; }
.stagger > .animate-in:nth-child(6) { transition-delay: 0.4s; }
.stagger > .animate-in:nth-child(7) { transition-delay: 0.48s; }
.stagger > .animate-in:nth-child(8) { transition-delay: 0.56s; }
.stagger > .animate-in:nth-child(9) { transition-delay: 0.64s; }

/* =============================================
   Page Templates
   ============================================= */
.page-content {
  min-height: 100vh;
  padding: 8rem 0 4rem;
}

.page-content .entry-title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
}

.page-content .entry-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.page-content .entry-content h2 {
  color: var(--text-primary);
  margin: 2rem 0 1rem;
}

.page-content .entry-content p {
  margin-bottom: 1.5rem;
}

.page-content .entry-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 404 */
.page-404 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-404 h1 {
  font-size: 8rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 1rem;
}

.page-404 p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* =============================================
   Responsive
   ============================================= */

/* Tablet */
@media (max-width: 1024px) {
  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .showcase-inner,
  .showcase-inner.reverse {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    direction: ltr;
  }

  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-card.featured {
    grid-column: span 2;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .section { padding: 4rem 0; }

  /* Nav: hide desktop links & actions, show hamburger */
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .nav-mobile-toggle { display: flex; }

  /* Mobile menu: full-width dropdown with links + CTA buttons */
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(9, 9, 11, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.25rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--border-dark);
    gap: 0.25rem;
  }

  .nav-links.active a {
    padding: 0.75rem 0;
    font-size: 1rem;
  }

  /* Show CTA buttons inside mobile menu */
  .nav-links-actions {
    display: none;
  }

  .nav-links.active .nav-links-actions {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-top: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-dark);
  }

  .nav-links.active .nav-links-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
  }

  /* Hero */
  .hero { min-height: auto; padding: 6.5rem 1.5rem 3.5rem; }
  .hero h1 { font-size: 2.25rem; margin: 1.25rem 0; }
  .hero-sub { font-size: 1rem; margin-bottom: 2rem; }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn {
    justify-content: center;
    padding: 0.875rem 1.5rem;
  }

  /* Value props */
  .value-grid { grid-template-columns: 1fr; }

  /* Bento grid */
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card.featured { grid-column: span 1; }

  /* Mockups: prevent overflow */
  .mockup-window { border-radius: var(--radius-lg); }
  .mockup-body { padding: 1rem; }
  .mock-toolbar { padding: 0.5rem; gap: 0.125rem; }

  .mock-comment.reply { margin-left: 1.5rem; }

  .mock-perm-row { gap: 0.5rem; flex-wrap: wrap; }
  .mock-perm-name { font-size: 0.8125rem; }
  .mock-perm-toggle { flex-shrink: 0; }

  /* Showcase text */
  .showcase-text h2 { font-size: 1.625rem; }

  /* Section headers */
  .section-header { margin-bottom: 2.5rem; }
  .section-header h2 { font-size: 1.875rem; }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 1.25rem;
  }

  .footer-cta {
    width: 100%;
  }

  .footer-cta .btn {
    flex: 1;
    justify-content: center;
    padding: 0.75rem 1rem;
  }

  .footer-bottom {
    text-align: center;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero h1 { font-size: 1.875rem; }
  .section-header h2 { font-size: 1.5rem; }
  .showcase-text h2 { font-size: 1.375rem; }

  .container { padding: 0 1.25rem; }
  .hero { padding-left: 1.25rem; padding-right: 1.25rem; }

  .value-card { padding: 1.5rem; }
  .bento-card { padding: 1.25rem; }

  .mock-tbtn { width: 24px; height: 24px; font-size: 0.6875rem; }

  .mock-perm-header { font-size: 0.8125rem; }
  .mock-perm-avatar { width: 24px; height: 24px; font-size: 0.5625rem; }
  .mock-role-badge { font-size: 0.625rem; padding: 0.125rem 0.5rem; }

  .mock-avatar { width: 28px; height: 28px; font-size: 0.6875rem; }
  .mock-comment-text { font-size: 0.8125rem; }
  .mock-comment.reply { margin-left: 1rem; }
}

/* Ensure minimum touch target sizes */
@media (pointer: coarse) {
  .btn { min-height: 44px; }
  .nav-links.active a { min-height: 44px; display: flex; align-items: center; }
  .nav-mobile-toggle { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
}

/* WordPress specific overrides */
.wp-block-image img { border-radius: var(--radius-md); }
.aligncenter { margin: 0 auto; display: block; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}
