/* =========================================================
   BASE.CSS
   - Global defaults
   - Typography
   - Base element styling
   - Performance-critical rules
   ========================================================= */

/* Root body */
#page_body {
    font-family: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #EDF9F5;
    color: #000;
    margin: 0;
    padding: 5vh 60px;
}

/* Typography */
h1 {
    font-size: max(3vh, 2.5rem);
    margin: 0;
}

h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 500;
}

p {
    font-size: 16px;
}

a {
    color: #6B7280;
    text-decoration: none;
}

/* Utilities */
.accent {
    color: #E23D28;
}

/* Overflow safety */
html, body {
    overflow-x: hidden;
}

/* Media baseline */
video {
    max-width: 100%;
    display: block;
    border-radius: 12px;
}

/* Responsive image utility */
.img-responsive {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}



/* =========================================================
   DIOS PLATFORM UPDATES
   All styles are namespaced to prevent conflicts.
   ========================================================= */

.dios-updates {
  --dios-text: #17202a;
  --dios-muted: #68727d;
  --dios-border: #e5e9ed;
  --dios-surface: #ffffff;
  --dios-surface-soft: #f7f9fa;
  --dios-accent: #1c6e8c;
  --dios-accent-soft: #e8f3f7;
  --dios-success: #218739;
  --dios-warning: #c88619;
  --dios-line: #dce2e7;

  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  color: var(--dios-text);
  box-sizing: border-box;
}

.dios-updates *,
.dios-updates *::before,
.dios-updates *::after {
  box-sizing: border-box;
}


/* ---------------------------------------------------------
   INTRO
   --------------------------------------------------------- */

.dios-updates__intro {
  margin-bottom: 42px;
}

.dios-updates__intro h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.dios-updates__intro p {
  max-width: 780px;
  margin: 0;
  color: var(--dios-muted);
  font-size: 16px;
  line-height: 1.7;
}


/* ---------------------------------------------------------
   SECTION HEADINGS
   --------------------------------------------------------- */

.dios-updates__section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.dios-updates__section-heading h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
}

.dios-updates__section-heading p {
  margin: 3px 0 0;
  color: var(--dios-muted);
  font-size: 13px;
}


/* ---------------------------------------------------------
   LIVE INDICATOR
   --------------------------------------------------------- */

.dios-updates__live-indicator {
  width: 9px;
  height: 15px;
  flex: 0 0 15px;
  border-radius: 50%;
  background: var(--dios-success);
  box-shadow: 0 0 0 5px rgba(33, 135, 57, 0.10);
  animation: dios-pulse 2s infinite;
}

@keyframes dios-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(33, 135, 57, 0.08);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(33, 135, 57, 0.02);
  }
}


/* ---------------------------------------------------------
   LIVE STATUS
   --------------------------------------------------------- */

.dios-updates__status {
  margin-bottom: 58px;
}

.dios-updates__network-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.dios-network-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--dios-border);
  border-radius: 14px;
  background: var(--dios-surface);
  box-shadow: 0 5px 20px rgba(23, 32, 42, 0.04);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.dios-network-card:hover {
  transform: translateY(-2px);
  border-color: #d5dce2;
  box-shadow: 0 10px 28px rgba(23, 32, 42, 0.07);
}

.dios-network-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--dios-border);
}

.dios-network-card__label {
  display: block;
  margin-bottom: 4px;
  color: var(--dios-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dios-network-card h4 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}

.dios-network-card__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef8f0;
  color: var(--dios-success);
  font-size: 12px;
  font-weight: 700;
}

.dios-network-card__status.is-offline {
  background: #fceeee;
  color: #b63838;
}

.dios-network-card__status.is-loading {
  background: #f1f3f5;
  color: var(--dios-muted);
}

.dios-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.dios-network-card__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 22px 0;
}

.dios-network-stat {
  min-width: 0;
}

.dios-network-stat__label {
  display: block;
  margin-bottom: 7px;
  color: var(--dios-muted);
  font-size: 12px;
}

.dios-network-stat strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.dios-network-card__footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--dios-border);
  color: var(--dios-muted);
  font-size: 11px;
}

.dios-network-card__footer time {
  font-variant-numeric: tabular-nums;
}


/* ---------------------------------------------------------
   PROTOCOL UPGRADE
   --------------------------------------------------------- */

.dios-updates__protocol {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
  padding: 15px 18px;
  border: 1px solid var(--dios-border);
  border-radius: 10px;
  background: var(--dios-surface-soft);
  font-size: 13px;
}

.dios-updates__protocol span {
  color: var(--dios-muted);
}

.dios-updates__protocol strong {
  font-weight: 700;
}


/* ---------------------------------------------------------
   TIMELINE
   --------------------------------------------------------- */

.dios-updates__timeline {
  margin-bottom: 58px;
}

.dios-timeline {
  position: relative;
  padding-left: 30px;
}

.dios-timeline::before {
  content: "";
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: 5px;
  width: 1px;
  background: var(--dios-line);
}

.dios-timeline-item {
  position: relative;
  padding: 0 0 34px 28px;
}

.dios-timeline-item:last-child {
  padding-bottom: 0;
}

.dios-timeline-item__marker {
  position: absolute;
  top: 5px;
  left: -1px;
  width: 13px;
  height: 13px;
  border: 3px solid var(--dios-surface);
  border-radius: 50%;
  background: #aeb8c1;
  box-shadow: 0 0 0 1px var(--dios-line);
  z-index: 1;
}

.dios-timeline-item--milestone .dios-timeline-item__marker,
.dios-timeline-item--protocol .dios-timeline-item__marker {
  background: var(--dios-accent);
  box-shadow: 0 0 0 1px var(--dios-accent);
}

.dios-timeline-item--protocol .dios-timeline-item__marker {
  box-shadow:
    0 0 0 1px var(--dios-accent),
    0 0 0 6px var(--dios-accent-soft);
}

.dios-timeline-item__content {
  max-width: 760px;
}

.dios-timeline-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.dios-timeline-item__meta time {
  color: var(--dios-text);
  font-size: 13px;
  font-weight: 700;
}

.dios-timeline-item__meta span {
  padding: 4px 8px;
  border-radius: 5px;
  background: var(--dios-surface-soft);
  color: var(--dios-muted);
  font-size: 11px;
  font-weight: 600;
}

.dios-timeline-item h4 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.dios-timeline-item p {
  margin: 0;
  color: var(--dios-muted);
  font-size: 14px;
  line-height: 1.7;
}


/* ---------------------------------------------------------
   ONGOING DEVELOPMENT
   --------------------------------------------------------- */

.dios-updates__ongoing {
  padding: 24px;
  border: 1px solid var(--dios-border);
  border-radius: 12px;
  background: var(--dios-surface-soft);
}

.dios-updates__ongoing-label {
  display: block;
  margin-bottom: 9px;
  color: var(--dios-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dios-updates__ongoing p {
  max-width: 800px;
  margin: 0;
  color: var(--dios-muted);
  font-size: 14px;
  line-height: 1.7;
}





.bc-problem-grid-section {
    width: 100%;
    overflow: hidden;
    padding: 10px 0;
    box-sizing: border-box;
}

.bc-problem-grid-title {
    margin: 0 0 40px;
    text-align: center;
    font-size: 40px;
    font-weight: 500;
    color: #222;
}

.bc-problem-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(11, minmax(75px, 1fr));
    gap: 6px;
}

.bc-grid-box {
    min-height: 105px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;

    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(80, 80, 80, 0.13);
    border-radius: 14px;

    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    color: #333;

    transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.bc-grid-box:not(.bc-faded):hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(250, 1, 1, 0.25);
}

.bc-grid-box.bc-faded {
    opacity: 0.55;
}

/* Mobile grid hidden by default */
.bc-problem-grid-mobile {
    display: none;
}

.bc-problem-grid-mobile-after {
    display: none;
}


/* Mobile */
@media (max-width: 600px) {

    .bc-problem-grid {
        display: none;
    }
    
    .bc-problem-grid-section {
        padding: 0 0;
    }
    
    .bc-problem-grid-3 {
        display: none;
    }
    
    .bc-problem-grid-mobile-after {
        display: block;
        padding-top: 15px;
        padding-bottom: 50px;
    }

    .bc-problem-grid-mobile {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 0 12px;
    }

    .bc-problem-grid-mobile .bc-grid-box {
        min-height: 100px;
        padding: 14px;
        font-size: 12px;
        border-radius: 12px;
    }

    .bc-problem-grid-mobile .bc-grid-box:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 30px rgba(250, 1, 1, 0.25);
    }

}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 700px) {

  .dios-updates__network-grid {
    grid-template-columns: 1fr;
  }

  .dios-network-card {
    padding: 20px;
  }

  .dios-network-card__top {
    align-items: flex-start;
  }

  .dios-network-card__status {
    font-size: 11px;
  }

  .dios-network-stat strong {
    font-size: 21px;
  }

  .dios-timeline {
    padding-left: 22px;
  }

  .dios-timeline-item {
    padding-left: 22px;
  }

  .dios-updates__protocol {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}

@media (max-width: 430px) {

  .dios-network-card__top {
    flex-direction: column;
    gap: 12px;
  }

  .dios-network-card__stats {
    gap: 10px;
  }
}