/* ============================================ */
/* USE CASES PAGE                               */
/* ============================================ */

/* Page Hero */
.uc-hero {
  padding: 130px 0 64px;
  text-align: center;
}

.uc-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--neon-green);
  background: var(--bg-dark);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  transition: all 0.4s ease;
  cursor: default;
}

.uc-hero__badge:hover {
  background: linear-gradient(135deg, var(--neon-green), var(--neon-violet), var(--neon-red));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 20px rgba(191,90,242,0.25), 0 0 40px rgba(0,255,136,0.1);
}

.uc-hero__badge:hover .uc-hero__badge-dot {
  background: #fff;
}

.uc-hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-green);
  animation: badgePulse 2s ease infinite;
  transition: background 0.4s ease;
}

.uc-hero__title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 20px;
}

.uc-hero__sub {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

/* ============================================ */
/* SECTIONS                                     */
/* ============================================ */
.uc-section {
  padding: 80px 0;
}

.uc-section--alt {
  background: var(--bg-white);
}

/* ============================================ */
/* USE CASE CARDS                               */
/* ============================================ */
.uc-card {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.uc-card--reverse {
  grid-template-columns: 1.1fr 1fr;
}

.uc-card--reverse .uc-card__visual {
  order: -1;
}

.uc-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 12px;
  letter-spacing: 0.1em;
}

/* Labels */
.label--neon {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--neon-green-bg), var(--neon-violet-bg));
  color: var(--neon-green);
  border: 1px solid rgba(0,255,136,0.15);
  margin-bottom: 16px;
}

.label--blue {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  background: var(--blue-light);
  color: var(--blue);
  margin-bottom: 16px;
}

.label--green {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  background: var(--green-light);
  color: #16A34A;
  margin-bottom: 16px;
}

.uc-card__title {
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.uc-card__desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
}

.uc-card__cta {
  margin-top: 32px;
}

/* ============================================ */
/* FEATURES LIST                                */
/* ============================================ */
.uc-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.uc-feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.uc-feature__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.uc-feature__icon--cyan   { background: var(--neon-green-bg); color: var(--neon-green); }
.uc-feature__icon--purple { background: var(--neon-violet-bg); color: var(--neon-violet); }
.uc-feature__icon--green  { background: var(--green-light); color: var(--green); }
.uc-feature__icon--blue   { background: var(--blue-light); color: var(--blue); }
.uc-feature__icon--orange { background: var(--neon-red-bg); color: var(--neon-red); }

.uc-feature strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.uc-feature p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ============================================ */
/* MOCKUP — SHARED                              */
/* ============================================ */
.uc-mockup {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid var(--border);
}

.uc-mockup__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: #F5F3F0;
  border-bottom: 1px solid var(--border-light);
}

.uc-mockup__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.uc-mockup__url {
  margin-left: 10px;
  font-size: 11px;
  color: #999;
  font-family: var(--font-mono);
  background: var(--bg-white);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
}

.uc-mockup__body {
  padding: 20px;
}

/* ============================================ */
/* MOCKUP — REPORTING                           */
/* ============================================ */
.mock-input {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 16px;
}

.mock-input__text {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}

.mock-input__cursor {
  width: 2px;
  height: 16px;
  background: var(--neon-violet);
  border-radius: 1px;
  animation: cursorBlink 1s step-end infinite;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.mock-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.mock-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.mock-step__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mock-step__dot--done { background: var(--green); }
.mock-step__dot--active {
  background: var(--neon-violet);
  box-shadow: 0 0 6px rgba(191,90,242,0.4);
  animation: neonPulse 1.5s ease infinite;
}

@keyframes neonPulse {
  0%, 100% { box-shadow: 0 0 4px rgba(191,90,242,0.4); }
  50% { box-shadow: 0 0 10px rgba(191,90,242,0.6); }
}

.mock-step__time {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
}

.mock-step code {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--neon-violet-bg);
  color: var(--neon-violet);
  padding: 1px 6px;
  border-radius: 4px;
}

.mock-result__header {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.mock-result__badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--bg);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

.mock-result__badge--green {
  background: var(--green-light);
  color: var(--green);
  border-color: transparent;
}

.mock-table {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.mock-table__row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.6fr;
  padding: 8px 12px;
  font-size: 12px;
  border-bottom: 1px solid var(--border-light);
}

.mock-table__row:last-child { border-bottom: none; }

.mock-table__row--header {
  background: var(--bg);
  font-weight: 700;
  color: var(--text-tertiary);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mock-table__row span {
  font-family: var(--font-mono);
  font-size: 12px;
}

.mock-up { color: var(--green); font-weight: 600; }
.mock-down { color: var(--red); font-weight: 600; }

/* ============================================ */
/* MOCKUP — TEXT-TO-SQL                         */
/* ============================================ */
.sql-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.sql-input-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}

.sql-input-box {
  flex: 1;
  min-height: 40px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  line-height: 1.4;
}

.sql-typed {
  font-family: var(--font-sans, inherit);
}

.sql-cursor {
  display: inline-block;
  width: 2px;
  height: 15px;
  background: var(--neon-violet);
  border-radius: 1px;
  margin-left: 1px;
  vertical-align: middle;
  flex-shrink: 0;
  animation: cursorBlink 1s step-end infinite;
}

.sql-run-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-dark);
  color: var(--text-inverse);
  border: none;
  border-radius: var(--radius-md);
  padding: 9px 15px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.sql-run-btn--running {
  background: linear-gradient(135deg, var(--neon-green), var(--neon-violet));
  box-shadow: 0 0 14px rgba(0, 255, 136, 0.35);
  transform: scale(0.97);
}

.sql-output {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.sql-output--visible {
  opacity: 1;
  transform: translateY(0);
}

.sql-output__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 12px;
  background: #F5F3F0;
  border-bottom: 1px solid var(--border-light);
}

.sql-output__title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sql-output__badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--blue-light);
  color: var(--blue);
}

.sql-code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.75;
  padding: 14px 16px;
  margin: 0;
  background: #0F0F10;
  color: #D4D4D4;
  overflow-x: auto;
}

.sql-kw  { color: #BF5AF2; font-weight: 600; }
.sql-fn  { color: #00FF88; }
.sql-tbl { color: #FF9F0A; }
.sql-str { color: #FF9F0A; }

/* ============================================ */
/* MOCKUP — CONTEXT MANAGEMENT                  */
/* ============================================ */
.ctx-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.ctx-header__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.ctx-header__badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.ctx-header__badge--live {
  background: var(--neon-green-bg);
  color: var(--neon-green);
}

.ctx-meters {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.ctx-meter__header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
}

.ctx-meter__val { color: var(--text); font-family: var(--font-mono); }
.ctx-meter__val--green { color: var(--green); }

.ctx-meter__bar {
  height: 6px;
  background: var(--bg);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.ctx-meter__fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 1.5s ease;
}

.ctx-meter__fill--neon {
  background: linear-gradient(90deg, var(--neon-green), var(--neon-violet));
  box-shadow: 0 0 8px rgba(191,90,242,0.2);
}

.ctx-meter__fill--green { background: var(--green); }

.ctx-meter__sub {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 4px;
  display: block;
}

/* Training */
.ctx-training__title {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.ctx-person {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.ctx-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}

.ctx-person__info {
  flex: 1;
  min-width: 0;
}

.ctx-person__info span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
}

.ctx-person__bar {
  height: 4px;
  background: var(--bg);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.ctx-person__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-green), var(--neon-violet));
  border-radius: var(--radius-full);
}

.ctx-person__status {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  white-space: nowrap;
}

.ctx-person__status--done {
  color: var(--green);
}

/* ============================================ */
/* MOCKUP — MARKETING                           */
/* ============================================ */
.mkt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.mkt-header__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.mkt-header__tabs {
  display: flex;
  gap: 2px;
}

.mkt-tab {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  color: var(--text-tertiary);
  cursor: pointer;
  transition: all 150ms;
}

.mkt-tab--active {
  background: var(--bg-dark);
  color: var(--text-inverse);
}

.mkt-tags {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.mkt-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.mkt-tag__icon {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
}

.mkt-tag__icon--blue { background: var(--blue-light); color: var(--blue); }
.mkt-tag__icon--green { background: var(--green-light); color: var(--green); }

.mkt-tag__info {
  flex: 1;
  min-width: 0;
}

.mkt-tag__info strong {
  display: block;
  font-size: 13px;
  margin-bottom: 1px;
}

.mkt-tag__info span {
  font-size: 11px;
  color: var(--text-tertiary);
}

.mkt-tag__status {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.mkt-tag__status--live {
  background: var(--neon-green-bg);
  color: var(--neon-green);
}

/* Performance Comparison */
.mkt-perf {
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.mkt-perf__row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mkt-perf__label {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  min-width: 70px;
}

.mkt-perf__bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mkt-perf__bar {
  height: 6px;
  border-radius: var(--radius-full);
}

.mkt-perf__bar--neon {
  background: linear-gradient(90deg, var(--neon-green), var(--neon-violet));
  box-shadow: 0 0 8px rgba(191,90,242,0.15);
}

.mkt-perf__bar--dim {
  background: var(--border);
}

.mkt-perf__vals {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  min-width: 40px;
}

.mkt-perf__val--good {
  font-size: 12px;
  font-weight: 700;
  color: var(--neon-green);
  font-family: var(--font-mono);
}

.mkt-perf__val--old {
  font-size: 11px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  text-decoration: line-through;
}

.mkt-perf__legend {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-tertiary);
}

.mkt-perf__legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.mkt-legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.mkt-legend-dot--neon { background: var(--neon-green); box-shadow: 0 0 4px rgba(0,255,136,0.3); }
.mkt-legend-dot--dim { background: var(--border); }

/* ============================================ */
/* RESPONSIVE                                   */
/* ============================================ */
@media (max-width: 1024px) {
  .uc-card,
  .uc-card--reverse {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .uc-card--reverse .uc-card__visual {
    order: 0;
  }

  .uc-card__visual {
    max-width: 520px;
  }
}

@media (max-width: 768px) {
  .uc-hero { padding: 100px 0 48px; }
  .uc-hero__title { font-size: 28px; }
  .uc-hero__sub { font-size: 15px; }

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

  .uc-card__title { font-size: 22px; }
  .uc-card__desc { font-size: 14px; }

  .uc-feature strong { font-size: 13px; }
  .uc-feature p { font-size: 12px; }

  .uc-mockup__body { padding: 14px; }

  .mock-table__row { grid-template-columns: 1.2fr 0.8fr 0.6fr; padding: 6px 10px; }
  .mock-table__row span { font-size: 11px; }

  .mkt-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .mkt-header__tabs { overflow-x: auto; }

  .mkt-perf__row { flex-wrap: wrap; }
}

@media (max-width: 400px) {
  .uc-hero__title { font-size: 24px; }
  .uc-card__title { font-size: 20px; }
  .uc-card__cta .btn { width: 100%; justify-content: center; }
}
