/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #09090b;
  --bg-card: #18181b;
  --bg-card-hover: #1f1f23;
  --border: #27272a;
  --border-light: #3f3f46;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-secondary: #06b6d4;
  --accent-gradient: linear-gradient(135deg, #3b82f6, #06b6d4);
  --text: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --success: #10b981;
  --warning: #f59e0b;
  --container: 1200px;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.2s ease;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ===== CONTAINER ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid #e4e4e7;
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.nav-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.nav-logo svg {
  width: 28px;
  height: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  color: #52525b;
  transition: color var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: #18181b;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--accent);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.nav-cta:hover {
  background: var(--accent-hover);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #18181b;
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(9, 9, 11, 0.95);
  backdrop-filter: blur(16px);
  z-index: 999;
  padding: 32px 24px;
}

.nav-mobile.open {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-mobile a {
  display: block;
  padding: 12px 0;
  font-size: 1.125rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}

.nav-mobile a:hover {
  color: var(--text);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 160px 0 100px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(
    ellipse at center,
    rgba(59, 130, 246, 0.12) 0%,
    rgba(139, 92, 246, 0.06) 40%,
    transparent 70%
  );
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 30% 20%,
    rgba(59, 130, 246, 0.05) 0%,
    transparent 50%
  ),
  radial-gradient(
    circle at 70% 60%,
    rgba(139, 92, 246, 0.04) 0%,
    transparent 50%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 100px;
  font-size: 0.8125rem;
  color: var(--accent);
  margin-bottom: 32px;
}

.hero-badge span {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(to bottom right, #fafafa 40%, #71717a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-logo-text {
  font-size: clamp(3rem, 7vw, 5rem) !important;
  background: none !important;
  -webkit-text-fill-color: #fafafa !important;
  color: #fafafa;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero-logo-text span {
  color: #3b82f6;
  -webkit-text-fill-color: #3b82f6;
  background-clip: text;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* ===== BUTTONS ===== */
.btn-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  transform: translateY(-1px);
}

.btn-icon {
  width: 18px;
  height: 18px;
}

/* ===== SECTIONS ===== */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== FEATURE CARDS ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.25rem;
}

.feature-icon--blue {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
}

.feature-icon--cyan {
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-secondary);
}

.feature-icon--green {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.feature-icon--orange {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.feature-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== CAPABILITY STRIP ===== */
.capability-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}
.capability-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
}
.capability-pill strong {
  color: var(--text);
  font-weight: 600;
}
.capability-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .capability-dot { display: none; }
  .capability-pill { padding: 6px 12px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; }
}

/* ===== PROVIDER SECTION (glossy) ===== */
.section-providers {
  position: relative;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(59,130,246,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(6,182,212,0.06) 0%, transparent 50%),
    linear-gradient(180deg, #0c0c0f 0%, #111114 50%, #0c0c0f 100%);
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  overflow: hidden;
}
.section-providers::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, rgba(59,130,246,0.3) 30%, rgba(6,182,212,0.3) 70%, transparent 90%);
}
.section-providers::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, rgba(6,182,212,0.2) 30%, rgba(59,130,246,0.2) 70%, transparent 90%);
}

/* ===== PROVIDER GRID ===== */
.provider-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}
.provider-grid:last-of-type {
  grid-template-columns: repeat(3, 1fr);
  max-width: 620px;
}
@media (max-width: 640px) {
  .provider-grid,
  .provider-grid:last-of-type { grid-template-columns: repeat(2, 1fr); }
}

.provider-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px 20px;
  background: linear-gradient(145deg, rgba(40,40,46,0.95) 0%, rgba(30,30,35,0.9) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.06);
}
.provider-card:hover {
  background: linear-gradient(145deg, rgba(50,50,56,0.95) 0%, rgba(38,38,44,0.9) 100%);
  border-color: rgba(59,130,246,0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 0 20px rgba(59,130,246,0.1), inset 0 1px 0 rgba(255,255,255,0.08);
}
.provider-card--local {
  border-style: dashed;
  border-color: rgba(6,182,212,0.25);
}
.provider-card--local:hover {
  border-color: rgba(6,182,212,0.4);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 0 20px rgba(6,182,212,0.1), inset 0 1px 0 rgba(255,255,255,0.08);
}

.provider-logo {
  height: 52px;
  width: 52px;
  object-fit: contain;
  border-radius: 10px;
}
.provider-logo-text {
  font-size: 44px;
  line-height: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.provider-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.provider-type {
  font-size: 12px;
  color: var(--text-muted);
}

/* Hover tooltip */
.provider-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #1c1c20;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.provider-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1c1c20;
}
.provider-card:hover .provider-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.provider-tooltip strong {
  color: var(--text);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.provider-tooltip-link {
  display: block;
  margin-top: 6px;
  color: var(--accent);
  font-weight: 500;
  font-size: 11px;
}

/* ===== HOW IT WORKS ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(16.66% + 36px);
  right: calc(16.66% + 36px);
  height: 2px;
  background: var(--border);
}

@media (max-width: 768px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .steps::before {
    display: none;
  }
}

.step {
  text-align: center;
}

.step-number {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  position: relative;
  z-index: 1;
}

.step h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  max-width: 280px;
  margin: 0 auto;
}

/* ===== CTA SECTION ===== */
.cta-section {
  text-align: center;
  padding: 80px 0 100px;
}

.cta-section h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 8px;
}

.cta-section p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 1.0625rem;
}

.cta-section .by-line {
  margin-top: 40px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.cta-section .by-line a {
  color: var(--text-secondary);
  transition: color var(--transition);
}

.cta-section .by-line a:hover {
  color: var(--text);
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--text);
}

/* ===== MARKETPLACE PAGE ===== */
.page-header {
  padding: 140px 0 60px;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.page-header p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

.marketplace-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 80px;
}

@media (max-width: 768px) {
  .marketplace-grid {
    grid-template-columns: 1fr;
  }
}

.package-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.package-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.package-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.package-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.package-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

.package-tools {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex: 1;
}

.package-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 100px;
  width: fit-content;
}

.package-status--available {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.package-status--coming {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.package-status span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.package-status--available span {
  background: var(--success);
}

.package-status--coming span {
  background: var(--warning);
}

/* ===== MARKETPLACE SEARCH ===== */
.marketplace-search {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 8px;
}

.search-input-wrapper {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-input-wrapper input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.9375rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
}

.search-input-wrapper input::placeholder {
  color: var(--text-muted);
}

.search-input-wrapper input:focus {
  border-color: var(--accent);
}

.search-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 6px 16px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover {
  color: var(--text);
  border-color: var(--border-light);
}

.filter-btn.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

/* ===== DYNAMIC PACKAGE CARDS ===== */
.package-card .package-header > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.package-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.package-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.package-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.package-stats {
  display: flex;
  gap: 16px;
}

.package-stat {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.package-install-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--accent);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

.package-install-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* ===== SKELETON LOADING ===== */
.skeleton-card {
  padding: 32px;
}

.skeleton-header {
  width: 60%;
  height: 24px;
  background: var(--border);
  border-radius: 6px;
  margin-bottom: 16px;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton-text {
  width: 100%;
  height: 14px;
  background: var(--border);
  border-radius: 4px;
  margin-bottom: 10px;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
  animation-delay: 0.2s;
}

.skeleton-text.short {
  width: 40%;
  animation-delay: 0.4s;
}

@keyframes skeleton-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

/* ===== MARKETPLACE EMPTY STATE ===== */
.marketplace-empty {
  text-align: center;
  padding: 80px 0;
}

.marketplace-empty p {
  color: var(--text-muted);
  font-size: 1.0625rem;
}

/* Marketplace sections */
.marketplace-info {
  padding: 60px 0;
  border-top: 1px solid var(--border);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
  align-items: center;
}

@media (max-width: 768px) {
  .info-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.info-block h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.info-block p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.info-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.8;
  overflow-x: auto;
}

.info-visual .cmd {
  color: var(--accent);
}

.info-visual .arg {
  color: var(--accent-secondary);
}

.info-visual .ok {
  color: var(--success);
}

/* ===== DOCS PAGE ===== */
.docs-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 60px;
  padding: 140px 0 100px;
}

@media (max-width: 900px) {
  .docs-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.docs-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
}

@media (max-width: 900px) {
  .docs-sidebar {
    position: static;
    border-bottom: 1px solid var(--border);
    padding-bottom: 24px;
  }
}

.docs-sidebar h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.docs-sidebar ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.docs-sidebar a {
  display: block;
  padding: 8px 12px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.docs-sidebar a:hover,
.docs-sidebar a.active {
  color: var(--text);
  background: var(--bg-card);
}

.docs-sidebar a.active {
  border-left: 2px solid var(--accent);
  padding-left: 10px;
}

.docs-content h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.docs-content > p:first-of-type {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  margin-bottom: 48px;
}

.docs-section {
  margin-bottom: 64px;
  scroll-margin-top: 96px;
}

.docs-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.docs-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 24px 0 12px;
}

.docs-section p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.7;
}

.docs-section ul,
.docs-section ol {
  color: var(--text-secondary);
  padding-left: 24px;
  margin-bottom: 16px;
}

.docs-section li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.docs-section li strong {
  color: var(--text);
}

.docs-section code {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8125rem;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  color: var(--accent);
}

.docs-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 48px;
}

.docs-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.docs-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  flex-shrink: 0;
}

.docs-step-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 4px;
}

.docs-step-content p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.fade-in-group > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-group.visible > *:nth-child(1) { transition-delay: 0s; }
.fade-in-group.visible > *:nth-child(2) { transition-delay: 0.1s; }
.fade-in-group.visible > *:nth-child(3) { transition-delay: 0.2s; }
.fade-in-group.visible > *:nth-child(4) { transition-delay: 0.3s; }

.fade-in-group.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ===== DIVIDERS ===== */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ===== UTILITY ===== */
.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ===== STATUS TABS ===== */
.status-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  width: fit-content;
}
.status-tab {
  padding: 8px 20px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}
.status-tab:hover { color: var(--text-primary); }
.status-tab.active {
  background: var(--accent);
  color: #fff;
}

/* ===== PACKAGE STATUS BADGES (inline) ===== */
.package-status.active {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  vertical-align: middle;
  margin-left: 6px;
}
.package-status.requested {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  vertical-align: middle;
  margin-left: 6px;
}
.package-status.review {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  vertical-align: middle;
  margin-left: 6px;
}

/* Requested package card styling */
.package-card.requested {
  border-style: dashed;
  opacity: 0.85;
}
.package-card.requested:hover {
  opacity: 1;
}

/* ===== CATEGORY BADGE ===== */
.package-category-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(161, 161, 170, 0.1);
  color: var(--text-muted);
}

/* ===== FILTER COUNT ===== */
.filter-count {
  font-size: 0.6875rem;
  opacity: 0.6;
  margin-left: 2px;
}

/* ===== SEARCH ACTIONS ROW ===== */
.search-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ===== SUBMIT BUTTONS ===== */
.submit-new-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.submit-new-btn:hover {
  background: var(--accent);
  color: #fff;
}

.package-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--warning);
  color: var(--warning);
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.package-submit-btn:hover {
  background: var(--warning);
  color: #000;
}

/* ===== GITHUB LINK ===== */
.package-github-link {
  color: var(--text-muted);
  transition: color 0.15s;
}
.package-github-link:hover {
  color: var(--text-primary);
}

/* ===== SUBMISSION MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  max-width: 520px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}
.modal-close:hover { color: var(--text-primary); }
.modal-content h2 {
  font-size: 1.25rem;
  margin: 0 0 8px 0;
  color: var(--text-primary);
}
.modal-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 24px 0;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-family: inherit;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group textarea {
  min-height: 80px;
  resize: vertical;
}
.submit-btn {
  width: 100%;
  padding: 12px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
}
.submit-btn:hover { opacity: 0.9; }
.submit-result {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.8125rem;
  margin-bottom: 12px;
}
.submit-result.success {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}
.submit-result.error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

/* ===== MARKETPLACE SIDEBAR LAYOUT ===== */
.marketplace-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}
.marketplace-sidebar {
  width: 220px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
}
.marketplace-content {
  flex: 1;
  min-width: 0;
}
.sidebar-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin: 0 0 12px 0;
  padding: 0 12px;
}
.category-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.category-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all 0.15s;
  cursor: pointer;
}
.category-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}
.category-link.active {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
}
.category-link img.vendor-icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
}
.category-count {
  margin-left: auto;
  font-size: 0.6875rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 6px;
  border-radius: 10px;
}
.search-bar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
@media (max-width: 768px) {
  .marketplace-layout {
    flex-direction: column;
  }
  .marketplace-sidebar {
    width: 100%;
    position: static;
  }
  .category-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
  }
}
