/* DevNeeds Theme CSS */
:root {
  --bg: #FFFFFF;
  --text-primary: #000000;
  --text-secondary: #6F6F6F;
  --text-muted: #929292;
  --border: #E8E8E8;
  --card-bg: rgba(255,255,255,0.78);
  --card-hover: #FAFAFA;
  --btn-primary: #000000;
  --btn-text: #FFFFFF;
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Animations */
@keyframes fadeRise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-rise { animation: fadeRise 0.8s ease-out forwards; opacity: 0; }
.fade-rise-d1 { animation: fadeRise 0.8s 0.2s ease-out forwards; opacity: 0; }
.fade-rise-d2 { animation: fadeRise 0.8s 0.4s ease-out forwards; opacity: 0; }
.fade-rise-d3 { animation: fadeRise 0.8s 0.6s ease-out forwards; opacity: 0; }
.fade-rise-d4 { animation: fadeRise 0.8s 0.8s ease-out forwards; opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .fade-rise, .fade-rise-d1, .fade-rise-d2, .fade-rise-d3, .fade-rise-d4 {
    animation: none;
    opacity: 1;
  }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(232,232,232,0.5);
  transition: all 0.3s ease;
}

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

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-logo sup {
  font-size: 0.5em;
  vertical-align: super;
  font-family: var(--font-body);
  font-weight: 400;
}

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

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
  letter-spacing: 0.01em;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: var(--btn-primary);
  color: var(--btn-text) !important;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
}

.nav-cta:hover {
  background: #222;
  transform: translateY(-1px);
}

/* Mobile menu */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-primary);
}

.mobile-toggle svg { width: 24px; height: 24px; }

.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99;
  padding: 2rem 1.5rem;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  display: block;
  padding: 1rem 0;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s ease;
}

.mobile-menu a:hover { color: var(--text-primary); }

.mobile-menu .nav-cta {
  display: inline-flex;
  justify-content: center;
  margin-top: 1rem;
  padding: 0.75rem 2rem;
  border: none;
  font-size: 0.9375rem;
}

@media (max-width: 768px) {
  .mobile-toggle { display: block; }
  .nav-links { display: none; }
}

/* Hero */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 1.5rem 80px;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.4) 40%, rgba(255,255,255,0.4) 60%, rgba(255,255,255,0.95) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

.hero-title .gray { color: var(--text-muted); }

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

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: var(--btn-primary);
  color: var(--btn-text);
  border: none;
  border-radius: 9999px;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  font-family: var(--font-body);
  letter-spacing: 0.01em;
}

.btn-primary:hover {
  background: #222;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
  border-radius: 9999px;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  font-family: var(--font-body);
  letter-spacing: 0.01em;
}

.btn-secondary:hover {
  border-color: var(--text-primary);
  background: var(--card-hover);
  transform: translateY(-1px);
}

.hero-sub {
  font-size: 0.8125rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

/* Sections */
.section {
  padding: 5rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.section-eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 1rem;
  text-align: center;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

/* Resource Toolbar */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

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

.search-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.6875rem 0.875rem 0.6875rem 2.75rem;
  border: 1.5px solid var(--border);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s ease;
  background: #fff;
  color: var(--text-primary);
}

.search-input:focus { border-color: var(--text-primary); }
.search-input::placeholder { color: var(--text-muted); }

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fff;
  color: var(--text-secondary);
  white-space: nowrap;
}

.filter-btn:hover { border-color: var(--text-secondary); color: var(--text-primary); }
.filter-btn.active {
  background: var(--btn-primary);
  color: var(--btn-text);
  border-color: var(--btn-primary);
}

.toolbar-sort {
  padding: 0.5rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-family: var(--font-body);
  background: #fff;
  color: var(--text-secondary);
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23929292' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}

.toolbar-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.clear-btn {
  background: none;
  border: none;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  cursor: pointer;
  text-decoration: underline;
  font-family: var(--font-body);
  padding: 0;
}

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

.free-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  user-select: none;
}

.toggle-track {
  width: 36px;
  height: 20px;
  border-radius: 9999px;
  background: var(--border);
  position: relative;
  transition: background 0.2s ease;
}

.toggle-track.on { background: var(--btn-primary); }

.toggle-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.toggle-track.on .toggle-thumb { transform: translateX(16px); }

/* Category Nav */
.cat-nav {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.cat-nav::-webkit-scrollbar { display: none; }

.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border: 1.5px solid var(--border);
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fff;
  white-space: nowrap;
  font-family: var(--font-body);
}

.cat-chip:hover { border-color: var(--text-secondary); color: var(--text-primary); }
.cat-chip.active {
  background: var(--btn-primary);
  color: var(--btn-text);
  border-color: var(--btn-primary);
}

.cat-chip .count {
  font-size: 0.6875rem;
  opacity: 0.7;
  font-weight: 400;
}

/* Resource Grid */
.resource-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .resource-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .resource-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Resource Card */
.resource-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.resource-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  border-color: #d0d0d0;
  background: var(--card-hover);
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.card-logo-name {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.card-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
  background: #f5f5f5;
  padding: 2px;
}

.card-logo-fallback {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.card-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-badge {
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: #f5f5f5;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}

.card-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.card-free {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
  background: #fafafa;
  border-radius: 8px;
  line-height: 1.5;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.card-tag {
  font-size: 0.6875rem;
  padding: 0.1875rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  transition: gap 0.2s ease;
}

.card-link:hover { gap: 0.625rem; }

.card-link svg { width: 14px; height: 14px; }

.card-domains {
  font-size: 0.6875rem;
  color: var(--text-muted);
  max-width: 60%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Disclaimer */
.disclaimer {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 3rem;
  padding: 1rem;
  border-top: 1px solid var(--border);
  line-height: 1.6;
}

/* Stack Guide */
.stack-section {
  padding: 5rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.stack-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
}

.stack-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all 0.2s ease;
  background: #fff;
}

.stack-card:hover {
  border-color: #d0d0d0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.stack-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.stack-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.stack-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.stack-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.25rem;
}

.stack-tool {
  font-size: 0.6875rem;
  padding: 0.25rem 0.625rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
}

.stack-action {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-body);
  margin-top: 0.5rem;
  transition: gap 0.2s ease;
}

.stack-action:hover { gap: 0.625rem; }

/* Tutorials Section */
.tutorials-section {
  padding: 5rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
  background: #fafafa;
  border-radius: 24px;
}

.tutorial-cats {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
  scrollbar-width: none;
  justify-content: center;
  flex-wrap: wrap;
}

.tutorial-cats::-webkit-scrollbar { display: none; }

.tutorial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .tutorial-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .tutorial-grid { grid-template-columns: repeat(3, 1fr); }
}

.tutorial-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  transition: all 0.25s ease;
}

.tutorial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.tutorial-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #eee;
  cursor: pointer;
}

.tutorial-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.tutorial-card:hover .tutorial-thumb img {
  transform: scale(1.05);
}

.tutorial-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.25);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.tutorial-card:hover .tutorial-play { opacity: 1; }

.tutorial-play svg {
  width: 48px;
  height: 48px;
  fill: #fff;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.tutorial-body {
  padding: 1rem 1.25rem 1.25rem;
}

.tutorial-cat-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 0.1875rem 0.625rem;
  border-radius: 9999px;
  background: #f0f0f0;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.tutorial-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 0.375rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tutorial-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Video Modal */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.video-modal.open {
  opacity: 1;
  pointer-events: all;
}

.video-modal-inner {
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: #000;
}

.video-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.video-modal-close:hover { opacity: 1; }

.video-modal iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* About */
.about-section {
  padding: 5rem 1.5rem;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.about-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.about-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem;
  text-align: center;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-note {
  font-size: 0.6875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.empty-state svg {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  opacity: 0.4;
}

.empty-state h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.empty-state p {
  font-size: 0.875rem;
}

/* Focus states */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
}

/* Scroll to top */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--btn-primary);
  color: var(--btn-text);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 50;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover {
  background: #222;
  transform: translateY(-2px);
}

.scroll-top svg { width: 20px; height: 20px; }

@media (max-width: 768px) {
  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .toolbar-group { justify-content: flex-start; overflow-x: auto; }
  .hero { min-height: 80vh; padding-top: 100px; }
  .section { padding: 3rem 1rem; }
  .stack-section { padding: 3rem 1rem; }
  .tutorials-section { padding: 3rem 1rem; border-radius: 16px; }
}
