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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #F9FAFB;
  color: #111827;
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Header ── */
.site-header {
  background: #4F46E5;
  color: #fff;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header .logo {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-decoration: none;
  color: #fff;
}

.site-header .tagline {
  font-size: 0.875rem;
  opacity: 0.8;
}

/* ── Index hero ── */
.hero {
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
  color: #fff;
  padding: 3rem 2rem 2.5rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.85;
  max-width: 480px;
  margin: 0 auto;
}

/* ── Card grid ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 2.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

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

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

/* ── Card ── */
.card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.12);
  border-color: #4F46E5;
}

.card-category {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4F46E5;
  background: #EEF2FF;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  width: fit-content;
  margin-bottom: 0.25rem;
}

.card-category.cat-project {
  color: #7C3AED;
  background: #F5F3FF;
}

.card-category.cat-cowork {
  color: #0369A1;
  background: #E0F2FE;
}

.card-category.cat-productivity {
  color: #0F766E;
  background: #CCFBF1;
}

.card-category.cat-research {
  color: #B45309;
  background: #FEF3C7;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.3;
}

.card-desc {
  font-size: 0.875rem;
  color: #6B7280;
  flex-grow: 1;
  line-height: 1.5;
  margin-top: 0.25rem;
}

.card-link {
  font-size: 0.8rem;
  color: #4F46E5;
  font-weight: 500;
  margin-top: 0.75rem;
}

/* ── Detail page content ── */
.content {
  max-width: 780px;
  margin: 2.5rem auto;
  padding: 0 2rem 4rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #4F46E5;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 2rem;
}

.back-link:hover {
  text-decoration: underline;
}

.content h1 {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 0.6rem;
  line-height: 1.2;
}

.category-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4F46E5;
  background: #EEF2FF;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.content p {
  color: #374151;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.content h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #111827;
  margin: 2rem 0 0.75rem;
}

.content ul, .content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: #374151;
}

.content li {
  margin-bottom: 0.35rem;
}

/* ── Prompt block ── */
.prompt-block {
  position: relative;
  background: #1E1E2E;
  border-radius: 8px;
  padding: 1.5rem 1.5rem 1.5rem 1.5rem;
  margin: 0.5rem 0 1.5rem;
}

.prompt-block pre {
  color: #CDD6F4;
  font-family: "Cascadia Code", "Fira Code", Consolas, "Courier New", monospace;
  font-size: 0.88rem;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.75;
  margin-top: 0.25rem;
  padding-right: 4rem;
}

.copy-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: #4F46E5;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  font-family: inherit;
  letter-spacing: 0.02em;
}

.copy-btn:hover {
  background: #4338CA;
}

.copy-btn.copied {
  background: #16A34A;
}

/* ── Coming Soon ── */
.coming-soon {
  text-align: center;
  padding: 5rem 2rem;
}

.coming-soon .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.coming-soon h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.coming-soon p {
  color: #6B7280;
  margin-bottom: 2rem;
}

/* ── Steps table ── */
.steps-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0 1.5rem;
  font-size: 0.9rem;
}

.steps-table th {
  background: #4F46E5;
  color: #fff;
  text-align: left;
  padding: 0.6rem 1rem;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.steps-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #E5E7EB;
  vertical-align: top;
  color: #374151;
}

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

.steps-table tr:nth-child(even) td {
  background: #F9FAFB;
}

.steps-table .step-label {
  font-weight: 700;
  color: #4F46E5;
  white-space: nowrap;
  width: 110px;
}

/* ── Prompt label ── */
.prompt-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9CA3AF;
  margin-bottom: 0.4rem;
  margin-top: 2rem;
}

/* ── Info callout ── */
.callout {
  background: #EEF2FF;
  border-left: 4px solid #4F46E5;
  border-radius: 0 6px 6px 0;
  padding: 0.9rem 1.1rem;
  margin: 1rem 0 1.5rem;
  font-size: 0.9rem;
  color: #3730A3;
}

/* ── Numbered step cards ── */
.step-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0.5rem 0 1.5rem;
}

.step-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 1rem 1.1rem;
}

.step-card .step-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  background: #4F46E5;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 0.1rem;
}

.step-card .step-body {
  flex: 1;
}

.step-card .step-body strong {
  display: block;
  font-size: 0.95rem;
  color: #111827;
  margin-bottom: 0.2rem;
}

.step-card .step-body p {
  margin: 0;
  font-size: 0.875rem;
  color: #6B7280;
}

.step-card .step-body p + p {
  margin-top: 0.5rem;
}

/* ── Info box (neutral) ── */
.info-box {
  background: #F0FDF4;
  border-left: 4px solid #16A34A;
  border-radius: 0 6px 6px 0;
  padding: 0.9rem 1.1rem;
  margin: 1rem 0 1.5rem;
  font-size: 0.9rem;
  color: #15803D;
}

/* ── Footer ── */
.site-footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.8rem;
  color: #9CA3AF;
  border-top: 1px solid #E5E7EB;
  margin-top: 2rem;
}

/* Smooth anchor scroll for in-page jump links */
html { scroll-behavior: smooth; }

/* Downloads section heading + scroll offset */
.downloads-section {
  max-width: 1200px;
  margin: 1rem auto 0;
  padding: 0 2rem;
  scroll-margin-top: 1.5rem;
}
.section-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

/* Header nav link */
.site-nav { display: flex; gap: 1rem; }
.nav-link {
  color: #fff;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.15s ease;
}
.nav-link:hover { background: rgba(255, 255, 255, 0.22); }

/* Card meta line (file size / slide count) */
.card-meta {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: #9CA3AF;
}

/* On very narrow screens, drop the tagline so logo + jump link fit */
@media (max-width: 560px) {
  .site-header .tagline { display: none; }
}
