/* ============================================================
   Coborel Robotics — design tokens
   ============================================================ */
:root {
  --accent: #2f6bff;
  --accent-2: #6fa0ff;
  --ok: #3dff9a;
  --ink: #0c131d;
  --ink-2: #3b4655;
  --muted: #5d6877;
  --line: #dde2e8;
  --paper: #ffffff;
  --paper-2: #f4f6f9;
  --night: #06080c;
  --night-2: #0a0d13;
  --night-line: rgba(255, 255, 255, 0.09);
  --night-ink: #eef2f7;
  --night-muted: #8b96a6;
  --radius: 14px;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1280px;
  color-scheme: light dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6;
  color: var(--night-ink); background: var(--night);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.025em; font-weight: 700; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.015em; }
p { margin: 0; }
.mono { font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.02em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.eyebrow--light { color: var(--accent-2); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(61, 255, 154, 0.15); animation: pulse 2s infinite; }
.lead { font-size: 1.12rem; color: var(--night-muted); max-width: 640px; margin-top: 18px; }
.light .lead { color: var(--muted); }
.head { margin-bottom: clamp(40px, 6vw, 72px); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 0.98rem; border: 1px solid transparent; transition: transform 0.3s var(--ease), background 0.3s, box-shadow 0.3s, border-color 0.3s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 10px 30px -10px rgba(47, 107, 255, 0.7); }
.btn--accent:hover { background: #4579ff; transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(47, 107, 255, 0.8); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.22); color: #fff; backdrop-filter: blur(8px); background: rgba(255, 255, 255, 0.04); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.08); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 0.9rem; }
.link { display: inline-flex; gap: 8px; align-items: center; color: var(--accent); font-weight: 700; font-size: 1.05rem; }
.link span:last-child { transition: transform 0.3s var(--ease); }
.link:hover span:last-child { transform: translateX(5px); }

/* ============================================================ NAV */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(6, 8, 12, 0.72); backdrop-filter: blur(16px) saturate(1.4); border-color: var(--night-line); }
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand__mark { width: 30px; height: 30px; }
.brand__txt { font-weight: 800; letter-spacing: 0.08em; font-size: 1rem; line-height: 1; display: flex; flex-direction: column; }
.brand__txt small { font-family: var(--mono); font-weight: 500; font-size: 0.6rem; letter-spacing: 0.32em; color: var(--night-muted); margin-top: 4px; }
.nav__links { display: flex; gap: 4px; }
.nav__links a { padding: 8px 14px; border-radius: 999px; font-size: 0.94rem; font-weight: 500; color: rgba(255, 255, 255, 0.78); transition: color 0.2s, background 0.2s; }
.nav__links a:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.nav__right { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; padding: 3px; border-radius: 999px; border: 1px solid var(--night-line); background: rgba(255, 255, 255, 0.03); }
.lang button { border: 0; background: none; font-family: var(--mono); font-size: 0.76rem; padding: 6px 11px; border-radius: 999px; color: var(--night-muted); transition: background 0.25s, color 0.25s; }
.lang button[aria-pressed='true'] { background: #fff; color: var(--ink); }
.burger { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--night-line); background: transparent; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.6px; background: #fff; transition: transform 0.3s var(--ease); }
.burger span:first-child { top: 16px; } .burger span:last-child { top: 24px; }
.nav.open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ============================================================ HERO */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; background: var(--night); isolation: isolate; }
.hero__canvas, .sol__canvas { position: absolute; inset: 0; }
.hero__canvas canvas, .sol__canvas canvas { width: 100% !important; height: 100% !important; }
.hero__canvas { z-index: -2; opacity: 0; transition: opacity 1.6s var(--ease); }
.webgl .hero__canvas, .webgl .sol__canvas { opacity: 1; }
.hero__shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 70% at 18% 50%, rgba(6, 8, 12, 0.88), transparent 70%),
    linear-gradient(to bottom, rgba(6, 8, 12, 0.6), transparent 22%, transparent 70%, var(--night)); }
.hero__in { padding-top: 120px; padding-bottom: 120px; pointer-events: none; }
.hero__in > * { pointer-events: auto; }
.hero__title { font-size: clamp(2.8rem, 7.6vw, 6.6rem); font-weight: 800; letter-spacing: -0.045em; line-height: 0.98; max-width: 11ch; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero__title .line > span { display: inline-block; transform: translateY(110%); transition: transform 1.2s var(--ease); }
.hero__title .line:nth-child(2) > span { transition-delay: 0.12s; }
.ready .hero__title .line > span { transform: none; }
.line--grad > span { background: linear-gradient(100deg, #fff 0%, #a9c3ff 40%, var(--accent) 75%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: #b7c1cf; max-width: 520px; margin-top: 28px; }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 38px; }
.stats { display: grid; grid-template-columns: repeat(4, auto); gap: 18px 44px; margin: 64px 0 0; justify-content: start; }
.stats > div { border-left: 1px solid var(--night-line); padding-left: 16px; }
.stats dt { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; color: #fff; white-space: nowrap; }
.stats dd { margin: 2px 0 0; font-family: var(--mono); font-size: 0.74rem; color: var(--night-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.hud { position: absolute; right: clamp(16px, 3vw, 40px); bottom: 110px; z-index: 1; width: 232px; font-family: var(--mono); font-size: 0.72rem; color: var(--night-muted); padding: 14px 16px; border: 1px solid var(--night-line); border-radius: 12px; background: rgba(10, 13, 19, 0.55); backdrop-filter: blur(10px); }
.hud::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(47, 107, 255, 0.6), transparent 40%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.hud__row { display: flex; justify-content: space-between; padding: 3px 0; letter-spacing: 0.08em; }
.hud__row b { color: #fff; font-weight: 500; }
.hud__row b.ok { color: var(--ok); }
.hud__joints { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--night-line); min-height: 52px; }
.hud__joints span { display: flex; justify-content: space-between; }
.hud__joints b { color: var(--accent-2); font-weight: 500; white-space: pre; }
.scroll { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--night-muted); }
.scroll i { width: 1px; height: 44px; background: linear-gradient(var(--accent-2), transparent); position: relative; overflow: hidden; }
.scroll i::after { content: ''; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff; animation: drip 2s var(--ease) infinite; }

/* ============================================================ MARQUEE */
.marquee { border-block: 1px solid var(--night-line); background: var(--night); overflow: hidden; padding: 22px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 40px; width: max-content; animation: marquee 40s linear infinite; font-size: 1.4rem; font-weight: 600; letter-spacing: -0.01em; color: #c8d1dd; }
.marquee__track i { color: var(--accent); font-style: normal; font-size: 0.9rem; align-self: center; }

/* ============================================================ SOLUTIONS */
.sol { background: var(--night-2); padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.sol::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 40% at 80% 0%, rgba(47, 107, 255, 0.14), transparent); pointer-events: none; }
.sol__grid { display: grid; grid-template-columns: minmax(280px, 360px) 1fr; gap: 28px; align-items: stretch; position: relative; }
.sol__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.sol__list button { width: 100%; text-align: left; display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 8px; padding: 14px 16px; border-radius: 12px; border: 1px solid transparent; background: transparent; transition: background 0.3s, border-color 0.3s; position: relative; overflow: hidden; }
.sol__list button .mono { grid-row: 1 / 3; color: var(--night-muted); padding-top: 3px; transition: color 0.3s; }
.sol__list .t { font-weight: 700; font-size: 1.06rem; color: #d7dee8; transition: color 0.3s; }
.sol__list .s { font-size: 0.86rem; color: var(--night-muted); line-height: 1.45; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.5s var(--ease), opacity 0.4s, margin 0.4s; }
.sol__list button:hover { background: rgba(255, 255, 255, 0.03); }
.sol__list button[aria-selected='true'] { background: rgba(47, 107, 255, 0.09); border-color: rgba(47, 107, 255, 0.35); }
.sol__list button[aria-selected='true'] .mono { color: var(--accent-2); }
.sol__list button[aria-selected='true'] .t { color: #fff; }
.sol__list button[aria-selected='true'] .s { max-height: 60px; opacity: 1; margin-top: 4px; }
.sol__list button[aria-selected='true']::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.sol__view { position: relative; min-height: 680px; border-radius: 20px; overflow: hidden; border: 1px solid var(--night-line); background: #0a0d13; }
.sol__canvas canvas { cursor: grab; touch-action: pan-y; }
.sol__canvas canvas.dragging { cursor: grabbing; }
.sol__chrome { position: absolute; top: 16px; left: 18px; right: 18px; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--night-muted); pointer-events: none; }
.live { display: inline-flex; align-items: center; gap: 8px; color: #fff; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: #ff4d4d; animation: pulse 1.4s infinite; }
.sol__card { position: absolute; left: 18px; bottom: 22px; width: min(360px, calc(100% - 36px)); padding: 20px 22px; border-radius: 16px; background: rgba(10, 13, 19, 0.72); backdrop-filter: blur(14px) saturate(1.3); border: 1px solid var(--night-line); }
.sol__card.swap > * { animation: rise 0.7s var(--ease) both; }
.sol__card.swap > *:nth-child(2) { animation-delay: 0.05s; } .sol__card.swap > *:nth-child(3) { animation-delay: 0.1s; } .sol__card.swap > *:nth-child(4) { animation-delay: 0.15s; } .sol__card.swap > *:nth-child(5) { animation-delay: 0.2s; }
.sol__no { color: var(--accent-2); margin-bottom: 8px; }
.sol__card h3 { font-size: 1.5rem; margin-bottom: 8px; }
.sol__card p { color: #aeb8c6; font-size: 0.9rem; line-height: 1.55; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 14px 0 14px; }
.tags li { font-family: var(--mono); font-size: 0.72rem; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--night-line); color: #cfd7e2; background: rgba(255, 255, 255, 0.03); }
.sol__card .link { color: var(--accent-2); font-size: 0.95rem; }
.sol__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.05); }
.sol__progress i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform-origin: left; transform: scaleX(0); }
.no-webgl .hero__canvas, .no-webgl .sol__canvas { opacity: 1; background: radial-gradient(ellipse at 70% 50%, rgba(47, 107, 255, 0.25), transparent 60%); }
.no-webgl .sol__canvas::after { content: attr(data-msg); position: absolute; top: 50%; left: 0; right: 0; text-align: center; color: var(--night-muted); font-family: var(--mono); font-size: 0.8rem; }

/* ============================================================ LIGHT SECTIONS */
.light { background: var(--paper); color: var(--ink); padding: clamp(80px, 10vw, 140px) 0; }
.light--alt { background: var(--paper-2); }
.light h2 { color: var(--ink); max-width: 18ch; }
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feat, .pcard, .svc__item, .step { position: relative; isolation: isolate; }
.feat::before, .pcard::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; transition: opacity 0.4s; background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(47, 107, 255, 0.1), transparent 60%); }
.feat:hover::before, .pcard:hover::before { opacity: 1; }
.feat { padding: 30px 26px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.4s; }
.feat:hover { transform: translateY(-4px); border-color: #c9d4f5; box-shadow: 0 24px 50px -30px rgba(20, 40, 100, 0.35); }
.feat svg { width: 42px; height: 42px; color: var(--ink); margin-bottom: 26px; }
.feat h3 { margin-bottom: 10px; }
.feat p { color: var(--muted); font-size: 0.97rem; }

/* services (matches the reference layout) */
.svc__grid { display: grid; grid-template-columns: 1fr 420px; gap: 0; }
.svc__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; padding-right: 48px; }
.svc__label { color: var(--muted); padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.svc__item { padding: 30px 0; border-bottom: 1px solid var(--line); }
.svc__item:last-child { border-bottom: 0; }
.svc__item h3 { font-size: 1.32rem; margin-bottom: 10px; transition: color 0.3s; }
.svc__item p { color: var(--ink-2); font-size: 1.02rem; line-height: 1.55; }
.svc__item:hover h3 { color: var(--accent); }
.svc__side { border-left: 1px solid var(--line); padding-left: 64px; }
.svc__side h3 { font-size: clamp(1.8rem, 2.6vw, 2.3rem); margin-bottom: 22px; }
.svc__side > p { color: var(--ink-2); font-size: 1.08rem; }
.checks { list-style: none; padding: 0; margin: 34px 0 40px; display: grid; gap: 14px; }
.checks li { display: flex; align-items: center; gap: 18px; color: var(--ink-2); font-size: 1.04rem; }
.checks li::before { content: ''; width: 9px; height: 9px; flex: none; border: 1.6px solid var(--accent); margin-left: 4px; }

/* products */
.prod__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pcard { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform 0.4s var(--ease), box-shadow 0.4s; }
.pcard:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(20, 40, 100, 0.35); }
.pcard__art { height: 140px; margin: -6px -6px 18px; border-radius: 10px; background: linear-gradient(160deg, #f1f4f9, #e7ecf4); display: grid; place-items: center; overflow: hidden; }
.pcard__art svg { width: 70%; height: 100%; }
.pcard__art .reach { fill: none; stroke: var(--accent); stroke-width: 0.8; stroke-dasharray: 3 3; opacity: 0.55; }
.pcard__art .b { fill: var(--ink); }
.pcard__art .l { fill: none; stroke: #c3ccd8; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.15)); }
.pcard__art .j { fill: #1b2028; }
.pcard__art .a { fill: var(--accent); }
.pcard__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.pcard h3 { font-size: 1.5rem; }
.chip { font-family: var(--mono); font-size: 0.7rem; padding: 4px 10px; border-radius: 999px; background: rgba(47, 107, 255, 0.08); color: var(--accent); white-space: nowrap; }
.pcard p { color: var(--muted); font-size: 0.93rem; min-height: 3em; }
.pcard dl { display: grid; grid-template-columns: 1fr 1fr; margin: 18px 0 14px; }
.pcard dt { font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.pcard dd { margin: 2px 0 0; font-size: 1.7rem; font-weight: 700; letter-spacing: -0.02em; }
.pcard dd small { font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: inherit; transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease) 0.2s; }
.pcard.in .bar i { transform: scaleX(1); }
.note { margin-top: 26px; font-size: 0.85rem; color: var(--muted); }

/* ============================================================ PROCESS */
.proc { background: radial-gradient(ellipse 70% 50% at 50% 100%, rgba(47, 107, 255, 0.16), transparent 70%), var(--night); padding: clamp(80px, 10vw, 140px) 0; position: relative; overflow: hidden; }
.proc h2 { max-width: 16ch; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; position: relative; z-index: 1; }
.step { padding: 24px 20px 26px; border-radius: var(--radius); border: 1px solid var(--night-line); background: rgba(255, 255, 255, 0.02); transition: border-color 0.4s, background 0.4s; }
.step:hover { border-color: rgba(47, 107, 255, 0.5); background: rgba(47, 107, 255, 0.06); }
.step .mono { color: var(--accent-2); display: block; margin-bottom: 40px; }
.step h3 { font-size: 1.12rem; margin-bottom: 10px; }
.step p { color: var(--night-muted); font-size: 0.92rem; }
.steps__bar { position: relative; z-index: 1; height: 2px; margin-top: 28px; background: var(--night-line); border-radius: 2px; overflow: hidden; }
.steps__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--ok)); transform-origin: left; transform: scaleX(0); transition: transform 0.15s linear; }

/* ============================================================ CTA / FORM */
.cta { padding: clamp(80px, 10vw, 140px) 0; background:
  radial-gradient(ellipse 60% 80% at 0% 100%, rgba(47, 107, 255, 0.35), transparent 60%),
  linear-gradient(180deg, var(--night), #0b1430); border-top: 1px solid var(--night-line); }
.cta__in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.cta h2 { max-width: 14ch; }
.contact { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 14px; }
.contact li { display: flex; gap: 18px; align-items: baseline; }
.contact .mono { width: 70px; color: var(--night-muted); text-transform: uppercase; }
.contact a { font-size: 1.15rem; font-weight: 600; border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.contact a:hover { border-color: currentColor; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: clamp(22px, 3vw, 34px); border-radius: 20px; background: rgba(10, 13, 19, 0.6); border: 1px solid var(--night-line); backdrop-filter: blur(12px); }
.form label { display: grid; gap: 8px; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.04em; color: var(--night-muted); text-transform: uppercase; }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea { font: inherit; font-family: var(--font); font-size: 1rem; text-transform: none; letter-spacing: 0; color: #fff; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--night-line); border-radius: 10px; padding: 13px 14px; transition: border-color 0.3s, background 0.3s; width: 100%; }
.form select option { color: var(--ink); }
.form textarea { resize: vertical; min-height: 110px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); background: rgba(47, 107, 255, 0.06); }
.form button { justify-content: center; border: 0; }
.form__ok { grid-column: 1 / -1; color: var(--ok); font-size: 0.9rem; min-height: 1.2em; }

/* ============================================================ FOOTER */
.foot { background: var(--night); border-top: 1px solid var(--night-line); padding: 64px 0 28px; color: var(--night-muted); font-size: 0.94rem; }
.foot__in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.foot__in > div > p:not(.mono) { margin-top: 18px; max-width: 34ch; }
.foot .mono { text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot ul a:hover { color: #fff; }
.foot__parent a, .foot__bot a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--night-line); }
.foot__parent a:hover, .foot__bot a:hover { text-decoration-color: currentColor; }
.foot__orelsis { display: flex; justify-content: center; margin-top: 28px; }
.foot__orelsis a { display: inline-block; opacity: 0.7; transition: opacity 0.2s; }
.foot__orelsis a:hover, .foot__orelsis a:focus-visible { opacity: 1; }
.foot__orelsis img { display: block; height: 26px; width: auto; }
.foot__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 22px; font-size: 0.82rem; }
.foot__legal a:hover { color: #fff; }

/* ============================================================
   Cookie consent bar
   ============================================================ */
.cookie { position: fixed; inset: auto 0 0 0; z-index: 60; padding: 12px; padding-bottom: max(12px, env(safe-area-inset-bottom)); pointer-events: none; }
.cookie__in { pointer-events: auto; max-width: 672px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; padding: 12px 12px 12px 16px; border-radius: var(--radius); background: rgba(12, 16, 24, 0.88); backdrop-filter: blur(16px) saturate(1.4); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.75); animation: cookiePop 0.25s var(--ease); }
.cookie p { flex: 1; font-size: 0.88rem; line-height: 1.5; color: var(--night-muted); }
.cookie p a { color: var(--accent-2); text-underline-offset: 2px; }
.cookie p a:hover { text-decoration: underline; }
.cookie__btns { display: flex; gap: 8px; }
.cookie__btn { flex: 1; height: 34px; padding: 0 14px; border: 0; border-radius: 8px; font-size: 0.86rem; font-weight: 600; background: rgba(255, 255, 255, 0.08); color: #fff; transition: background 0.2s; white-space: nowrap; }
.cookie__btn:hover { background: rgba(255, 255, 255, 0.14); }
.cookie__btn--accent { background: var(--accent); }
.cookie__btn--accent:hover { background: #4579ff; }
@keyframes cookiePop { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
@media (min-width: 768px) {
  .cookie { padding: 16px; }
  .cookie__in { flex-direction: row; align-items: center; gap: 20px; }
  .cookie__btn { flex: none; }
}

/* ============================================================
   Legal pages (yasal/*, en/legal/*)
   ============================================================ */
.lang a { font-family: var(--mono); font-size: 0.76rem; padding: 6px 11px; border-radius: 999px; color: var(--night-muted); transition: background 0.25s, color 0.25s; }
.lang a[aria-current='true'] { background: #fff; color: var(--ink); }
.lang a:not([aria-current='true']):hover { color: #fff; }
.legal { padding-top: 140px; padding-bottom: 96px; }
.legal__crumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.86rem; color: var(--night-muted); margin-bottom: 28px; }
.legal__crumb a:hover { color: #fff; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.legal__date { color: var(--night-muted); margin-top: 14px; }
.legal__grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--night-line); }
.legal__nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 100px; align-self: start; }
.legal__nav a { padding: 9px 14px; border-radius: 10px; font-size: 0.94rem; color: var(--night-muted); transition: background 0.2s, color 0.2s; }
.legal__nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.legal__nav a[aria-current='page'] { color: #fff; background: rgba(47, 107, 255, 0.16); }
.legal__body { max-width: 72ch; color: #c9d1dc; }
.legal__body h2 { font-size: 1.35rem; letter-spacing: -0.015em; color: #fff; margin: 40px 0 12px; }
.legal__body > :first-child { margin-top: 0; }
.legal__body p { margin: 0 0 14px; }
.legal__body ul { margin: 0 0 14px; padding-left: 1.2em; display: grid; gap: 6px; }
.legal__body li::marker { color: var(--accent); }
.legal__body a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.foot--legal { padding-top: 0; }
.foot--legal .foot__bot { margin-top: 0; }
@media (max-width: 860px) {
  .legal { padding-top: 110px; }
  .legal__grid { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; }
  .legal__nav { position: static; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 520px) {
  .legal-back { display: none; }
}
#footSol { grid-template-columns: 1fr 1fr; column-gap: 20px; }
.foot__bot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--night-line); font-size: 0.82rem; }

/* ============================================================ MOTION */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease) var(--d, 0ms), transform 1s var(--ease) var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
@keyframes pulse { 50% { opacity: 0.35; } }
@keyframes drip { to { top: 110%; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes prog { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero__title .line > span { transition: none; transform: none; opacity: 1; }
  .marquee__track { animation: none; }
}

/* ============================================================ RESPONSIVE */
@media (max-width: 1180px) {
  .svc__grid { grid-template-columns: 1fr; }
  .svc__cols { padding-right: 0; }
  .svc__side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 48px; margin-top: 24px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1020px) {
  .nav__links { position: fixed; inset: 76px 0 auto 0; flex-direction: column; padding: 16px clamp(16px, 4vw, 40px) 28px; background: rgba(6, 8, 12, 0.96); backdrop-filter: blur(16px); border-bottom: 1px solid var(--night-line); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.3s var(--ease); }
  .nav__links a { font-size: 1.2rem; padding: 12px 0; }
  .nav.open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .nav.open { background: rgba(6, 8, 12, 0.96); }
  .burger { display: block; }
  .sol__grid { grid-template-columns: 1fr; }
  .sol__list { flex-direction: row; overflow-x: auto; gap: 8px; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; order: 2; }
  .sol__list::-webkit-scrollbar { display: none; }
  .sol__list li { flex: none; scroll-snap-align: start; }
  .sol__list button { grid-template-columns: auto auto; border-color: var(--night-line); padding: 10px 16px; border-radius: 999px; }
  .sol__list button .mono { grid-row: auto; padding: 0; }
  .sol__list .s, .sol__list button[aria-selected='true']::before { display: none; }
  .sol__view { min-height: 0; display: flex; flex-direction: column; }
  .sol__canvas { position: relative; inset: auto; height: 62vh; min-height: 380px; max-height: 560px; }
  .sol__card { position: relative; left: auto; bottom: auto; width: auto; margin: 0; border-radius: 0; border: 0; border-top: 1px solid var(--night-line); background: var(--night-2); }
  .prod__grid { grid-template-columns: repeat(2, 1fr); }
  .cta__in { grid-template-columns: 1fr; }
  .hud { display: none; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .nav__cta { display: none; }
  .nav__in { height: 64px; }
  .nav__links { inset: 64px 0 auto 0; }
  .hero { align-items: flex-end; }
  .hero__in { padding-top: 96px; padding-bottom: 96px; }
  .hero__shade { background: linear-gradient(to bottom, rgba(6, 8, 12, 0.5), rgba(6, 8, 12, 0.15) 30%, rgba(6, 8, 12, 0.85) 62%, var(--night)); }
  .stats { grid-template-columns: repeat(2, auto); margin-top: 40px; gap: 18px 28px; }
  .stats dt { font-size: 1.3rem; }
  .hero__ctas .btn { flex: 1 1 auto; justify-content: center; }
  .scroll { display: none; }
  .why__grid, .prod__grid, .svc__cols, .steps { grid-template-columns: 1fr; }
  .svc__cols { gap: 0; }
  .svc__col + .svc__col { margin-top: 32px; }
  .step .mono { margin-bottom: 18px; }
  .form { grid-template-columns: 1fr; }
  .foot__in { grid-template-columns: 1fr; }
  .marquee__track { font-size: 1.1rem; }
}
