/* LoviSoft landing. No third-party fonts or scripts; CSP forbids inline styles. */
:root {
  --ink: #0b1020;
  --ink-2: #131a33;
  --text: #1c2340;
  --muted: #5a6285;
  --line: #e3e6f0;
  --bg: #ffffff;
  --bg-alt: #f5f6fb;
  --brand: #4f46e5;
  --brand-d: #3d35c4;
  --accent: #22d3ee;
  --ok: #0f7b4b;
  --warn-bg: #fff7e0;
  --warn-line: #f0d98a;
  --err: #b42318;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(18, 26, 60, .08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 17px; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-d); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.01em; }
h1, h2, h3, .lead { text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3, .h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

.container { width: min(1140px, 100% - 2rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2rem); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.todo { background: #ffe58f; color: #5b4300; padding: 0 .35em; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

.plain-a { color: inherit; text-decoration: none; }
.plain-a:hover { color: var(--brand); }
.mt { margin-top: 1.75rem; }
.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: start; }
.chips-left { justify-content: flex-start; margin-bottom: .5rem; }
.plain-links { list-style: none; display: grid; gap: .4rem; }
.plain-links a { font-weight: 600; text-decoration: none; }
.plain-links a:hover { text-decoration: underline; }

/* Breadcrumbs (flush with the page head below, which starts on the same background) */
.crumbs { background: var(--bg-alt); font-size: .9rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .25rem .5rem; list-style: none; padding-block: 1rem .25rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: #b3b9d3; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.crumbs + .page-head { padding-top: 1.5rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1.25rem; border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, border-color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-d); color: #fff; }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .25); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.btn-lg { padding: .9rem 1.6rem; font-size: 1.05rem; }
.btn-sm { padding: .5rem .95rem; font-size: .95rem; }
.ico { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.2em; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 16, 32, .92); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.header-row { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.wordmark { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.25rem; color: #fff; text-decoration: none; margin: 0; }
.wordmark b { color: var(--accent); font-weight: 700; }
.wordmark:hover { color: #fff; }
.menu { display: flex; align-items: center; justify-content: space-between; flex: 1; gap: 1rem; }
.nav ul { display: flex; gap: .25rem; list-style: none; }
.nav a { color: #cdd3ee; text-decoration: none; padding: .5rem .8rem; border-radius: 8px; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .08); }
.header-actions { display: flex; align-items: center; gap: .75rem; }
.header-actions .btn { white-space: nowrap; }
.lang-switch { color: #cdd3ee; text-decoration: none; font-weight: 700; border: 1px solid rgba(255, 255, 255, .25); padding: .3rem .6rem; border-radius: 8px; font-size: .85rem; }
.lang-switch:hover { color: #fff; border-color: #fff; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid rgba(255, 255, 255, .25); border-radius: 8px; width: 44px; height: 44px; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 20px; height: 2px; background: #fff; margin: auto; position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; }
.bars::after { top: 6px; }

/* Hero */
.hero { background: radial-gradient(900px 500px at 85% -10%, rgba(79, 70, 229, .55), transparent 60%), radial-gradient(700px 400px at 0% 100%, rgba(34, 211, 238, .18), transparent 60%), var(--ink); color: #fff; padding: clamp(3rem, 8vw, 6rem) 0; overflow: hidden; }
.hero h1 { color: #fff; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.eyebrow { color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; margin-bottom: .75rem; }
.hero .eyebrow { color: var(--accent); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.hero .lead { color: #c3cae8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0; }
.hero-points { list-style: none; display: grid; gap: .5rem; color: #dfe3f7; }
.hero-points li { display: flex; gap: .6rem; align-items: center; }
.hero-points .ico { color: var(--accent); }
.hero-visual { position: relative; padding: 1.8rem 0; }
.code-window { background: #0f1630; border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); box-shadow: 0 30px 60px rgba(0, 0, 0, .45); overflow: hidden; transform: rotate(1.2deg); }
.code-bar { display: flex; align-items: center; gap: .4rem; padding: .7rem 1rem; background: rgba(255, 255, 255, .05); }
.code-bar span { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.code-bar span:nth-child(2) { background: #febc2e; }
.code-bar span:nth-child(3) { background: #28c840; }
.code-bar em { margin-left: .6rem; font: .8rem var(--mono); color: #8b93b8; font-style: normal; }
.code-window pre { margin: 0; padding: 1.25rem 1.4rem; font: .92rem/1.7 var(--mono); color: #dfe3f7; overflow-x: auto; }
.c-k { color: #c792ea; } .c-t { color: #7fdbca; } .c-s { color: #ecc48d; } .c-f { color: #82aaff; } .c-c { color: #637099; }
.float-card { position: absolute; display: flex; align-items: center; gap: .6rem; background: #fff; color: var(--ink); padding: .65rem 1rem; border-radius: 12px; box-shadow: var(--shadow); font-weight: 600; font-size: .95rem; }
.float-card .ico { color: var(--brand); }
.float-a { left: -1.5rem; bottom: 0; }
.float-b { right: -.5rem; top: 0; }

/* Strip */
.stack-strip { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 1.5rem 0; }
.strip-label { text-align: center; color: var(--muted); font-size: .9rem; margin-bottom: .75rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.chips li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .3rem .9rem; font-weight: 600; font-size: .9rem; color: var(--ink-2); }

/* Sections */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-tight { padding: 0 0 clamp(3rem, 6vw, 4.5rem); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 auto 2.5rem; text-align: center; }
.section-head .lead { margin-inline: auto; }
.page-head { padding-bottom: 2rem; background: linear-gradient(180deg, var(--bg-alt), var(--bg)); }
.page-head h1 { max-width: 20ch; }
.page-head.center h1, .page-head .center, .page-head.center .lead, .center h1, .center .lead { margin-inline: auto; }

.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
/* Reference cards: three per row, an incomplete last row stays centred whatever the count. */
.grid-refs { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; }
.grid-refs > * { flex: 0 1 calc((100% - 2.5rem) / 3); min-width: 0; }
.grid-refs-2 > * { flex-basis: calc((100% - 1.25rem) / 2); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; transition: box-shadow .2s, transform .2s, border-color .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #cfd4ec; }
.card h3 { margin-top: .25rem; }
.card p:last-child { margin-bottom: 0; }
.card-ico { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: #eceafd; color: var(--brand); flex: none; }
.card-ico .ico { width: 24px; height: 24px; }
.feature { display: flex; gap: 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.feature p { margin: 0; color: var(--muted); }
.tag { display: inline-block; background: #eceafd; color: var(--brand-d); font-weight: 700; font-size: .78rem; padding: .2rem .6rem; border-radius: 999px; margin-bottom: .5rem; }
.ref-tech { font: .85rem var(--mono); color: var(--muted); margin-top: auto; padding-top: .75rem; }
.ref-card .ref-tech { padding-bottom: .5rem; }
.grid + .center, .grid-refs + .center { margin-top: 2.25rem; }
.plain { list-style: none; color: var(--muted); display: grid; gap: .25rem; }
.ticks { list-style: none; display: grid; gap: .5rem; margin: 1rem 0; }
.ticks li { display: flex; gap: .6rem; align-items: flex-start; }
.ticks .ico { color: var(--ok); margin-top: .2em; }

/* Process */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: s; }
.steps li { position: relative; padding: 1.5rem; border-top: 3px solid var(--brand); background: var(--bg-alt); border-radius: 0 0 var(--radius) var(--radius); }
.steps p { margin: 0; color: var(--muted); }
.step-n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; margin-bottom: .75rem; }

/* Service + reference rows */
.service-list, .ref-list { display: grid; gap: 1.25rem; }
.service, .ref { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.service-head { display: flex; align-items: center; gap: 1rem; align-self: start; }
.service-head h2 { font-size: 1.5rem; margin: 0; }
.ref { grid-template-columns: 1.6fr 1fr; }
.ref h2 { font-size: 1.8rem; }
.lead-sm { font-size: 1.1rem; color: var(--ink-2); font-weight: 500; }
.ref-side { background: var(--bg-alt); border-radius: 12px; padding: 1.25rem; display: flex; flex-direction: column; }
.ref-side h3 { font-size: 1rem; }
.ref-card { display: flex; flex-direction: column; }

/* CTA band */
.cta-band { border-bottom: 1px solid rgba(255, 255, 255, .1); background: radial-gradient(700px 300px at 90% 0%, rgba(79, 70, 229, .6), transparent 60%), var(--ink); color: #fff; padding: clamp(2.5rem, 6vw, 4rem) 0; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.cta-inner h2 { color: #fff; }
.cta-inner p { color: #c3cae8; max-width: 55ch; margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* FAQ */
.faq-list { display: grid; gap: .75rem; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 1.25rem; }
.faq-item summary { cursor: pointer; font-weight: 600; padding: 1.1rem 0; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--brand); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { color: var(--muted); padding-bottom: 1rem; margin: 0; }

/* Prose + legal */
.prose { max-width: 760px; }
.narrow.prose { margin-inline: auto; }
.prose h2 { font-size: 1.35rem; margin-top: 2rem; }
.prose p { color: var(--text); }
.facts { display: grid; grid-template-columns: 12rem 1fr; gap: .5rem 1rem; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; }
.notice { border-radius: 12px; padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.notice h2 { font-size: 1.15rem; margin-bottom: .25rem; }
.notice ul { padding-left: 1.2rem; }
.notice-ok { background: #e6f6ee; border: 1px solid #a5dcc0; color: #0b4f31; }
.notice-err { background: #fdecea; border: 1px solid #f4b7b1; color: var(--err); }
.notice-warn { background: var(--warn-bg); border: 1px solid var(--warn-line); color: #5b4300; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: start; }
.form { display: grid; gap: 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--text); padding: .7rem .85rem; border: 1px solid #c9cee4; border-radius: 10px; background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); outline: 3px solid rgba(79, 70, 229, .25); }
.field [aria-invalid="true"] { border-color: var(--err); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-side { background: var(--bg-alt); border-radius: var(--radius); padding: 1.75rem; }
.contact-side h2 { font-size: 1.15rem; }
.mini-steps { padding-left: 1.2rem; margin-bottom: 1.5rem; display: grid; gap: .5rem; color: var(--muted); }

/* Footer */
.site-footer { background: var(--ink); color: #cdd3ee; padding-top: 3rem; }
.site-footer a { color: #cdd3ee; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1.3fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid.has-social { grid-template-columns: 1.4fr 1.2fr repeat(4, 1fr); }
.footer-h { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: #8b93b8; margin-bottom: .75rem; }
.site-footer ul { list-style: none; display: grid; gap: .4rem; }
.site-footer .muted { color: #8b93b8; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 2rem; padding: 1.25rem 0; }
.footer-bottom p { margin: 0; }

/* Reveal on scroll (only when JS is on) */
.js [data-reveal], .js [data-reveal-group] > * { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js [data-reveal].in, .js [data-reveal-group].in > * { opacity: 1; transform: none; }
.js [data-reveal-group].in > *:nth-child(2) { transition-delay: .08s; }
.js [data-reveal-group].in > *:nth-child(3) { transition-delay: .16s; }
.js [data-reveal-group].in > *:nth-child(4) { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js [data-reveal], .js [data-reveal-group] > * { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .contact-grid, .service, .ref, .split { grid-template-columns: 1fr; }
  .split { gap: 2rem; }
  .hero-visual { max-width: 520px; margin: 1rem auto 0; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .grid-refs > * { flex-basis: calc((100% - 1.25rem) / 2); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1000px) {
  .nav a { padding: .5rem .55rem; }
  .header-row { gap: 1rem; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--ink); padding: 1rem; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .menu-open .menu { display: flex; }
  .nav ul { flex-direction: column; }
  .header-actions { justify-content: space-between; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4, .steps, .footer-grid, .footer-grid.has-social { grid-template-columns: 1fr; }
  .grid-refs > * { flex-basis: 100%; }
  .float-a { left: .5rem; } .float-b { right: .5rem; }
  .hero-visual { padding: 3.2rem 0; }
  .hero-actions .btn, .cta-actions .btn { flex: 1 1 100%; }
  .code-window { transform: none; }
  .facts { grid-template-columns: 1fr; }
  .service, .ref { padding: 1.25rem; }
}
