/* === Fonts === */

@font-face {
  font-family: 'Suisse Intl';
  src: url('fonts/SuisseIntl-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Exposure';
  src: url('fonts/exposure-regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Exposure';
  src: url('fonts/exposure-italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}


/* === Tokens === */

:root {
  color-scheme: light dark;

  --font-body: 'Suisse Intl', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, sans-serif;
  --font-display: 'Exposure', Georgia, serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Consolas', 'Monaco', monospace;

  --color-text: #1F1F1F;
  --color-text-secondary: #6B7280;
  --color-text-tertiary: #9CA3AF;
  --color-bg: #F7F7F7;
  --color-bg-white: #FFFFFF;
  --color-border: #E5E7EB;
  --color-border-light: #F3F4F6;

  --radius-sm: 8px;
  --radius-base: 10px;
  --radius-card: 18px;
  --radius-lg: 20px;
  --radius-full: 50px;

  --shadow-card: 0px 0px 3px 0px rgba(0,0,0,0.15), 0px 4px 20.8px 0px rgba(0,0,0,0.05);
  --shadow-card-hover: 0px 0px 6px 0px rgba(0,0,0,0.12), 0px 12px 32px 0px rgba(0,0,0,0.08);
  --shadow-overlay: 0px 24px 48px rgba(0,0,0,0.12);

  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-ripple: cubic-bezier(0.2, 0.9, 0.3, 1);

  --pill-all-bg: #1F1F1F;
  --pill-all-text: #FFFFFF;
}

/* DISABLED: dark mode — uncomment @media line and closing brace to re-enable
@media (prefers-color-scheme: dark) {
  :root {
    --color-text: #F0F0F0;
    --color-text-secondary: #A1A1AA;
    --color-text-tertiary: #71717A;
    --color-bg: #161616;
    --color-bg-white: #222222;
    --color-border: #333333;
    --color-border-light: #262626;
    --shadow-card: 0px 0px 3px rgba(0,0,0,0.5), 0px 4px 20px rgba(0,0,0,0.3);
    --shadow-card-hover: 0px 0px 6px rgba(0,0,0,0.6), 0px 12px 32px rgba(0,0,0,0.4);
    --shadow-overlay: 0px 24px 48px rgba(0,0,0,0.4);
    --pill-all-bg: #FFFFFF;
    --pill-all-text: #1F1F1F;
  }
  .hero-bg {
    background:
      radial-gradient(ellipse 600px 400px at 25% 40%, rgba(124,58,237,0.12) 0%, transparent 70%),
      radial-gradient(ellipse 500px 500px at 75% 30%, rgba(14,165,233,0.10) 0%, transparent 70%),
      radial-gradient(ellipse 400px 300px at 50% 80%, rgba(236,72,153,0.08) 0%, transparent 70%),
      radial-gradient(ellipse 300px 400px at 15% 70%, rgba(34,197,94,0.06) 0%, transparent 70%);
  }
  .hero-badge {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.1);
  }
  .hero-stat {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.08);
  }
  #search {
    border-color: rgba(255,255,255,0.12);
    background: var(--color-bg-white);
  }
  #search:focus {
    border-color: rgba(255,255,255,0.2);
  }
  .how-card {
    border-color: rgba(255,255,255,0.06);
  }
  .toolbar {
    background: rgba(22,22,22,0.85);
  }
  .detail-banner-scrim {
    background: linear-gradient(to top, var(--color-bg) 0%, rgba(22,22,22,0.6) 40%, transparent 100%);
  }
  .detail-back {
    background: rgba(30,30,30,0.6);
    border-color: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.85);
  }
  .detail-back:hover {
    background: rgba(50,50,50,0.8);
    border-color: rgba(255,255,255,0.2);
    box-shadow: none;
  }
  .detail-body code {
    background: rgba(255,255,255,0.1);
  }
  .detail-body blockquote {
    background: rgba(124,58,237,0.1);
    border-left-color: #A855F7;
  }
  .code-copy-btn {
    background: rgba(255,255,255,0.12);
  }
  .code-copy-btn:hover {
    background: rgba(255,255,255,0.2);
  }
  .how-card-desc code {
    background: rgba(255,255,255,0.1);
  }
  .sort-select,
  .author-select {
    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 1L5 5L9 1' stroke='%23A1A1AA' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }
} end disabled dark mode */


/* === Reset === */

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

input, select {
  font-family: inherit;
  font-size: inherit;
}


/* === Animations === */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes drift {
  0%   { transform: translate(0, 0) scale(1.25); }
  20%  { transform: translate(1.5%, -1%) scale(1.27); }
  40%  { transform: translate(-0.8%, 1.5%) scale(1.24); }
  60%  { transform: translate(1%, 0.5%) scale(1.26); }
  80%  { transform: translate(-1.2%, -0.8%) scale(1.25); }
  100% { transform: translate(0, 0) scale(1.25); }
}

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

@keyframes heroGradientShift {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(2%, -1%) scale(1.02); }
  66%  { transform: translate(-1%, 1.5%) scale(0.99); }
  100% { transform: translate(0, 0) scale(1); }
}

.anim-child {
  opacity: 0;
  animation: fadeInUp 0.7s var(--ease-smooth) forwards;
}

.hero-inner .anim-child:nth-child(1) { animation-delay: 0.05s; }
.hero-inner .anim-child:nth-child(2) { animation-delay: 0.15s; }
.hero-inner .anim-child:nth-child(3) { animation-delay: 0.25s; }
.hero-inner .anim-child:nth-child(4) { animation-delay: 0.35s; }
.hero-inner .anim-child:nth-child(5) { animation-delay: 0.45s; }
/* hero-platforms is 4th child (badge, headline, subtitle, platforms) */
.hero-platforms { animation-delay: 0.35s; }

.card-enter {
  opacity: 0;
  animation: fadeInUp 0.55s var(--ease-smooth) forwards;
}


/* === Hero === */

.hero {
  position: relative;
  text-align: center;
  padding: 96px 24px 160px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(ellipse 600px 400px at 25% 40%, rgba(124,58,237,0.15) 0%, transparent 70%),
    radial-gradient(ellipse 500px 500px at 75% 30%, rgba(14,165,233,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 400px 300px at 50% 80%, rgba(236,72,153,0.10) 0%, transparent 70%),
    radial-gradient(ellipse 300px 400px at 15% 70%, rgba(34,197,94,0.08) 0%, transparent 70%);
  animation: heroGradientShift 25s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 14px;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.hero-badge svg {
  position: relative;
  top: 0;
}

.hero-badge-label {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: -0.01em;
  position: relative;
  top: 1px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 12px;
  color: var(--color-text);
}

.hero-headline em {
  font-style: italic;
  font-family: var(--font-display);
}

.hero-subtitle {
  font-size: 18px;
  color: var(--color-text-secondary);
  margin-bottom: 0;
  line-height: 1.5;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.hero-platforms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
}

.platform-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 5px 11px;
  transition: background 150ms, color 150ms, box-shadow 150ms;
  cursor: pointer;
}

.platform-tag:hover {
  color: var(--color-text);
  background: var(--color-border-light);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.platform-logo {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.platform-tag--more {
  color: var(--color-text-tertiary);
  border-style: dashed;
  display: none;
}

.toolbar-search {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 320px;
}

.toolbar-search-icon {
  position: absolute;
  left: 12px;
  color: var(--color-text-tertiary);
  pointer-events: none;
  z-index: 1;
}

#search {
  width: 100%;
  height: 34px;
  padding: 0 36px 0 34px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-bg-white);
  color: var(--color-text);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s var(--ease-smooth);
}

#search:hover {
  border-color: #D1D5DB;
}

#search:focus {
  border-color: #D1D5DB;
}

#search::placeholder {
  color: var(--color-text-tertiary);
}

.search-clear {
  position: absolute;
  right: 28px;
  color: var(--color-text-tertiary);
  padding: 4px;
  transition: color 0.15s var(--ease-smooth);
  z-index: 1;
}

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

.search-kbd {
  position: absolute;
  right: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-text-tertiary);
  background: var(--color-border-light);
  border: 1px solid var(--color-border);
  border-radius: 5px;
  padding: 1px 6px;
  pointer-events: none;
  z-index: 1;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-full);
  border: 1px solid rgba(0,0,0,0.05);
  font-size: 14px;
}

.hero-stat-value {
  font-weight: 600;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}

.hero-stat-label {
  color: var(--color-text-secondary);
}


/* === How It Works Section === */

.how-section-inner {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: left;
}

.how-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  border: 1px solid rgba(0,0,0,0.04);
  transition: box-shadow 0.3s var(--ease-smooth);
  min-width: 0;
  overflow: hidden;
}

.how-card:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.how-card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-base);
  background: var(--color-border-light);
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}

.how-card-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--color-text);
}

.how-card-desc {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
}

.how-card-desc:last-child {
  margin-bottom: 0;
}

.how-card-desc code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--color-border-light);
  padding: 1px 5px;
  border-radius: 4px;
}

.how-card-cmd {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #1F1F1F;
  border-radius: 6px;
  padding: 6px 10px;
}

.how-card-cmd code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #E5E7EB;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .how-card-cmd code {
    font-size: 10px;
  }
}

.how-card-cmd .copy-btn {
  color: #9CA3AF;
  padding: 2px;
  flex-shrink: 0;
  transition: color 0.2s var(--ease-smooth);
}

.how-card-cmd .copy-btn:hover {
  color: #FFFFFF;
}


/* === Toolbar (Filter Bar) === */

.toolbar {
  position: sticky;
  top: 48px;
  z-index: 10;
  margin-top: -56px;
  background: rgba(247,247,247,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  padding: 14px 0;
  opacity: 0;
  animation: fadeIn 0.5s var(--ease-smooth) 0.3s forwards;
}

.toolbar-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.toolbar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.toolbar-row:first-child {
  justify-content: space-between;
}

.toolbar-row + .toolbar-row {
  margin-top: 10px;
}

.category-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.category-pills::-webkit-scrollbar { display: none; }

.category-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all 0.2s var(--ease-smooth);
  white-space: nowrap;
}

.category-pill:not(.is-active) {
  background: var(--color-border-light);
  color: var(--color-text-secondary);
}

.category-pill:not(.is-active):hover {
  background: var(--color-border);
}

.category-pill.is-active {
  color: #FFFFFF;
}

.toolbar-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.author-select {
  height: 34px;
  padding: 0 28px 0 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-bg-white);
  color: var(--color-text-secondary);
  font-size: 13px;
  outline: none;
  cursor: pointer;
  appearance: none;
  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 1L5 5L9 1' stroke='%236B7280' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.sort-select {
  height: 34px;
  padding: 0 28px 0 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-bg-white);
  color: var(--color-text-secondary);
  font-size: 13px;
  outline: none;
  cursor: pointer;
  appearance: none;
  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 1L5 5L9 1' stroke='%236B7280' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color 0.2s var(--ease-smooth);
}

.sort-select:focus {
  border-color: #D1D5DB;
}

.result-count {
  font-size: 13px;
  color: var(--color-text-tertiary);
  white-space: nowrap;
}


/* === Card Grid === */

.grid-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 24px;
  min-height: 400px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

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

@media (max-width: 640px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}


/* === Skill Card === */

.skill-card {
  position: relative;
  height: 240px;
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform 0.6s var(--ease-ripple), box-shadow 0.6s var(--ease-ripple);
  outline: none;
}

.skill-card:hover,
.skill-card:focus-visible {
  transform: translateY(-4px) scale(1.015);
  box-shadow: var(--shadow-card-hover);
}

.skill-card:focus-visible {
  outline: 2px solid #4F46E5;
  outline-offset: 2px;
}

.card-mesh {
  position: absolute;
  inset: -18%;
  width: 136%;
  height: 136%;
  filter: blur(12px) saturate(1) brightness(1);
  animation: drift 16s ease-in-out infinite;
  transition: margin 3s var(--ease-ripple), filter 0.8s var(--ease-smooth);
  will-change: transform, margin, filter;
}

.skill-card:hover .card-mesh {
  margin-left: -12%;
  margin-top: -8%;
  filter: blur(12px) saturate(1.3) brightness(1.1);
}

.card-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.15) 50%, transparent 100%);
  transition: opacity 0.4s var(--ease-smooth);
}

.card-glow {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-card);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0);
  transition: box-shadow 0.8s var(--ease-smooth);
  pointer-events: none;
}

.skill-card:hover .card-glow {
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.25);
}

.card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.6s var(--ease-ripple);
}

.skill-card:hover .card-content {
  transform: translateY(-2px);
}

.card-top-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 500;
  background: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.4s var(--ease-smooth);
}

.skill-card:hover .card-pill {
  background: rgba(255,255,255,0.3);
}

.card-version {
  font-family: var(--font-mono);
  font-size: 10px;
}

.card-name {
  font-size: 17px;
  font-weight: 600;
  color: #FFFFFF;
  text-shadow: 0 1px 8px rgba(0,0,0,0.25);
  line-height: 1.3;
}

.card-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  line-height: 1.45;
  text-shadow: 0 1px 4px rgba(0,0,0,0.15);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-author {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 11px;
  color: rgba(255,255,255,0.65);
  z-index: 2;
}


/* === Skeleton Loading === */

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

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

@media (max-width: 640px) {
  .skeleton-grid { grid-template-columns: 1fr; }
}

.skeleton-card {
  height: 240px;
  border-radius: var(--radius-card);
  background: var(--color-border-light);
  overflow: hidden;
  position: relative;
}

.skeleton-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.5) 50%, transparent 100%);
  animation: shimmer 1.5s infinite;
}

.skeleton-grid[hidden] {
  display: none;
}


/* === Empty State === */

.empty-state {
  text-align: center;
  padding: 80px 24px;
}

.empty-state[hidden] {
  display: none;
}

.empty-icon {
  color: var(--color-text-tertiary);
  margin-bottom: 16px;
}

.empty-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.empty-desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
}

.empty-clear {
  padding: 10px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 14px;
  color: var(--color-text-secondary);
  transition: all 0.2s var(--ease-smooth);
}

.empty-clear:hover {
  color: var(--color-text);
  border-color: #D1D5DB;
}


/* === Detail View (Full Page) === */

.detail-view {
  position: fixed;
  top: 48px;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  background: var(--color-bg);
  overflow-y: auto;
  opacity: 0;
  animation: fadeIn 0.25s var(--ease-smooth) forwards;
}

.detail-view[hidden] {
  display: none;
}

.detail-banner {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.detail-banner-mesh {
  position: absolute;
  inset: -20%;
  width: 140%;
  height: 140%;
  filter: blur(16px);
  animation: drift 20s ease-in-out infinite;
}

.detail-banner-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--color-bg) 0%, rgba(247,247,247,0.6) 40%, transparent 100%);
}

.detail-content-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: -72px auto 0;
  padding: 0 24px 80px;
  opacity: 0;
  animation: slideUp 0.5s var(--ease-smooth) 0.1s forwards;
}

.detail-back {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-base);
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text);
  margin-bottom: 20px;
  transition: all 0.15s var(--ease-smooth);
}

.detail-back:hover {
  background: #fff;
  border-color: #C1C7D0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.detail-title {
  font-family: var(--font-body);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.2;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.detail-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  background: var(--color-border-light);
  color: var(--color-text-secondary);
}



/* === Detail Body (rendered markdown) === */

.detail-body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text);
}

.detail-body h1 {
  font-size: 24px;
  font-weight: 600;
  margin: 32px 0 12px;
  letter-spacing: -0.01em;
}

.detail-body h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 28px 0 10px;
  letter-spacing: -0.01em;
}

.detail-body h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 8px;
}

.detail-body p {
  margin-bottom: 12px;
}

.detail-body ul, .detail-body ol {
  margin-bottom: 12px;
  padding-left: 24px;
}

.detail-body li {
  margin-bottom: 4px;
}

.detail-body code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: rgba(0,0,0,0.05);
  padding: 2px 6px;
  border-radius: 4px;
}

.detail-body pre {
  position: relative;
  background: #1F1F1F;
  border-radius: var(--radius-base);
  padding: 16px 20px;
  margin-bottom: 16px;
  overflow-x: auto;
}

.detail-body pre code {
  background: none;
  padding: 0;
  color: #E5E7EB;
  font-size: 13px;
  line-height: 1.6;
}

.detail-body blockquote {
  background: rgba(124,58,237,0.04);
  border-left: 3px solid #7C3AED;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
  font-style: italic;
}

.detail-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 14px;
}

.detail-body th, .detail-body td {
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  text-align: left;
}

.detail-body th {
  background: var(--color-border-light);
  font-weight: 600;
}

.detail-body hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 24px 0;
}

.detail-body strong {
  font-weight: 600;
}

.code-block-wrapper {
  position: relative;
}

.code-copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(255,255,255,0.1);
  color: #9CA3AF;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s var(--ease-smooth), background 0.2s var(--ease-smooth), color 0.2s var(--ease-smooth);
}

.code-block-wrapper:hover .code-copy-btn {
  opacity: 1;
}

.code-copy-btn:hover {
  background: rgba(255,255,255,0.2);
  color: #FFFFFF;
}


/* === Copy Button === */

.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.copy-btn.is-copied svg {
  display: none;
}

.copy-btn.is-copied::after {
  content: '\2713';
  font-size: 12px;
  color: #45C261;
}


/* === Footer === */

.footer {
  border-top: 1px solid var(--color-border);
  padding: 48px 24px;
  margin-top: 48px;
  opacity: 0;
  animation: fadeIn 0.5s var(--ease-smooth) 0.5s forwards;
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.footer-brand {
  opacity: 0.5;
}

.footer-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-cmd {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1F1F1F;
  border-radius: 6px;
  padding: 8px 12px;
}

.footer-cmd code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #E5E7EB;
}

.footer-cmd .copy-btn {
  color: #9CA3AF;
  padding: 2px;
  transition: color 0.2s var(--ease-smooth);
}

.footer-cmd .copy-btn:hover {
  color: #FFFFFF;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
}

.footer-links a {
  color: var(--color-text-secondary);
  transition: color 0.2s var(--ease-smooth);
}

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

.footer-tagline {
  font-size: 13px;
  color: var(--color-text-tertiary);
}


/* === Responsive === */

@media (max-width: 768px) {
  .hero {
    padding: 64px 12px 128px;
  }

  .hero-headline {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .how-section-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 24px 0 32px;
  }

  .toolbar {
    padding: 12px 0;
  }

  .toolbar-inner {
    padding: 0 12px;
  }

  .toolbar-search {
    max-width: none;
  }

  .toolbar-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .category-pills {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    padding-right: 20px;
  }

  .toolbar-controls {
    justify-content: space-between;
  }

  .grid-container {
    padding: 12px;
  }

  .detail-banner {
    height: 180px;
  }

  .detail-content-wrapper {
    margin-top: -48px;
    padding: 0 20px 40px;
  }

  .detail-title {
    font-size: 24px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .how-section-inner {
    grid-template-columns: 1fr;
  }

  .hero-headline {
    font-size: 32px;
  }
}

/* ============================================================
   SITE COMPONENTS
   ============================================================ */

/* === Site Nav === */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease-smooth), border-color 0.3s var(--ease-smooth);
}

.site-nav--scrolled {
  background: rgba(247, 247, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.site-nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--color-text);
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 0.3s var(--ease-smooth), transform 0.3s var(--ease-smooth);
  pointer-events: none;
}

.site-nav--scrolled .site-nav-logo {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.site-nav-logo-label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav-link {
  font-size: 13px;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.2s var(--ease-smooth);
}

.site-nav-link:hover {
  color: var(--color-text);
}

.site-nav-link--cta {
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 5px 13px;
  font-weight: 500;
  transition: color 0.2s var(--ease-smooth), border-color 0.2s var(--ease-smooth), background 0.2s var(--ease-smooth);
}

.site-nav-link--cta:hover {
  background: var(--color-surface);
  border-color: rgba(0,0,0,0.15);
  color: var(--color-text);
}

/* === New Badge === */

.badge-new {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(5, 150, 105, 0.12);
  color: #059669;
  margin-left: 10px;
  vertical-align: middle;
  position: relative;
  top: -2px;
}

/* === Detail Header === */

.detail-header {
  padding-bottom: 32px;
}

.detail-tagline {
  font-size: 17px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-top: 4px;
  margin-bottom: 0;
}

/* === Two-Column Layout === */

.detail-columns {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.detail-main {
  flex: 1;
  min-width: 0;
  animation: slideInLeft 0.45s var(--ease-smooth) 0.15s both;
}

.detail-sidebar {
  width: 296px;
  flex-shrink: 0;
  position: sticky;
  top: 72px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: slideInRight 0.45s var(--ease-smooth) 0.25s both;
}

/* === Sidebar Cards (glassmorphism) === */

.sidebar-card {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-base);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05), 0 4px 20px rgba(0,0,0,0.04);
  padding: 16px;
  transition: box-shadow 0.2s var(--ease-smooth);
}

.sidebar-card:hover {
  box-shadow: 0 2px 6px rgba(0,0,0,0.07), 0 8px 28px rgba(0,0,0,0.06);
}

.sidebar-card--install {
  background: #1F1F1F;
  border-color: rgba(255,255,255,0.08);
  box-shadow: none;
}

.sidebar-card--install:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}

.sidebar-card-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  margin: 0 0 12px;
}

.sidebar-card--install .sidebar-card-label {
  color: rgba(255,255,255,0.38);
}

/* Install row */

.sidebar-install-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-install-row code {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.88);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-install-row .copy-btn {
  flex-shrink: 0;
  color: rgba(255,255,255,0.4);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  transition: color 0.15s;
}

.sidebar-install-row .copy-btn:hover { color: rgba(255,255,255,0.9); }
.sidebar-install-row .copy-btn.is-copied { color: #34D399; }

/* Details key-value list */

.sidebar-detail-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-detail-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.sidebar-detail-row dt {
  font-size: 11px;
  color: var(--color-text-tertiary);
  flex-shrink: 0;
}

.sidebar-detail-row dd {
  font-size: 13px;
  color: var(--color-text);
  font-weight: 500;
  text-align: right;
  word-break: break-word;
  margin: 0;
}

/* Context stacked list */

.sidebar-context-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-context-item span {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  margin-bottom: 3px;
}

.sidebar-context-item p {
  font-size: 13px;
  color: var(--color-text);
  line-height: 1.5;
  margin: 0;
}

/* Pairs-with chip */

.pairs-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px 3px 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  color: var(--color-text-secondary);
  background: var(--color-bg-white);
  cursor: pointer;
  transition: all 0.15s var(--ease-smooth);
}

.pairs-chip:hover {
  color: var(--color-text);
  border-color: #C1C7D0;
  transform: translateX(2px);
}

/* Sidebar action buttons */

.sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  height: 40px;
  border-radius: var(--radius-base);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.18s var(--ease-smooth);
  text-decoration: none;
}

.sidebar-action-btn--primary {
  background: var(--color-text);
  color: #fff;
  border: none;
}

.sidebar-action-btn--primary:hover {
  background: #333;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

.sidebar-action-btn--secondary {
  background: transparent;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}

.sidebar-action-btn--secondary:hover {
  color: var(--color-text);
  border-color: #C1C7D0;
  background: var(--color-bg-white);
}

/* === New entry animations === */

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-18px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(18px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* === Responsive === */

@media (max-width: 900px) {
  .detail-columns { flex-direction: column; }
  .detail-main { display: contents; }
  .detail-main-hero { order: 1; }
  .detail-sidebar { order: 2; width: 100%; position: static; }
  .detail-main-content { order: 3; min-width: 0; width: 100%; }
}

@media (max-width: 768px) {
  .site-nav { padding: 0 16px; }
}

/* === Context Hero (main column, above SKILL.md) === */

.detail-context-hero {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-base);
  padding: 24px;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.detail-context-field-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  margin: 0;
}

.detail-context-field-value {
  font-size: 14px;
  line-height: 1.65;
  color: var(--color-text);
  margin: 0;
}

/* === SKILL.md file divider === */

.detail-file-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  margin-bottom: 20px;
}

.detail-file-divider::before,
.detail-file-divider::after {
  content: '';
  flex: 1;
  height: 1.5px;
  background: var(--color-border);
}

.detail-file-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-secondary);
  padding: 3px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

/* === Pairs mini cards === */

.pairs-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.pairs-card {
  position: relative;
  border-radius: var(--radius-base);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 12px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  overflow: hidden;
  transition: transform 0.15s var(--ease-smooth), box-shadow 0.15s var(--ease-smooth);
}

.pairs-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.14);
}

.pairs-card-name {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.pairs-card-desc {
  display: -webkit-box;
  font-size: 11px;
  color: rgba(255,255,255,0.75);
  line-height: 1.4;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* === Context hero comparison chrome === */
.ctx-option-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  padding: 24px 0 10px;
}
.ctx-option-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

/* === Option A: Borderless icon rows === */
.ctx-opt-a {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 4px 0 8px;
}
.ctx-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}
.ctx-row > div:last-child {
  min-width: 0;
  overflow-wrap: break-word;
}
.detail-context-field-value {
  overflow-wrap: break-word;
}
.ctx-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.ctx-icon--for   { background: rgba(79,70,229,0.10);  color: #4F46E5; }
.ctx-icon--when  { background: rgba(16,185,129,0.10); color: #059669; }
.ctx-icon--ass   { background: rgba(245,158,11,0.10); color: #D97706; }
.ctx-icon--pairs { background: rgba(236,72,153,0.10);  color: #DB2777; }

/* === Option B: Dark premium card === */
.ctx-opt-b {
  background: #1F1F1F;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-base);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.ctx-opt-b-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ctx-opt-b-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ctx-b-for   { color: #818CF8; }
.ctx-b-when  { color: #34D399; }
.ctx-b-ass   { color: #FBBF24; }
.ctx-b-pairs { color: #F472B6; }
.ctx-opt-b-value {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255,255,255,0.85);
  margin: 0;
}

/* === Option C: Bento grid === */
.ctx-opt-c {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 8px;
}
.ctx-bento {
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  padding: 16px;
  border-left-width: 3px;
}
.ctx-bento .detail-context-field-label {
  display: flex;
  align-items: center;
  gap: 5px;
}
.ctx-bento-for   { border-left-color: #6366F1; grid-column: 1; }
.ctx-bento-when  { border-left-color: #10B981; grid-column: 2; }
.ctx-bento-ass   { border-left-color: #F59E0B; grid-column: 1 / -1; }
.ctx-bento-pairs { border-left-color: #EC4899; grid-column: 1 / -1; }

/* === How It Works Page === */

.how-view {
  position: fixed;
  top: 48px;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  overflow-y: auto;
  background: var(--color-bg);
  animation: fadeIn 0.2s var(--ease-smooth) forwards;
}

/* Tab bar */
.how-tabs-bar {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--color-border);
  margin: 28px 0 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.how-tab {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  background: none;
  border: none;
  padding: 9px 18px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
  letter-spacing: -0.01em;
  flex-shrink: 0;
  white-space: nowrap;
}

.how-tab:hover { color: var(--color-text-primary); }

.how-tab--active {
  color: var(--color-text-primary);
  font-weight: 600;
  border-bottom-color: var(--color-text-primary);
}

/* Panels */
.how-tab-panels {
  padding-top: 8px;
}

.how-panel {
  padding: 24px 0 80px;
  max-width: 640px;
}

.how-panel--hidden { display: none; }

/* Sub-tabs (e.g. CLI vs Desktop App, Shell vs Skills Pane) */
.how-subtabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
}

.how-subtab {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 150ms;
}

.how-subtab:hover {
  color: var(--color-text);
  background: var(--color-border-light);
}

.how-subtab--active {
  background: var(--color-text);
  color: #fff;
  border-color: var(--color-text);
}

.how-subtab--active:hover {
  background: var(--color-text);
  color: #fff;
}

.how-subpanel--hidden { display: none; }

/* Steps */
.how-step {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
}

.how-step:last-child { border-bottom: none; }

.how-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-secondary);
  flex-shrink: 0;
  margin-top: 3px;
}

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

.how-step-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.how-step-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--color-text-secondary);
  margin: 0 0 12px;
}

.how-step-desc:last-child { margin-bottom: 0; }

.how-step-body .how-card-cmd {
  margin-bottom: 0;
}

.how-step-substep {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 8px;
  padding: 3px 0;
}

.how-step-substep:last-child { margin-bottom: 0; }

.how-step-substep::before {
  content: '→';
  color: var(--color-text-tertiary);
  flex-shrink: 0;
  margin-top: 1px;
}

.how-section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 32px 0 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
}


/* ============================================================
   UX LIFT — Hero CTA Row, Modal, Bundle Card, Bundle Detail
   ============================================================ */

/* Hero CTA Row */
.hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.hero-what-btn {
  background: rgba(0,0,0,0.06);
  border: 1.5px solid rgba(0,0,0,0.15);
  color: var(--color-text);
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.hero-what-btn:hover {
  background: rgba(0,0,0,0.10);
  border-color: rgba(0,0,0,0.28);
}
.hero-started-link {
  color: var(--color-text-secondary);
  font-size: 14px;
  text-decoration: none;
}
.hero-started-link:hover { color: var(--color-text); }

/* Modal Overlay */
.skill-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.2s ease;
}
.skill-modal-overlay[hidden] { display: none; }

.skill-modal {
  background: #fff;
  border-radius: 20px;
  max-width: 560px;
  width: 100%;
  overflow: hidden;
  position: relative;
  animation: slideUp 0.3s cubic-bezier(0.16,1,0.3,1);
}
.skill-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
  color: #fff;
  transition: background 0.15s;
}
.skill-modal-close:hover { background: rgba(255,255,255,0.35); }
.skill-modal-video-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
}
.skill-modal-video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.skill-modal-body {
  padding: 28px 32px 32px;
}
.skill-modal-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin: 0 0 10px;
}
.skill-modal-title-em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}
.skill-modal-title {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 14px;
  color: var(--color-text);
}
.skill-modal-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-text-secondary);
  margin: 0 0 10px;
}
.skill-modal-cmd {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1F1F1F;
  border-radius: 10px;
  padding: 12px 16px;
  margin-top: 20px;
}
.skill-modal-cmd code {
  color: #e2e8f0;
  font-family: var(--font-mono);
  font-size: 13px;
  flex: 1;
}

/* Bundle Card Stack */
.card-bundle-wrapper {
  position: relative;
  padding-bottom: 14px; /* space for ghost cards to peek below */
}
.card-ghost {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-card);
  pointer-events: none;
}
.card-ghost--1 {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.28);
  transform: translateY(7px) rotate(2deg) scale(0.97);
  opacity: 0.65;
}
.card-ghost--2 {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  transform: translateY(14px) rotate(-1.5deg) scale(0.94);
  opacity: 0.4;
}
.card-bundle-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 100px;
  padding: 3px 10px;
  font-size: 11px;
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.01em;
  z-index: 2;
}

/* Bundle Detail Sub-skill Grid */
.bundle-skills-section {
  margin-bottom: 40px;
}
.bundle-skills-heading {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
  margin: 0 0 16px;
}
.bundle-skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 640px) {
  .bundle-skills-grid { grid-template-columns: 1fr; }
}
.bundle-skill-tile {
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 16px 18px;
  transition: box-shadow 0.15s, transform 0.15s;
}
.bundle-skill-tile:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}
.bundle-skill-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 6px;
}
.bundle-skill-desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--color-text-secondary);
  margin: 0 0 10px;
}
.bundle-skill-cmd {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-text-tertiary, #94a3b8);
  background: var(--color-border-light, #f8fafc);
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
}
