:root {
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-elevated: #ffffff;
  
  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #eef2ff;

  --accent-amber: #f59e0b;
  --accent-emerald: #10b981;
  --accent-sky: #0284c7;
  --accent-rose: #f43f5e;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 32px -6px rgba(0, 0, 0, 0.1), 0 8px 12px -4px rgba(0, 0, 0, 0.04);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: clip;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: clamp(14px, 4vw, 24px);
  padding-right: clamp(14px, 4vw, 24px);
  box-sizing: border-box;
}

/* Header & Nav */
.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-primary);
  flex-shrink: 0;
}

.brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.brand-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.badge-tag {
  font-size: 10px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 2px 5px;
  border-radius: 9999px;
}

.nav-links {
  display: flex;
  gap: 18px;
}

.nav-links a {
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s ease;
  white-space: nowrap;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-header-install {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-header-install:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-github {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  padding: 6px 10px;
  border-radius: var(--radius-md);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-github:hover {
  background: var(--bg-subtle);
  border-color: var(--border-strong);
}

.star-badge {
  background: #f1f5f9;
  color: #d97706;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 11px;
}

/* Hero Section */
.hero-section {
  padding: clamp(36px, 8vw, 72px) 0 clamp(32px, 6vw, 52px);
  text-align: center;
  background: radial-gradient(circle at 50% 15%, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
  width: 100%;
}

.hero-content {
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-size: clamp(11px, 2.5vw, 12.5px);
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
  max-width: 100%;
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
  flex-shrink: 0;
}

.hero-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(26px, 5.5vw, 48px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.8px;
  color: var(--text-primary);
  margin-bottom: 16px;
  word-break: break-word;
}

.hero-subtitle {
  font-size: clamp(14px, 2.2vw, 17.5px);
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 26px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  word-break: break-word;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-md);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  box-sizing: border-box;
}

.btn svg,
.btn-header-install svg,
.btn-browser-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  object-fit: contain;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.35);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--border-strong);
  background: var(--bg-subtle);
}

.github-star-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 1px 7px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  margin-left: 2px;
  line-height: 1.4;
}

.github-star-tag svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* Sections Common */
section {
  padding: clamp(40px, 7vw, 64px) 0;
  width: 100%;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto clamp(24px, 4vw, 40px);
}

.section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(22px, 4.5vw, 32px);
  font-weight: 700;
  letter-spacing: -0.6px;
  margin-bottom: 8px;
  word-break: break-word;
}

.section-subtitle {
  font-size: clamp(13.5px, 2vw, 15.5px);
  color: var(--text-secondary);
  line-height: 1.5;
  word-break: break-word;
}

/* Problem vs Solution Section */
.problem-solution-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(16px, 3vw, 24px);
  width: 100%;
}

.comparison-card {
  border-radius: var(--radius-lg);
  padding: clamp(18px, 3.5vw, 28px);
  box-shadow: var(--shadow-sm);
  box-sizing: border-box;
}

.problem-card {
  background: #fff5f5;
  border: 1px solid #fee2e2;
}

.solution-card {
  background: #f0fdf4;
  border: 1px solid #dcfce7;
}

.comparison-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 9999px;
  margin-bottom: 12px;
}

.problem-badge {
  background: #fee2e2;
  color: #b91c1c;
}

.solution-badge {
  background: #dcfce7;
  color: #15803d;
}

.comparison-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(17px, 2.8vw, 20px);
  font-weight: 700;
  margin-bottom: 12px;
}

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

.comparison-list li {
  font-size: 13.5px;
  color: #334155;
  line-height: 1.5;
  word-break: break-word;
}

/* Playground Studio Section */
.playground-section {
  background: radial-gradient(circle at 50% 10%, rgba(99, 102, 241, 0.05) 0%, transparent 60%);
  width: 100%;
}

.playground-top-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
}

.playground-control-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.playground-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.playground-btn:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

.playground-btn.active {
  background: #ede9fe;
  color: #6366f1;
  border-color: #c4b5fd;
}

.badge-count {
  background: var(--primary);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 9999px;
}

.playground-btn-clear {
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 6px 10px;
  font-size: 11.5px;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.playground-btn-clear:hover {
  color: #ef4444;
  border-color: #fca5a5;
  background: #fff5f5;
}

.playground-studio {
  display: grid;
  grid-template-columns: 1fr 320px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.playground-browser {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border-subtle);
  min-width: 0;
  width: 100%;
}

.browser-topbar {
  background: #f8fafc;
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.browser-dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.browser-address {
  flex: 1;
  min-width: 0;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 5px;
  padding: 3px 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-content {
  position: relative;
  padding: clamp(16px, 3.5vw, 30px);
  background: #ffffff;
  user-select: text;
  flex: 1;
  overflow-x: hidden;
  width: 100%;
  box-sizing: border-box;
}

.article-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(18px, 3vw, 21px);
  font-weight: 700;
  margin-bottom: 4px;
}

.article-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.article-p {
  font-size: clamp(13.5px, 1.8vw, 14.5px);
  line-height: 1.65;
  color: #334155;
  margin-bottom: 14px;
  word-break: break-word;
}

mark.demo-highlight {
  border-radius: 3px;
  padding: 1px 3px;
  cursor: pointer;
  transition: all 0.15s ease;
}
mark.demo-highlight.yellow { background: #fff59d; color: #1e293b; }
mark.demo-highlight.blue { background: #bbdefb; color: #1e293b; }
mark.demo-highlight.green { background: #c8e6c9; color: #1e293b; }
mark.demo-highlight.pink { background: #f8bbd0; color: #1e293b; }
mark.demo-highlight.purple { background: #e1bee7; color: #1e293b; }

body.clean-reading-mode mark.demo-highlight {
  background: transparent !important;
  color: inherit !important;
  padding: 0 !important;
}

/* Floating Toolbar */
.interactive-toolbar {
  position: absolute;
  display: none;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9px;
  padding: 4px 6px;
  gap: 5px;
  align-items: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  z-index: 10;
  max-width: calc(100% - 20px);
}

.toolbar-swatches {
  display: flex;
  gap: 3px;
}

.swatch-btn {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.1s ease;
  flex-shrink: 0;
}
.swatch-btn:hover {
  transform: scale(1.2);
}

.tb-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: transparent;
  border: none;
  color: #f8fafc;
  font-size: 11.5px;
  font-weight: 500;
  padding: 2px 5px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}
.tb-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Demo Comment Box */
.demo-comment-box {
  position: absolute;
  display: none;
  width: min(300px, calc(100% - 20px));
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
  z-index: 20;
}

.comment-box-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 4px;
  margin-bottom: 6px;
}

.tab-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 10.5px;
  font-weight: 500;
  padding: 2px 5px;
  border-radius: 4px;
  cursor: pointer;
}
.tab-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

#demo-comment-input {
  width: 100%;
  min-height: 56px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  padding: 6px;
  color: #ffffff;
  font-size: 12px;
  resize: vertical;
  outline: none;
  box-sizing: border-box;
}

.comment-preview-container {
  min-height: 56px;
  background: rgba(30, 41, 59, 0.5);
  border-radius: 5px;
  padding: 6px;
  color: #f1f5f9;
  font-size: 12px;
}

.comment-box-footer {
  margin-top: 5px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hint-text {
  font-size: 10px;
  color: #94a3b8;
}

.comment-btns {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 4px;
}

.btn-cancel {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.btn-cancel:hover {
  color: #ffffff;
}

.btn-save {
  background: var(--primary);
  border: none;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.btn-save:hover {
  background: var(--primary-hover);
}

.demo-comment-box .hint-text kbd {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e2e8f0;
  font-size: 9.5px;
  padding: 1px 4px;
  border-radius: 3px;
}

/* Playground Sidebar Drawer */
.playground-sidebar {
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  padding: 14px;
  gap: 10px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.scope-pill {
  font-size: 10.5px;
  background: #ede9fe;
  color: #6366f1;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 9999px;
}

.sidebar-close-btn {
  background: transparent;
  border: none;
  font-size: 16px;
  color: #64748b;
  cursor: pointer;
  padding: 2px 5px;
}

.sidebar-add-box {
  display: flex;
  gap: 5px;
  width: 100%;
}

#sidebar-quick-note {
  flex: 1;
  min-width: 0;
  padding: 5px 8px;
  border-radius: 5px;
  border: 1px solid var(--border-subtle);
  font-size: 11.5px;
  outline: none;
}

.sidebar-add-btn {
  background: #10b981;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  padding: 0 8px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.sidebar-tags-row {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.tag-label {
  font-size: 10.5px;
  color: #64748b;
  font-weight: 600;
}

.tag-pill {
  font-size: 10.5px;
  padding: 2px 6px;
  border-radius: 9999px;
  background: #e2e8f0;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tag-pill.active {
  background: #4f46e5;
  color: #ffffff;
  font-weight: 600;
}

.sidebar-items-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  flex: 1;
  max-height: 380px;
}

.sidebar-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--primary);
  border-radius: 5px;
  padding: 8px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 3px;
  position: relative;
  box-sizing: border-box;
}

.sidebar-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-card-tag {
  font-size: 10px;
  font-weight: 600;
  color: #6366f1;
}

.sidebar-card-delete {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 13px;
}
.sidebar-card-delete:hover {
  color: #ef4444;
}

.sidebar-card-text {
  font-size: 11.5px;
  color: #1e293b;
  line-height: 1.4;
  word-break: break-word;
}

.sidebar-card-quote {
  font-size: 11px;
  color: #64748b;
  font-style: italic;
  border-left: 2px solid #e2e8f0;
  padding-left: 5px;
  word-break: break-word;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(14px, 2.5vw, 20px);
  width: 100%;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 3vw, 24px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 12px;
}

.feature-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(15.5px, 2vw, 17px);
  font-weight: 700;
  margin-bottom: 6px;
}

.feature-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  word-break: break-word;
}

/* Setup Steps */
.setup-steps {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.setup-step-card {
  display: flex;
  gap: clamp(10px, 2.5vw, 16px);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(14px, 2.5vw, 20px);
  box-shadow: var(--shadow-sm);
  box-sizing: border-box;
}

.step-num {
  width: 30px;
  height: 30px;
  background: var(--primary-light);
  color: var(--primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
  min-width: 0;
}

.step-title {
  font-size: clamp(14.5px, 2vw, 16px);
  font-weight: 700;
  margin-bottom: 4px;
}

.step-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.45;
  word-break: break-word;
}

.code-block {
  position: relative;
  background: #0f172a;
  color: #38bdf8;
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(11px, 1.8vw, 12.5px);
  overflow-x: auto;
  width: 100%;
  box-sizing: border-box;
}

.code-block code {
  white-space: pre;
}

.copy-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #f8fafc;
  font-size: 10.5px;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.copy-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Shortcuts Table */
.shortcuts-table-wrapper {
  max-width: 780px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: var(--shadow-sm);
  width: 100%;
  box-sizing: border-box;
}

.shortcuts-table {
  width: 100%;
  min-width: 440px;
  border-collapse: collapse;
  text-align: left;
}

.shortcuts-table th {
  background: var(--bg-subtle);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.shortcuts-table td {
  padding: 10px 12px;
  font-size: 13px;
  border-bottom: 1px solid var(--border-subtle);
}

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

kbd {
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.1);
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 5px;
  white-space: nowrap;
}

/* Browsers Grid */
.browsers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  width: 100%;
}

.browser-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 14px 10px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-sizing: border-box;
}

.browser-name {
  font-size: 13px;
  font-weight: 700;
}

.browser-status {
  font-size: 10.5px;
  color: var(--accent-emerald);
  font-weight: 600;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 24px 0;
  background: var(--bg-surface);
  margin-top: 32px;
  width: 100%;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  font-size: 12.5px;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

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

/* Responsive Breakpoints */
@media (max-width: 960px) {
  .playground-studio {
    grid-template-columns: 1fr;
  }
  .playground-browser {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
  }
}

@media (max-width: 520px) {
  .header-actions .btn-github {
    display: none;
  }
  .btn-header-install {
    padding: 5px 9px;
    font-size: 11.5px;
  }
  .btn-header-install img,
  .btn-header-install svg {
    width: 15px;
    height: 15px;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  .hero-cta-group .btn {
    width: 100%;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .footer-links {
    justify-content: center;
  }
  .playground-top-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .playground-control-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    width: 100%;
  }
  .playground-control-group .playground-btn {
    width: 100%;
    justify-content: center;
    font-size: 11px;
    padding: 6px 4px;
  }
  .playground-btn-clear {
    width: 100%;
    text-align: center;
  }
  .setup-step-card {
    flex-direction: column;
    gap: 8px;
  }
}
