/* ── Shell / Wrapper ── */
.shell {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* Shell padrão — limita largura máxima para evitar layout estranho em zoom out */
.shell:not(.shell--wide):not(.shell--full) {
  --max: 1200px;
}

/* Shell wide — posts e conteúdo editorial */
.shell--wide {
  --max: 920px;
}

/* Shell extra-wide — landing pages */
.shell--full {
  --max: 1200px;
}

/* ── Eyebrow + Signal ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 500 var(--text-label)/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.signal {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  flex: 0 0 auto;
  box-shadow: 0 0 8px var(--accent);
}

/* ── Buttons ── */
.btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 22px;
  background: var(--fg);
  color: var(--bg);
  font: 500 var(--text-label)/1 var(--font-mono);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  border: 1px solid var(--fg);
  border-radius: var(--radius-sm);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}
/* Shimmer sweep on hover */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: none;
  pointer-events: none;
}
.btn:hover::before {
  animation: shimmerSweep 0.6s ease forwards;
}
@keyframes shimmerSweep {
  to { transform: translateX(100%); }
}
.btn:hover, .btn:focus-visible {
  transform: translateY(-2px);
  background: var(--accent);
  color: var(--fg);
  border-color: var(--accent);
}
.btn:active { transform: translateY(0) scale(0.98); }
.btn.secondary {
  background: transparent;
  color: var(--fg);
  border: 1px dashed var(--border);
}
.btn.secondary:hover, .btn.secondary:focus-visible {
  background: var(--fg);
  color: var(--bg);
  border-style: solid;
  border-color: var(--fg);
}

/* ── Theme Toggle ── */
.theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--muted);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.theme-toggle:hover {
  background: var(--surface-1);
  color: var(--fg);
  border-color: var(--muted);
  transform: translateY(-2px);
}

.theme-toggle:active {
  transform: translateY(0) scale(0.98);
}

.theme-toggle svg {
  position: absolute;
  width: 20px;
  height: 20px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark mode state (Default) */
.theme-toggle .sun-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.theme-toggle .moon-icon {
  opacity: 0;
  transform: rotate(-90deg) scale(0);
}

/* Light mode state */
html.light-mode .theme-toggle .sun-icon {
  opacity: 0;
  transform: rotate(90deg) scale(0);
}

html.light-mode .theme-toggle .moon-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* ── Number (gradient accent) ── */
.number {
  font: 600 12px/1 var(--font-mono);
  letter-spacing: 0.06em;
  color: var(--accent);
}

/* ── Service Cards ── */
.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  position: relative;
  z-index: 1;
}

.service-card {
  min-height: 360px;
  padding: 28px;
  background: var(--surface-1);
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  border: 1px dashed var(--card-border);
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  transform: translateY(-4px);
  background: var(--surface-2);
  border-color: var(--accent);
  border-style: solid;
  box-shadow: var(--card-shadow-hover);
}
.service-card h3 {
  margin-top: 32px;
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.1;
  letter-spacing: var(--tracking-tight);
}
.service-card .service-icon {
  position: absolute;
  top: 28px;
  right: 28px;
  color: var(--muted);
  opacity: 0.5;
  transition: color 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}
.service-card:hover .service-icon {
  color: var(--accent);
  opacity: 1;
  transform: scale(1.1);
}
.service-card p { margin-top: 18px; color: var(--muted); }
.service-card small {
  margin-top: auto;
  padding-top: 28px;
  font: 500 11px/1.35 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg);
}

/* ── Card glow (inserido via JS) ── */
.card-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(212, 86, 40, 0.15) 0%,
    transparent 50%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  mix-blend-mode: screen;
  z-index: 0;
}
.service-card:hover .card-glow,
.post-card:hover .card-glow,
.audience-panel:hover .card-glow {
  opacity: 1;
}
.service-card > * { position: relative; z-index: 1; }

/* ── Audience Grid ── */
.audience-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr 1fr;
  gap: 24px;
  background: transparent;
  position: relative;
  z-index: 1;
}
.audience-panel {
  min-height: 250px;
  padding: 28px;
  background: var(--surface-1);
  border-radius: var(--radius-md);
  border: 1px dashed var(--card-border);
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.audience-panel:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  border-style: solid;
  box-shadow: var(--card-shadow-hover);
}
.audience-panel.wide { grid-column: span 2; }
.audience-panel h3 { font: 500 12px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.audience-panel p { margin-top: 42px; font-family: var(--font-display); font-weight: var(--weight-semibold); font-size: clamp(24px, 3vw, 36px); line-height: 1.1; letter-spacing: var(--tracking-tight); }
.audience-panel span { display: block; margin-top: 16px; max-width: 500px; color: var(--muted); font-family: var(--font-body); font-size: 16px; line-height: 1.45; }
.audience-panel > * { position: relative; z-index: 1; }

/* ── Post Cards ── */
.content-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  position: relative;
  z-index: 1;
}
.post-card {
  min-height: 292px;
  background: var(--surface-1);
  padding: 24px;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  border: 1px dashed var(--card-border);
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.post-card:hover {
  transform: translateY(-4px);
  background: var(--surface-2);
  border-color: var(--accent);
  border-style: solid;
  box-shadow: var(--card-shadow-hover);
}
.post-card h3 { margin-top: 44px; font-family: var(--font-display); font-weight: var(--weight-semibold); font-size: 28px; line-height: 1.1; letter-spacing: var(--tracking-tight); }
.post-card p { margin-top: 16px; color: var(--muted); font-size: 15px; }
.post-card .tag { margin-top: auto; font: 500 var(--text-label)/1 var(--font-mono); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--fg); }
.post-card > * { position: relative; z-index: 1; }


/* Adjust card-glow for light mode atmosphere */
html.light-mode .card-glow {
  mix-blend-mode: multiply;
  opacity: 0.12;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    var(--accent) 0%,
    transparent 70%
  );
}

/* ── Method ── */
.method-aside {
  position: sticky;
  top: 104px;
  background: var(--surface-sunken);
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--soft-border);
}
.method-aside p { margin-top: 32px; color: var(--muted); font-size: 18px; }

/* Method Stack — cards com conectores e track de progresso */
.method-stack {
  display: grid;
  gap: 0;
  position: relative;
  padding-left: 24px; /* Space for progress bar on mobile, or just visual offset */
}

.method-progress {
  position: absolute;
  top: 48px; /* Offset to start around the first number badge */
  bottom: 48px; /* Offset to end around the last number badge */
  left: 56px; /* Align with the connector line (24px padding + 32px padding inside card) */
  width: 2px;
  background: var(--surface-2);
  z-index: 1;
  transform: translateX(-50%);
}

.method-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent), var(--accent-glow));
  transform-origin: top center;
  transform: scaleY(0);
  box-shadow: 0 0 10px var(--accent-glow);
}

.method-row {
  display: grid;
  grid-template-columns: 72px 1fr 90px;
  gap: 24px;
  padding: 28px 32px;
  margin-bottom: 20px;
  background: var(--surface-1);
  border-radius: var(--radius-md);
  border: 1px dashed var(--card-border);
  box-shadow: var(--card-shadow);
  position: relative;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  align-items: start;
}

/* Conector entre cards — linha tracejada */
.method-row:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 68px;
  width: 1px;
  height: 20px;
  border-left: 1px dashed var(--border);
  z-index: 0;
}

.method-row:hover {
  transform: translateY(-2px);
  background: var(--surface-2);
  border-color: var(--accent);
  border-style: solid;
  box-shadow: var(--card-shadow-hover);
}

/* Número da etapa — badge com acento */
.method-row .number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--accent);
  font: 500 16px/1 var(--font-mono);
  flex-shrink: 0;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.method-row:hover .number {
  transform: scale(1.05);
  border-color: var(--accent);
}

.method-row h3 {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.1;
  letter-spacing: var(--tracking-tight);
}

.method-row p {
  color: var(--muted);
  max-width: 520px;
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.6;
}

/* Code tag — badge sutil à direita */
.method-row code {
  justify-self: end;
  align-self: start;
  font: 500 10px/1 var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--surface-accent-glow);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent-soft);
  white-space: nowrap;
}

/* ── Workflow Board ── */
.workflow-board {
  position: relative;
  min-height: auto;
  background: var(--surface-1);
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius-lg);
  border: 1px solid var(--soft-border);
  display: flex;
  flex-direction: column;
}
.workflow-board::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}
.board-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 18px;
  border-bottom: 1px dashed var(--border);
  background: var(--surface);
  font: 500 var(--text-label)/1 var(--font-mono);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.board-dots { display: flex; gap: 6px; }
.board-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--muted);
}
.board-dots i:first-child { background: #FF5F56; } /* Mac Red */
.board-dots i:nth-child(2) { background: #FFBD2E; } /* Mac Yellow */
.board-dots i:nth-child(3) { background: #27C93F; } /* Mac Green */

/* Stage: área dos cards + SVG */
.workflow-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 340px;
  padding: 28px 28px 0;
  z-index: 1;
}

/* Pipeline track — visível apenas no mobile */
.pipeline-track {
  display: none;
}
.flow-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.path-line {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
  opacity: .5;
}
.moving-node {
  fill: var(--accent);
  filter: drop-shadow(0 0 6px var(--accent));
  opacity: 0;
}

/* Grid dos cards */
.workflow-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  grid-template-areas:
    "input agent"
    "time  system";
  align-items: stretch;
  gap: 24px 24px;
  max-width: 520px;
  margin: 0 auto;
}

.ui-card {
  position: relative;
  width: 100%;
  max-width: 236px;
  background: var(--surface-2);
  padding: 18px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border);
  transition: transform 0.3s ease, border-color 0.3s ease;
  opacity: 0;
  transform: translateY(12px);
}
.ui-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  border-style: solid;
}
.ui-card[data-card="input"]  { grid-area: input;  justify-self: start; align-self: stretch; }
.ui-card[data-card="agent"]  { grid-area: agent;  justify-self: end;   align-self: stretch; }
.ui-card[data-card="system"] { grid-area: system; justify-self: end;   align-self: stretch; }
.ui-card[data-card="time"]   { grid-area: time;   justify-self: start; align-self: stretch; }

/* Conectores entre cards (mobile) */
.connector {
  display: none;
}
.ui-card b {
  display: flex;
  justify-content: space-between;
  font: 500 11px/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.ui-card p { margin-top: 14px; color: var(--muted); font-size: 14px; line-height: 1.35; }
.mini-bars { display: grid; gap: 7px; margin-top: 15px; }
.mini-bars span { display: block; height: 7px; background: var(--fg); opacity: .14; border-radius: 1px;}
.mini-bars span:nth-child(2) { width: 70%; opacity: .25; }
.mini-bars span:nth-child(3) { width: 46%; background: var(--accent); opacity: 1; }

/* ── Terminal ── */
.terminal {
  position: relative;
  z-index: 3;
  margin: 20px 28px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--soft-border);
  background: var(--terminal);
  color: #E8E6E1; /* Always light text in terminal for contrast */
  padding: 20px;
  font: var(--text-code)/1.6 var(--font-mono);
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px);
}
.terminal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255,255,255, 0.02) 50%,
    transparent 100%
  );
  background-size: 100% 4px;
  animation: scanLine 8s linear infinite;
  pointer-events: none;
}
.terminal span {
  color: var(--accent);
}
.cursor {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  margin-left: 4px;
  vertical-align: -2px;
  background: var(--accent);
  animation: blink 1s steps(2, start) infinite;
}

/* Light Mode Overrides for Terminal */
html.light-mode .terminal span {
  color: #E25A28; /* Brighter orange for dark terminal background */
}
html.light-mode .terminal .cursor {
  background: #E25A28;
}
html.light-mode .terminal::before {
  background: linear-gradient(180deg, transparent 0%, rgba(20, 20, 19, 0.04) 50%, transparent 100%);
}

/* ── Manifesto ── */
.manifesto {
  padding: clamp(96px, 12vw, 180px) 0;
  background: var(--surface);
  color: var(--fg);
  position: relative;
  overflow: hidden;
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
}
.manifesto .eyebrow { color: var(--muted); }
.manifesto-copy {
  margin-top: 28px;
  max-width: 1060px;
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: clamp(40px, 7vw, 96px);
  line-height: 1.05;
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}
.manifesto-copy em { color: var(--accent); font-style: normal; }
.manifesto-note {
  margin-top: 34px;
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
}

/* ── Epic CTA ── */
.cta-epic {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.cta-epic::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--mesh-cta);
  pointer-events: none;
  z-index: 0;
}

.cta-epic .glow-line {
  position: relative;
  z-index: 1;
}

.cta-epic-inner {
  padding: clamp(80px, 12vw, 160px) 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-epic .eyebrow {
  justify-content: center;
}

.cta-epic-title {
  margin-top: 24px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: clamp(40px, 7vw, 80px);
  line-height: 1.05;
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}

.cta-epic-title em {
  font-style: normal;
  color: var(--accent);
}

.cta-epic-subtitle {
  margin: 24px auto 0;
  max-width: 600px;
  color: var(--muted);
  font-size: var(--text-lead);
  line-height: 1.5;
  text-wrap: pretty;
}

.cta-epic-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.cta-epic .contact-hint {
  display: block;
  text-align: center;
  margin-top: 20px;
}
.contact-hint {
  display: block;
  margin-top: 14px;
  font: 500 var(--text-label)/1.3 var(--font-body);
  letter-spacing: var(--tracking-wide);
  color: var(--muted);
}

/* ── Social Proof ── */
.social-proof {
  padding: clamp(48px, 6vw, 80px) 0;
  background: var(--bg);
  border-bottom: 1px dashed var(--border);
  position: relative;
  overflow: hidden;
}

/* Logo Strip */
.logo-strip {
  text-align: center;
}

.logo-strip .eyebrow {
  justify-content: center;
  margin-bottom: 32px;
}

.logo-strip-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4vw, 48px);
  flex-wrap: wrap;
}

.tool-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 var(--text-label)/1 var(--font-mono);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s ease, transform 0.3s ease;
  cursor: default;
}

.tool-logo svg {
  width: 20px;
  height: 20px;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.tool-logo:hover {
  color: var(--fg);
  transform: translateY(-2px);
}

.tool-logo:hover svg {
  opacity: 1;
}

/* Stats Strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px dashed var(--border);
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -12px;
  top: 10%;
  height: 80%;
  width: 1px;
  border-right: 1px dashed var(--border);
}

.stat-number {
  display: inline;
  font: 600 clamp(40px, 6vw, 64px)/1 var(--font-mono);
  letter-spacing: -0.03em;
  color: var(--fg);
}

.stat-suffix {
  font: 600 clamp(28px, 4vw, 48px)/1 var(--font-mono);
  color: var(--accent);
}

.stat-label {
  display: block;
  margin-top: 8px;
  font: 500 var(--text-label)/1.3 var(--font-mono);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 680px) {
  .logo-strip-row {
    gap: 16px;
  }
  .tool-logo {
    font-size: 10px;
  }
  .stats-strip {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .stat-item:not(:last-child)::after {
    display: none;
  }
  .stat-item {
    padding-bottom: 28px;
    border-bottom: 1px dashed var(--border);
  }
  .stat-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
  }
}

/* ── Showcase Terminal ── */
.showcase-terminal {
  max-width: 800px;
  margin: 48px auto 0;
  background: var(--surface-1);
  border: 1px solid var(--soft-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.terminal-header {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px dashed var(--border);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--muted);
}
.terminal-dots i:first-child { background: #FF5F56; }
.terminal-dots i:nth-child(2) { background: #FFBD2E; }
.terminal-dots i:nth-child(3) { background: #27C93F; }

.terminal-title {
  margin-left: auto;
  margin-right: auto;
  font: 500 12px/1 var(--font-mono);
  color: var(--muted);
}

.terminal-body {
  display: flex;
  padding: 16px 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
}

.terminal-sidebar {
  display: flex;
  flex-direction: column;
  padding: 0 16px;
  color: var(--border);
  text-align: right;
  user-select: none;
  border-right: 1px solid var(--border);
}

.terminal-content {
  padding: 0 24px;
  overflow-x: auto;
  white-space: pre;
}

.terminal-line {
  display: block;
  min-height: 20px;
  line-height: 1.6;
}

.terminal-line .keyword { color: #FF7B72; } /* Red/Pink */
.terminal-line .variable { color: #79C0FF; } /* Blue */
.terminal-line .function { color: #D2A8FF; } /* Purple */
.terminal-line .property { color: #A5D6FF; } /* Light Blue */
.terminal-line .string { color: #A5D6FF; } /* Light Blue String */
.terminal-line.text-muted { color: var(--muted); }

/* Showcase Terminal Responsiveness on Mobile */
@media (max-width: 680px) {
  .showcase-terminal {
    margin: 32px 12px 0;
    border-radius: var(--radius-md);
  }

  .terminal-header {
    padding: 10px 12px;
  }

  .terminal-body {
    font-size: 11px;
    padding: 12px 0;
  }

  .terminal-sidebar {
    padding: 0 8px;
  }

  .terminal-content {
    padding: 0 12px;
    white-space: pre-wrap;
    word-break: break-word;
  }

  .terminal-line {
    padding-left: 12px;
    text-indent: -12px;
  }
}

/* Light Mode Code Highlighting Overrides */
html.light-mode .terminal-sidebar {
  color: var(--muted);
}
html.light-mode .terminal-line .keyword { color: #A6443E; }
html.light-mode .terminal-line .variable { color: #3A6D8C; }
html.light-mode .terminal-line .function { color: #735345; }
html.light-mode .terminal-line .property { color: #4F7358; }
html.light-mode .terminal-line .string { color: #4F7358; }

/* ── Summary Strip (Global) ── */
.summary-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 32px;
  padding: 20px 24px;
  background: var(--surface-1);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  max-width: fit-content;
}

.sum-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sum-cell .k {
  font: 500 10px/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.sum-cell .v {
  font: 500 16px/1 var(--font-mono);
  color: var(--fg);
}

.sum-cell .v.accent {
  color: var(--accent);
}

/* ── Post Tag (Global) ── */
.post-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: 500 10px/1 var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  transition: all 0.2s ease;
}

.post-tag:hover {
  border-color: var(--accent);
  color: var(--fg);
}

@media (max-width: 680px) {
  .summary-strip {
    width: 100%;
    max-width: none;
    gap: 16px;
  }
  .sum-cell {
    flex: 1 1 calc(50% - 16px);
  }
}
