/* Grid */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }

/* Pipeline visual */
.pipeline-visual { display: flex; flex-direction: column; gap: 0; max-width: 700px; margin: 2.5rem auto 0; }
.pipeline-phase { margin-bottom: 1.5rem; }
.pipeline-phase-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 0.5rem; }
.pipeline-stages { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pipeline-stage { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 0.5rem 1rem; font-size: 0.85rem; font-weight: 500; color: var(--text); display: flex; align-items: center; gap: 0.5rem; white-space: nowrap; box-shadow: var(--shadow-card); transition: border-color 0.3s, box-shadow 0.3s; }
.pipeline-stage:hover { border-color: var(--border-hover); box-shadow: var(--shadow-card-hover); }
.pipeline-stage .stage-num { color: var(--accent); font-weight: 700; font-size: 0.75rem; font-family: var(--font-mono); }
.pipeline-stage.licensed { border-color: rgba(0,113,227,0.4); }
.pipeline-connector { width: 1px; height: 1rem; background: var(--border); margin: 0 auto; }

/* Stage detail cards */
.stage-detail { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 1.75rem; margin-bottom: 1.25rem; box-shadow: var(--shadow-card); transition: border-color 0.3s, box-shadow 0.3s; position: relative; overflow: hidden; }
.stage-detail:hover { border-color: var(--border-hover); box-shadow: var(--shadow-card-hover); }
.stage-detail h3 { font-size: 1.05rem; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.75rem; }
.stage-detail h3 .stage-num { color: var(--accent); font-weight: 700; font-size: 0.8rem; font-family: var(--font-mono); background: rgba(0,113,227,0.08); border: 1px solid rgba(0,113,227,0.2); border-radius: 6px; padding: 0.2rem 0.5rem; flex-shrink: 0; }
.stage-detail p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.65; }

/* Steps */
.steps { max-width: 700px; margin: 0 auto; }
.step { display: flex; gap: 1.25rem; margin-bottom: 2rem; }
.step-num { flex-shrink: 0; width: 40px; height: 40px; background: rgba(0,113,227,0.08); border: 1px solid rgba(0,113,227,0.2); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; color: var(--accent); font-family: var(--font-mono); }
.step-content h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.step-content p { color: var(--text-secondary); font-size: 0.9rem; }

/* Language badges */
.lang-grid { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin: 2rem auto; max-width: 700px; }
.lang-badge { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 0.6rem 1.25rem; font-size: 0.9rem; font-weight: 500; color: var(--text); box-shadow: var(--shadow-card); transition: border-color 0.3s, transform 0.3s; }
.lang-badge:hover { border-color: var(--border-hover); transform: translateY(-2px); }

/* Why cards */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.why-card { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 1.75rem; box-shadow: var(--shadow-card); transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s; }
.why-card:hover { border-color: var(--border-hover); box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }
.why-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.why-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.65; }

/* Page-specific responsive */
@media (max-width: 640px) {
  .pipeline-stages { flex-direction: column; }
  .step { flex-direction: column; gap: 0.75rem; }
}
