/* Website */
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 60; }
.skip:focus { left: 8px; }
.btn-lg { min-height: 48px; padding: 12px 22px; font-size: 15px; border-radius: 10px; }
body.site { background: var(--surface); }

/* ---- Header: full width, at the very top ------------------------------- */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(23, 24, 28, .06); }
/* Background spans the screen; logo, menu and buttons line up with the page content. */
.header-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; min-height: 72px; width: min(1200px, 100% - 48px); margin-inline: auto; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand-text { display: grid; line-height: 1.1; }
.brand-text strong { font-size: 19px; font-weight: 700; letter-spacing: -.015em; }
.brand-text small { font-size: 12px; color: var(--muted); font-weight: 500; }
.site-nav { display: flex; justify-content: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 9px; color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-link svg { width: 12px; height: 12px; transition: transform .15s; }
.nav-link:hover, .nav-item:focus-within > .nav-link { background: var(--surface-2); color: var(--ink); }
.has-menu:hover .nav-link svg, .has-menu:focus-within .nav-link svg { transform: rotate(180deg); }
.mega { position: absolute; left: 50%; top: calc(100% + 8px); transform: translate(-50%, 6px); width: 560px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-2); opacity: 0; visibility: hidden; transition: opacity .15s, transform .15s, visibility .15s; }
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.has-menu:hover .mega, .has-menu:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega a { display: grid; gap: 3px; padding: 12px 14px; border-radius: 10px; text-decoration: none; }
.mega a:hover { background: var(--surface-2); }
.mega strong { color: var(--ink); font-size: 14.5px; }
.mega span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.header-actions { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.btn-header { min-height: 40px; padding: 8px 14px; color: var(--ink); background: transparent; border: 1px solid var(--line-strong); border-radius: 10px; font-weight: 600; text-decoration: none; }
.btn-header:hover { background: var(--surface-2); color: var(--ink); }
.header-actions .btn-primary { min-height: 40px; border-radius: 10px; }
.header-actions .theme-toggle { border-color: transparent; background: none; }
.header-actions .theme-toggle:hover { background: var(--surface-2); }
.nav-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--ink); cursor: pointer; place-items: center; }
.nav-toggle svg { width: 20px; height: 20px; }

/* ---- Hero ------------------------------------------------------------- */
.hero { position: relative; padding: 76px 0 72px; background:
  radial-gradient(900px 420px at 88% -10%, color-mix(in srgb, var(--sea) 16%, transparent), transparent 70%),
  linear-gradient(180deg, var(--surface) 0%, var(--paper) 100%); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.hero h1 { margin: 0 0 22px; font-size: clamp(38px, 4.8vw, 62px); line-height: 1.03; font-weight: 700; letter-spacing: -.03em; color: var(--ink); max-width: 14ch; }
.lead { margin: 0 0 30px; font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 48ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 28px; margin: 36px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.hero-facts div { display: grid; gap: 2px; }
.hero-facts dt { font-size: 13px; color: var(--muted); }
.hero-facts dd { margin: 0; font-size: 16px; font-weight: 600; color: var(--ink); }

/* ---- Hero feed: the memorable element --------------------------------- */
.feed { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 60px rgba(23, 24, 28, .12), 0 2px 6px rgba(23, 24, 28, .05); overflow: hidden; }
.feed-bar { display: grid; gap: 12px; padding: 16px 18px 0; border-bottom: 1px solid var(--line); }
.feed-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.feed-title strong { font-size: 15px; color: var(--ink); }
.feed-title span { font-size: 13px; color: var(--muted); }
.feed-tabs { display: flex; gap: 18px; font-size: 13px; color: var(--muted); }
.feed-tabs span { padding: 0 0 10px; border-bottom: 2px solid transparent; }
.feed-tabs span.is-on { color: var(--ink); font-weight: 600; border-color: var(--sea); }
.feed-tabs b { display: inline-block; min-width: 20px; margin-left: 4px; padding: 0 6px; border-radius: 6px; background: var(--surface-2); color: var(--text); font-size: 12px; font-weight: 600; text-align: center; }
.feed-list { list-style: none; margin: 0; padding: 0; }
.feed-item { position: relative; display: grid; grid-template-columns: 38px minmax(0, 1fr) 78px; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.feed-avatar { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--text); font-size: 13px; font-weight: 700; }
.feed-body { min-width: 0; display: grid; gap: 6px; }
.feed-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font-size: 12.5px; color: var(--muted); }
.feed-head strong { font-size: 14px; color: var(--ink); }
.feed-src { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px 2px 6px; border-radius: 6px; background: color-mix(in srgb, var(--pc) 12%, var(--surface)); color: var(--ink); font-weight: 600; }
.feed-src::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--pc); }
.feed-lang { padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line); }
.feed-head time { margin-left: auto; font-variant-numeric: tabular-nums; }
.feed-text { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink); }
.feed-text mark { color: inherit; padding: 1px 2px; border-radius: 3px; }
.feed-text mark.tone-neg { background: color-mix(in srgb, #E5484D 14%, transparent); box-shadow: inset 0 -2px 0 #E5484D; }
.feed-text mark.tone-pos { background: color-mix(in srgb, #16A34A 14%, transparent); box-shadow: inset 0 -2px 0 #16A34A; }
.feed-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 2px; }
.dept { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; border: 1px solid; }
.dept svg { width: 9px; height: 9px; fill: currentColor; }
.dept.tone-neg { color: #C52A30; border-color: color-mix(in srgb, #E5484D 35%, transparent); background: color-mix(in srgb, #E5484D 8%, var(--surface)); }
.dept.tone-pos { color: #12803F; border-color: color-mix(in srgb, #16A34A 35%, transparent); background: color-mix(in srgb, #16A34A 8%, var(--surface)); }
.feed-status { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--sea-strong); }
.feed-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sea); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sea) 22%, transparent); }
.feed-status.is-done { color: var(--muted); }
.feed-status.is-done::before { background: var(--line-strong); box-shadow: none; }
.feed-score { display: grid; align-content: start; justify-items: end; gap: 4px; text-align: right; }
.feed-score b { font-size: 24px; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.feed-score span { font-size: 12px; color: var(--muted); }
.meter { display: flex; gap: 2px; }
.meter u { width: 9px; height: 5px; border-radius: 2px; background: var(--surface-2); text-decoration: none; }
.meter u.on { background: var(--sea); }
.feed-digest { padding: 16px 18px 18px; background: var(--paper); display: grid; gap: 12px; }
.digest-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.digest-head strong { font-size: 14px; color: var(--ink); }
.digest-head span { font-size: 12.5px; color: var(--muted); }
.diverge { display: grid; gap: 8px; }
.dv-row { display: grid; grid-template-columns: 110px 1fr 40px; align-items: center; gap: 12px; font-size: 13px; }
.dv-name { color: var(--ink); font-weight: 500; }
.dv-track { position: relative; height: 10px; }
.dv-track::before { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--line-strong); }
.dv-bar { position: absolute; top: 0; height: 100%; width: var(--w); border-radius: 3px; }
.dv-bar.tone-pos { left: 50%; background: #16A34A; }
.dv-bar.tone-neg { right: 50%; background: #E5484D; }
.dv-val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.dv-val.tone-pos { color: #12803F; } .dv-val.tone-neg { color: #C52A30; }

/* ---- Platform band ---------------------------------------------------- */
.platform-band { border-bottom: 1px solid var(--line); background: var(--surface); }
.platform-row { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px 56px; align-items: center; padding-block: 36px; }
.platform-row h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.015em; color: var(--ink); }
.platform-row p { margin: 0; color: var(--muted); max-width: 56ch; }
.platform-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.platform-list li { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; border-top: 3px solid var(--pc, var(--line-strong)); background: var(--surface); }
.pl-name { font-weight: 600; color: var(--ink); font-size: 14.5px; }
.pl-scale { font-size: 12.5px; color: var(--muted); }
.platform-list .is-soon { border-top-color: var(--line); background: var(--paper); }
.platform-list .is-soon .pl-name { color: var(--muted); }

/* ---- Sections ---------------------------------------------------------- */
.section-title { margin: 0 0 12px; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; font-weight: 700; letter-spacing: -.025em; color: var(--ink); max-width: 20ch; }
.section-lead { margin: 0 0 28px; font-size: 17px; color: var(--muted); max-width: 56ch; }
.section-intro { margin-bottom: 36px; }
.solutions, .preview, .process, .contact { padding: 96px 0; }
.solutions { background: var(--paper); border-bottom: 1px solid var(--line); }
.solution-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.solution-grid article { padding: 28px 24px 30px; display: grid; gap: 10px; align-content: start; }
.solution-grid article + article { border-left: 1px solid var(--line); }
.sol-icon { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--sea-soft); color: var(--sea-strong); margin-bottom: 8px; }
.sol-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.solution-grid h3 { margin: 0; font-size: 17px; color: var(--ink); letter-spacing: -.01em; }
.solution-grid p { margin: 0; color: var(--muted); font-size: 14.5px; }

.preview-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.check-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 30px; color: var(--text); }
.check-list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--sea-soft); }
.check-list li::after { content: ""; position: absolute; left: 5px; top: 8px; width: 8px; height: 4px; border-left: 2px solid var(--sea-strong); border-bottom: 2px solid var(--sea-strong); transform: rotate(-45deg); }
.mock { display: grid; grid-template-columns: 58px 1fr; min-height: 340px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--paper); box-shadow: 0 24px 60px rgba(23, 24, 28, .10); }
.mock-side { display: flex; flex-direction: column; gap: 12px; padding: 16px 14px; background: var(--side-bg); border-right: 1px solid var(--line); }
.mock-side span { height: 8px; border-radius: 4px; background: var(--surface-2); }
.mock-side .mock-logo { width: 28px; height: 28px; border-radius: 8px; background: var(--sea); margin-bottom: 10px; }
.mock-side .is-on { background: var(--line-strong); }
.mock-main { display: grid; gap: 12px; padding: 18px; align-content: start; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-kpis div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px 0; overflow: hidden; }
.mock-kpis small { display: block; font-size: 11.5px; color: var(--muted); }
.mock-kpis b { font-size: 22px; color: var(--ink); }
.mock-kpis i { font-style: normal; font-size: 12px; color: var(--muted); margin-left: 3px; }
.mock-kpis em { display: block; font-style: normal; font-size: 11.5px; font-weight: 600; }
.mock-kpis .up { color: var(--pos); } .mock-kpis .down { color: var(--neg); } .mock-kpis .flat { color: var(--muted); }
.mock-kpis svg { display: block; width: calc(100% + 24px); height: 26px; margin: 4px -12px 0; }
.mock-kpis polyline { fill: none; stroke: var(--pc); stroke-width: 2; vector-effect: non-scaling-stroke; }
.mock-chart { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px; height: 128px; }
.mock-chart svg { width: 100%; height: 100%; }
.mock-rows { display: grid; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.mock-rows div { display: grid; grid-template-columns: 100px 1fr; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.mock-rows i { height: 8px; border-radius: 4px; background: var(--surface-2); position: relative; overflow: hidden; }
.mock-rows i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 4px; background: var(--c); }

/* ---- Process (a real sequence, so it is numbered) ---------------------- */
.process { background: var(--paper); border-block: 1px solid var(--line); }
.process-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.process-list { list-style: none; counter-reset: step; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.process-list li { counter-increment: step; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 20px 22px; }
.process-list li + li { border-top: 1px solid var(--line); }
.process-list li::before { content: counter(step); width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--ink); color: var(--surface); font-weight: 700; font-size: 14px; }
.process-list h3 { margin: 4px 0 4px; font-size: 16px; color: var(--ink); }
.process-list p { margin: 0; color: var(--muted); font-size: 14.5px; max-width: 52ch; }
.deliverable { margin-top: 5px; padding: 3px 9px; border-radius: 6px; background: var(--sea-soft); color: var(--sea-strong); font-size: 12px; font-weight: 600; white-space: nowrap; }

/* ---- Contact ----------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: start; }
.contact-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contact-points li { position: relative; padding-left: 22px; color: var(--text); font-weight: 500; }
.contact-points li::before { content: ""; position: absolute; left: 0; top: 8px; width: 9px; height: 9px; border-radius: 3px; background: var(--sea); }
.demo-form { display: grid; gap: 16px; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.demo-form .btn { justify-self: start; }
.input, .select, .textarea { border-radius: 10px; }
.hp { position: absolute; left: -9999px; }

/* ---- Login ------------------------------------------------------------- */
.auth { min-height: calc(100vh - 73px - 200px); display: grid; place-items: center; padding: 64px 20px; background: var(--paper); }
.auth-card { width: min(420px, 100%); display: grid; gap: 18px; padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-1); }
.auth-card h1 { margin: 0; font-size: 26px; color: var(--ink); letter-spacing: -.02em; }
.auth-card p { margin: 0; color: var(--muted); }
.auth-card .btn { width: 100%; }

/* ---- Footer ------------------------------------------------------------ */
.site-footer { padding: 48px 0 28px; background: var(--surface); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h2 { margin: 0 0 10px; font-size: 13px; color: var(--muted); font-weight: 600; }
.footer-grid nav, .footer-grid > div { display: grid; gap: 8px; align-content: start; }
.footer-grid a { color: var(--text); text-decoration: none; font-size: 14px; }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; }
.footer-brand p { margin: 6px 0 0; color: var(--muted); font-size: 14px; max-width: 36ch; }
.footer-legal { display: flex; justify-content: space-between; gap: 12px; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 1100px) {
  .site-nav { position: fixed; left: 0; right: 0; top: 73px; display: none; flex-direction: column; gap: 2px; padding: 12px 16px 18px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2); max-height: calc(100vh - 73px); overflow: auto; }
  .site-header.is-open .site-nav { display: flex; }
  .nav-link { width: 100%; justify-content: space-between; }
  .mega { position: static; transform: none; width: auto; opacity: 1; visibility: visible; grid-template-columns: 1fr; box-shadow: none; border: 0; padding: 0 0 6px 8px; }
  .has-menu:hover .mega, .has-menu:focus-within .mega { transform: none; }
  .nav-toggle { display: inline-grid; }
  .hero-grid, .preview-grid, .contact-grid, .process-grid, .platform-row { grid-template-columns: 1fr; gap: 40px; }
  .solution-grid { grid-template-columns: 1fr 1fr; }
  .solution-grid article:nth-child(3) { border-left: 0; }
  .solution-grid article:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 680px) {
  .wrap, .header-row { width: calc(100% - 32px); }
  .hide-sm, .btn-header { display: none; }
  .brand-text small { display: none; }
  .hero { padding: 44px 0 52px; }
  .feed-item { grid-template-columns: 34px minmax(0, 1fr); }
  .feed-avatar { width: 34px; height: 34px; }
  .feed-score { position: absolute; right: 18px; top: 14px; }
  .feed-head { padding-right: 70px; }
  .feed-head time { margin-left: 0; }
  .dv-row { grid-template-columns: 92px 1fr 34px; }
  .platform-list { grid-template-columns: 1fr 1fr; }
  .solution-grid { grid-template-columns: 1fr; }
  .solution-grid article + article { border-left: 0; border-top: 1px solid var(--line); }
  .process-list li { grid-template-columns: 36px minmax(0, 1fr); }
  .deliverable { grid-column: 2; justify-self: start; margin-top: 0; }
  .form-row { grid-template-columns: 1fr; }
  .mock { grid-template-columns: 40px 1fr; }
  .mock-kpis b { font-size: 18px; }
  .solutions, .preview, .process, .contact { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-legal { flex-direction: column; }
}
