:root{
  --bg:#f2f6f3;
  --panel:#ffffff;
  --text:#0b1220;
  --muted:#6b7280;
  --muted-strong: #3b4a5a;
  --border:rgba(15, 23, 42, 0.10);
  --accent:#1f7a3a;
  --shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
  --radius:18px;
  --max: 1040px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font-family:var(--font);line-height:1.55}
a{color:inherit;text-decoration:none}
a:hover{text-decoration:underline}
.container{max-width:var(--max);margin:0 auto;padding:0 22px}

header{
  position:sticky; top:0; z-index:10;
  background:rgba(242,246,243,0.80);
  backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid var(--border);
}
.nav{
  display:flex;
  align-items:center;
  justify-content:flex-start;   /* menu hugs left */
  height:76px;
  gap:16px;                     /* space between logo and menu */
}
.brand{display:flex; align-items:center; gap:12px}
.brand img{height:120px; width:auto}
.menu{
  display:flex; align-items:center; gap:22px;
  font-weight:650; color:var(--muted);
}
.menu a{
  padding:8px 10px;
  border-radius:12px;
}
.menu a.active{
  color:var(--text);
  background:rgba(255,255,255,0.70);
  border:1px solid var(--border);
  text-decoration:none;
}

.menu{
  display:flex; align-items:center; gap:22px;
  font-weight:700;
  color:var(--muted);
  font-size:18px;               /* NEW */
}


.button{
  margin-left:auto;
  appearance:none;
  border:1px solid rgba(31,122,58,0.45);
  background:var(--accent);
  color:#fff;
  padding:10px 16px;
  border-radius:999px;
  font-weight:750;
  cursor:pointer;
  font-size:16px;               /* NEW */
  padding:12px 18px;            /* NEW (optional) */
  margin-left:auto;             /* IMPORTANT: keeps it right */
}
.button:hover{box-shadow:0 10px 24px rgba(31,122,58,0.18)}
.button:active{transform:translateY(1px)}

main{padding:58px 0 56px 0}

.hero{
  text-align:center;
  padding:26px 0 18px 0;
}
.kicker{
  display:inline-flex; align-items:center; gap:10px;
  padding:8px 12px;
  border:1px solid var(--border);
  border-radius:999px;
  color:var(--muted);
  background:rgba(255,255,255,0.65);
  font-weight:650;
}
.dot{width:8px;height:8px;border-radius:999px;background:var(--accent)}
h1{
  margin:18px auto 36px auto;
  max-width: 40ch;                  /* keep Products/Projects/Resources titles on one line */
  font-size: clamp(30px, 3.4vw, 40px);  /* slightly smaller */
  letter-spacing:-0.04em;
  line-height:1.08;
}
.lead{
  margin:0;
  max-width: 110ch;   /* try 90–110ch */
  text-align:left;
}
.hr{
  margin:34px 0;
  border-top:1px solid var(--border);
}

.section{padding:26px 0}
.section h2{
  margin:0 0 12px 0;
  font-size:18px;
  letter-spacing:-0.02em;
  color:var(--text);
}
.grid-3{display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap:14px}
.grid-2{display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:14px}

.card{
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px;
  background:rgba(255,255,255,0.80);
  box-shadow: 0 1px 0 rgba(2,6,23,0.03);
}
.card h3{margin:0 0 8px 0; font-size:16px; letter-spacing:-0.02em}
.card p{margin:0; color:var(--muted); font-size:16px;line-height: 1.6;}
.small{font-size:16px;color:var(--muted)}
.list{margin:10px 0 0 0; padding-left:18px; color:var(--muted); font-size: 16px; line-height: 1.6;}
.list li{margin:6px 0}

.footer{
  margin-top:22px;
  padding:22px 0 0 0;
  color:var(--muted);
  font-size:13.5px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

/* Modal */
.modal-backdrop{
  position:fixed; inset:0;
  background: rgba(2,6,23,0.50);
  display:none;
  align-items:center;
  justify-content:center;
  padding:20px;
  z-index:50;
}
.modal{
  width:min(560px, 100%);
  background:var(--panel);
  border-radius:18px;
  border:1px solid var(--border);
  box-shadow: var(--shadow);
  padding:18px;
}
.modal-head{display:flex; align-items:flex-start; justify-content:space-between; gap:12px}
.modal-title{margin:0; font-size:18px; letter-spacing:-0.02em}
.close{
  border:1px solid var(--border);
  background:#fff;
  width:36px;height:36px;border-radius:999px;cursor:pointer;
}
.close:hover{background:rgba(242,246,243,0.9)}
.modal-body{margin-top:10px; color:var(--muted)}
.kv{
  margin-top:14px;
  display:grid;
  grid-template-columns: 120px 1fr;
  gap:10px;
  align-items:start;
  padding:14px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(242,246,243,0.55);
}
.kv .k{font-weight:800;color:var(--text)}
.kv .v{color:var(--muted)}
.copyrow{display:flex; gap:10px; flex-wrap:wrap; margin-top:14px}
.copy{
  border:1px solid var(--border);
  background:#fff;
  padding:10px 12px;
  border-radius:12px;
  cursor:pointer;
  font-weight:750;
}
.copy:hover{background:rgba(242,246,243,0.85)}

@media (max-width: 900px){
  .menu{gap:10px; font-size:14px}
  .grid-3{grid-template-columns:1fr}
  .grid-2{grid-template-columns:1fr}
}


/* Home page hero title: tighter width for elegant two-line layout */
.page-home h1{
  max-width: 20ch;
}


/* --- Mobile header: bigger logo + tighter menu so Talk to us fits --- */
@media (max-width: 560px){

  /* Keep everything on-screen */
  html, body { overflow-x: hidden; }

  /* Slightly tighter container on mobile */
  .container { padding: 0 6px; }

  /* Navbar row */
  .nav{
    justify-content: space-between; /* keep logo left, button right */
    /*justify-content: flex-start;   /* stop spreading items across full width */
  }

  /* Push the menu as far left as possible */
  .menu{
    margin-right: auto;   /* this is the key line */
    margin-left: 0px;     /* small breathing room from logo */
  }
  /* ---- YOUR REQUEST: ONLY shrink these in mobile ---- */

  /* 1) Bigger logo (increase until you like it) */
   .brand img{
    height: 80px;
    width: auto;
    max-width: 190px;
    object-fit: contain;
  }

  /* Products / Projects / Resources */
   .menu{
    margin-right: auto;
    margin-left: 0;
    gap: 2px;
    font-size: 11.5px;
  }

  .menu a{ padding: 3px 3px; }

  .button{
    margin-left: 3px;
    padding: 3px 6px;
    font-size: 10.5px;
    white-space: nowrap;
  }
}


/* === Updates section === */
.section-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

/* Updates: one big card with stacked entries */
.updates-box{
  margin-top:12px;
  padding:0;                 /* rows control spacing */
}

.update-row{
  padding:18px;
}

.update-divider{
  border-top:1px solid var(--border);
}
.update-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}

.update-meta{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.pill{
  display:inline-flex;
  align-items:center;
  padding:5px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,0.65);
  color:var(--muted);
  font-weight:700;
  font-size:12px;
  line-height:1;
}

.update-title{
  margin:0 0 6px 0;
  font-size:16px;
  letter-spacing:-0.02em;
}

/*.update-desc {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
} */

.update-link{
  font-weight:800;
  text-decoration:none;
  white-space:nowrap;
}
.update-link:hover{text-decoration:underline}

@media (max-width: 900px){
  .updates-list{ grid-template-columns: 1fr; }
}

.update-body{display:block}
.update-line{margin:0 0 10px 0; display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.update-desc a, .update-title a{
  color: var(--accent);
  font-weight: normal;
  text-decoration: none;
}
.update-desc a:hover, .update-title a:hover{ text-decoration: underline; }

.update-meta{
  margin-bottom: 3px;
}

.updates-box .update-row .update-meta{
  margin-top: 18px;     /* space BEFORE each entry */
  margin-bottom: 3px;   /* tighten date-to-text spacing */
}

.updates-box .update-row .update-meta:first-child{
  margin-top: 0;        /* no extra space above the first entry */
}

.updates-box .update-row .update-desc{
  margin: 0;
  color: var(--muted-strong);         
  font-size: 16px;        /* match mercury style */
  line-height: 1.6;           /* prevent weird default paragraph margins */
}