/* Nowstech — one-page site styles */
:root{
  --ink:#0f0f12;
  --ink-2:#2a2b31;
  --navy:#101C2C;
  --text:#3d3e45;
  --muted:#55565e;
  --muted-2:#5c5d65;
  --subtle:#7a7b83;
  --faint:#8a8b93;
  --line:#ececf0;
  --line-2:#e4e4e9;
  --line-3:#e8e8ed;
  --surface:#f5f5f7;
  --hover:#f0f0f3;
  --brand:#4A7FB5;
  --brand-ink:#3E6E9F;
  --brand-ink-2:#2F5F8F;
  --brand-soft:#EAF1F8;
  --brand-light:#7FB0E6;
  --wrap:max(min(1200px,80vw),min(100%,720px));
  --gutter:24px;
  --nav-h:64px;
  --mono:'Geist Mono',ui-monospace,SFMono-Regular,Menlo,monospace;
  --sans:'Geist',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;background:#fff;color:var(--ink);font-family:var(--sans);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
img{max-width:100%;height:auto}
a{color:var(--ink);text-decoration:none}
a:hover{color:var(--brand)}
button{font-family:inherit}
:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
section[id]{scroll-margin-top:var(--nav-h)}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

.wrap{max-width:var(--wrap);margin:0 auto;padding-left:var(--gutter);padding-right:var(--gutter)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link{position:absolute;left:16px;top:-48px;z-index:100;padding:10px 16px;border-radius:999px;background:var(--ink);color:#fff;font-size:14px;transition:top .15s}
.skip-link:focus{top:12px;color:#fff}

/* ---------- Shared type ---------- */
.eyebrow{font-family:var(--mono);font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--subtle)}
.h2{margin:16px 0 0;font-size:clamp(32px,4.4vw,52px);line-height:1.08;letter-spacing:-.035em;font-weight:600;text-wrap:balance}
.h2 .dim{color:var(--faint)}
.lead{margin:0;font-size:18px;line-height:1.6;color:var(--muted);text-wrap:pretty}
.split{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:48px;align-items:end}
.tag{font-family:var(--mono);font-size:12px;color:var(--brand-ink);font-weight:600}

/* ---------- Buttons ---------- */
.btn{height:48px;padding:0 24px;border-radius:999px;font-size:15px;font-weight:500;display:inline-flex;align-items:center;white-space:nowrap;transition:background .15s,border-color .15s}
.btn-primary{background:var(--ink);color:#fff}
.btn-primary:hover{background:var(--ink-2);color:#fff}
.btn-secondary{background:#fff;border:1px solid #e1e1e7;color:var(--ink)}
.btn-secondary:hover{border-color:#c9c9d1;color:var(--ink)}
.btn-row{margin-top:36px;display:flex;flex-wrap:wrap;justify-content:center;gap:12px}

/* ---------- Logo ---------- */
.logo{display:flex;align-items:center;gap:7px;color:var(--navy)}
.logo:hover{color:var(--navy)}
.logo-mark{width:30px;height:30px;border-radius:7px;background:var(--navy);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.logo-glyph{display:inline-flex;flex-direction:column;align-items:center;gap:.11em;font-size:20px;font-weight:600;line-height:.8;color:#fff}
.logo-line{display:flex;align-items:center}
.logo-line i{width:.48em;height:.08em;border-radius:.04em;background:var(--brand-light)}
.logo-line b{width:.21em;height:.21em;border-radius:50%;background:var(--brand-light);margin-left:-.03em}
.logo-word{font-size:25px;font-weight:500;letter-spacing:-.045em;line-height:1;color:var(--navy)}

/* ---------- Header ---------- */
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.82);-webkit-backdrop-filter:saturate(180%) blur(18px);backdrop-filter:saturate(180%) blur(18px);border-bottom:1px solid var(--line)}
.header-bar{height:var(--nav-h);display:flex;align-items:center;justify-content:space-between;gap:24px}
.nav-main{display:flex;align-items:center;gap:4px;font-size:15px}
.nav-main a{height:36px;padding:0 12px;border-radius:999px;display:flex;align-items:center;white-space:nowrap;color:var(--text);transition:background .15s,color .15s}
.nav-main a:hover{background:var(--hover);color:var(--ink)}
.nav-main a[aria-current="true"]{background:var(--hover);color:var(--ink);font-weight:500}
.header-actions{display:flex;align-items:center;gap:10px}
.btn-sm{height:36px;padding:0 16px;border-radius:999px;background:var(--ink);color:#fff;font-size:14px;font-weight:500;display:flex;align-items:center;white-space:nowrap}
.btn-sm:hover{background:var(--ink-2);color:#fff}
.menu-toggle{display:none;width:44px;height:44px;border-radius:999px;border:1px solid var(--line-2);background:#fff;place-items:center;cursor:pointer;color:var(--ink);padding:0}
.menu-toggle svg{width:18px;height:18px}
.menu-toggle .i-close{display:none}
.menu-toggle[aria-expanded="true"] .i-open{display:none}
.menu-toggle[aria-expanded="true"] .i-close{display:block}
.nav-mobile{display:none;flex-direction:column;padding:8px 24px 20px;font-size:17px;border-top:1px solid var(--line)}
.nav-mobile a{padding:12px 0;border-bottom:1px solid var(--hover)}
.nav-mobile a:last-child{border-bottom:0}
@media (max-width:1023px){
  .nav-main{display:none}
  .menu-toggle{display:grid}
  .nav-mobile.is-open{display:flex}
}

/* ---------- Hero ---------- */
.hero{position:relative;overflow:hidden;border-bottom:1px solid var(--line);background:linear-gradient(180deg,#F5F6F8 0%,#fff 85%)}
.hero-glow{position:absolute;left:50%;top:-220px;width:900px;height:520px;transform:translateX(-50%);background:radial-gradient(closest-side,rgba(248,246,242,.55),rgba(251,250,247,.3) 55%,transparent);filter:blur(30px);pointer-events:none}
.hero-canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.hero-inner{position:relative;padding-top:96px;padding-bottom:72px}
.hero-head{display:flex;flex-direction:column;align-items:center;text-align:center}
.pill{display:inline-flex;align-items:center;gap:10px;padding:6px 14px 6px 6px;border:1px solid #e6e6eb;border-radius:999px;background:rgba(255,255,255,.9);font-size:13px;color:var(--text)}
.pill-badge{padding:3px 9px;border-radius:999px;background:var(--brand-soft);color:var(--brand-ink);font-family:var(--mono);font-size:11px;font-weight:600}
.pill-arrow{color:var(--faint)}
.hero h1{margin:28px 0 0;max-width:980px;font-size:clamp(40px,5.4vw,76px);line-height:1.03;letter-spacing:-.045em;font-weight:600;text-wrap:balance}
.hero-sub{margin:24px 0 0;max-width:640px;font-size:clamp(16px,1.25vw,18px);line-height:1.6;color:var(--muted-2);text-wrap:pretty}

.nowline{position:relative;display:flex;align-items:center;width:min(440px,70%);height:16px;margin:30px auto 0}
.nl-bar{height:3px;border-radius:2px;background:var(--brand);width:0;animation:nlgrow 14s cubic-bezier(.22,.8,.24,1) .4s infinite}
.nl-dot{flex:none;width:13px;height:13px;border-radius:50%;background:var(--brand);margin-left:-3px;animation:nlpulse 2.2s ease-out 2.4s infinite}
@keyframes nlgrow{0%{width:0}18%{width:calc(100% - 10px)}89%{width:calc(100% - 10px)}100%{width:0}}
@keyframes nlpulse{0%{box-shadow:0 0 0 0 rgba(74,127,181,.45)}70%,100%{box-shadow:0 0 0 12px rgba(74,127,181,0)}}
@media (prefers-reduced-motion:reduce){.nl-bar{animation:none;width:calc(100% - 10px)}.nl-dot{animation:none}}

.svcstrip{margin:80px 0 0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;border:1px solid var(--line-3);border-radius:20px;background:#eeeef2;overflow:hidden}
.svcstrip li{display:flex;min-width:0}
.svcstrip a{flex:1;padding:24px;display:flex;flex-direction:column;gap:12px;min-width:0;background:#fff;color:var(--ink);transition:background .15s}
.svcstrip a:hover{background:#fafafb;color:var(--ink)}
.svc-num{font-family:var(--mono);font-size:12px;color:var(--subtle)}
.svc-title{font-size:18px;font-weight:600;letter-spacing:-.02em}
.svc-text{font-size:14px;line-height:1.55;color:var(--muted-2)}
@media (max-width:1023px){.svcstrip{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:599px){.svcstrip{grid-template-columns:minmax(0,1fr)}}

/* ---------- AI ---------- */
.ai .wrap{padding-top:112px}
.cards{margin-top:56px;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:16px}
.card{border-radius:24px;background:var(--surface);padding:32px;display:flex;flex-direction:column;gap:12px;min-height:220px}
.card h3{margin:0;font-size:22px;font-weight:600;letter-spacing:-.025em}
.card p{margin:0;font-size:15px;line-height:1.6;color:var(--muted);text-wrap:pretty}

.process{margin-top:96px}
.process .split{gap:24px 48px}
.h2-sm{margin:0;font-size:clamp(30px,3.6vw,44px);line-height:1.1;letter-spacing:-.035em;font-weight:600;text-wrap:balance}
.h2-sm .dim{color:#6b6c74}
.process .lead{color:var(--text)}
.steps{list-style:none;margin:40px 0 0;padding:0;border:1px solid var(--line-2);border-radius:24px;overflow:hidden;background:#fff}
.steprow{display:grid;grid-template-columns:72px minmax(0,1fr) 260px;gap:24px;align-items:center;padding:28px 32px;border-top:1px solid var(--line)}
.steprow:first-child{border-top:0}
.stepnum{width:44px;height:44px;border-radius:999px;background:var(--brand-soft);color:var(--brand-ink-2);display:grid;place-items:center;font:600 14px/1 var(--mono)}
.stepmain{display:flex;flex-direction:column;gap:6px}
.steptitle{margin:0;font-size:22px;font-weight:600;letter-spacing:-.02em;color:var(--ink)}
.steptext{margin:0;font-size:17px;line-height:1.55;color:var(--text);max-width:560px}
.stepout{display:flex;flex-direction:column;gap:4px;margin:0;padding:14px 18px;border-radius:14px;background:var(--surface)}
.steplabel{font-size:13px;color:var(--muted-2)}
.stepval{margin:0;font-size:16px;font-weight:600;color:var(--ink)}
@media (max-width:860px){
  .steprow{grid-template-columns:44px minmax(0,1fr);gap:16px 20px;padding:24px 20px;align-items:start}
  .stepout{grid-column:2}
}

/* ---------- Services ---------- */
.services .wrap{padding-top:112px;padding-bottom:96px}
.services .h2{margin-top:0;max-width:820px}
.tablist{margin-top:48px;display:flex;flex-wrap:wrap;gap:8px}
.tab{height:40px;padding:0 18px;border-radius:999px;border:1px solid var(--line-2);background:#fff;color:var(--text);font-size:14px;font-weight:500;cursor:pointer;transition:background .15s,color .15s,border-color .15s}
.tab:hover{border-color:#c9c9d1}
.tab[aria-selected="true"]{background:var(--ink);border-color:var(--ink);color:#fff}
.tabbox{margin-top:24px;border-radius:28px;background:var(--surface);padding:clamp(28px,4vw,56px)}
.tabpanel{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.5fr);gap:40px;align-items:center}
.tabpanel[hidden]{display:none}
.tabpanel h3{margin:0;font-size:clamp(28px,3vw,38px);letter-spacing:-.03em;line-height:1.1;font-weight:600}
.tabpanel p{margin:18px 0 0;font-size:17px;line-height:1.6;color:var(--muted);text-wrap:pretty}
.bullets{margin:32px 0 0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 24px;font-size:15px}
.bullets li{display:flex;align-items:center;gap:10px}
.bullets li::before{content:"";flex:none;width:6px;height:6px;border-radius:50%;background:var(--brand)}
.tabpanel img{width:100%;height:auto;border-radius:20px;display:block;border:1px solid var(--line-2);background:#FDFDFD}
@media (max-width:900px){.tabpanel{grid-template-columns:minmax(0,1fr)}}
@media (max-width:420px){.bullets{grid-template-columns:minmax(0,1fr)}}

/* ---------- Enterprise integration ---------- */
.integration{border-top:1px solid var(--line)}
.integration-head{padding-top:112px;display:flex;flex-wrap:wrap;align-items:end;justify-content:space-between;gap:24px}
.integration-head > div{max-width:780px}
.rail-ctrl{display:flex;gap:8px}
.rail-btn{width:44px;height:44px;border-radius:50%;border:none;background:var(--hover);color:var(--ink);font-size:18px;cursor:pointer;transition:background .15s,opacity .15s}
.rail-btn:hover{background:#e6e6ea}
.rail-btn:disabled{opacity:.4;cursor:default}
.rail{--rail-pad:max(24px,calc((100vw - max(min(1200px,80vw),min(100vw,720px))) / 2 + 24px));margin:40px 0 0;list-style:none;display:flex;gap:20px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:4px var(--rail-pad) 112px;scroll-padding:0 var(--rail-pad)}
.rail::-webkit-scrollbar{display:none}
.rail > li{flex:0 0 min(340px,82vw);scroll-snap-align:start;display:flex}
.icard{flex:1;min-height:420px;border-radius:28px;background:var(--surface);padding:32px;display:flex;flex-direction:column;gap:16px}
.icard-num{font-family:var(--mono);font-size:12px;color:var(--subtle)}
.icard h3{margin:0;font-size:24px;line-height:1.15;letter-spacing:-.025em;font-weight:600}
.icard p{margin:0;font-size:15px;line-height:1.6;color:var(--muted);text-wrap:pretty}
.chips{margin:auto 0 0;padding:0;list-style:none;display:flex;flex-wrap:wrap;gap:6px}
.chips li{padding:5px 10px;border-radius:999px;background:#fff;border:1px solid #e6e6eb;font-family:var(--mono);font-size:12px;color:var(--text)}
.icard-dark{background:var(--ink);color:#fff}
.icard-dark .icard-num{color:#a3a4ad}
.icard-dark p{color:#c4c5cc}
.icard-dark .chips li{background:#1d1e23;border-color:#2e2f36;color:#e2e3e8}

/* ---------- About / approach ---------- */
.approach{background:var(--surface)}
.approach .wrap{padding-top:112px;padding-bottom:112px}
.approach .h2{margin-top:0}
.stats{margin:64px 0 0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:16px}
.stat,.value{background:#fff;border-radius:24px;padding:32px;display:flex;flex-direction:column;gap:12px}
.stat dt{order:2;font-size:15px;color:var(--muted)}
.stat dd{order:1;margin:0;font-size:clamp(44px,5vw,60px);font-weight:600;letter-spacing:-.05em;line-height:1}
.values{margin-top:16px;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:16px}
.value h3{margin:0;font-size:20px;font-weight:600;letter-spacing:-.02em}
.value p{margin:0;font-size:15px;line-height:1.6;color:var(--muted)}

/* ---------- Customers ---------- */
.customers{border-top:1px solid var(--line)}
.customers .wrap{padding-top:96px;padding-bottom:32px;display:flex;flex-direction:column;align-items:center;gap:40px}
.customers h2{margin:0;text-align:center;font-size:clamp(28px,3.4vw,40px);line-height:1.1;letter-spacing:-.035em;font-weight:600;text-wrap:balance}
.logos{width:100%;margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:var(--line-3);border:1px solid var(--line-3);border-radius:20px;overflow:hidden}
.logos li{height:120px;display:grid;place-items:center;padding:24px 28px;background:#fff;transition:background .25s}
.logos li:hover{background:#fafbfc}
.logos img{max-width:100%;width:auto;object-fit:contain;filter:grayscale(1) contrast(1.15);opacity:.85;transition:filter .25s,opacity .25s}
.logos li:hover img{filter:grayscale(0);opacity:1}
@media (max-width:759px){.logos{grid-template-columns:repeat(2,minmax(0,1fr))}.logos li{height:100px;padding:20px}}

/* ---------- Contact ---------- */
.contact{position:relative;overflow:hidden}
.contact-glow{position:absolute;left:50%;bottom:-260px;width:900px;height:520px;transform:translateX(-50%);background:radial-gradient(closest-side,rgba(16,28,44,.06),rgba(16,28,44,.025) 55%,transparent);filter:blur(30px);pointer-events:none}
.contact .wrap{position:relative;padding-top:128px;padding-bottom:128px;display:flex;flex-direction:column;align-items:center;text-align:center}
.contact h2{margin:0;font-size:clamp(40px,6vw,72px);line-height:1.02;letter-spacing:-.045em;font-weight:600}
.contact p{margin:20px 0 0;max-width:520px;font-size:19px;line-height:1.6;color:var(--muted)}

/* ---------- Footer ---------- */
.site-footer{border-top:1px solid var(--line);background:#fff}
.site-footer .wrap{padding-top:64px;padding-bottom:32px}
.footer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:40px}
.footer-brand{display:flex;flex-direction:column;gap:16px}
.footer-brand p{margin:0;font-size:14px;line-height:1.6;color:var(--muted-2);max-width:280px}
.footer-col{display:flex;flex-direction:column;gap:12px;font-size:14px;color:var(--text);line-height:1.55}
.footer-col h2{margin:0;font-family:var(--mono);font-size:12px;font-weight:400;color:var(--subtle);text-transform:uppercase;letter-spacing:.06em}
.footer-col ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:12px}
.footer-col a{color:var(--text)}
.footer-col a:hover{color:var(--brand)}
.footer-col address{font-style:normal;display:flex;flex-direction:column;gap:12px}
.footer-bottom{margin-top:56px;padding-top:24px;border-top:1px solid var(--line);display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px;font-size:13px;color:var(--subtle)}
.footer-bottom p{margin:0}
.social{display:flex;gap:20px}
.social a{color:var(--muted-2)}

/* ---------- Reveal on scroll (progressive enhancement) ---------- */
.js .reveal{opacity:0;transform:translateY(16px);transition:opacity .6s ease,transform .6s ease}
.js .reveal.is-visible{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){.js .reveal{opacity:1;transform:none;transition:none}}

/* ---------- 404 ---------- */
.notfound{min-height:calc(100vh - var(--nav-h));display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:64px 24px}
.notfound h1{margin:16px 0 0;font-size:clamp(40px,6vw,72px);line-height:1.02;letter-spacing:-.045em;font-weight:600}
.notfound p{margin:20px 0 0;max-width:480px;font-size:18px;line-height:1.6;color:var(--muted)}
