/* dealos.css - FINAL STABLE VERSION */

:root {
    --green: #8BC34A;
    --dark: #050505;
    --text-main: #ffffff;
    --text-muted: #9c9c9c;
}

/* =========================
   HERO
   ========================= */

.dealos-hero {
    text-align: center;
    padding: 100px 24px;
    background: #000;
}
.dealos-hero h1 span { color: var(--green); }

/* =========================
   FLOW LAYOUT
   ========================= */

.full-bleed-dark { 
    background-color: var(--dark); 
    padding: 80px 24px;
}

.wian-dark-flow { 
    display: flex; 
    flex-direction: column;
    align-items: center; 
    gap: 40px; 
    max-width: 1280px; 
    margin: 0 auto; 
    position: relative;
}

/* Desktop layout */
@media (min-width: 900px) {
    .wian-dark-flow { 
        flex-direction: row; 
        align-items: center;   /* 🔥 KEY FIX */
        justify-content: space-between; 
        gap: 60px;
    }
}

/* =========================
   COLUMNS
   ========================= */

.col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
}

/* alignment per column */
.col.left { align-items: flex-end; }
.col.center { align-items: center; }
.col.right { align-items: flex-start; }

/* =========================
   NODES
   ========================= */

.node { 
    background: #0a0a0a; 
    border: 1px solid #222; 
    border-radius: 12px; 
    padding: 24px; 
    width: 100%; 
    max-width: 280px; 
    text-align: center; 
}

.node.green-box { border: 1px solid var(--green); }

.node.green-box .pipeline-header {
  background: linear-gradient(90deg, #8BC34A, #00ffa6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  margin-bottom: 15px;
}

.node .title { 
  font-weight: 600; 
  font-size: 1rem; 
  margin-bottom: 6px; 
  color: var(--text-main); 
}

.node .desc { 
  font-size: 0.85rem; 
  color: var(--text-muted); 
}

/* =========================
   CENTER ENGINE EXPANSION
   ========================= */

.col.center .node {
  max-width: 380px;
  width: 100%;
  padding: 32px 28px;
}

/* =========================
   CONNECTORS (DESKTOP ONLY)
   ========================= */

.connectors {
  display: none; /* default hidden (mobile first) */
}

@media (min-width: 900px) {

  .connectors {
    display: flex;
    align-items: center;   /* 🔥 CRITICAL FIX */
    justify-content: center;
    width: 160px;
    flex-shrink: 0;
  }

  .connectors svg {
    width: 100%;
    height: 260px;   /* 🔥 LOCKED HEIGHT (fixes floating issue) */
  }

}

/* =========================
   CONNECTOR STYLE
   ========================= */

.path-animated {
  stroke: #8BC34A;
  stroke-width: 2.5;
  fill: none;
  stroke-dasharray: 8 10;
  animation: flowLine 1.2s linear infinite;
  opacity: 0.9;
}

@keyframes flowLine {
  to { stroke-dashoffset: -20; }
}

/* =========================
   MOBILE CONNECTORS (CLEAN)
   ========================= */

.mobile-connector {
  display: flex;
  justify-content: center;
  margin: 10px 0;
}

@media (min-width: 900px) {
  .mobile-connector {
    display: none;
  }
}

/* =========================
   ENGINE STACK SPACING
   ========================= */

.sub-node {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.sub-node:last-child {
  border-bottom: none;
}

/* =========================
   TABLE
   ========================= */

.compare {
    max-width: 900px;
    margin: 40px auto;
    border: 1px solid #222;
    border-radius: 8px;
    overflow: hidden;
}

.compare .row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    padding: 18px 24px;
    border-bottom: 1px solid #111;
}

.compare .row.head { 
    background: var(--green); 
    color: #111; 
    font-weight: 600; 
}

/* =========================
   DEALOS MOBILE TABLE — STRUCTURED (LIKE PACTUM, CLEANER)
   ========================= */

@media (max-width: 768px) {

  .compare .row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px;
    margin-bottom: 12px;
    border-radius: 10px;
    background: #0a0a0a;
    border: 1px solid rgba(255,255,255,0.05);
  }

  /* LABEL */
  .compare .row > div:first-child {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
  }

  /* VALUE ROWS */
  .compare .row > div:nth-child(2),
  .compare .row > div:nth-child(3) {
    display: grid;
    grid-template-columns: 90px 1fr;
    align-items: center;
    font-size: 13px;
  }

  /* DealOS column */
  .compare .row > div:nth-child(2)::before {
    content: "DealOS";
    color: #8BC34A;
    font-weight: 600;
  }

  /* Traditional column */
  .compare .row > div:nth-child(3)::before {
    content: "Traditional";
    color: #9c9c9c;
    font-weight: 600;
  }

  .compare .row.head {
    display: none;
  }

}

/* =========================
   CTA
   ========================= */

.dealos-btn {
  background: #8BC34A !important;
  border: 1px solid #8BC34A !important;
  color: #111 !important;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

.cta-final {
  text-align: center;
}

.cta-final .btn {
  display: inline-block;
  margin-top: 20px;
}

/* =========================
   MOBILE HERO
   ========================= */

@media (max-width: 768px) {

  .dealos-hero h1 {
    font-size: 28px !important;
    line-height: 1.3;
    padding: 0 16px;
  }

  .dealos-hero p {
    font-size: 14px !important;
    padding: 0 16px;
  }

}

/* =========================
   DEALOS TABLE TEXT SIZE REDUCTION
   ========================= */

.compare .row {
  font-size: 12px;   /* 🔥 reduced ~4 units */
}

.compare .row.head {
  font-size: 12px;
}