/* LargeQuant Final Directive R3 — LQM-first public system and resilient footer */
:root {
    --lqf-ink: #07110f;
    --lqf-muted: #56615e;
    --lqf-line: #dfe6e3;
    --lqf-soft: #f4f7f6;
    --lqf-teal: #08a780;
    --lqf-teal-dark: #057258;
    --lqf-blue: #3579f6;
    --lqf-radius: 18px;
    --lqf-shadow: 0 24px 70px rgba(8, 30, 24, .09);
}

body.lq-public { background: #fff; color: var(--lqf-ink); filter: none; }
body.lq-public :focus-visible { outline: 3px solid var(--lqf-teal); outline-offset: 3px; }
.lq-nav { border-bottom-color: rgba(7, 17, 15, .09); }
.lq-nav-row { max-width: 1480px; }
.lq-nav-links { gap: clamp(12px, 1.65vw, 25px); }
.lq-nav-links a { color: #36403d; font-size: 12px; font-weight: 680; }
.lq-nav-links a::after { background: var(--lqf-teal); }
.lq-btn { border-radius: 8px; }

.lqf-hero { position: relative; min-height: 690px; overflow: hidden; background: linear-gradient(145deg,#fff 0%,#f8fbfa 60%,#effaf6 100%); border-bottom: 1px solid var(--lqf-line); }
.lqf-grid { position: absolute; inset: 0; opacity: .48; background-image: linear-gradient(rgba(5,70,56,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(5,70,56,.045) 1px,transparent 1px); background-size: 46px 46px; mask-image: linear-gradient(90deg,#000,transparent 80%); }
.lqf-hero-grid { position: relative; min-height: 690px; display: grid; grid-template-columns: minmax(0,1fr) minmax(480px,.9fr); align-items: center; gap: clamp(30px,5vw,90px); }
.lqf-eyebrow, .lqf-heading > div > span { display: block; color: var(--lqf-teal-dark); font-size: 11px; font-weight: 820; letter-spacing: .16em; text-transform: uppercase; }
.lqf-hero h1 { max-width: 760px; margin: 20px 0 24px; color: var(--lqf-ink); font-size: clamp(54px,6.1vw,94px); line-height: .95; letter-spacing: -.072em; }
.lqf-hero h1 span { color: var(--lqf-teal); }
.lqf-hero-copy > p { max-width: 720px; margin: 0; color: #3e4b47; font-size: clamp(18px,1.55vw,23px); line-height: 1.55; }
.lqf-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; margin-top: 32px; }
.lqf-button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 50px; padding: 0 21px; border: 1px solid var(--lqf-ink); border-radius: 8px; font-size: 13px; font-weight: 780; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.lqf-button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.1); }
.lqf-button.primary { background: var(--lqf-ink); color: #fff; }
.lqf-button.secondary { background: #fff; color: var(--lqf-ink); }
.lqf-button.light { background: #fff; color: #07110f; border-color: #fff; }
.lqf-button.dark-outline { background: transparent; color: #fff; border-color: #62706c; }
.lqf-text-link { display: inline-flex; align-items: center; min-height: 40px; border-bottom: 1px solid #78827f; color: var(--lqf-ink); font-size: 13px; font-weight: 760; }
.lqf-text-link.light-link { color: #fff; border-color: #7d8c88; }
.lqf-proof-line { display: flex; flex-wrap: wrap; gap: 16px 28px; padding: 0; margin: 32px 0 0; list-style: none; color: #51605b; font-size: 12px; font-weight: 650; }
.lqf-proof-line li::before { content: "✓"; margin-right: 8px; color: var(--lqf-teal); font-weight: 900; }
.lqf-world { position: relative; width: 100%; max-width: 650px; justify-self: end; }
.lqf-world svg { display: block; width: 100%; overflow: visible; }
.lqf-world-note { position: absolute; right: 1%; bottom: 8%; display: grid; gap: 2px; padding: 13px 16px; background: rgba(255,255,255,.91); border: 1px solid var(--lqf-line); border-radius: 10px; box-shadow: 0 15px 36px rgba(0,0,0,.08); }
.lqf-world-note b { font-size: 12px; }
.lqf-world-note span { color: var(--lqf-muted); font-size: 10px; }
.lqf-orbits { transform-origin: 322px 275px; animation: lqf-orbit 28s linear infinite; }
.lqf-mesh { animation: lqf-pulse 4s ease-in-out infinite; }
@keyframes lqf-orbit { to { transform: rotate(360deg); } }
@keyframes lqf-pulse { 50% { opacity: .68; } }

.lqf-protocols { border-bottom: 1px solid var(--lqf-line); background: #fff; }
.lqf-protocols .lq-shell { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; overflow-x: auto; color: #74807c; font-family: ui-monospace,SFMono-Regular,Menlo,monospace; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.lqf-section { padding: clamp(82px,9vw,132px) 0; }
.lqf-soft { background: var(--lqf-soft); border-block: 1px solid var(--lqf-line); }
.lqf-heading { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(300px,.7fr); align-items: end; gap: 50px; margin-bottom: 46px; }
.lqf-heading h2, .lqf-section h2 { margin: 10px 0 0; color: var(--lqf-ink); font-size: clamp(36px,4vw,62px); line-height: 1.02; letter-spacing: -.055em; }
.lqf-heading > p, .lqf-section p { color: var(--lqf-muted); }
.lqf-heading > p { margin: 0; font-size: 17px; }

.lqf-module-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 1px solid var(--lqf-ink); border-left: 1px solid var(--lqf-line); }
.lqf-module-grid > a { position: relative; min-height: 300px; padding: 28px; border-right: 1px solid var(--lqf-line); border-bottom: 1px solid var(--lqf-line); background: #fff; transition: background .2s ease, transform .2s ease, box-shadow .2s ease; }
.lqf-module-grid > a:hover { z-index: 2; background: #f8fffc; transform: translateY(-3px); box-shadow: var(--lqf-shadow); }
.lqf-module-grid i { color: var(--lqf-teal-dark); font-family: ui-monospace,monospace; font-size: 11px; font-style: normal; }
.lqf-module-grid h3 { margin: 78px 0 8px; font-size: 23px; letter-spacing: -.035em; }
.lqf-module-grid p { margin: 0 0 25px; font-size: 14px; }
.lqf-module-grid b { position: absolute; bottom: 28px; font-size: 12px; }

.lqf-contrast { background: var(--lqf-ink); color: #fff; }
.lqf-contrast h2, .lqf-code h2 { color: #fff; }
.lqf-contrast p, .lqf-code p { color: #a9b7b3; }
.lqf-contrast .lqf-eyebrow, .lqf-code .lqf-eyebrow { color: #65e6bf; }
.lqf-contrast .lqf-text-link { color: #fff; border-color: #63716d; }
.lqf-compare { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(50px,8vw,120px); align-items: center; }
.lqf-compare > div:first-child p { max-width: 620px; font-size: 17px; }
.lqf-compare-board { border: 1px solid #31423d; border-radius: var(--lqf-radius); overflow: hidden; background: #0c1b17; }
.lqf-compare-board > div { display: grid; grid-template-columns: .75fr 1fr 1.15fr; gap: 18px; align-items: center; min-height: 72px; padding: 13px 20px; border-bottom: 1px solid #263732; }
.lqf-compare-board > div:last-child { border-bottom: 0; }
.lqf-compare-board > div > span { color: #7f918b; font-size: 11px; }
.lqf-compare-board b { font-size: 12px; }
.lqf-compare-board > div b:last-child { color: #6be6c0; }
.lqf-compare-board .lqf-compare-head { background: #142720; grid-template-columns: .75fr 1fr 1.15fr; }
.lqf-compare-head::before { content: ""; }
.lqf-compare-head span { color: #fff!important; font-weight: 760; }

.lqf-gen-grid, .lqf-integrate, .lqf-qgi { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(50px,8vw,120px); }
.lqf-gen-grid > div:last-child p, .lqf-integrate > div:first-child p, .lqf-qgi > div:first-child p { font-size: 17px; }
.lqf-surface { overflow: hidden; background: linear-gradient(145deg,#f4fbf8,#e9f5f1); border: 1px solid #bfd3cc; border-radius: var(--lqf-radius); box-shadow: var(--lqf-shadow); }
.lqf-surface svg { width: 100%; }
.lqf-surface > div { display: grid; gap: 4px; padding: 0 26px 25px; }
.lqf-surface span { color: var(--lqf-teal-dark); font-family: ui-monospace,monospace; font-size: 9px; letter-spacing: .14em; }
.lqf-surface b { font-size: 17px; }
.lqf-surface small { color: var(--lqf-muted); }
.lqf-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 11px 22px; margin: 25px 0; padding: 0; list-style: none; font-size: 13px; font-weight: 670; }
.lqf-checks li::before { content: "+"; display: inline-grid; place-items: center; width: 19px; height: 19px; margin-right: 8px; background: #dff8ef; color: #057258; border-radius: 50%; }

.lqf-lifecycle { position: relative; display: grid; grid-template-columns: repeat(6,1fr); gap: 0; margin: 45px 0 0; padding: 0; list-style: none; }
.lqf-lifecycle::before { content: ""; position: absolute; top: 20px; left: 7%; right: 7%; height: 1px; background: #9caaa5; }
.lqf-lifecycle li { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; }
.lqf-lifecycle b { z-index: 1; display: grid; place-items: center; width: 42px; height: 42px; background: #fff; border: 1px solid #9caaa5; border-radius: 50%; font-family: ui-monospace,monospace; font-size: 10px; }
.lqf-lifecycle span { margin-top: 12px; font-size: 15px; font-weight: 790; }
.lqf-lifecycle small { max-width: 130px; color: var(--lqf-muted); font-size: 11px; }

.lqf-domain-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.lqf-domain-grid a { position: relative; min-height: 180px; padding: 25px; background: var(--lqf-soft); border: 1px solid var(--lqf-line); border-radius: 12px; transition: transform .2s,background .2s; }
.lqf-domain-grid a:hover { transform: translateY(-3px); background: #edf9f5; }
.lqf-domain-grid b { font-size: 17px; }
.lqf-domain-grid p { max-width: 320px; font-size: 13px; }
.lqf-domain-grid span { position: absolute; right: 22px; bottom: 18px; color: var(--lqf-teal-dark); }

.lqf-bench { background: #eef5ff; border-block: 1px solid #d4e1f4; }
.lqf-bench-grid { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: clamp(50px,8vw,120px); }
.lqf-bench-grid > div:first-child p { font-size: 17px; }
.lqf-scoreboard { display: grid; gap: 17px; padding: 28px; background: #fff; border: 1px solid #cbd9ee; border-radius: var(--lqf-radius); box-shadow: 0 25px 70px rgba(21,60,120,.1); }
.lqf-score-title { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.lqf-score-title span { color: var(--lqf-muted); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.lqf-scoreboard > div:not(:first-child) { display: grid; grid-template-columns: 110px 1fr 30px; gap: 14px; align-items: center; font-size: 11px; }
.lqf-scoreboard i { height: 7px; overflow: hidden; background: #e7edf3; border-radius: 20px; }
.lqf-scoreboard em { display: block; width: var(--score); height: 100%; background: linear-gradient(90deg,var(--lqf-blue),var(--lqf-teal)); border-radius: inherit; }
.lqf-scoreboard small { margin-top: 8px; color: #75817d; font-size: 9px; }

.lqf-network { position: relative; min-height: 410px; overflow: hidden; border: 1px solid var(--lqf-line); border-radius: 50%; background: radial-gradient(circle at center,#e2fff5 0 4%,transparent 5% 22%,#d9e6e1 23% 23.4%,transparent 24% 43%,#e2e9e6 44% 44.4%,transparent 45%),linear-gradient(140deg,#fafcfb,#eef5f2); }
.lqf-network::before, .lqf-network::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 74%; height: 1px; background: #9eb8af; transform: translate(-50%,-50%) rotate(29deg); }
.lqf-network::after { transform: translate(-50%,-50%) rotate(-38deg); }
.lqf-network > b { position: absolute; z-index: 2; left: 50%; top: 50%; display: grid; place-items: center; width: 124px; height: 124px; transform: translate(-50%,-50%); background: var(--lqf-ink); color: #fff; border-radius: 50%; font-size: 12px; letter-spacing: .08em; }
.lqf-network > span { position: absolute; z-index: 2; left: var(--x); top: var(--y); padding: 9px 12px; background: #fff; border: 1px solid #aebfba; border-radius: 20px; font-size: 10px; font-weight: 720; box-shadow: 0 8px 18px rgba(0,0,0,.06); }

.lqf-code { background: #07110f; color: #fff; }
.lqf-code-grid { display: grid; grid-template-columns: 1fr .9fr; align-items: center; gap: clamp(45px,8vw,115px); }
.lqf-code-grid > div p { max-width: 660px; font-size: 17px; }
.lqf-code pre { margin: 0; padding: 30px; overflow: auto; background: #101e1a; border: 1px solid #33453f; border-radius: 15px; color: #b8c6c1; font: 12px/1.75 ui-monospace,SFMono-Regular,Menlo,monospace; box-shadow: 0 28px 70px rgba(0,0,0,.28); }
.lqf-code code > span { color: #66e9c1; }
.lqf-code code b { color: #79a8ff; }

.lqf-qgi-map { position: relative; min-height: 400px; border-radius: 50%; background: radial-gradient(circle at center,rgba(3,169,126,.13),transparent 17%),repeating-radial-gradient(circle at center,transparent 0 58px,rgba(5,71,56,.15) 59px 60px); }
.lqf-qgi-map::before, .lqf-qgi-map::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 75%; height: 1px; background: #b7c8c2; transform: translate(-50%,-50%) rotate(45deg); }
.lqf-qgi-map::after { transform: translate(-50%,-50%) rotate(-45deg); }
.lqf-qgi-map b { position: absolute; z-index: 2; left: 50%; top: 50%; display: grid; place-items: center; width: 115px; height: 115px; transform: translate(-50%,-50%); background: #fff; border: 1px solid var(--lqf-ink); border-radius: 50%; text-align: center; }
.lqf-qgi-map b small { color: var(--lqf-muted); font-weight: 500; }
.lqf-qgi-map > span { position: absolute; z-index: 2; padding: 8px 12px; background: #fff; border: 1px solid #aebfba; border-radius: 7px; font-size: 11px; font-weight: 740; }
.lqf-qgi-map > span:nth-child(1) { left: 8%; top: 13%; }.lqf-qgi-map > span:nth-child(2) { right: 8%; top: 13%; }.lqf-qgi-map > span:nth-child(3) { right: 8%; bottom: 13%; }.lqf-qgi-map > span:nth-child(4) { left: 8%; bottom: 13%; }

.lqf-enterprise { display: grid; grid-template-columns: .85fr 1.15fr; gap: 20px 85px; align-items: center; }
.lqf-enterprise-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--lqf-line); border: 1px solid var(--lqf-line); }
.lqf-enterprise-grid span { padding: 19px; background: #fff; font-size: 12px; font-weight: 720; }
.lqf-enterprise-grid span::before { content: "✓"; margin-right: 8px; color: var(--lqf-teal-dark); }
.lqf-enterprise > a { justify-self: start; }

.lqf-faq-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(50px,8vw,120px); }
.lqf-faq details { border-bottom: 1px solid var(--lqf-line); }
.lqf-faq summary { position: relative; padding: 22px 38px 22px 0; cursor: pointer; list-style: none; font-size: 16px; font-weight: 760; }
.lqf-faq summary::after { content: "+"; position: absolute; right: 4px; font-size: 20px; font-weight: 450; }
.lqf-faq details[open] summary::after { content: "−"; }
.lqf-faq p { margin: -4px 0 22px; }
.lqf-cta { padding: 72px 0; background: linear-gradient(120deg,#082019,#0a4335); color: #fff; }
.lqf-cta .lq-shell { display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.lqf-cta .lqf-eyebrow { color: #73e9c4; }
.lqf-cta h2 { margin: 8px 0; color: #fff; font-size: clamp(34px,4vw,58px); letter-spacing: -.05em; }
.lqf-cta p { margin: 0; color: #b1c4be; }

/* Footer: explicit grid, no inherited block separators, and compact responsive legal row. */
.lq-footer { padding: 64px 0 26px; }
.lq-footer-grid { display: grid; grid-template-columns: minmax(280px,1.5fr) repeat(3,minmax(145px,1fr)); gap: 42px; align-items: start; }
.lq-footer-grid > div { min-width: 0; }
.lq-footer-grid > div:not(.lq-footer-brand) { display: grid; grid-auto-rows: min-content; align-content: start; gap: 7px; }
.lq-footer-grid h4 { margin: 0 0 9px; }
.lq-footer-grid a { display: inline-flex; width: fit-content; margin: 0!important; line-height: 1.55; }
.lq-footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 42px; padding-top: 21px; }
.lq-footer-legal-links { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 9px 20px; }
.lq-footer-bottom .lq-footer-legal-links a { display: inline-flex!important; width: auto!important; margin: 0!important; padding: 0!important; }
.lq-footer-legal-links a + a::before { content: ""; width: 3px; height: 3px; margin: 0 20px 0 0; align-self: center; background: #676767; border-radius: 50%; }

@media (max-width: 1180px) {
    .lq-nav-links { gap: 14px; }
    .lq-nav-links a { font-size: 11px; }
    .lqf-hero-grid { grid-template-columns: 1fr 460px; }
    .lqf-module-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 980px) {
    .lqf-hero { min-height: auto; }
    .lqf-hero-grid { grid-template-columns: 1fr; min-height: auto; padding-top: 90px; padding-bottom: 70px; }
    .lqf-world { max-width: 590px; justify-self: center; }
    .lqf-compare,.lqf-gen-grid,.lqf-bench-grid,.lqf-integrate,.lqf-code-grid,.lqf-qgi,.lqf-faq-grid { grid-template-columns: 1fr; }
    .lqf-heading { grid-template-columns: 1fr; gap: 18px; }
    .lqf-domain-grid { grid-template-columns: 1fr 1fr; }
    .lqf-lifecycle { grid-template-columns: repeat(3,1fr); gap: 35px 0; }
    .lqf-lifecycle::before { display: none; }
    .lqf-enterprise { grid-template-columns: 1fr; }
    .lq-footer-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .lq-footer-brand { grid-column: 1 / -1; max-width: 520px; }
}
@media (max-width: 700px) {
    .lqf-hero-grid { padding-top: 70px; }
    .lqf-hero h1 { font-size: clamp(45px,13vw,66px); }
    .lqf-world { margin-top: -20px; }
    .lqf-module-grid,.lqf-domain-grid { grid-template-columns: 1fr; }
    .lqf-module-grid > a { min-height: 240px; }
    .lqf-module-grid h3 { margin-top: 45px; }
    .lqf-compare-board > div { grid-template-columns: 1fr; gap: 5px; padding: 15px; }
    .lqf-compare-head { display: none!important; }
    .lqf-checks { grid-template-columns: 1fr; }
    .lqf-lifecycle { grid-template-columns: repeat(2,1fr); }
    .lqf-network,.lqf-qgi-map { min-height: 340px; }
    .lqf-enterprise-grid { grid-template-columns: 1fr; }
    .lqf-cta .lq-shell { display: block; }
    .lq-footer-grid { grid-template-columns: 1fr 1fr; gap: 34px 25px; }
    .lq-footer-brand { grid-column: 1 / -1; }
    .lq-footer-grid > div:last-child { grid-column: 1 / -1; }
    .lq-footer-bottom { align-items: flex-start; flex-direction: column; }
    .lq-footer-legal-links { justify-content: flex-start; }
    .lq-footer-legal-links a + a::before { display: none; }
}
@media (max-width: 470px) {
    .lqf-actions { align-items: stretch; flex-direction: column; }
    .lqf-actions .lqf-button { width: 100%; }
    .lqf-text-link { width: fit-content; }
    .lqf-world-note { position: static; margin-top: -15px; }
    .lqf-network > span { font-size: 8px; }
    .lq-footer-grid { grid-template-columns: 1fr; }
    .lq-footer-grid > div:last-child { grid-column: auto; }
    .lq-footer-legal-links { gap: 8px 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .lqf-orbits,.lqf-mesh { animation: none; }
    .lqf-button,.lqf-module-grid > a,.lqf-domain-grid a { transition: none; }
}
