/* ============================================================
   ML Software, LLC — site.css (Enterprise Charcoal + Blue)
   FULL FILE REPLACEMENT (based on last known working version)
   Readability upgrades:
   - reduce heavy font weights
   - increase line-height and spacing
   - slightly improve contrast (still not pure white)
   - better modal separation (thicker/lighter border + stronger shadow)
   ============================================================ */

/* ----------------------------
   Theme + base
---------------------------- */
:root{
  --bg: #0B0F14;
  --panel: #0F151D;
  --panel2:#0C1219;
  --border: rgba(255,255,255,0.08);
  --borderSoft: rgba(255,255,255,0.12);
  --border2: rgba(46,163,242,0.22);
  --borderModal: rgba(255,255,255,0.18);
  --text: #EAF2FB;
  --muted: rgba(234,242,251,0.78);
  --muted2: rgba(234,242,251,0.62);
  --blue: #2EA3F2;
  --blue2:#1A6FAE;
  --shadow: 0 16px 50px rgba(0,0,0,0.45);
  --shadowModal: 0 28px 100px rgba(0,0,0,0.75);
  --radius: 12px;
  --radiusSm: 10px;
  --max: 1180px;
}

*{ box-sizing:border-box; }
html, body{ height:100%; }

body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.1px;
  font-weight: 450;
  line-height: 1.68;
}

a{ color: var(--text); text-decoration:none; }
a:hover{ color: var(--text); }
img{ max-width:100%; height:auto; display:block; }
button, input, textarea{ font-family:inherit; }

.container{
  max-width: var(--max);
  margin:0 auto;
  padding: 0 18px;
}

.row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
}

.smallTopMargin { margin-top: 6px; }
.small{ font-size: 13px; }
.muted{ color: var(--muted); }

.lead{
  color: var(--muted);
  font-size: 16.75px;
  line-height: 1.68;
  font-weight: 450;
}

h1, h2, h3{
  margin:0;
  letter-spacing: -0.2px;
  color: var(--text);
}

h2{
  font-size: 28px;
  line-height: 1.2;
  font-weight: 650;
}

h3{
  font-size: 18px;
  line-height: 1.3;
  font-weight: 650;
}

/* ----------------------------
   Topbar / Brand / Nav
---------------------------- */
.topbar{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(11,15,20,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.topbar .container{
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 14px;
  min-width: 260px;
}

.brandLogo{
  height: 44px;
  width: auto;
  display:block;
}

.brandText{ display:flex; flex-direction:column; }

.brandName{
  font-weight: 650;
  letter-spacing: 0.2px;
  line-height: 1.12;
}

.brandTag{
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.25;
  color: var(--muted2);
  font-weight: 550;
}

.nav{
  display:flex;
  align-items:center;
  gap: 14px;
  flex-wrap: wrap;
}
.nav a{
  color: rgba(234,242,251,0.84);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.2px;
  padding: 8px 8px;
  border-radius: 10px;
}
.nav a:hover{
  background: rgba(255,255,255,0.03);
  color: var(--text);
}

/* ----------------------------
   Buttons
---------------------------- */
.btn{
  border-radius: var(--radiusSm);
  padding: 12px 16px;
  font-weight: 650;
  letter-spacing: 0.2px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease, box-shadow .12s ease;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
}

.btn:hover{ transform: translateY(-1px); }
.btn.small{ padding: 9px 12px; font-size: 13px; }

.btnPrimary{
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue2) 100%);
  border-color: rgba(46,163,242,0.35);
  color: #06121B;
}

.btnPrimary:hover{
  border-color: rgba(46,163,242,0.55);
  box-shadow: 0 10px 28px rgba(46,163,242,0.18);
}

.btnSecondary{
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.12);
}

.btnSecondary:hover{
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue2) 100%) !important;
  border-color: rgba(46,163,242,0.55) !important;
  color: #06121B !important;
}

.btn.ghost{
  background: rgba(255,255,255,0.02);
  border-color: rgba(255,255,255,0.10);
}

.btnCta{
  padding: 13px 18px;
  box-shadow: 0 10px 28px rgba(46,163,242,0.18);
}

.linkBtn{
  background: transparent;
  border: none;
  color: rgba(46,163,242,0.95);
  font-size: 16px;
  font-weight: 650;
  cursor: pointer;
  padding: 0;
  text-align:left;
}
.linkBtn:hover{ color: var(--text); }

/* ----------------------------
   Reveal animation
---------------------------- */
.reveal{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .38s ease, transform .38s ease;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* ----------------------------
   Hero (Enterprise)
---------------------------- */
.heroEnterprise{
  padding: 76px 0 56px;
  margin-top: 68px;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(46,163,242,0.08) 0%, rgba(0,0,0,0) 55%),
    radial-gradient(1200px 700px at 20% 15%, rgba(46,163,242,0.10), rgba(0,0,0,0) 60%);
}

.heroGridEnterprise{
  display:grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  align-items: start;
}

.eyebrow{
  color: rgba(234,242,251,0.74);
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-size: 12px;
}

.heroH1{
  font-size: clamp(34px, 4.1vw, 54px);
  line-height: 1.16;
  margin: 10px 0 12px;
  font-weight: 650;
  letter-spacing: -0.3px;
}

.heroLead{
  max-width: 58ch;
  margin: 0 0 16px;
}

.ctaRow{
  display:flex;
  gap: 12px;
  align-items:center;
  flex-wrap: wrap;
}

.ctaNote{
  margin-top: 10px;
  color: var(--muted2);
  font-size: 13px;
  font-weight: 550;
  line-height: 1.55;
}

.microProofEnterprise{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.microItem{
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 14px 14px;
}

.microNum{
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.2px;
  color: var(--text);
  margin-bottom: 4px;
}

.microLabel{
  color: rgba(234,242,251,0.66);
  font-size: 12px;
  font-weight: 550;
  letter-spacing: 0.35px;
  text-transform: lowercase;
}

.credLine{
  margin-top: 14px;
  color: rgba(234,242,251,0.70);
  font-weight: 550;
  font-size: 13px;
  line-height: 1.55;
}

.systemPanel{
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0));
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.systemTop{
  padding: 14px 14px 10px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.systemTitle{
  font-weight: 650;
  letter-spacing: 0.2px;
  margin-bottom: 2px;
}

.systemSub{
  color: var(--muted2);
  font-size: 12px;
  font-weight: 550;
  line-height: 1.35;
}

.systemBody{ padding: 14px; }

.systemRow{
  display:flex;
  align-items:center;
  gap: 10px;
  margin-bottom: 10px;
}

.systemNode{
  flex:1;
  background: rgba(15,21,29,0.75);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 10px 10px;
}

.systemNodeWide{ flex: 1; }

.systemNodeTitle{
  font-weight: 650;
  font-size: 13px;
  margin-bottom: 2px;
}

.systemNodeSub{
  color: rgba(234,242,251,0.68);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.systemArrow{
  color: rgba(46,163,242,0.75);
  font-weight: 650;
  width: 22px;
  text-align:center;
}

.systemActions{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.sideNote{
  margin-top: 12px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
}
.sideTitle{
  font-weight: 650;
  margin-bottom: 6px;
}
.sideText{
  color: rgba(234,242,251,0.74);
  line-height: 1.62;
  font-weight: 450;
}

/* ----------------------------
   Sections + layouts
---------------------------- */
.section{ padding: 58px 0; }

.section.alt{
  background: rgba(255,255,255,0.01);
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.sectionHead{ margin-bottom: 18px; }

.sectionHead p{
  margin: 8px 0 0;
  line-height: 1.7;
  color: var(--muted);
}

.cards3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

/* ----------------------------
   Cards
---------------------------- */
.card{
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0));
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.cardIcon{
  font-size: 20px;
  margin-bottom: 10px;
}

.card p{
  margin: 8px 0 0;
  line-height: 1.7;
  color: var(--muted);
}

.cardFoot{ margin-top: 12px; }

.hoverLift{
  transition: transform .14s ease, border-color .14s ease, background .14s ease;
}
.hoverLift:hover{
  transform: translateY(-2px);
  border-color: rgba(46,163,242,0.25);
}

/* ----------------------------
   Callout
---------------------------- */
.callout{
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.02);
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.calloutTitle{
  font-weight: 650;
  margin-bottom: 8px;
}

.calloutList{
  margin: 0;
  padding-left: 18px;
  color: rgba(234,242,251,0.74);
  font-weight: 450;
  line-height: 1.7;
}
.calloutRight{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ----------------------------
   Use-cases grid
---------------------------- */
.useGrid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.useCard{
  cursor: pointer;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0));
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.useTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.useTitle{ font-weight: 650; }
.tag{
  font-size: 12px;
  font-weight: 650;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(46,163,242,0.30);
  color: rgba(234,242,251,0.92);
  background: rgba(46,163,242,0.10);
}
.useBody{
  line-height: 1.7;
  font-weight: 450;
  color: var(--muted);
}
.useBottom{
  margin-top: 12px;
  color: rgba(46,163,242,0.95);
  font-weight: 650;
}

/* ----------------------------
   ROI grid
---------------------------- */
.roiGrid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.roiCard{
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0));
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.roiTitle{
  font-weight: 650;
  margin-bottom: 8px;
}

/* ----------------------------
   Process steps
---------------------------- */
.steps{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.step{
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0));
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.stepNum{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 650;
  color: #06121B;
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue2) 100%);
  border: 1px solid rgba(46,163,242,0.35);
  margin-bottom: 10px;
}

/* ----------------------------
   Contact layout + form
---------------------------- */
.contactGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items:start;
}

.contactCard{
  margin-top: 12px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.02);
}
.contactLine{
  display:flex;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.contactLine:last-child{ border-bottom: none; }
.contactLine span{
  color: rgba(234,242,251,0.62);
  font-weight: 650;
  min-width: 70px;
}

.form{
  display:flex;
  flex-direction:column;
  gap: 12px;
}
.row2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

label{
  display:flex;
  flex-direction:column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(234,242,251,0.88);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea{
  border-radius: var(--radiusSm);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  padding: 11px 12px;
  outline: none;
  font-size: 14px;
  font-weight: 450;
  line-height: 1.55;
}

textarea{ resize: vertical; min-height: 110px; }

input:focus, textarea:focus{
  border-color: rgba(46,163,242,0.35);
  box-shadow: 0 0 0 3px rgba(46,163,242,0.12);
}

.hp{ display:none; }

.error{
  background: rgba(255,70,70,0.10);
  border: 1px solid rgba(255,70,70,0.25);
  padding: 10px 12px;
  border-radius: var(--radiusSm);
  color: rgba(234,242,251,0.92);
  font-weight: 600;
}
.success h3{ margin-bottom: 6px; }

/* ----------------------------
   Footer
---------------------------- */
.footer{
  border-top: 1px solid var(--border);
  padding: 20px 0;
  color: rgba(234,242,251,0.66);
  font-weight: 550;
  font-size: 13px;
  line-height: 1.6;
}
.footerLinks{
  display:flex;
  gap: 12px;
}
.footerLinks a{
  color: rgba(234,242,251,0.70);
  padding: 6px 8px;
  border-radius: 10px;
}
.footerLinks a:hover{
  background: rgba(255,255,255,0.03);
  color: var(--text);
}

/* ----------------------------
   Modal typography
---------------------------- */
.tpl{ color: rgba(234,242,251,0.90); }

.modalH2{
  font-size: 22px;
  font-weight: 650;
  line-height: 1.2;
  margin: 0 0 10px;
}

.modalH3{
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  margin: 14px 0 8px;
  color: rgba(234,242,251,0.80);
}

.modalP{
  margin: 0 0 10px;
  line-height: 1.7;
  color: rgba(234,242,251,0.74);
  font-weight: 450;
}

.modalList{
  margin: 0 0 10px;
  padding-left: 18px;
  color: rgba(234,242,251,0.74);
  line-height: 1.75;
  font-weight: 450;
}

.modalCTA {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

/* ROI calculator */
.calcGrid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 12px 0 10px;
}

.calcLabel{
  display:flex;
  flex-direction:column;
  gap: 6px;
  font-weight: 600;
  font-size: 13px;
  color: rgba(234,242,251,0.86);
}

.calcInput{
  border-radius: var(--radiusSm);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  padding: 11px 12px;
  outline:none;
  font-weight: 450;
  line-height: 1.55;
}

.calcResult{
  margin-top: 10px;
  border-radius: var(--radius);
  border: 1px solid rgba(46,163,242,0.35);
  background: rgba(46,163,242,0.12);
  padding: 20px 16px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: space-around;
}

.calcResult div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.calcResult div strong {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(234,242,251,0.55);
}

.calcResult div span.calcVal,
.k-window-content .calcVal,
.modalBody .calcVal {
  font-size: 32px !important;
  font-weight: 700 !important;
  letter-spacing: -0.5px;
  color: #2EA3F2 !important;
}

.calcNote { margin-top: 10px; }

/* ----------------------------
   Kendo Window theming
---------------------------- */
.k-window-titlebar{
  background: #0D1117 !important;
  border-bottom: 1px solid rgba(255,255,255,0.14) !important;
  color: var(--text) !important;
}

.k-window-content{
  background: #161B22 !important;
  color: var(--text) !important;
}

.k-overlay{
  background: rgba(0,0,0,0.58) !important;
}

.k-window{
  border: 2px solid var(--borderModal) !important;
  box-shadow: var(--shadowModal) !important;
  border-radius: 14px !important;
  overflow: hidden !important;
}

/* ----------------------------
   Fallback modal
---------------------------- */
.modalOverlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.58);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modalPanel {
  background: #161B22;
  border: 2px solid var(--borderModal);
  border-radius: 14px;
  box-shadow: var(--shadowModal);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.modalHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #0D1117;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px 14px 0 0;
}

.modalTitle {
  font-weight: 650;
  color: var(--text);
}

.modalX {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.modalX:hover { color: var(--text); }

.modalBody {
  padding: 20px;
  overflow-y: auto;
}

/* ============================================================
   MOBILE RESPONSIVE STYLES
   ============================================================ */

@media (max-width: 768px) {

  /* Header */
  .topbar .container {
    padding-top: 10px;
    padding-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .brand {
    min-width: 0;
    flex: 1;
  }

  .brandLogo { height: 34px; }
  .brandName { font-size: 13px; }
  .brandTag { font-size: 11px; }

  /* Hide nav text links, keep Book a Demo only */
  .nav a:not(.btn) { display: none; }
  .nav { gap: 8px; }
  .nav .btn { padding: 8px 12px; font-size: 12px; }

  /* Also hide the Other Services button on mobile */
  .nav button:not(.btn) { display: none; }

  /* Hero */
  .heroEnterprise {
    padding: 24px 0 32px;
    margin-top: 62px;
  }

  .heroGridEnterprise {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .heroH1 {
    font-size: clamp(26px, 7vw, 36px);
    margin: 8px 0 10px;
  }

  .heroLead { font-size: 15px; }

  .ctaRow {
    flex-direction: column;
    align-items: stretch;
  }

  .ctaRow .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* Sections */
  .section { padding: 36px 0; }

  /* Grids → single column */
  .cards3 { grid-template-columns: 1fr; gap: 12px; }
  .useGrid { grid-template-columns: 1fr; gap: 12px; }
  .roiGrid { grid-template-columns: 1fr; gap: 12px; }
  .steps  { grid-template-columns: 1fr; gap: 12px; }
  .contactGrid { grid-template-columns: 1fr; gap: 24px; }
  .row2 { grid-template-columns: 1fr; }
  .calcGrid { grid-template-columns: 1fr; }

  /* Callout */
  .callout { flex-direction: column; }
  .calloutRight { flex-direction: column; width: 100%; }
  .calloutRight .btn { width: 100%; justify-content: center; }

  /* ROI result */
  .calcResult {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  /* System panel actions */
  .systemActions { flex-direction: column; }
  .systemActions .btn { width: 100%; justify-content: center; }

  /* Modal CTA */
  .modalCTA { flex-direction: column; align-items: stretch; }
  .modalCTA .btn,
  .modalCTA a.btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* Kendo Window — fit on screen */
  .k-window {
    width: 94vw !important;
    max-width: 94vw !important;
    left: 3vw !important;
    right: 3vw !important;
    top: 20px !important;
    transform: none !important;
  }

  .k-window-content {
    max-height: 80vh !important;
    overflow-y: auto !important;
  }

  /* Fallback modal */
  .modalOverlay {
    align-items: flex-start !important;
    padding-top: 16px;
  }

  .modalPanel {
    width: 94vw !important;
    max-width: 94vw !important;
    max-height: 88vh !important;
  }

  /* Footer */
  .footer .row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* Small phones */
@media (max-width: 480px) {

  .microProofEnterprise { grid-template-columns: 1fr; }
  .heroH1 { font-size: 24px; }
  .brandTag { display: none; }
  h2 { font-size: 22px; }
  .btn { padding: 11px 14px; font-size: 13px; }
}