/* ==========================================================================
   Quadzero — home page
   "What we do" feature boxes: soft blue gradient cards with a title, a short
   line and a small UI mockup drawn in HTML/CSS (styled after techmonk.io).
   ========================================================================== */

.features{ padding:clamp(56px, 7vw, 96px) 0; }
.features-head{ text-align:center; max-width:780px; margin:0 auto clamp(32px, 4vw, 48px); }
.features-head .eyebrow{ letter-spacing:.3em; }

.fgrid{
  display:grid; gap:24px;
  grid-template-columns:repeat(3, minmax(0, 1fr));
}

.fbox{
  position:relative; display:block; overflow:hidden;
  height:420px; border-radius:20px;
  background:linear-gradient(126deg, var(--qz-blue-100) 0%, var(--qz-blue-100) 40%, var(--qz-blue-300) 100%);
  color:var(--body);
  transition:transform .2s ease, box-shadow .2s ease;
}
.fbox:hover{ transform:translateY(-4px); box-shadow:var(--shadow-md); }
.fbox-text{ position:relative; z-index:1; padding:24px 24px 8px; }
.fbox h3{ font-size:1.25rem; margin-bottom:.5rem; transition:color .18s ease; }
.fbox:hover h3{ color:var(--blue); }
.fbox p{ font-size:.9rem; line-height:1.55; margin:0; max-width:300px; }

/* mockup stage: anchored to the bottom of the card, allowed to bleed off */
.mock{
  position:absolute; left:24px; right:24px; bottom:-14px; height:240px;
  font-family:var(--font-head); font-size:.72rem; color:var(--ink);
}
.panel{
  background:var(--white); border-radius:14px;
  box-shadow:0 10px 30px rgba(11,29,42,.10);
}
.line{ height:7px; border-radius:4px; background:var(--qz-gray-200); }
.line.short{ width:45%; } .line.mid{ width:70%; }
.chip{
  display:inline-flex; align-items:center; gap:5px;
  padding:4px 9px; border-radius:999px; font-weight:600; font-size:.66rem;
  background:var(--qz-blue-100); color:var(--blue);
}
.chip.ok{ background:#E3F6EE; color:#147A51; }
.chip.run{ background:#FFF4DE; color:#9A6200; }
.chip.dark{ background:var(--navy); color:var(--white); }
.dot{ width:8px; height:8px; border-radius:50%; background:currentColor; flex:none; }
.badge{
  position:absolute; display:grid; place-items:center;
  width:40px; height:40px; border-radius:50%;
  background:var(--blue); color:var(--white); font-weight:700; font-size:.8rem;
  box-shadow:0 8px 18px rgba(21,118,163,.35);
}

/* 1 — custom software: dashboard */
.m-dash{ position:absolute; inset:24px 10px 0 30px; display:grid; grid-template-columns:70px 1fr; overflow:hidden; }
.m-dash .side{ background:var(--qz-navy); padding:14px 10px; display:grid; gap:9px; align-content:start; border-radius:14px 0 0 0; }
.m-dash .side .line{ background:rgba(255,255,255,.18); }
.m-dash .side .line:first-child{ background:var(--brand); }
.m-dash .body{ padding:14px; display:grid; gap:10px; align-content:start; }
.kpis{ display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.kpi{ border:1px solid var(--line); border-radius:9px; padding:7px 8px; }
.kpi b{ display:block; font-size:.9rem; }
.kpi span{ color:var(--muted); font-size:.6rem; }
.bars{ display:flex; align-items:flex-end; gap:6px; height:70px; padding-top:4px; }
.bars i{ flex:1; border-radius:4px 4px 0 0; background:var(--qz-blue-200); }
.bars i:nth-child(odd){ background:var(--brand); }
.m-1 .badge{ top:6px; right:-4px; }

/* 2 — web: browser window */
.m-web{ position:absolute; inset:20px 0 0 14px; overflow:hidden; }
.m-web .bar{ display:flex; align-items:center; gap:5px; padding:9px 12px; border-bottom:1px solid var(--line); }
.m-web .bar i{ width:8px; height:8px; border-radius:50%; background:var(--qz-gray-300); }
.m-web .url{ margin-left:10px; flex:1; background:var(--qz-gray-100); border-radius:6px; padding:3px 9px; color:var(--muted); font-size:.62rem; }
.m-web .page{ padding:16px; display:grid; gap:9px; }
.m-web .hero-line{ height:12px; width:80%; border-radius:5px; background:var(--ink); opacity:.85; }
.m-web .cta-row{ display:flex; gap:8px; margin-top:4px; }
.m-web .btnm{ padding:6px 12px; border-radius:7px; font-weight:600; font-size:.62rem; background:var(--blue); color:var(--white); }
.m-web .btnm.ghost{ background:var(--white); color:var(--ink); border:1px solid var(--line); }
.m-web .tiles{ display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-top:6px; }
.m-web .tiles i{ height:46px; border-radius:8px; background:var(--qz-blue-100); }
.m-2 .score{ position:absolute; right:-6px; top:0; padding:8px 12px; display:flex; align-items:center; gap:8px; }
.m-2 .score b{ font-size:1rem; color:#147A51; }

/* 3 & 4 — phones */
.phone{
  position:absolute; bottom:-30px; width:150px; height:250px;
  border-radius:26px; border:6px solid var(--qz-navy); background:var(--white);
  overflow:hidden; box-shadow:0 14px 30px rgba(11,29,42,.18);
}
.phone .scr{ padding:22px 10px 10px; display:grid; gap:7px; }
.m-ios .phone{ left:50%; transform:translateX(-50%); }
.m-ios .phone::before{
  content:""; position:absolute; top:6px; left:50%; transform:translateX(-50%);
  width:46px; height:12px; border-radius:8px; background:var(--qz-navy);
}
.m-ios .title{ font-size:.95rem; font-weight:700; }
.row{ display:flex; align-items:center; gap:7px; padding:6px 7px; border-radius:9px; background:var(--qz-gray-50); }
.row .ic{ width:18px; height:18px; border-radius:6px; background:var(--brand); flex:none; }
.row .ic.g{ background:var(--qz-gray-400); }
.row .line{ flex:1; }
.m-ios .toast{ position:absolute; left:-6px; top:-14px; padding:8px 11px; display:flex; align-items:center; gap:7px; font-weight:600; }
.m-ios .toast .dot{ color:var(--brand); }
.m-ios .tf{ position:absolute; right:0; top:110px; }

.m-and .phone{ left:20px; border-radius:20px; }
.m-and .appbar{ background:var(--blue); color:var(--white); font-weight:700; padding:16px 10px 9px; font-size:.75rem; }
.m-and .scr{ padding-top:10px; }
.m-and .card-m{ border:1px solid var(--line); border-radius:10px; padding:8px; display:grid; gap:6px; }
.m-and .fab{
  position:absolute; right:10px; bottom:38px; width:34px; height:34px; border-radius:11px;
  background:var(--accent); color:var(--ink); display:grid; place-items:center; font-size:1.1rem; font-weight:700;
}
.m-and .play{ position:absolute; right:0; top:40px; padding:10px 12px; display:grid; gap:6px; width:150px; }
.m-and .play b{ font-size:.75rem; }
.m-and .meter{ height:6px; border-radius:3px; background:var(--qz-gray-100); overflow:hidden; }
.m-and .meter i{ display:block; height:100%; width:78%; background:#1E9E6A; }

/* 5 — cloud & devops: pipeline */
.m-ops .pipe{ position:absolute; inset:18px 0 auto 0; padding:14px; display:grid; gap:10px; }
.m-ops .pipe-head{ display:flex; justify-content:space-between; align-items:center; font-weight:700; font-size:.78rem; }
.stage{ display:flex; align-items:center; gap:10px; padding:8px 10px; border:1px solid var(--line); border-radius:10px; }
.stage b{ flex:1; font-size:.72rem; }
.stage .time{ color:var(--muted); font-size:.62rem; }
.m-ops .nodes{ position:absolute; right:-6px; top:-4px; padding:10px 12px; display:flex; gap:6px; align-items:center; }
.m-ops .nodes i{ width:14px; height:14px; border-radius:4px; background:var(--brand); }
.m-ops .nodes i:nth-child(3n){ background:var(--qz-blue-200); }

/* 6 — UI/UX: design system */
.m-ux .sheet{ position:absolute; inset:22px 10px 0 10px; padding:14px; display:grid; gap:12px; align-content:start; }
.swatches{ display:flex; gap:7px; }
.swatches i{ width:30px; height:30px; border-radius:9px; }
.typo{ display:flex; align-items:baseline; gap:10px; }
.typo b{ font-size:1.6rem; font-weight:900; letter-spacing:-.03em; }
.typo span{ color:var(--muted); font-size:.64rem; }
.comps{ display:flex; flex-wrap:wrap; gap:7px; }
.comps .btnm{ padding:6px 12px; border-radius:8px; font-weight:600; font-size:.64rem; background:var(--blue); color:var(--white); }
.comps .btnm.ghost{ background:var(--white); color:var(--blue); border:1px solid var(--qz-blue-200); }
.toggle{ width:32px; height:18px; border-radius:9px; background:var(--brand); position:relative; }
.toggle::after{ content:""; position:absolute; right:2px; top:2px; width:14px; height:14px; border-radius:50%; background:var(--white); }
.m-ux .cursor{
  position:absolute; right:40px; top:96px; width:0; height:0;
  border-left:9px solid var(--ink); border-top:6px solid transparent; border-bottom:6px solid transparent;
  transform:rotate(-30deg);
}
.m-ux .cursor-tag{ position:absolute; right:-4px; top:110px; }

@media (max-width:1000px){
  .fgrid{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
}
@media (max-width:640px){
  .fgrid{ grid-template-columns:1fr; }
  .fbox{ height:400px; }
}
