/* ==========================================================================
   ARMS Protect — dashboard mockup + platform features (home & technology)
   ========================================================================== */

.platform {
  overflow: hidden;
}

.platform .aurora {
  inset: 10% -10% auto;
  opacity: 0.45;
}

.platform .container {
  position: relative;
}

.dash-wrap {
  perspective: 1600px;
  margin-inline: auto;
  max-width: 1080px;
}

.dash {
  border-radius: var(--r-xl);
  overflow: hidden;
  transform-origin: 50% 0%;
  transform: rotateX(var(--dash-rx, 0deg)) scale(var(--dash-s, 1));
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--line-strong), 0 30px 120px -50px rgba(86, 224, 224, 0.5);
  will-change: transform;
}

.dash-bar {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(4, 8, 15, 0.6);
  font-size: 0.72rem;
}

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

.dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink-600);
}

.dots i:first-child { background: #ff5f57; }
.dots i:nth-child(2) { background: #febc2e; }
.dots i:nth-child(3) { background: #28c840; }

.dash-url {
  flex: 1;
  max-width: 320px;
  margin-inline: auto;
  padding: 0.3rem 0.8rem;
  border-radius: var(--r-pill);
  background: rgba(148, 190, 230, 0.06);
  text-align: center;
  color: var(--text-mute);
}

.dash-url i {
  margin-right: 0.3rem;
  color: var(--ok);
}

.dash-live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.12em;
  color: var(--ok);
}

.dash-live .live-dot {
  width: 6px;
  height: 6px;
}

.dash-body {
  display: grid;
  grid-template-columns: 56px 1fr;
}

.dash-side {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 1.3rem;
  padding: 1.3rem 0;
  border-right: 1px solid var(--line);
  color: var(--text-mute);
  font-size: 0.95rem;
}

.dash-side .is-on {
  color: var(--cyan);
}

.dash-main {
  display: grid;
  gap: var(--s-4);
  padding: clamp(0.9rem, 0.5rem + 1.5vw, 1.6rem);
  min-width: 0;
}

.dash-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-3);
}

.kpi {
  position: relative;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(4, 8, 15, 0.45);
  overflow: hidden;
}

.kpi small {
  display: block;
  font-size: 0.7rem;
  color: var(--text-mute);
}

.kpi b {
  display: block;
  margin-top: 0.2rem;
  font-size: clamp(1.1rem, 0.8rem + 1.2vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.spark {
  position: absolute;
  right: 0.8rem;
  bottom: 0.9rem;
  width: 64px;
  height: 22px;
  background: no-repeat center / contain;
  opacity: 0.8;
}

.spark.s1 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 22' fill='none' stroke='%23a3b6c8' stroke-width='1.5'%3E%3Cpath d='M1 18 10 14l8 3 9-8 9 4 9-9 9 5 8-6'/%3E%3C/svg%3E"); }
.spark.s2 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 22' fill='none' stroke='%2356e0e0' stroke-width='1.5'%3E%3Cpath d='M1 20 9 17l8 1 8-6 8 2 8-7 8 2 8-6 6-2'/%3E%3C/svg%3E"); }
.spark.s3 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 22' fill='none' stroke='%23ffb547' stroke-width='1.5'%3E%3Cpath d='M1 14 10 16l8-6 9 7 9-3 9 4 9-8 8 4'/%3E%3C/svg%3E"); }

.dash-panels {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--s-3);
}

.dash-panel {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(4, 8, 15, 0.45);
  min-width: 0;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.9rem;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.panel-head .mono {
  font-size: 0.65rem;
  color: var(--text-mute);
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 8%;
  height: 120px;
  padding-inline: 2%;
}

.bars i {
  flex: 1;
  height: var(--h);
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--cyan), rgba(86, 224, 224, 0.15));
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 1.1s var(--ease-out);
}

.bars i:nth-child(2) { transition-delay: 80ms; }
.bars i:nth-child(3) { transition-delay: 160ms; }
.bars i:nth-child(4) { transition-delay: 240ms; }
.bars i:nth-child(5) { transition-delay: 320ms; }
.bars i:nth-child(6) { transition-delay: 400ms; }
.bars i:nth-child(7) { transition-delay: 480ms; }

.dash.is-live .bars i {
  transform: scaleY(1);
}

.feed ul {
  display: grid;
  gap: 0.6rem;
  font-size: 0.72rem;
  color: var(--text-dim);
}

.feed li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: feed-in 0.6s var(--ease-out) both;
}

.feed li i {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.feed li i.ok { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.feed li i.warn { background: var(--signal); box-shadow: 0 0 8px var(--signal); }

@keyframes feed-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

.dash-table {
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  font-size: 0.75rem;
}

.tr {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr auto;
  align-items: center;
  gap: var(--s-4);
  padding: 0.7rem 1rem;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
}

.tr.th {
  border-top: 0;
  background: rgba(4, 8, 15, 0.5);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.prog {
  height: 4px;
  border-radius: 4px;
  background: rgba(148, 190, 230, 0.1);
  overflow: hidden;
}

.prog i {
  display: block;
  width: var(--w);
  height: 100%;
  background: var(--cyan);
}

.pill {
  min-width: 82px;
  padding: 0.2rem 0.6rem;
  border-radius: var(--r-pill);
  font-size: 0.65rem;
  text-align: center;
}

.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.run { background: var(--cyan-soft); color: var(--cyan); }
.pill.warn { background: var(--signal-soft); color: var(--signal); }

.dash-caption {
  margin-top: var(--s-4);
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.platform-features {
  display: grid;
  gap: var(--s-5);
  margin-top: var(--s-8);
}

.pf {
  padding-top: var(--s-5);
  border-top: 1px solid var(--line-strong);
}

.pf i {
  font-size: 1.1rem;
  color: var(--cyan);
}

.pf h4 {
  margin: var(--s-4) 0 var(--s-2);
}

.pf p {
  font-size: var(--fs-sm);
}

.platform-cta {
  margin-top: var(--s-7);
}

@media (min-width: 700px) {
  .platform-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .platform-features {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 699px) {
  .dash-body {
    grid-template-columns: 1fr;
  }

  .dash-side {
    display: none;
  }

  .dash-panels {
    grid-template-columns: 1fr;
  }

  .dash-kpis .spark {
    display: none;
  }

  .tr {
    grid-template-columns: 1fr 1fr auto;
  }

  .tr > :nth-child(3) {
    display: none;
  }
}

