:root {
  --background: 240 12% 4%;
  --foreground: 0 0% 96%;
  --card: 240 10% 7%;
  --card-foreground: 0 0% 96%;
  --muted: 240 8% 14%;
  --muted-foreground: 240 5% 58%;
  --accent: 240 12% 14%;
  --accent-foreground: 0 0% 96%;
  --border: 240 10% 16%;
  --input: 240 10% 16%;
  --ring: 250 45% 55%;
  --radius: 0.75rem;
  --glow: 250 80% 65%;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: auto;
  scrollbar-gutter: stable;
}

html,
body {
  overflow-anchor: none;
}

body {
  font-family: Inter, system-ui, sans-serif;
  background-color: hsl(var(--background));
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

::selection {
  background: hsl(var(--glow) / 0.25);
  color: hsl(var(--foreground));
}

/* Ambient page background + subtle orbs */
.bg-gradient-dark {
  background-color: hsl(var(--background));
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, hsl(250 60% 50% / 0.14), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, hsl(220 70% 50% / 0.08), transparent),
    radial-gradient(ellipse 50% 30% at 0% 100%, hsl(280 50% 40% / 0.06), transparent);
  position: relative;
  overflow-x: hidden;
}

.bg-gradient-dark::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle 400px at 15% 20%, hsl(250 70% 55% / 0.06), transparent 70%),
    radial-gradient(circle 350px at 85% 30%, hsl(220 80% 60% / 0.05), transparent 70%),
    radial-gradient(circle 300px at 50% 90%, hsl(280 60% 50% / 0.04), transparent 70%);
  animation: orbFloat 20s ease-in-out infinite alternate;
}

.bg-gradient-dark > * {
  position: relative;
  z-index: 1;
}

@keyframes orbFloat {
  0% {
    opacity: 0.7;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 1;
    transform: translate(2%, -1%) scale(1.02);
  }
}

/* Hero ambient pulse */
.min-h-\[80vh\] .animate-pulse {
  animation: ambientGlow 10s ease-in-out infinite;
}

@keyframes ambientGlow {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.02);
  }
}

/* ——— Topbar — persistent, no remount flash ——— */
nav.fixed,
.site-nav {
  border-bottom-color: hsl(var(--border) / 0.5);
  background: hsl(var(--background) / 0.88) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 1 !important;
  animation: none !important;
  transform: none !important;
}

main.pt-16 {
  min-height: calc(100vh - 3.5rem);
}

nav .hidden.md\:flex a.rounded-md::after,
nav .hidden.md\:flex a.rounded-md::before {
  display: none !important;
  content: none !important;
}

/* Kart açıklamaları — eşit yükseklik */
.plugin-card-desc {
  min-height: 2.75rem;
}

/* İndirme detay modalı */
.plugin-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: hsl(0 0% 0% / 0.72);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  isolation: isolate;
  animation: fadeIn 0.25s var(--ease-out-expo) forwards;
}

.plugin-modal-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: hsl(var(--background) / 0.35);
  pointer-events: none;
}

.plugin-modal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 32rem;
  max-height: min(90vh, 540px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border) / 0.55);
  background: hsl(var(--card) / 0.97);
  backdrop-filter: blur(12px);
  box-shadow:
    0 0 0 1px hsl(0 0% 100% / 0.05) inset,
    0 24px 64px -16px hsl(0 0% 0% / 0.65),
    0 8px 24px -8px hsl(0 0% 0% / 0.4);
  animation: pluginModalIn 0.35s var(--ease-out-expo) forwards;
}

@keyframes pluginModalIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.plugin-modal-header {
  position: relative;
  padding: 1.5rem 1.5rem 0;
  flex-shrink: 0;
}

.plugin-modal-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  padding: 0.35rem;
  border-radius: calc(var(--radius) - 4px);
  color: hsl(var(--muted-foreground));
  transition: color 0.2s ease, background 0.2s ease;
}

.plugin-modal-close:hover {
  color: hsl(var(--foreground));
  background: hsl(var(--accent) / 0.55);
}

.plugin-modal-body {
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  flex: 1 1 auto;
}

.plugin-modal-body p {
  margin: 0;
}

.plugin-modal-footer {
  flex-shrink: 0;
  margin-top: auto;
  padding: 1.25rem 1.5rem 1.5rem;
  border-top: 1px solid hsl(var(--border) / 0.45);
  background: hsl(var(--background) / 0.35);
}

.plugin-modal-filename {
  margin: 0 0 1.25rem;
  padding: 0.65rem 0.85rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  line-height: 1.4;
  color: hsl(var(--muted-foreground));
  word-break: break-all;
  border-radius: calc(var(--radius) - 4px);
  border: 1px solid hsl(var(--border) / 0.4);
  background: hsl(var(--accent) / 0.25);
}

.plugin-modal-actions {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .plugin-modal-actions {
    flex-direction: row;
  }
}

body:has(.plugin-modal-overlay) {
  overflow: hidden;
}

/* Plugin grid — lazy paint + no heavy stagger */
.plugin-card-stagger {
  opacity: 1;
  animation: none;
  content-visibility: auto;
  contain-intrinsic-size: auto 220px;
}

.plugin-load-sentinel {
  height: 1px;
  width: 100%;
  margin-top: 1rem;
  pointer-events: none;
  visibility: hidden;
}

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

.plugin-card-stagger .card-hover {
  animation: none;
}

/* Eski çift animasyonu kapat */
.grid.gap-4 > .animate-scale-in {
  animation: none;
  opacity: 1;
}

/* ——— Typography ——— */
.gradient-text {
  background-image: linear-gradient(
    135deg,
    hsl(var(--foreground)) 0%,
    hsl(var(--glow) / 0.95) 45%,
    hsl(220 70% 78% / 0.95) 100%
  );
  background-size: 200% auto;
  animation: gradientShift 7s var(--ease-out-expo) infinite;
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
}

h1,
h2,
h3 {
  letter-spacing: -0.03em;
}

/* ——— Hero CTA — modern standalone buttons ——— */
.hero-cta-group {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .hero-cta-group {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }
}

.hero-cta-group .hero-cta-primary,
.hero-cta-group .hero-cta-secondary {
  margin: 0;
  position: relative;
  isolation: isolate;
}

.hero-cta-group .hero-cta-primary a,
.hero-cta-group .hero-cta-primary {
  position: relative;
  z-index: 1;
  height: 3rem !important;
  min-height: 3rem;
  padding-left: 1.75rem !important;
  padding-right: 1.75rem !important;
  border-radius: 0.75rem !important;
  font-weight: 600;
  letter-spacing: -0.02em;
  border: none !important;
  background: linear-gradient(
    135deg,
    hsl(265 70% 62%) 0%,
    hsl(240 75% 58%) 50%,
    hsl(220 80% 55%) 100%
  ) !important;
  background-size: 200% 200% !important;
  color: hsl(0 0% 100%) !important;
  box-shadow:
    0 0 0 1px hsl(265 80% 70% / 0.25) inset,
    0 4px 24px -6px hsl(265 70% 50% / 0.55),
    0 8px 32px -12px hsl(265 60% 40% / 0.35);
  animation: heroBtnShimmer 6s ease-in-out infinite;
  transition:
    transform 0.35s var(--ease-out-expo),
    box-shadow 0.35s var(--ease-out-expo),
    filter 0.3s ease;
}

.hero-cta-group .hero-cta-primary::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: calc(0.75rem + 1px);
  padding: 1px;
  background: linear-gradient(
    135deg,
    hsl(265 90% 75% / 0.6),
    hsl(220 90% 70% / 0.2),
    hsl(280 80% 75% / 0.5)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.hero-cta-group .hero-cta-primary:hover::before {
  opacity: 1;
}

.hero-cta-group .hero-cta-secondary a,
.hero-cta-group .hero-cta-secondary {
  position: relative;
  z-index: 1;
  height: 3rem !important;
  min-height: 3rem;
  padding-left: 1.75rem !important;
  padding-right: 1.75rem !important;
  border-radius: 0.75rem !important;
  font-weight: 500;
  letter-spacing: -0.02em;
  border: 1px solid hsl(var(--border) / 0.6) !important;
  background: hsl(var(--card) / 0.35) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: hsl(var(--foreground)) !important;
  box-shadow:
    0 0 0 1px hsl(0 0% 100% / 0.04) inset,
    0 4px 20px -8px hsl(0 0% 0% / 0.4);
  transition:
    transform 0.35s var(--ease-out-expo),
    border-color 0.3s ease,
    background 0.3s ease,
    box-shadow 0.35s var(--ease-out-expo);
}

.hero-cta-group .hero-cta-secondary::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0.75rem;
  background: linear-gradient(
    135deg,
    hsl(var(--glow) / 0.08) 0%,
    transparent 50%,
    hsl(220 70% 60% / 0.06) 100%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.hero-cta-group .hero-cta-primary:hover a,
.hero-cta-group .hero-cta-primary:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.08);
  box-shadow:
    0 0 0 1px hsl(265 80% 75% / 0.35) inset,
    0 8px 32px -6px hsl(265 70% 50% / 0.65),
    0 16px 48px -12px hsl(265 60% 45% / 0.4);
}

.hero-cta-group .hero-cta-secondary:hover::after {
  opacity: 1;
}

.hero-cta-group .hero-cta-secondary:hover a,
.hero-cta-group .hero-cta-secondary:hover {
  transform: translateY(-2px);
  border-color: hsl(var(--glow) / 0.35) !important;
  background: hsl(var(--accent) / 0.55) !important;
  box-shadow:
    0 0 0 1px hsl(var(--glow) / 0.12),
    0 8px 28px -8px hsl(var(--glow) / 0.25);
}

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

/* ——— Cards ——— */
.card-hover {
  transition:
    transform 0.5s var(--ease-out-expo),
    box-shadow 0.5s var(--ease-out-expo),
    border-color 0.35s ease,
    background-color 0.35s ease;
}

.card-hover::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    ellipse 120% 80% at 50% 0%,
    hsl(var(--glow) / 0.1),
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

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

.card-hover:hover {
  transform: translateY(-4px);
  border-color: hsl(var(--glow) / 0.22) !important;
  background-color: hsl(var(--card) / 0.98) !important;
  box-shadow:
    0 0 0 1px hsl(var(--glow) / 0.1),
    0 20px 50px -16px hsl(0 0% 0% / 0.55),
    0 8px 24px -8px hsl(var(--glow) / 0.15);
}

.group.relative.bg-card {
  position: relative;
  overflow: hidden;
}

.bg-card {
  background: hsl(var(--card) / 0.88);
  backdrop-filter: blur(10px);
}


/* ——— Filter / category chips ——— */
.flex.flex-wrap.gap-3 button {
  border-radius: 9999px;
  padding-left: 1rem;
  padding-right: 1rem;
  transition:
    transform 0.3s var(--ease-out-expo),
    box-shadow 0.3s var(--ease-out-expo),
    background 0.25s ease,
    border-color 0.25s ease;
}

.flex.flex-wrap.gap-3 button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px -6px hsl(var(--glow) / 0.25);
}

.flex.flex-wrap.gap-3 button.bg-foreground,
.flex.flex-wrap.gap-3 button[class*="bg-primary"] {
  box-shadow: 0 0 20px -6px hsl(var(--glow) / 0.35);
}

/* ——— Search ——— */
input[type="text"] {
  border-radius: var(--radius);
  transition:
    border-color 0.3s ease,
    box-shadow 0.4s var(--ease-out-expo),
    background 0.3s ease;
}

input[type="text"]:focus {
  border-color: hsl(var(--glow) / 0.45) !important;
  box-shadow:
    0 0 0 3px hsl(var(--glow) / 0.12),
    0 8px 32px -12px hsl(var(--glow) / 0.2);
  background: hsl(var(--card) / 0.95);
}

/* ——— Global animations ——— */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.animate-fade-in {
  animation: fadeIn 0.65s var(--ease-out-expo) forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 0.9s var(--ease-out-expo) forwards;
}

.animate-scale-in {
  animation: scaleIn 0.6s var(--ease-out-expo) forwards;
  opacity: 1;
}

.animate-delay-100,
.animate-delay-200,
.animate-delay-300,
.animate-delay-400,
.animate-delay-500 {
  opacity: 0;
  animation-fill-mode: forwards;
}

/* Home feature tiles */
.grid .rounded-lg.bg-card\/50 {
  background: hsl(var(--card) / 0.5) !important;
  backdrop-filter: blur(14px);
  transition:
    transform 0.45s var(--ease-out-expo),
    border-color 0.35s ease,
    box-shadow 0.45s var(--ease-out-expo);
}

.grid .rounded-lg.bg-card\/50:hover {
  transform: translateY(-3px);
  border-color: hsl(var(--glow) / 0.18) !important;
  box-shadow: 0 16px 40px -20px hsl(var(--glow) / 0.2);
}

.grid.gap-4 {
  gap: 1.35rem;
}

.group.relative.bg-card.rounded-lg {
  border-radius: var(--radius);
}

main {
  animation: none;
}

footer {
  background: hsl(var(--card) / 0.35) !important;
  border-top-color: hsl(var(--border) / 0.45) !important;
}

.link-hover:hover {
  color: hsl(var(--glow) / 0.95);
}

.inline-flex.rounded-full.bg-accent {
  background: hsl(var(--accent) / 0.85) !important;
  border: 1px solid hsl(var(--border) / 0.55);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 24px -10px hsl(var(--glow) / 0.3);
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-thumb {
  background: hsl(var(--muted));
  border-radius: 4px;
}

:focus-visible {
  outline: 2px solid hsl(var(--glow) / 0.5);
  outline-offset: 2px;
}

/* ——— Home hero: split layout + featured plugins ——— */
.quartz-home-hero {
  position: relative;
  min-height: calc(100vh - 4rem);
  display: flex;
  align-items: center;
  padding: clamp(4.5rem, 8vw, 7rem) 0;
  overflow: hidden;
  isolation: isolate;
}

.quartz-home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle 34rem at 72% 44%, hsl(var(--glow) / 0.13), transparent 68%),
    radial-gradient(circle 30rem at 8% 22%, hsl(220 80% 55% / 0.08), transparent 72%);
}

.quartz-home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(hsl(var(--foreground) / 0.035) 1px, transparent 1px),
    linear-gradient(90deg, hsl(var(--foreground) / 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.quartz-hero-ambient {
  position: absolute;
  width: min(52vw, 48rem);
  aspect-ratio: 1;
  right: -10%;
  top: 50%;
  z-index: -1;
  border-radius: 50%;
  background: hsl(var(--glow) / 0.08);
  filter: blur(110px);
  transform: translateY(-50%);
  animation: quartzAmbientPulse 8s ease-in-out infinite;
}

.quartz-hero-container {
  width: 100%;
  max-width: 1280px;
  position: relative;
  z-index: 1;
}

.quartz-hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(22rem, 0.8fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 6rem);
}

.quartz-hero-content {
  max-width: 43rem;
}

.quartz-hero-content > * {
  opacity: 0;
  animation: quartzHeroRise 0.8s var(--ease-out-expo) forwards;
}

.quartz-hero-content > :nth-child(1) { animation-delay: 0.06s; }
.quartz-hero-content > :nth-child(2) { animation-delay: 0.13s; }
.quartz-hero-content > :nth-child(3) { animation-delay: 0.2s; }
.quartz-hero-content > :nth-child(4) { animation-delay: 0.27s; }
.quartz-hero-content > :nth-child(5) { animation-delay: 0.34s; }

.quartz-hero-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 1.5rem;
  padding: 0.42rem 0.8rem;
  border: 1px solid hsl(var(--glow) / 0.18);
  border-radius: 999px;
  background: hsl(var(--glow) / 0.07);
  color: hsl(235 85% 80%);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 0 24px -10px hsl(var(--glow) / 0.28);
  backdrop-filter: blur(10px);
}

.quartz-hero-title {
  margin: 0;
  color: hsl(var(--foreground));
  font-size: clamp(2.85rem, 5.6vw, 4.65rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.quartz-hero-title .gradient-text {
  display: block;
  padding-bottom: 0.08em;
}

.quartz-hero-sub {
  max-width: 36rem;
  margin: 1.45rem 0 0;
  color: hsl(var(--muted-foreground));
  font-size: clamp(1rem, 1.45vw, 1.12rem);
  line-height: 1.75;
}

.quartz-hero-actions {
  margin-top: 2rem;
}

.quartz-hero-stats {
  display: flex;
  align-items: flex-start;
  gap: clamp(1.8rem, 4vw, 3rem);
  margin-top: 3rem;
  padding-top: 1.7rem;
  border-top: 1px solid hsl(var(--border) / 0.55);
}

.quartz-hero-stat-value {
  color: hsl(var(--foreground));
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.quartz-hero-stat-label {
  margin-top: 0.3rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.72rem;
  white-space: nowrap;
}

.quartz-featured-stack {
  display: grid;
  gap: 1rem;
  perspective: 1000px;
}

.quartz-featured-card {
  position: relative;
  overflow: hidden;
  border: 1px solid hsl(var(--border) / 0.72);
  border-radius: 1rem;
  background:
    linear-gradient(145deg, hsl(var(--card) / 0.94), hsl(var(--background) / 0.88));
  box-shadow:
    0 0 0 1px hsl(var(--foreground) / 0.025) inset,
    0 22px 54px -30px hsl(0 0% 0% / 0.8),
    0 12px 34px -26px hsl(var(--glow) / 0.42);
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: translateX(24px) scale(0.98);
  animation: quartzCardIn 0.85s var(--ease-out-expo) var(--featured-delay) forwards;
  transition:
    transform 0.45s var(--ease-out-expo),
    border-color 0.35s ease,
    box-shadow 0.45s var(--ease-out-expo);
}

.quartz-featured-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 10% 0%, hsl(var(--glow) / 0.12), transparent 42%);
  opacity: 0.55;
  transition: opacity 0.35s ease;
}

.quartz-featured-card:hover {
  z-index: 2;
  transform: translateY(-5px) scale(1.012);
  border-color: hsl(var(--glow) / 0.3);
  box-shadow:
    0 0 0 1px hsl(var(--glow) / 0.08) inset,
    0 28px 62px -28px hsl(0 0% 0% / 0.86),
    0 18px 42px -26px hsl(var(--glow) / 0.58);
}

.quartz-featured-card:hover::before {
  opacity: 1;
}

.quartz-featured-top,
.quartz-featured-body {
  position: relative;
  z-index: 1;
}

.quartz-featured-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 1.05rem 1.15rem 0;
}

.quartz-featured-badge,
.quartz-featured-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  white-space: nowrap;
}

.quartz-featured-badge {
  gap: 0.35rem;
  padding: 0.32rem 0.62rem;
  border: 1px solid hsl(var(--glow) / 0.18);
  background: hsl(var(--glow) / 0.08);
  color: hsl(235 85% 80%);
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.025em;
}

.quartz-featured-status {
  gap: 0.33rem;
  padding: 0.3rem 0.55rem;
  border: 1px solid hsl(145 65% 52% / 0.16);
  background: hsl(145 65% 52% / 0.065);
  color: hsl(145 65% 62%);
  font-size: 0.6rem;
  font-weight: 550;
}

.quartz-featured-status-dot {
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.quartz-featured-body {
  padding: 0.9rem 1.15rem 1.15rem;
}

.quartz-featured-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.quartz-featured-name {
  margin: 0;
  color: hsl(var(--foreground));
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.2;
}

.quartz-featured-category {
  max-width: 100%;
  overflow: hidden;
  padding: 0.22rem 0.45rem;
  border-radius: 0.3rem;
  background: hsl(var(--glow) / 0.08);
  color: hsl(235 80% 77%);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.055em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.quartz-featured-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.42rem;
  color: hsl(var(--muted-foreground) / 0.86);
  font-size: 0.68rem;
}

.quartz-featured-desc {
  min-height: 2.55rem;
  margin: 0.75rem 0 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.76rem;
  line-height: 1.6;
}

.quartz-featured-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 0.9rem;
}

.quartz-featured-actions > * {
  width: 100%;
}

.quartz-featured-download {
  border: 1px solid hsl(var(--glow) / 0.22) !important;
  background: linear-gradient(135deg, hsl(260 70% 60%), hsl(225 78% 56%)) !important;
  color: white !important;
  box-shadow: 0 8px 20px -12px hsl(var(--glow) / 0.65);
}

.quartz-featured-download:hover {
  filter: brightness(1.08);
}

.quartz-featured-inspect {
  background: hsl(var(--card) / 0.38) !important;
  backdrop-filter: blur(8px);
}

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

@keyframes quartzCardIn {
  from { opacity: 0; transform: translateX(24px) scale(0.98); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes quartzAmbientPulse {
  0%, 100% { opacity: 0.62; transform: translateY(-50%) scale(0.94); }
  50% { opacity: 1; transform: translateY(-50%) scale(1.06); }
}

@media (max-width: 1024px) {
  .quartz-home-hero {
    padding-top: 4rem;
  }

  .quartz-hero-split {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .quartz-hero-content {
    max-width: 46rem;
  }

  .quartz-featured-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .quartz-home-hero {
    min-height: auto;
    padding: 3.5rem 0 4.5rem;
  }

  .quartz-hero-title {
    font-size: clamp(2.55rem, 13vw, 3.6rem);
  }

  .quartz-hero-stats {
    justify-content: space-between;
    gap: 1rem;
  }

  .quartz-featured-stack {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .quartz-hero-actions {
    width: 100%;
  }

  .quartz-hero-actions > * {
    width: 100%;
  }

  .quartz-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .quartz-hero-stat-label {
    white-space: normal;
  }

  .quartz-featured-top {
    align-items: flex-start;
  }

  .quartz-featured-status {
    padding-inline: 0.45rem;
  }

  .quartz-featured-actions {
    grid-template-columns: 1fr;
  }
}
