/* ── Left-line section decoration ── */
.left-line {
  position: relative;
}

.left-line::before {
  content: '';
  position: absolute;
  left: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: calc(100% - 10px);
  background: var(--accent-cyan);
}

.left-line::after {
  content: attr(data-name);
  position: absolute;
  left: -40px;
  bottom: -30px;
  transform: rotate(180deg) translate(33%, -100%);
  transform-origin: center;
  writing-mode: vertical-rl;
  white-space: nowrap;
  font-family: var(--font-main);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 4px;
  line-height: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: var(--radius-btn);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 13px;
  transition: opacity var(--transition), background var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn--teal {
  background: var(--accent-cyan);
  color: var(--bg-primary);
}

.btn--teal:hover {
  opacity: 0.88;
}

.btn--outline {
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
}

.btn--outline:hover {
  background: var(--accent-cyan);
  color: var(--bg-primary);
}

/* ── Badges / Pills ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--radius-badge);
  background: rgba(255,255,255,0.06);
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.badge--green  { color: #4ADE80; background: rgba(74,222,128,0.1); }
.badge--pink   { color: #F472B6; background: rgba(244,114,182,0.1); }
.badge--purple { color: #A78BFA; background: rgba(167,139,250,0.1); }
.badge--yellow { color: #FACC15; background: rgba(250,204,21,0.1); }
.badge--cyan   { color: var(--accent-cyan); background: rgba(16,220,233,0.1); }

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 28px 32px;
}

.card--link {
  transition: background var(--transition), transform var(--transition);
  cursor: pointer;
}

.card--link:hover {
  background: #20204A;
  transform: translateY(-2px);
}

[data-theme="light"] .card--link:hover {
  background: #d0d0d0;
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0 0;
  font-size: 12px;
}

.breadcrumb a {
  color: var(--text-muted);
  font-weight: 400;
}

.breadcrumb a:hover {
  color: var(--text-primary);
}

.breadcrumb__sep {
  color: var(--text-muted);
}

.breadcrumb__current {
  font-family: var(--font-label);
  font-weight: 600;
  color: var(--accent-teal);
}

/* ── Stats grid ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 20px 24px;
}

.stat-card__value {
  font-weight: 700;
  font-size: 28px;
  color: var(--accent-cyan);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-card__label {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── Process flow ── */
.process-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.process-step {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 20px 24px;
}

.process-step__label {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--accent-teal);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.process-step__title {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
}

.process-step__desc {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Tech badge list ── */
.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.usecase-grid .entry-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

/* ── Domain grid (4-col) ── */
.domain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.domain-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 24px 28px;
}

.domain-card__title {
  font-weight: 700;
  font-size: 13px;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.domain-card ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.domain-card ul li {
  font-size: 13px;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
}

.domain-card ul li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--accent-teal);
}

/* ── Badge light-theme contrast ── */
[data-theme="light"] .badge {
  background: rgba(0,0,0,0.08);
}

/* ── CTA section ── */
.cta-section {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 48px;
  text-align: left;
  margin-top: 64px;
}

.cta-section h2 {
  font-size: 28px;
  margin-bottom: 24px;
}

/* ── Section spacing ── */
.section {
  padding: 80px 0;
}

.section--sm {
  padding: 48px 0;
}

.section__header {
  margin-bottom: 40px;
}

.section__header h2 {
  font-size: 28px;
}

/* ── Use case cards ── */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.usecase-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background var(--transition);
}

.usecase-card:hover {
  background: #20204A;
}

[data-theme="light"] .usecase-card:hover {
  background: #d0d0d0;
}

.usecase-card__title {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
  line-height: 1.35;
}

.usecase-card__result {
  font-weight: 700;
  font-size: 22px;
  color: var(--accent-teal);
  line-height: 1.2;
}

.usecase-card__link {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 11px;
  color: var(--accent-teal);
  margin-top: auto;
}

.usecase-card__coming-soon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  opacity: 0.4;
  flex-direction: column;
  gap: 8px;
}

/* ── Numbered list ── */
.numbered-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.numbered-item {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 24px;
}

.numbered-item__num {
  font-weight: 700;
  font-size: 22px;
  color: var(--accent-teal);
  margin-bottom: 8px;
}

.numbered-item__title {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.numbered-item__desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 1024px) {
  .domain-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .process-flow {
    grid-template-columns: 1fr 1fr;
  }

  .cta-section {
    padding: 32px 24px;
  }

  .section {
    padding: 56px 0;
  }
}

@media (max-width: 480px) {
  .process-flow {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}
