/* ============================================================
   /work/ page styles — brand tokens and components copied from
   the homepage so the page reads as part of sagarsoftware.in
============================================================ */
:root {
  --brand: #1EC8A0; --brand-dark: #17A882; --brand-light: #E8FBF6;
  --ink: #111111; --ink-2: #444444; --ink-3: #888888;
  --surface: #F8F9FA; --border: #E8EAED; --white: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.05);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.1), 0 4px 12px rgba(0,0,0,.06);
  --nav-h: 100px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--white); color: var(--ink); font-family: 'Inter', sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; line-height: 1.6; }
h1,h2,h3,h4,h5,h6 { font-family: 'Space Grotesk', sans-serif; line-height: 1.2; color: var(--ink); }
.gt-brand { background: linear-gradient(135deg, #1EC8A0 0%, #17A882 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-wrap { background: rgba(255,255,255,0.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.btn-brand { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; background: var(--brand); color: var(--ink); font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: .9rem; border-radius: 10px; text-decoration: none; border: none; transition: all .25s ease; cursor: pointer; white-space: nowrap; }
.btn-brand:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(30,200,160,.35); }
.btn-s { display: inline-flex; align-items: center; gap: 8px; padding: 12px 25px; background: transparent; color: var(--ink); font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: .9rem; border-radius: 10px; border: 1.5px solid var(--border); text-decoration: none; transition: all .25s ease; cursor: pointer; white-space: nowrap; }
.btn-s:hover { border-color: var(--ink); background: rgba(17,17,17,.03); transform: translateY(-2px); }
.stag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; background: var(--brand-light); border: 1px solid rgba(30,200,160,.25); border-radius: 100px; font-size: .72rem; font-weight: 700; color: var(--brand-dark); letter-spacing: .08em; text-transform: uppercase; font-family: 'Space Grotesk', sans-serif; }
footer { background: var(--ink); }
.footer-link { color: rgba(255,255,255,.5); text-decoration: none; font-size: .875rem; transition: color .2s; }
.footer-link:hover { color: var(--brand); }
#mob-menu { display: none; }
#mob-menu.open { display: block; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--brand); border-radius: 3px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ── Hero ─────────────────────────────────────────────── */
.hero-blob { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--white); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-md); overflow: hidden; }
.stat { padding: 20px 22px; min-width: 0; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat-num { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-num em { font-style: normal; color: var(--brand); }
.stat-lbl { margin-top: 8px; font-size: .72rem; color: var(--ink-3); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--border); }
}

/* ── Filter bar ───────────────────────────────────────── */
.fbar { position: sticky; top: var(--nav-h); z-index: 40; background: rgba(255,255,255,.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.frow { display: flex; align-items: center; gap: 12px; min-width: 0; }
.flabel { font-family: 'JetBrains Mono', monospace; font-size: .66rem; letter-spacing: .12em; color: var(--ink-3); width: 70px; flex-shrink: 0; text-transform: uppercase; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; min-width: 0; }
.chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; padding: 7px 14px; border-radius: 100px; border: 1px solid var(--border); background: var(--white); font-size: .8rem; font-weight: 500; color: var(--ink-2); cursor: pointer; transition: all .2s; white-space: nowrap; font-family: 'Inter', sans-serif; }
.chip:hover { border-color: var(--brand); color: var(--ink); background: var(--brand-light); }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.chip .n { font-family: 'JetBrains Mono', monospace; font-size: .68rem; color: var(--ink-3); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip[aria-pressed="true"] .n { color: rgba(255,255,255,.6); }
.chip.stack[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--ink); font-weight: 600; }
.chip.stack[aria-pressed="true"] .n { color: rgba(17,17,17,.6); }
.chip[disabled] { opacity: .4; cursor: default; background: var(--white); border-color: var(--border); color: var(--ink-3); }
.search { position: relative; }
.search input { width: 100%; padding: 11px 44px 11px 40px; border: 1.5px solid var(--border); border-radius: 10px; font-size: .9rem; background: var(--white); outline: none; transition: border-color .2s, box-shadow .2s; }
.search input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(30,200,160,.15); }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--ink-3); pointer-events: none; }
.kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-family: 'JetBrains Mono', monospace; font-size: .7rem; color: var(--ink-3); border: 1px solid var(--border); border-radius: 5px; padding: 1px 7px; background: var(--surface); }
.stack-pulse { animation: ws-pulse 1.2s ease 1; border-radius: 100px; }
@keyframes ws-pulse { 30% { box-shadow: 0 0 0 5px rgba(30,200,160,.25); } }

/* ── Domain groups ────────────────────────────────────── */
.dgroup { padding-top: 40px; }
.dhead { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.dletter { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-family: 'JetBrains Mono', monospace; font-weight: 600; font-size: .8rem; color: var(--ink); background: color-mix(in srgb, var(--c) 18%, white); border: 1px solid color-mix(in srgb, var(--c) 40%, white); }
.dhead h2 { font-size: 1.35rem; font-weight: 700; margin: 0; }
.dhead .cnt { font-family: 'JetBrains Mono', monospace; font-size: .74rem; color: var(--ink-3); }
.dhead .rule { flex: 1; height: 1px; background: var(--border); min-width: 30px; }
.empty { text-align: center; padding: 72px 20px; border: 1.5px dashed var(--border); border-radius: 20px; margin-top: 36px; background: var(--surface); }

/* ── Floating CTA ─────────────────────────────────────── */
.fcta { position: fixed; left: 50%; bottom: 18px; transform: translate(-50%, 0); z-index: 60; display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 20px; background: var(--ink); color: #fff; border-radius: 100px; box-shadow: 0 16px 48px rgba(0,0,0,.25); max-width: calc(100vw - 32px); transition: opacity .3s, transform .3s; }
.fcta.hide { opacity: 0; transform: translate(-50%, 24px); pointer-events: none; }
.fcta-text { font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.fcta-text b { font-family: 'Space Grotesk', sans-serif; }
.fcta .btn-brand { padding: 10px 18px; border-radius: 100px; font-size: .84rem; }
.fcta-x { width: 30px; height: 30px; border-radius: 50%; border: 0; background: transparent; color: rgba(255,255,255,.55); cursor: pointer; display: grid; place-items: center; flex-shrink: 0; }
.fcta-x:hover { color: #fff; background: rgba(255,255,255,.1); }
@media (max-width: 640px) {
  .flabel, .kbd { display: none; }
  .fcta { left: 16px; right: 16px; transform: none; }
  .fcta.hide { transform: translateY(24px); }
  .fcta-text .long { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .fcta, .chip { transition: none; } }
