/* ========================================================================== 
   Infalytics LLC US — Premium enterprise SaaS design system
   Inspired by NexLedger's precise, evidence-first visual language without copying assets.
   ========================================================================== */
:root {
    --ink-950: #070912;
    --ink-900: #0b1020;
    --ink-850: #111827;
    --ink-800: #152033;
    --ink-700: #243149;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-050: #f8fafc;
    --white: #ffffff;
    --gold: #d4952a;
    --gold-strong: #f0aa32;
    --gold-soft: rgba(212,149,42,.14);
    --teal: #0ea5a4;
    --green: #16a34a;
    --red: #ef4444;
    --blue: #38bdf8;
    --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    --mono: 'SF Mono', 'Roboto Mono', Consolas, monospace;
    --container: 1200px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 32px;
    --shadow-soft: 0 20px 60px rgba(15, 23, 42, .12);
    --shadow-dark: 0 24px 80px rgba(0, 0, 0, .38);
    --header-h: 76px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--slate-700); background: var(--white); line-height: 1.65; -webkit-font-smoothing: antialiased; }
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgba(212,149,42,.5); outline-offset: 3px; }
img, svg { max-width: 100%; display: block; }
ul { list-style: none; }
h1, h2, h3 { color: var(--ink-950); line-height: 1.04; letter-spacing: -.025em; }
h1 { font: 800 clamp(4rem, 12vw, 9.6rem)/.82 var(--display); text-transform: uppercase; }
h2 { font-size: clamp(2rem, 4vw, 4rem); }
h3 { font-size: 1.2rem; }
p { max-width: 70ch; }
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.container-narrow { width: min(100% - 40px, 780px); }
.skip-link { position: absolute; top: -60px; left: 20px; z-index: 10000; background: var(--gold); color: var(--ink-950); padding: 10px 16px; border-radius: 999px; font-weight: 800; }
.skip-link:focus { top: 20px; }
.site-header { position: fixed; inset: 0 0 auto; height: var(--header-h); z-index: 200; background: rgba(7, 9, 18, .86); border-bottom: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(18px); transition: background .25s ease, box-shadow .25s ease; }
.site-header.is-scrolled { background: rgba(7, 9, 18, .96); box-shadow: 0 16px 48px rgba(0,0,0,.26); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); min-width: fit-content; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--gold); display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 7px; box-shadow: 0 0 0 7px rgba(212,149,42,.12); }
.brand-mark span { align-self: end; background: var(--ink-950); border-radius: 3px; }
.brand-mark span:nth-child(1) { height: 52%; }
.brand-mark span:nth-child(2) { height: 100%; }
.brand-mark span:nth-child(3) { height: 68%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: 1rem; letter-spacing: .02em; }
.brand-text em { color: #9fb3c8; font-size: .73rem; font-style: normal; letter-spacing: .08em; text-transform: uppercase; }
.primary-nav { margin-left: auto; }
.nav-list { display: flex; gap: 6px; align-items: center; }
.nav-link { display: inline-flex; padding: 10px 13px; border-radius: 999px; color: #b8c6d8; font-size: .92rem; font-weight: 700; transition: color .2s ease, background .2s ease; }
.nav-link:hover, .nav-link.is-active { color: var(--white); background: rgba(255,255,255,.08); }
.header-actions { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); border-radius: 12px; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--white); margin: 5px 0; border-radius: 999px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; font-weight: 800; border: 1px solid transparent; cursor: pointer; transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 9px 14px; font-size: .86rem; }
.btn-lg { padding: 15px 24px; font-size: 1rem; }
.btn-primary { background: var(--gold); color: var(--ink-950); box-shadow: 0 16px 32px rgba(212,149,42,.20); }
.btn-primary:hover { background: var(--gold-strong); }
.btn-ghost { color: #dbe7f3; border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.04); }
.btn-outline-light { color: var(--white); border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.06); }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-light { background: var(--slate-050); }
.section-dark { background: radial-gradient(circle at top right, rgba(212,149,42,.13), transparent 32rem), linear-gradient(180deg, var(--ink-950), var(--ink-900)); color: #b8c6d8; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.eyebrow { color: var(--gold); font-size: .82rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.eyebrow.dark { color: #9b6716; }
.section-heading { display: grid; gap: 16px; max-width: 820px; margin-bottom: 42px; }
.section-heading p:last-child { color: var(--slate-600); font-size: 1.08rem; }
.hero { min-height: 100vh; padding: calc(var(--header-h) + 58px) 0 72px; background: radial-gradient(circle at 72% 20%, rgba(212,149,42,.18), transparent 30rem), radial-gradient(circle at 12% 76%, rgba(14,165,164,.14), transparent 24rem), linear-gradient(135deg, #060811 0%, #0d1425 55%, #070912 100%); color: #c8d5e6; display: flex; align-items: center; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: var(--header-h) 0 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, black, transparent 82%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: 58px; align-items: center; }
.hero h1 { color: var(--white); max-width: 860px; }
.hero-lede { margin-top: 24px; font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: #b8c6d8; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 42px; }
.hero-proof div { border: 1px solid rgba(255,255,255,.11); border-radius: 18px; padding: 18px; background: rgba(255,255,255,.045); }
.hero-proof dt { color: var(--gold); font: 800 1.1rem var(--mono); }
.hero-proof dd { color: #e2e8f0; font-weight: 700; margin-top: 6px; font-size: .92rem; }
.intelligence-card { position: relative; border-radius: 30px; padding: 26px; background: linear-gradient(180deg, rgba(17,24,39,.94), rgba(7,9,18,.96)); border: 1px solid rgba(255,255,255,.12); box-shadow: var(--shadow-dark); overflow: hidden; }
.intelligence-card::after { content: ''; position: absolute; inset: auto -80px -140px auto; width: 260px; height: 260px; background: var(--gold); opacity: .12; border-radius: 50%; filter: blur(4px); }
.card-topline { display: flex; justify-content: space-between; gap: 18px; color: #9fb3c8; font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 22px; }
.card-topline strong { color: var(--gold); }
.flow-stack { display: grid; gap: 12px; }
.flow-row { border: 1px solid rgba(255,255,255,.10); border-radius: 16px; padding: 15px; background: rgba(255,255,255,.045); color: #dbe7f3; display: grid; grid-template-columns: 92px 1fr; gap: 14px; font-weight: 650; }
.flow-row.active { border-color: rgba(212,149,42,.55); background: rgba(212,149,42,.10); }
.flow-key { color: var(--gold); font-family: var(--mono); font-size: .78rem; text-transform: uppercase; }
.roi-panel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.roi-panel div { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.10); border-radius: 16px; padding: 14px; }
.roi-panel span { display: block; color: #9fb3c8; font-size: .76rem; }
.roi-panel strong { color: var(--white); display: block; margin-top: 4px; }
.split-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: 52px; align-items: start; }
.split-section.inverse { color: #b8c6d8; }
.statement-card { background: var(--white); border: 1px solid var(--slate-200); border-radius: 28px; padding: clamp(26px, 4vw, 42px); box-shadow: var(--shadow-soft); font-size: 1.22rem; color: var(--slate-700); }
.statement-card.dark { background: rgba(255,255,255,.06); color: #dbe7f3; border-color: rgba(255,255,255,.12); }
.feature-grid { display: grid; gap: 22px; }
.feature-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-card { background: var(--white); border: 1px solid var(--slate-200); border-radius: 24px; padding: 28px; box-shadow: 0 1px 1px rgba(15,23,42,.03); min-height: 225px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: rgba(212,149,42,.35); }
.feature-card h2, .feature-card h3 { margin-bottom: 12px; font-size: 1.45rem; }
.feature-card p { color: var(--slate-600); }
.feature-card a { display: inline-flex; margin-top: 22px; color: #915f12; font-weight: 900; }
.icon-badge { width: 48px; height: 48px; display: inline-grid; place-items: center; border-radius: 14px; background: var(--gold-soft); color: #8d5d13; font: 900 .9rem var(--mono); margin-bottom: 18px; }
.product-band { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.product-copy p:not(.eyebrow) { color: #b8c6d8; font-size: 1.1rem; margin: 20px 0 28px; }
.ledger-visual { border: 1px solid rgba(255,255,255,.12); border-radius: 28px; padding: 26px; background: rgba(255,255,255,.045); box-shadow: var(--shadow-dark); }
.ledger-node { min-height: 64px; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: rgba(255,255,255,.06); display: flex; align-items: center; padding: 0 20px; color: var(--white); font-weight: 900; }
.ledger-node.good { border-color: rgba(22,163,74,.45); }
.ledger-node.warn { border-color: rgba(212,149,42,.65); color: #ffd894; }
.ledger-node.proof { background: rgba(212,149,42,.12); }
.ledger-line { width: 2px; height: 28px; background: linear-gradient(var(--gold), transparent); margin-left: 32px; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps-grid article, .values-grid article, .architecture-card { background: var(--white); border: 1px solid var(--slate-200); border-radius: 24px; padding: 26px; }
.steps-grid span, .values-grid span, .architecture-card span { color: #9b6716; font: 900 .85rem var(--mono); }
.steps-grid h3, .values-grid h2, .architecture-card h2 { margin: 14px 0 10px; }
.cta-section { background: linear-gradient(180deg, var(--white), var(--slate-050)); }
.cta-card { border-radius: 34px; padding: clamp(34px, 7vw, 76px); background: radial-gradient(circle at 80% 30%, rgba(212,149,42,.20), transparent 24rem), var(--ink-950); color: #c8d5e6; text-align: center; box-shadow: var(--shadow-dark); }
.cta-card h2 { color: var(--white); max-width: 900px; margin: 0 auto 18px; }
.cta-card p { margin: 0 auto 28px; }
.page-hero { padding: calc(var(--header-h) + 74px) 0 86px; background: radial-gradient(circle at 75% 10%, rgba(212,149,42,.16), transparent 28rem), linear-gradient(135deg, var(--ink-950), var(--ink-900)); color: #c8d5e6; }
.page-hero.compact { min-height: 500px; display: flex; align-items: center; }
.page-hero h1 { color: var(--white); font-size: clamp(3.7rem, 9vw, 7.6rem); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: 44px; align-items: end; }
.page-hero-grid > p { font-size: 1.15rem; color: #c8d5e6; }
.service-list { display: grid; gap: 22px; }
.service-panel { background: var(--white); border: 1px solid var(--slate-200); border-radius: 28px; padding: clamp(28px, 4vw, 44px); display: grid; grid-template-columns: 1fr .9fr; gap: 42px; box-shadow: 0 1px 1px rgba(15,23,42,.03); }
.service-panel h2 { font-size: clamp(2rem, 4vw, 3.3rem); margin-bottom: 14px; }
.check-list { display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 30px; color: var(--slate-700); font-weight: 650; }
.check-list li::before { content: ''; position: absolute; left: 0; top: .48em; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); box-shadow: inset 0 0 0 4px #fff1d3; }
.check-list.columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.architecture-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.architecture-card { min-height: 250px; }
.use-case-band { background: var(--slate-050); border: 1px solid var(--slate-200); border-radius: 32px; padding: clamp(30px, 5vw, 56px); display: grid; grid-template-columns: .9fr 1.1fr; gap: 42px; }
.timeline { position: relative; display: grid; gap: 0; }
.timeline::before { content: ''; position: absolute; left: 16px; top: 0; bottom: 0; width: 2px; background: var(--slate-200); }
.timeline-item { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding-bottom: 24px; }
.timeline-marker { width: 34px; height: 34px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 8px var(--gold-soft); position: relative; z-index: 1; }
.timeline-content { background: var(--white); border: 1px solid var(--slate-200); border-radius: 24px; padding: 28px; box-shadow: 0 1px 1px rgba(15,23,42,.03); }
.timeline-content h2 { font-size: 2rem; margin-bottom: 10px; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.solution-card h2 { font-size: 1.6rem; }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; align-items: start; }
.contact-card, .contact-form { background: var(--white); border: 1px solid var(--slate-200); border-radius: 28px; padding: clamp(28px, 4vw, 42px); box-shadow: var(--shadow-soft); }
.contact-card h2 { font-size: 2rem; margin-bottom: 24px; }
.contact-direct { margin-top: 28px; color: var(--slate-600); }
.contact-direct a { color: #915f12; font-weight: 900; }
.contact-form { display: grid; gap: 18px; }
.field-row { display: grid; gap: 8px; }
.field-row label { color: var(--ink-950); font-weight: 800; }
input, textarea { width: 100%; border: 1px solid var(--slate-200); border-radius: 14px; padding: 14px 15px; font: inherit; color: var(--ink-950); background: var(--slate-050); transition: border-color .2s ease, box-shadow .2s ease; }
input:focus, textarea:focus { border-color: rgba(212,149,42,.65); box-shadow: 0 0 0 4px var(--gold-soft); }
.honeypot { position: absolute; left: -9999px; opacity: 0; }
.form-success, .form-error { border-radius: 18px; padding: 16px; }
.form-success { background: rgba(22,163,74,.10); border: 1px solid rgba(22,163,74,.28); color: #14532d; }
.form-error { background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.25); color: #7f1d1d; }
.legal-content h2 { font-size: 1.6rem; margin: 28px 0 10px; }
.legal-content p { color: var(--slate-600); }
.site-footer { background: var(--ink-950); color: #9fb3c8; padding: 68px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .75fr .75fr 1fr; gap: 34px; }
.footer-brand p { margin-top: 20px; }
.site-footer h2 { color: var(--white); font-size: 1rem; margin-bottom: 16px; letter-spacing: .04em; text-transform: uppercase; }
.site-footer nav a { display: block; color: #c8d5e6; padding: 6px 0; font-weight: 700; }
.site-footer nav a:hover { color: var(--gold); }
.footer-cta { border: 1px solid rgba(255,255,255,.10); border-radius: 24px; padding: 24px; background: rgba(255,255,255,.045); }
.footer-cta p { margin: 10px 0 18px; }
.footer-bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.09); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: .9rem; }
.cursor-ring { position: fixed; left: 0; top: 0; width: 28px; height: 28px; border: 1px solid rgba(212,149,42,.70); border-radius: 50%; pointer-events: none; z-index: 9999; opacity: 0; transition: width .16s ease, height .16s ease, opacity .2s ease; }
.cursor-ring.is-active { opacity: .7; }
.cursor-ring.is-hover { width: 46px; height: 46px; opacity: .42; }
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .cursor-ring { display: none; }
}
@media (max-width: 980px) {
    .nav-toggle { display: block; margin-left: auto; }
    .primary-nav { position: fixed; inset: var(--header-h) 14px auto; display: none; background: rgba(7,9,18,.98); border: 1px solid rgba(255,255,255,.10); border-radius: 22px; padding: 18px; box-shadow: var(--shadow-dark); }
    .primary-nav.is-open { display: block; }
    .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
    .nav-link { width: 100%; padding: 14px 16px; }
    .header-actions { display: none; }
    .hero-grid, .page-hero-grid, .split-section, .product-band, .service-panel, .use-case-band, .contact-grid { grid-template-columns: 1fr; }
    .hero { min-height: auto; }
    .hero-proof, .steps-grid, .architecture-grid, .values-grid, .feature-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .container { width: min(100% - 28px, var(--container)); }
    h1 { font-size: clamp(3.3rem, 18vw, 5rem); }
    .page-hero h1 { font-size: clamp(3.1rem, 15vw, 4.8rem); }
    .hero-actions, .hero-proof, .roi-panel, .feature-grid.two, .feature-grid.three, .steps-grid, .architecture-grid, .values-grid, .check-list.columns, .footer-grid { grid-template-columns: 1fr; }
    .hero-actions { display: grid; }
    .hero-proof { display: grid; }
    .flow-row { grid-template-columns: 1fr; }
    .btn { width: 100%; }
    .footer-bottom { display: grid; }
}

/* Product-driven consulting additions */
.product-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.product-card { background: var(--white); border: 1px solid var(--slate-200); border-radius: 30px; padding: clamp(30px, 5vw, 54px); box-shadow: var(--shadow-soft); display: grid; gap: 20px; align-content: start; }
.product-card-featured { background: radial-gradient(circle at 80% 18%, rgba(212,149,42,.18), transparent 24rem), var(--ink-950); border-color: rgba(255,255,255,.12); color: #c8d5e6; }
.product-card h2, .product-card h3 { font-size: clamp(2rem, 4vw, 3.5rem); margin: 0; }
.product-card-featured h2, .product-card-featured h3 { color: var(--white); }
.product-card p { color: var(--slate-600); }
.product-card-featured p { color: #c8d5e6; }
.product-card .check-list { margin-top: 4px; }
.product-card-featured .check-list li { color: #e2e8f0; }
.product-card-featured .check-list li::before { box-shadow: inset 0 0 0 4px rgba(7,9,18,.85); }
.btn-ink { background: var(--ink-950); color: var(--white); box-shadow: 0 16px 32px rgba(7,9,18,.16); }
.btn-ink:hover { background: var(--ink-800); }
.field-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
select { width: 100%; border: 1px solid var(--slate-200); border-radius: 14px; padding: 14px 15px; font: inherit; color: var(--ink-950); background: var(--slate-050); transition: border-color .2s ease, box-shadow .2s ease; }
select:focus { border-color: rgba(212,149,42,.65); box-shadow: 0 0 0 4px var(--gold-soft); outline: none; }
.form-error ul { margin-top: 8px; padding-left: 20px; list-style: disc; }
.form-technical { margin-top: 10px; font-size: .9rem; color: #7f1d1d; }
.contact-product-list { display: grid; gap: 10px; margin-top: 26px; }
.contact-product-list a { display: grid; gap: 2px; padding: 16px; border-radius: 18px; border: 1px solid var(--slate-200); background: var(--slate-050); }
.contact-product-list a:hover { border-color: rgba(212,149,42,.45); background: #fffaf1; }
.contact-product-list strong { color: var(--ink-950); }
.contact-product-list span { color: var(--slate-600); font-size: .92rem; }
@media (max-width: 980px) {
    .product-cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .field-grid-2 { grid-template-columns: 1fr; }
}
