/* MEDIA WORKFLOW PAGE STYLES */

.app { background: var(--white); }

/* ===== HERO ===== */
.mw-hero {
  position: relative;
  min-height: 92vh;
  background: linear-gradient(180deg, #0E1115 0%, #14171B 100%);
  color: #fff;
  padding: 140px 0 80px;
  overflow: hidden;
  display: flex; align-items: center;
}
.mw-hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 75% 40%, rgba(53,92,132,0.25), transparent 70%),
    radial-gradient(ellipse 50% 80% at 15% 70%, rgba(53,92,132,0.12), transparent 70%);
}
.mw-hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.mw-hero__inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 980px) {
  .mw-hero__inner { grid-template-columns: 1fr; gap: 48px; }
}
.mw-hero__title {
  font-size: clamp(40px, 5.4vw, 76px);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin: 24px 0 28px;
  text-wrap: balance;
}
.text-blue-light { color: var(--blue-soft); }
.mw-hero__lede {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin: 0 0 32px;
}
.mw-hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Diagram */
.diag {
  position: relative;
  background: rgba(20,23,27,0.5);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}
.diag__node {
  background: linear-gradient(160deg, rgba(53,92,132,0.2), rgba(20,23,27,0.6));
  border: 1px solid rgba(122,155,194,0.3);
  padding: 22px 14px;
  text-align: center;
  font-family: var(--font-mono);
}
.diag__label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--blue-soft);
  margin-bottom: 8px;
}
.diag__count {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.04em;
}
.diag__line {
  position: relative;
  height: 1px;
  background: rgba(122,155,194,0.3);
  width: 60px;
  overflow: visible;
}
.diag__pulse {
  position: absolute;
  top: -2px; left: 0;
  width: 12px; height: 5px;
  background: var(--blue-soft);
  box-shadow: 0 0 8px var(--blue-soft);
  animation: pulseRight 2s linear infinite;
}
@keyframes pulseRight {
  0% { left: 0; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
.diag__readout {
  grid-column: 1 / -1;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  position: relative;
}
.diag__readout::before {
  content: '';
  position: absolute;
  top: 20px; bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(255,255,255,0.1);
}
.diag__readout > div {
  display: flex; justify-content: space-between; align-items: baseline;
}
.diag__readout em {
  font-style: normal;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.12em;
  font-size: 12px;
  line-height: 1;
}
.diag__readout span { color: #fff; font-size: 12px; line-height: 1; }
.diag__readout .green { color: #5DCE8A; }
.diag__readout .blue { color: var(--blue-soft); }

/* ===== STAT COUNTER ===== */
.counter {
  background: var(--charcoal-1);
  color: #fff;
  padding: 56px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.counter__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.counter__cell {
  padding: 0 32px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.counter__cell:last-child { border-right: none; }
.counter__cell:first-child { padding-left: 0; }
.counter__num {
  font-family: var(--font-sans);
  font-size: clamp(44px, 4.6vw, 64px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.counter__suf {
  font-size: 0.4em;
  color: var(--blue-soft);
  margin-left: 6px;
  letter-spacing: 0.04em;
}
.counter__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.55);
  margin-top: 14px;
}
@media (max-width: 880px) {
  .counter__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .counter__cell { border-right: none; padding: 0; }
}

/* ===== PROBLEM ===== */
.mw-problem {
  background: var(--white);
  padding: 120px 0;
}
.mw-problem__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.mw-problem__body p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--charcoal-2);
  margin: 0 0 24px;
}
.mw-problem__list {
  list-style: none; margin: 0; padding: 0;
  border-top: 1px solid var(--gray-line);
}
.mw-problem__list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-line);
  font-size: 16px;
  color: var(--charcoal-1);
  align-items: baseline;
}
.mw-problem__bullet {
  font-family: var(--font-mono);
  color: #B45A2A;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.mw-problem__pull {
  margin-top: 28px !important;
  padding-left: 20px;
  border-left: 3px solid var(--accent);
  font-size: 22px !important;
  font-weight: 500;
  color: var(--charcoal-1) !important;
  letter-spacing: -0.01em;
}
@media (max-width: 980px) {
  .mw-problem__grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ===== CAPABILITIES GRID ===== */
.mw-cap {
  background: var(--gray-paper);
  padding: 120px 0;
}
.mw-cap__head {
  max-width: 880px;
  margin-bottom: 64px;
}
.mw-cap__head .h-display { margin-top: 18px; }
.mw-cap__lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--charcoal-2);
  max-width: 760px;
}
.mw-cap__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gray-line);
  border: 1px solid var(--gray-line);
}
.mw-cap__cell {
  background: #fff;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: background 0.25s, transform 0.25s;
}
.mw-cap__cell:hover {
  background: #fff;
}
.mw-cap__cell:hover .mw-cap__icon {
  color: var(--accent);
  transform: translateY(-2px);
}
.mw-cap__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
}
.mw-cap__icon {
  color: var(--charcoal-1);
  transition: color 0.25s, transform 0.25s;
}
.mw-cap__title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--charcoal-1);
}
.mw-cap__desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--charcoal-2);
  margin: 0;
}
@media (max-width: 980px) {
  .mw-cap__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .mw-cap__grid { grid-template-columns: 1fr; }
}

/* ===== FOLDER TREE ===== */
.mw-tree {
  background: #fff;
  padding: 120px 0;
}
.mw-tree__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.mw-tree__lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--charcoal-2);
  max-width: 540px;
  margin-top: 8px;
}
.mw-tree__legend {
  display: flex; flex-wrap: wrap; gap: 16px;
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
}
.mw-tree__legend span {
  display: inline-flex; align-items: center; gap: 8px;
}
.mw-tree__chip {
  display: inline-block;
  width: 10px; height: 10px;
}
.mw-tree__chip--hot { background: var(--accent); }
.mw-tree__chip--ok { background: #5DCE8A; }
.mw-tree__chip--warn { background: #E5A152; }

.mw-tree__panel {
  background: var(--charcoal-1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.08);
  font-family: var(--font-mono);
}
.mw-tree__head {
  display: flex;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.6);
}
.mw-tree__list {
  list-style: none; margin: 0; padding: 12px 0;
}
.mw-tree__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  transition: background 0.15s;
}
.mw-tree__row:hover { background: rgba(255,255,255,0.04); }
.mw-tree__row--hot {
  background: rgba(53,92,132,0.18);
  border-left: 2px solid var(--accent);
  padding-left: 14px !important;
}
.mw-tree__icon { color: var(--blue-soft); flex: 0 0 auto; }
.mw-tree__label { color: #fff; flex: 1; }
.mw-tree__meta {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.04em;
}
@media (max-width: 980px) {
  .mw-tree__grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ===== REMOTE & CLOUD ===== */
.mw-cloud {
  background: var(--charcoal-1);
  color: #fff;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}
.mw-cloud::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 80% 30%, rgba(53,92,132,0.18), transparent 70%);
  pointer-events: none;
}
.mw-cloud__head {
  max-width: 880px;
  margin-bottom: 56px;
  position: relative; z-index: 2;
}
.mw-cloud__title { color: #fff; margin-top: 18px; }
.mw-cloud__lede {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
  max-width: 720px;
}

.mw-map {
  position: relative; z-index: 2;
  background: rgba(14,17,21,0.6);
  border: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 56px;
}
.mw-map__head {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.6);
}
.mw-map__dot { width: 8px; height: 8px; border-radius: 50%; }
.mw-map__dot--live { background: #5DCE8A; box-shadow: 0 0 8px #5DCE8A; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.mw-map__svg {
  width: 100%;
  height: auto;
  display: block;
}

.mw-cloud__features {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
}
.mw-cloud__feat {
  background: var(--charcoal-1);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mw-cloud__feat-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--blue-soft);
}
.mw-cloud__feat-title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
  margin-top: 12px;
}
.mw-cloud__feat-desc {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255,255,255,0.65);
  margin: 0;
}
@media (max-width: 980px) {
  .mw-cloud__features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .mw-cloud__features { grid-template-columns: 1fr; }
}
