/* ---------- fonts (self-hosted) ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/inter-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/inter-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-display: swap; font-weight: 300 700;
  src: url(/fonts/space-grotesk-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-display: swap; font-weight: 300 700;
  src: url(/fonts/space-grotesk-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- tokens ---------- */
:root {
  color-scheme: light dark;
  --bg: #ffffff; --bg-2: #f5f6fa; --card: #ffffff; --ink: #0b1020; --ink-2: #333b52; --muted: #626b82;
  --line: #e5e8f0; --line-2: #d4d9e5;
  --accent: #5b4bff; --accent-ink: #4535e6; --accent-2: #00a6c8; --accent-soft: rgba(91, 75, 255, .09);
  --grad: linear-gradient(110deg, #5b4bff 0%, #8b5cf6 45%, #00a6c8 100%);
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px -8px rgba(16, 24, 40, .08);
  --shadow-lg: 0 30px 80px -24px rgba(45, 35, 160, .28);
  --panel: rgba(255, 255, 255, .86); --code-1: #c7cdf9; --code-2: #b7e6f0; --code-3: #e3d8fe; --code-4: #dfe3ec;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --radius: 18px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0c14; --bg-2: #0e111b; --card: #10131e; --ink: #eef0f7; --ink-2: #c4c9d8; --muted: #8e96ab;
    --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .14);
    --accent: #8576ff; --accent-ink: #a79cff; --accent-2: #22d3ee; --accent-soft: rgba(133, 118, 255, .12);
    --grad: linear-gradient(110deg, #9d8fff 0%, #b89bff 40%, #22d3ee 100%);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -8px rgba(0, 0, 0, .4);
    --shadow-lg: 0 40px 100px -30px rgba(110, 90, 255, .35);
    --panel: rgba(20, 23, 36, .82); --code-1: #4b4aa8; --code-2: #1f6a7c; --code-3: #5f3fa3; --code-4: #2b3043;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--bg); color: var(--ink);
  font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.03em; line-height: 1.08; font-weight: 600; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: #fff; }
.i { width: 20px; height: 20px; flex: none; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 40px); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--accent-ink); font-weight: 600; font-size: .82rem;
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--grad); }
.lead { color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.22rem); max-width: 640px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px;
  border-radius: 12px; font-weight: 600; font-size: .98rem; border: 1px solid transparent; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s; white-space: nowrap; }
.btn .i { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover .i { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px -8px var(--accent); }
.btn-primary:hover { background: var(--accent-ink); box-shadow: 0 12px 28px -8px var(--accent); }
@media (prefers-color-scheme: dark) { .btn-primary:hover { background: #7262ff; } }
.btn-ghost { border-color: var(--line-2); background: var(--card); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-light { background: #fff; color: #0b1020; }
.btn-light:hover { box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .9rem; border-radius: 10px; }
.btn[disabled] { opacity: .65; cursor: progress; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent-ink); }
.link-arrow .i { width: 18px; height: 18px; transition: transform .2s; }
.link-arrow:hover .i { transform: translateX(4px); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: background .25s, border-color .25s, backdrop-filter .25s; }
.site-header.scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); border-color: var(--line);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 700; font-size: 1.12rem; letter-spacing: -.02em; }
.brand-dim { color: var(--muted); font-weight: 500; }
.mark { width: 30px; height: 30px; border-radius: 9px; background: var(--grad); position: relative; flex: none; box-shadow: 0 6px 16px -6px var(--accent); }
.mark::after { content: ""; position: absolute; left: 50%; top: 7px; bottom: 7px; width: 4px; margin-left: -2px; border-radius: 3px; background: #fff; }
.mark::before { content: ""; position: absolute; left: 50%; top: 4px; width: 4px; height: 4px; margin-left: 6px; border-radius: 50%; background: rgba(255, 255, 255, .7); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav > a:not(.btn) { padding: 8px 14px; border-radius: 10px; color: var(--ink-2); font-weight: 500; font-size: .95rem; transition: background .2s, color .2s; }
.nav > a:not(.btn):hover { background: var(--bg-2); color: var(--ink); }
.nav > a[aria-current="page"] { color: var(--ink); background: var(--bg-2); }
.nav .lang { font-size: .8rem !important; font-weight: 700 !important; letter-spacing: .06em; border: 1px solid var(--line-2); margin: 0 6px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); place-items: center; cursor: pointer; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(56px, 9vw, 110px) 0 clamp(64px, 9vw, 120px); overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1;
  background: radial-gradient(40% 50% at 78% 30%, rgba(91, 75, 255, .16), transparent 70%), radial-gradient(30% 40% at 95% 70%, rgba(0, 166, 200, .12), transparent 70%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .6;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(70% 60% at 70% 30%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(70% 60% at 70% 30%, #000 20%, transparent 75%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.1rem); line-height: 1.02; letter-spacing: -.045em; margin-bottom: 24px; }
.hero h1 .grad { display: block; text-wrap: balance; }
.hero .lead { margin-bottom: 34px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 40px; color: var(--ink-2); font-size: .93rem; font-weight: 500; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust .i { width: 18px; height: 18px; color: #fff; background: var(--accent); border-radius: 50%; padding: 3px; stroke-width: 3; }

/* hero visual */
.hero-visual { position: relative; height: 460px; }
.panel { position: absolute; border-radius: 16px; background: var(--panel); border: 1px solid var(--line-2);
  box-shadow: var(--shadow-lg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.panel-code { inset: 20px 40px 90px 0; animation: float 9s ease-in-out infinite; }
.panel-bar { display: flex; align-items: center; gap: 7px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.panel-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.panel-bar span { margin-left: 10px; font-size: .78rem; color: var(--muted); font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.code { padding: 22px 22px; display: grid; gap: 15px; }
.l { display: flex; gap: 10px; height: 10px; }
.l em { display: block; height: 100%; border-radius: 6px; flex: 1; }
.l .k { background: var(--code-1); flex: .35; } .l .f { background: var(--code-3); } .l .s { background: var(--code-2); flex: .6; } .l .v { background: var(--code-4); }
.w30 { width: 30%; } .w40 { width: 40%; } .w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; }
.in1 { margin-left: 8%; } .in2 { margin-left: 16%; }
.l::after { content: ""; }
.code .l:nth-child(4) em:last-child { position: relative; overflow: hidden; }
.code .l:nth-child(4) em:last-child::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent); animation: shimmer 2.8s infinite; }
.panel-pipe { right: 0; top: 0; width: 230px; padding: 16px; display: grid; gap: 10px; animation: float 9s ease-in-out -3s infinite; }
.pipe-row { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 10px; background: var(--bg-2); }
.pipe-row .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .15); }
.pipe-row.run .dot { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); animation: pulse 1.6s infinite; }
.pipe-row b { flex: 1; height: 8px; border-radius: 5px; background: var(--code-4); }
.pipe-row em { font-style: normal; font-size: .8rem; color: #22c55e; font-weight: 700; }
.spin { width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--accent-soft); border-top-color: var(--accent); animation: spin 1s linear infinite; }
.panel-chart { right: 10px; bottom: 0; width: 270px; height: 150px; padding: 18px; animation: float 9s ease-in-out -6s infinite; }
.bars { display: flex; align-items: flex-end; gap: 9px; height: 100%; }
.bars i { flex: 1; border-radius: 6px 6px 3px 3px; background: var(--grad); opacity: .9; transform-origin: bottom; animation: grow 1.2s cubic-bezier(.2, .8, .2, 1) both; }
.bars i:nth-child(1) { height: 35%; animation-delay: .1s; } .bars i:nth-child(2) { height: 52%; animation-delay: .18s; }
.bars i:nth-child(3) { height: 44%; animation-delay: .26s; } .bars i:nth-child(4) { height: 66%; animation-delay: .34s; }
.bars i:nth-child(5) { height: 58%; animation-delay: .42s; } .bars i:nth-child(6) { height: 80%; animation-delay: .5s; }
.bars i:nth-child(7) { height: 96%; animation-delay: .58s; }
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px transparent; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes grow { from { transform: scaleY(0); } }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section.pt0 { padding-top: 0; }
.tint { background: var(--bg-2); border-block: 1px solid var(--line); }
.section h2 { font-size: clamp(2rem, 4vw, 3rem); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 52px; }
.section-head .lead { margin-top: 16px; }
.section-head.center { justify-content: center; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

.page-head { padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 72px); position: relative; isolation: isolate; }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(45% 80% at 85% 0%, rgba(91, 75, 255, .12), transparent 70%); }
.page-head h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); letter-spacing: -.045em; margin-bottom: 20px; max-width: 900px; }
.page-head.center { text-align: center; }
.page-head.center .lead { margin-inline: auto; margin-bottom: 32px; }
.page-head.tall { min-height: 62vh; display: grid; place-items: center; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { position: relative; display: flex; flex-direction: column; padding: 30px; border-radius: var(--radius); background: var(--card);
  border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .3s, border-color .3s, box-shadow .3s; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .4s; }
.card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow-lg); }
.card:hover::before { transform: scaleX(1); }
.card h3 { font-size: 1.28rem; margin: 22px 0 10px; }
.card p { color: var(--muted); font-size: .97rem; flex: 1; }
.card-more { margin-top: 22px; color: var(--accent-ink); }
.card-more .i { transition: transform .25s; }
.card:hover .card-more .i { transform: translateX(5px); }
.card-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; flex: none;
  background: var(--accent-soft); color: var(--accent-ink); border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent); }
.card-icon .i { width: 23px; height: 23px; }

/* steps */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step, .model { position: relative; padding: 30px 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.step:not(:last-child)::after { content: ""; position: absolute; top: 46px; right: -18px; width: 18px; height: 2px; background: var(--line-2); }
.step-n { display: inline-block; font-family: var(--display); font-weight: 700; font-size: .95rem; padding: 4px 11px; border-radius: 8px;
  color: var(--accent-ink); background: var(--accent-soft); margin-bottom: 20px; }
.step h3, .model h3 { font-size: 1.22rem; margin-bottom: 10px; }
.step p, .model p { color: var(--muted); font-size: .96rem; }

/* why */
.why { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.why-item { display: flex; gap: 20px; padding: 30px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.why-item h3 { font-size: 1.22rem; margin: 4px 0 8px; }
.why-item p { color: var(--muted); }

/* stack marquee */
.stack { padding: 8px 0 clamp(64px, 8vw, 100px); }
.stack-title { text-align: center; color: var(--muted); font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 26px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.track { display: flex; gap: 14px; width: max-content; animation: scroll 40s linear infinite; }
.track span { padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); font-family: var(--display); font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(calc(-50% - 7px)); } }

/* cta band */
.cta-band { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: clamp(40px, 6vw, 72px); border-radius: 28px; color: #fff; isolation: isolate;
  background: radial-gradient(60% 120% at 100% 0%, rgba(34, 211, 238, .35), transparent 60%), linear-gradient(120deg, #2b1fd1, #5b4bff 55%, #7c3aed); }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .25;
  background-image: linear-gradient(rgba(255, 255, 255, .25) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .25) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: linear-gradient(90deg, transparent 30%, #000); -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); }
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: rgba(255, 255, 255, .82); max-width: 520px; font-size: 1.08rem; }

/* services page */
.svc-list { display: grid; gap: 18px; }
.svc { display: grid; grid-template-columns: 90px 1.3fr 1fr; gap: 32px; align-items: start; padding: 36px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); transition: border-color .3s, box-shadow .3s; }
.svc:hover, .svc:target { border-color: var(--line-2); box-shadow: var(--shadow-lg); }
.svc:target { border-color: var(--accent); }
.svc-num { font-family: var(--display); font-size: 2.6rem; font-weight: 700; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--line-2); }
.svc h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin: 20px 0 12px; }
.svc p { color: var(--muted); }
.svc-points { list-style: none; padding: 0; display: grid; gap: 12px; padding-top: 6px; }
.svc-points li, .val-list li { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 12px; background: var(--bg-2); font-weight: 500; font-size: .96rem; }
.svc-points .i { width: 18px; height: 18px; color: var(--accent-ink); stroke-width: 2.6; }
.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* faq */
.faq { margin-top: 32px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 0; font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line-2); font-family: var(--display); font-size: 1.2rem; font-weight: 400; transition: transform .3s, background .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--accent-soft); }
.faq details p { color: var(--muted); padding: 0 48px 24px 0; }

/* about */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.about-grid h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-bottom: 22px; }
.prose { color: var(--ink-2); font-size: 1.08rem; margin-bottom: 18px; }
.latin { position: relative; overflow: hidden; display: grid; gap: 10px; padding: 48px 40px; border-radius: 24px; color: #fff; isolation: isolate;
  background: radial-gradient(70% 90% at 100% 0%, rgba(34, 211, 238, .35), transparent 60%), linear-gradient(140deg, #1b1550, #3b2fc9 60%, #6d3bea); }
.latin::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; z-index: -1;
  border: 1px solid rgba(255, 255, 255, .2); box-shadow: 0 0 0 30px rgba(255, 255, 255, .04), 0 0 0 60px rgba(255, 255, 255, .03); }
.latin-word { font-family: var(--display); font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.latin-def { opacity: .7; font-size: .95rem; }
.latin-mean { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .2); font-size: 1.05rem; }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.value { padding: 30px 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.value h3 { font-size: 1.18rem; margin: 20px 0 8px; }
.value p { color: var(--muted); font-size: .96rem; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: start; }
.form { display: grid; gap: 20px; padding: clamp(24px, 4vw, 40px); border-radius: 24px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; align-content: start; }
.field > label { font-weight: 600; font-size: .92rem; }
.field small { color: var(--muted); font-weight: 400; }
.field input:not([type="checkbox"]), .field select, .field textarea { width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--bg); transition: border-color .2s, box-shadow .2s; font-size: 1rem; }
.field textarea { resize: vertical; min-height: 150px; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23889' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 16px center; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field [aria-invalid="true"] { border-color: #e5484d !important; box-shadow: 0 0 0 4px rgba(229, 72, 77, .12) !important; }
.err { color: #e5484d; font-size: .86rem; min-height: 0; }
.err:empty { display: none; }
.check { grid-template-columns: auto 1fr; align-items: start; gap: 12px; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); cursor: pointer; }
.check label { font-weight: 400; font-size: .92rem; color: var(--ink-2); }
.check .err { grid-column: 2; }
.check a, .aside a:not(.aside-mail), .legal a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.form-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.status { font-size: .95rem; font-weight: 500; }
.status.ok { color: #16a34a; } .status.bad { color: #e5484d; }
.status a { text-decoration: underline; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.aside { padding: 36px; border-radius: 24px; background: var(--bg-2); border: 1px solid var(--line); position: sticky; top: 96px; }
.aside h2 { font-size: 1.5rem; margin: 20px 0 8px; }
.aside p { color: var(--muted); }
.aside-mail { display: inline-block; margin: 8px 0 22px; font-weight: 600; font-size: 1.08rem; color: var(--accent-ink); word-break: break-all; }
.aside .muted { font-size: .9rem; }

/* legal / misc */
.legal h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.legal p { color: var(--ink-2); }
.big-check { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; margin-bottom: 26px; color: #fff; background: var(--grad); box-shadow: var(--shadow-lg); }
.big-check .i { width: 34px; height: 34px; stroke-width: 2.6; }
.code404 { font-family: var(--display); font-weight: 700; font-size: clamp(5rem, 14vw, 9rem); line-height: 1; letter-spacing: -.06em; margin-bottom: 12px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 0; overflow: hidden; background: var(--bg-2); }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.foot-brand p { color: var(--muted); max-width: 360px; margin: 18px 0 18px; font-size: .96rem; }
.foot-mail { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink-2); }
.foot-mail:hover { color: var(--accent-ink); }
.foot h2 { font-family: "Inter", sans-serif; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; font-weight: 600; }
.foot div > a:not(.brand):not(.foot-mail) { display: block; padding: 5px 0; color: var(--ink-2); font-size: .96rem; }
.foot div > a:not(.brand):not(.foot-mail):hover { color: var(--accent-ink); }
.copy { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }

/* ---------- reveal ---------- */
.reveal.wait { opacity: 0; transform: translateY(18px); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 400px; max-width: 620px; width: 100%; }
  .cards, .models { grid-template-columns: repeat(2, 1fr); }
  .steps, .values { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .svc { grid-template-columns: 1fr 1fr; }
  .svc-num { display: none; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .aside { position: static; }
}
@media (max-width: 860px) {
  .menu-btn { display: grid; }
  .nav { position: fixed; inset: 72px 0 auto; flex-direction: column; align-items: stretch; gap: 4px; padding: 16px 20px 24px;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s; }
  .nav.open { opacity: 1; transform: none; visibility: visible; }
  .nav > a:not(.btn) { padding: 14px 12px; font-size: 1.05rem; }
  .nav .lang { margin: 6px 0; text-align: center; }
  .nav .btn { margin-top: 8px; min-height: 48px; }
  .site-header.menu-open { background: var(--bg); border-color: var(--line); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap, .narrow { width: calc(100% - 32px); }
  .brand-dim { display: none; }
  .cards, .models, .steps, .values, .why, .row2, .svc, .foot { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: start; }
  .section-head.center { align-items: center; }
  .hero-visual { height: 320px; }
  .panel-code { inset: 30px 30px 70px 0; }
  .panel-pipe { width: 170px; }
  .panel-chart { width: 190px; height: 110px; }
  .cta-band { flex-direction: column; align-items: start; }
  .actions .btn { flex: 1; }
  .why-item { flex-direction: column; gap: 16px; }
  .faq details p { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal.wait { opacity: 1; transform: none; }
}

/* ---------- polish ---------- */
/* smooth cross-page transitions (Chrome, Edge, Safari; others just navigate normally) */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: vt-out .18s ease-in both; }
::view-transition-new(root) { animation: vt-in .32s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

/* staggered entrance for the first screen */
.hero-copy > *, .page-head .wrap > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > :nth-child(2), .page-head .wrap > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3), .page-head .wrap > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4), .page-head .wrap > :nth-child(4) { animation-delay: .24s; }
.hero-copy > :nth-child(5) { animation-delay: .32s; }
.hero-visual { animation: rise-in 1.1s .2s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.reveal.wait { filter: blur(6px); }
.revealing { transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1), filter .7s cubic-bezier(.2, .7, .2, 1) !important; }

/* slow-moving glow behind the hero */
.hero::before { animation: drift 22s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(-4%, 6%) scale(1.06); } }

/* hero visual follows the pointer slightly (values set in app.js) */
.tilt { position: absolute; inset: 0; transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }

/* spotlight that follows the cursor on cards */
.card::after, .svc::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), var(--accent-soft), transparent 60%); }
.svc { position: relative; }
.card:hover::after, .svc:hover::after { opacity: 1; }
.card > *, .svc > * { position: relative; z-index: 1; }
.card-icon { transition: background .3s, color .3s, border-color .3s, transform .3s; }
.card:hover .card-icon, .svc:hover .card-icon, .why-item:hover .card-icon, .value:hover .card-icon { background: var(--grad); color: #fff; border-color: transparent; transform: translateY(-2px); }
.why-item, .value, .model, .step { transition: border-color .3s, transform .3s; }
.why-item:hover, .value:hover, .model:hover, .step:hover { border-color: var(--line-2); transform: translateY(-2px); }

/* nav underline */
.nav > a:not(.btn):not(.lang) { position: relative; }
.nav > a:not(.btn):not(.lang)::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px;
  background: var(--grad); transform: scaleX(0); transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.nav > a[aria-current="page"]::after { transform: scaleX(1); }
.nav > a:not(.btn):not(.lang):hover::after { transform: scaleX(1); }

/* hamburger → close */
.burger { display: grid; gap: 4px; width: 18px; }
.burger i { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s, opacity .2s; }
.menu-btn[aria-expanded="true"] .burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .burger i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 860px) { .nav > a:not(.btn)::after { display: none; } }

/* large faded wordmark closing the footer */
.wordmark { font-family: var(--display); font-weight: 700; letter-spacing: -.06em; line-height: .78; text-align: center; white-space: nowrap;
  font-size: clamp(4.5rem, 19vw, 17rem); margin-top: 40px; user-select: none; overflow: hidden;
  background: linear-gradient(180deg, var(--line-2), transparent 85%); -webkit-background-clip: text; background-clip: text; color: transparent; }
