/* AnyDataFlow — site styles */
:root {
  --navy: #0f172a;
  --ink: #0f172a;
  --text: #1e293b;
  --muted: #475569;
  --soft: #64748b;
  --blue: #2563eb;
  --blue-hover: #1d4ed8;
  --blue-bright: #3b82f6;
  --blue-tint: #dbeafe;
  --panel: #f8fafc;
  --line: #e2e8f0;
  --chip: #e8edf4;
  --white: #ffffff;
  --radius: 10px;
  --wrap: 1200px;
  --head: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --body: "Wix Madefor Text", "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--text); font: 16px/1.6 var(--body); }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
ul { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 500 15px/1.2 var(--body); text-decoration: none; border-radius: 6px; padding: 12px 22px; border: 1px solid var(--blue); cursor: pointer; transition: background .15s, color .15s, border-color .15s; white-space: nowrap; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.btn-outline { background: transparent; color: var(--blue); }
.btn-outline:hover { background: var(--blue-tint); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-block { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo img { height: 34px; width: auto; }
.nav { display: flex; gap: 44px; margin: 0 auto; }
.nav a { color: var(--blue); font-weight: 600; font-size: 15px; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.menu-toggle svg { width: 26px; height: 26px; }

/* Sections */
section { padding: 96px 0; }
.eyebrow { color: var(--blue); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; }
.h-xl { font-size: clamp(2.3rem, 4.5vw, 4rem); line-height: 1.03; font-weight: 700; }
.h-lg { font-size: clamp(2.1rem, 4.6vw, 4rem); line-height: 1.05; font-weight: 700; }
.h-md { font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.15; font-weight: 700; }
.center { text-align: center; }
.lead { color: var(--muted); font-size: 17px; max-width: 640px; }
.center .lead { margin: 16px auto 0; }

/* Hero */
.hero { padding: 64px 0 88px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero-art { aspect-ratio: 447 / 205; overflow: hidden; border-radius: var(--radius); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-copy { max-width: 520px; margin-top: 40px; }
.hero-copy p { color: var(--text); font-size: 17px; }
.hero-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-top: 32px; }

/* Problem cards */
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin-top: 56px; }
.card { background: var(--panel); border: 1px solid #cbd5e1; border-radius: var(--radius); padding: 32px; }
.card .icon { width: 40px; height: 38px; object-fit: contain; margin-bottom: 20px; }
.card h3 { font-size: clamp(1.4rem, 2.3vw, 1.95rem); line-height: 1.15; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 15px; }

/* Foundation */
.foundation { background: #f1f5f9; }
.foundation .diagram { max-width: 820px; margin: 48px auto 0; border-radius: var(--radius); overflow: hidden; }

/* Solutions */
.solutions-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.solution { border: 1px solid #94a3b8; border-radius: var(--radius); padding: 16px 16px 20px; display: flex; flex-direction: column; }
.solution img { width: 100%; aspect-ratio: 187 / 198; object-fit: cover; border-radius: 8px; }
.solution h3 { font-size: clamp(1.25rem, 1.8vw, 1.6rem); line-height: 1.1; margin: 18px 0 10px; }
.solution p { color: var(--muted); font-size: 14.5px; margin-bottom: 22px; }
.solution .btn { margin-top: auto; }

/* Process */
.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; margin-top: 56px; }
.step .num { font-family: var(--head); color: var(--blue); font-size: 3rem; font-weight: 600; line-height: 1; }
.step h3 { font: 400 1.35rem/1.2 var(--body); margin: 14px 0 14px; color: var(--ink); letter-spacing: 0; }
.step ul { padding-left: 18px; color: var(--text); font-size: 14px; }
.step li { margin-bottom: 4px; }

/* Before / After */
.contrast { background: var(--navy); color: #fff; }
.contrast-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.contrast h2 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.05; font-weight: 700; margin-bottom: 26px; }
.contrast .before h2 { color: #64748b; }
.contrast .before p, .contrast .before li { color: #64748b; }
.contrast .after h2 { color: var(--blue-bright); }
.contrast .after p, .contrast .after li { color: #60a5fa; }
.contrast p { font-size: 16px; margin-bottom: 22px; max-width: 520px; }
.contrast ul { padding-left: 20px; font-size: 15px; }

/* Outcomes */
.outcomes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 48px; margin-top: 56px; }
.outcome img { width: 39px; height: 38px; object-fit: contain; margin-bottom: 20px; }
.outcome h3 { font: 400 1.2rem/1.3 var(--body); color: var(--ink); letter-spacing: 0; margin-bottom: 8px; }
.outcome p { color: var(--muted); font-size: 14.5px; }

/* Stack marquee */
.stack { padding: 40px 0 96px; overflow: hidden; }
.stack h2 { font-size: clamp(1.3rem, 2.4vw, 1.9rem); font-weight: 700; }
.marquee { margin-top: 40px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee-track span { font: 700 clamp(1.8rem, 3.6vw, 3rem)/1 var(--head); color: var(--ink); white-space: nowrap; padding-right: .5em; letter-spacing: -0.01em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Security */
.security-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: center; }
.security-grid p { color: var(--muted); margin-top: 26px; max-width: 460px; }
.chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.chip { background: var(--chip); border-radius: 999px; text-align: center; padding: 18px 16px; font-size: 14px; color: var(--ink); }

/* Case studies */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 64px; }
.case h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.05; margin-bottom: 22px; }
.case p { color: var(--text); font-size: 14.5px; margin-bottom: 14px; }
.case .btn { margin-top: 10px; }

/* CTA */
.cta { padding: 64px 0 112px; }
.cta .btn { margin-top: 32px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 32px; width: auto; margin-bottom: 14px; }
.footer-brand p { color: var(--text); max-width: 240px; }
.site-footer h4 { color: var(--blue); font: 700 15px/1.2 var(--head); letter-spacing: .02em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: disc; padding-left: 18px; font-weight: 600; color: var(--ink); }
.site-footer li { margin-bottom: 4px; }
.site-footer address { font-style: normal; font-weight: 600; color: var(--ink); }
.site-footer address a { color: var(--ink); text-decoration: none; }
.site-footer address a:hover { color: var(--blue); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); margin-top: 40px; padding-top: 22px; color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.social { display: flex; gap: 12px; }
.social a { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); }
.social a:hover { background: var(--blue-hover); }
.social svg { width: 14px; height: 14px; fill: #fff; }

/* Inquiry page */
.page-intro { padding: 48px 0 24px; }
.page-intro .kicker { font: 700 1.2rem/1.3 var(--head); color: var(--ink); }
.page-intro h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-top: 28px; }
.services { padding: 32px 0 64px; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.service img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }
.service .idx { margin: 22px 0 8px; font-size: 14px; color: var(--ink); }
.service h2 { font-size: 1.45rem; line-height: 1.25; margin-bottom: 14px; }
.service .body { color: var(--ink); font-size: 15.5px; }
.service .body p { margin-bottom: 8px; }
.service .body.clamped { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.more { background: none; border: 0; padding: 0; margin-top: 6px; color: var(--ink); text-decoration: underline; font: inherit; font-size: 14.5px; cursor: pointer; }

.inquiry { padding: 32px 0 96px; }
.inquiry .wrap { max-width: 760px; }
.inquiry h2 { font-size: 1.75rem; margin-bottom: 18px; }
.inquiry .intro { color: var(--ink); font-size: 15px; max-width: 480px; margin-bottom: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; font: 15px/1.4 var(--body); color: var(--ink); background: #fff; border: 1px solid #94a3b8; border-radius: 0; padding: 11px 12px; min-height: 46px; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.phone-row { display: grid; grid-template-columns: 130px 1fr; }
.phone-row select { border-right: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { grid-column: 1 / -1; padding: 14px 16px; border-radius: 6px; font-size: 15px; display: none; }
.form-status.ok { display: block; background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.form-status.err { display: block; background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.inquiry .btn[disabled] { opacity: .6; cursor: wait; }

/* Blog */
.blog-head { padding: 56px 0 8px; }
.blog-head h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
.blog-head p { color: var(--muted); margin-top: 12px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 40px 0 96px; }
.post-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; background: #fff; transition: box-shadow .2s, transform .2s; }
.post-card:hover { box-shadow: 0 10px 30px rgba(15, 23, 42, .08); transform: translateY(-2px); }
.post-card .thumb { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #dbeafe, #e0f2fe); display: grid; place-items: center; overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .thumb span { font: 700 1.1rem/1.2 var(--head); color: #1e3a8a; padding: 20px; text-align: center; }
.post-card .content { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card .meta { color: var(--soft); font-size: 13px; }
.post-card h2 { font-size: 1.2rem; line-height: 1.3; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a::after { content: ""; position: absolute; inset: 0; }
.post-card { position: relative; }
.post-card p { color: var(--muted); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.post { padding: 48px 0 96px; }
.post .wrap { max-width: 760px; }
.crumbs { font-size: 14px; margin-bottom: 28px; }
.crumbs a { text-decoration: none; }
.post h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.12; }
.post .meta { color: var(--soft); font-size: 14px; margin: 14px 0 36px; }
.prose { font-size: 17.5px; line-height: 1.75; color: var(--text); }
.prose p { margin: 0 0 1.2em; }
.prose h2, .prose h3, .prose h4 { margin: 1.6em 0 .6em; line-height: 1.25; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.prose li { margin-bottom: .4em; }
.prose figure { margin: 2em 0; text-align: center; }
.prose figure img, .prose figure video { margin: 0 auto; border-radius: 8px; }
.prose figcaption { color: var(--soft); font-size: 14px; margin-top: 8px; }
.prose pre { background: #0f172a; color: #e2e8f0; padding: 18px 20px; border-radius: 8px; overflow-x: auto; font-size: 14px; line-height: 1.55; margin: 0 0 1.4em; }
.prose code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--blue); color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose .embed { margin: 2em 0; }
.post-foot { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.related { margin-top: 56px; }
.related h2 { font-size: 1.4rem; margin-bottom: 18px; }
.related ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.related a { text-decoration: none; font-weight: 600; }

/* 404 */
.notfound { padding: 120px 0; text-align: center; }
.notfound p { color: var(--muted); margin: 16px 0 28px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 1024px) {
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .site-header .header-cta { display: none; }
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; padding: 8px 24px 20px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; font-size: 16px; }
  .nav .btn { display: inline-flex; margin-top: 10px; color: #fff; text-decoration: none; }
  .hero-grid, .contrast-grid, .security-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 24px; }
  .hero-art { order: -1; aspect-ratio: 2.9 / 1; }
  .hero-copy { margin-top: 8px; }
  .cards-2, .cases-grid, .services-grid { grid-template-columns: 1fr; }
  .outcomes-grid { grid-template-columns: repeat(2, 1fr); }
  section { padding: 72px 0; }
}
@media (min-width: 861px) { .nav .btn { display: none; } }
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .solutions-grid, .process-grid, .outcomes-grid, .footer-grid, .post-grid, .form-grid { grid-template-columns: 1fr; }
  .chips { grid-template-columns: 1fr 1fr; gap: 12px; }
  .chip { padding: 14px 10px; font-size: 13px; }
  .phone-row { grid-template-columns: 110px 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  section { padding: 56px 0; }
}
