:root {
  --bg: #FBFBFD;
  --surface: #FFFFFF;
  --surface-2: #F2F4F7;
  --ink: #0F1822;
  --muted: #5E6875;
  --line: rgba(15, 24, 34, .10);
  --line-strong: rgba(15, 24, 34, .20);
  --accent: #1B3FD8;
  --accent-2: #5B7BFF;
  --accent-soft: rgba(27, 63, 216, .08);
  --btn: #1B3FD8;
  --btn-hover: #1633B5;
  --btn-ink: #FFFFFF;
  --signal: #FFB400;
  --signal-text: #8A5A00;
  --signal-soft: rgba(255, 180, 0, .16);
  --danger: #C62828;
  --ok: #15803D;
  --ok-soft: #E4F4E9;
  --shadow-lg: 0 2px 6px rgba(15, 24, 34, .04), 0 28px 60px -28px rgba(15, 24, 34, .28);
  --stage: #05070B;
  --stage-2: #10141B;
  --stage-3: #171C25;
  --stage-ink: #F4F6FA;
  --stage-muted: #939DAA;
  --stage-line: rgba(255, 255, 255, .10);
  --stage-line-strong: rgba(255, 255, 255, .22);
  --stage-accent: #8FA6FF;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --font: 'Geist', -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Consolas, monospace;
  --r-lg: 28px;
  --r-md: 16px;
  --nav-h: 52px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #050608;
    --surface: #0F1217;
    --surface-2: #0A0C10;
    --ink: #F2F4F7;
    --muted: #8F98A5;
    --line: rgba(255, 255, 255, .09);
    --line-strong: rgba(255, 255, 255, .18);
    --accent: #8FA6FF;
    --accent-2: #5B7BFF;
    --accent-soft: rgba(143, 166, 255, .12);
    --btn: #3358F2;
    --btn-hover: #4B6BFF;
    --btn-ink: #FFFFFF;
    --signal-text: #FFC53D;
    --signal-soft: rgba(255, 180, 0, .14);
    --danger: #F47272;
    --ok: #4ADE80;
    --ok-soft: rgba(74, 222, 128, .12);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .3), 0 28px 60px -24px rgba(0, 0, 0, .8);
    --stage: #0A0D12;
    --stage-2: #12161D;
    --stage-3: #1A1F28;
  }
}
:root[data-theme="dark"] {
  --bg: #050608;
  --surface: #0F1217;
  --surface-2: #0A0C10;
  --ink: #F2F4F7;
  --muted: #8F98A5;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .18);
  --accent: #8FA6FF;
  --accent-2: #5B7BFF;
  --accent-soft: rgba(143, 166, 255, .12);
  --btn: #3358F2;
  --btn-hover: #4B6BFF;
  --btn-ink: #FFFFFF;
  --signal-text: #FFC53D;
  --signal-soft: rgba(255, 180, 0, .14);
  --danger: #F47272;
  --ok: #4ADE80;
  --ok-soft: rgba(74, 222, 128, .12);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .3), 0 28px 60px -24px rgba(0, 0, 0, .8);
  --stage: #0A0D12;
  --stage-2: #12161D;
  --stage-3: #1A1F28;
}

/* Dark "stage" sections re-point the tokens, so every component inside just works. */
.stage {
  --surface: var(--stage-2);
  --surface-2: var(--stage-3);
  --ink: var(--stage-ink);
  --muted: var(--stage-muted);
  --line: var(--stage-line);
  --line-strong: var(--stage-line-strong);
  --accent: var(--stage-accent);
  --accent-soft: rgba(143, 166, 255, .12);
  --signal-text: #FFC53D;
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .3), 0 28px 60px -24px rgba(0, 0, 0, .8);
  background: var(--stage);
  color: var(--stage-ink);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
p, h1, h2, h3, h4 { margin: 0; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 70%, transparent); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 1180px; margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px); }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- type ---------- */
.hero-title, .h1, .h2 { font-weight: 600; text-wrap: balance; }
.h1 { font-size: clamp(3rem, 7.6vw, 6rem); line-height: .98; letter-spacing: -.048em; }
.h2 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); line-height: 1.02; letter-spacing: -.044em; }
.h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.15; letter-spacing: -.026em; font-weight: 600; }
.h4 { font-size: 1.2rem; line-height: 1.25; letter-spacing: -.02em; font-weight: 600; }
.lead { font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.42; letter-spacing: -.018em; color: var(--muted); max-width: 40ch; text-wrap: pretty; }
.eyebrow { font-size: clamp(1rem, 1.3vw, 1.15rem); font-weight: 600; color: var(--accent); letter-spacing: -.01em; }
.eyebrow-signal { color: var(--signal-text); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 500 1.02rem/1 var(--font); letter-spacing: -.01em; padding: 15px 26px; border-radius: 999px; border: 0; text-decoration: none; cursor: pointer; transition: background-color .3s var(--ease-out), transform .4s var(--ease-out); white-space: nowrap; }
.btn-primary { background: var(--btn); color: var(--btn-ink); }
.btn-primary:hover { background: var(--btn-hover); }
.btn-primary:active { transform: scale(.97); }
.btn-xs { padding: 8px 15px; font-size: .84rem; }
.btn-block { width: 100%; }
.btn-link { display: inline-flex; align-items: center; gap: 2px; color: var(--accent); font-size: 1.05rem; font-weight: 500; text-decoration: none; }
.btn-link .ic { width: 18px; height: 18px; transition: transform .4s var(--ease-out); }
.btn-link:hover .ic { transform: translateX(4px); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.cta-row.center { justify-content: center; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 60; height: var(--nav-h); background: rgba(8, 10, 14, .74); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); color: #F4F6FA; border-bottom: 1px solid rgba(255, 255, 255, .07); view-transition-name: nav; }
.nav-inner { max-width: 1180px; height: 100%; margin-inline: auto; padding-inline: clamp(16px, 4vw, 36px); display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.brand svg { width: 26px; height: 26px; }
.brand b { font-weight: 700; font-size: 1.05rem; letter-spacing: .09em; }
.links { display: flex; gap: 30px; margin-left: auto; }
.links a { font-size: .86rem; color: rgba(244, 246, 250, .72); text-decoration: none; transition: color .3s; }
.links a:hover, .links a[aria-current="page"] { color: #FFFFFF; }
.nav-login { font-size: .86rem; color: #F4F6FA; text-decoration: none; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); transition: border-color .3s, background-color .3s; }
.nav-login:hover { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .06); }
.menu-btn { display: none; width: 40px; height: 40px; margin-right: -8px; background: none; border: 0; cursor: pointer; position: relative; }
.menu-btn i { position: absolute; left: 11px; right: 11px; height: 1.5px; background: #F4F6FA; border-radius: 2px; transition: transform .45s var(--ease-out); }
.menu-btn i:first-child { transform: translateY(-4px); }
.menu-btn i:last-child { transform: translateY(4px); }
.menu-btn[aria-expanded="true"] i:first-child { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] i:last-child { transform: rotate(-45deg); }
.sheet { position: fixed; inset: var(--nav-h) 0 0 0; z-index: 55; background: rgba(8, 10, 14, .94); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); padding: 28px clamp(20px, 6vw, 40px); }
.sheet nav { display: grid; gap: 6px; }
.sheet a { color: #F4F6FA; text-decoration: none; font-size: 2rem; font-weight: 600; letter-spacing: -.035em; padding-block: 6px; animation: sheet-in .6s var(--ease-out) both; }
.sheet a:nth-child(2) { animation-delay: .04s; } .sheet a:nth-child(3) { animation-delay: .08s; } .sheet a:nth-child(4) { animation-delay: .12s; } .sheet a:nth-child(5) { animation-delay: .16s; } .sheet a:nth-child(6) { animation-delay: .2s; }
.sheet-login { margin-top: 18px; font-size: 1.1rem !important; font-weight: 500 !important; color: #8FA6FF !important; }
@keyframes sheet-in { from { transform: translateY(-14px); opacity: 0; } }
@media (max-width: 760px) {
  .links { display: none; }
  .nav-login { display: none; }
  .nav-cta { margin-left: auto; }
  .menu-btn { display: block; }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(96px, 13vw, 168px); }
.section-alt { background: var(--surface-2); }
.head { display: grid; gap: 18px; margin-bottom: clamp(44px, 6vw, 72px); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.split .head { margin-bottom: 0; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.rv { transform: translateY(28px) scale(.985); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
.rv.in { transform: none; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(64px, 9vw, 112px) 40px; background: radial-gradient(70% 55% at 50% 92%, rgba(27, 63, 216, .30), transparent 70%), var(--stage); }
.hero-copy { text-align: center; display: grid; justify-items: center; gap: 22px; position: relative; z-index: 2; }
.hero-name { font-size: clamp(1.1rem, 1.6vw, 1.35rem); font-weight: 600; letter-spacing: .14em; color: var(--stage-muted); }
.hero-title { font-size: clamp(3.6rem, 10.5vw, 8.4rem); line-height: .93; letter-spacing: -.056em; display: grid; }
.hero-title span { display: block; animation: rise 1.1s var(--ease-out) both; }
.hero-title span + span { animation-delay: .12s; }
.grad { background: linear-gradient(95deg, #8FA6FF 0%, #DCE3FF 55%, #FFFFFF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.hero-lead { margin-inline: auto; animation: rise 1.1s var(--ease-out) .24s both; }
.hero .cta-row { justify-content: center; animation: rise 1.1s var(--ease-out) .34s both; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); filter: blur(6px); } }
.hero-art { position: relative; max-width: 1240px; margin: clamp(28px, 5vw, 56px) auto 0; padding-inline: clamp(8px, 3vw, 32px); }
.truck-svg { width: 100%; height: auto; display: block; overflow: visible; }
.hero-modules { text-align: center; color: var(--stage-muted); font-size: .9rem; letter-spacing: -.005em; margin-top: 8px; }

.truck-svg .draw { stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: draw 1.7s var(--ease-io) forwards; animation-delay: calc(var(--d, 0) * 1ms); }
.truck-svg .car { stroke: #A9BAFF; stroke-width: 2; fill-opacity: 0; stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: draw 1.2s var(--ease-io) forwards, carfill 1s ease forwards; animation-delay: calc(var(--d) * 1ms), calc(var(--d) * 1ms + 700ms); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes carfill { to { fill-opacity: 1; } }
.truck-svg .lane { stroke: rgba(255, 255, 255, .16); stroke-width: 2; stroke-dasharray: 42 30; animation: lane 1s linear infinite; }
.truck-svg .lane-2 { stroke: rgba(255, 255, 255, .07); stroke-dasharray: 90 60; animation-duration: 1.6s; }
@keyframes lane { to { stroke-dashoffset: 72; } }
.truck-svg .lane-2 { animation-name: lane2; }
@keyframes lane2 { to { stroke-dashoffset: 150; } }
.truck-svg .spin { transform-box: view-box; animation: spin 1.1s linear infinite; }
@keyframes spin { to { transform: rotate(-360deg); } }
.truck-svg .beam { animation: beam 3.2s ease-in-out infinite; opacity: .8; }
@keyframes beam { 50% { opacity: .45; } }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.tile { position: relative; display: flex; flex-direction: column; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; min-height: 300px; transition: translate .7s var(--ease-out), box-shadow .7s var(--ease-out); }
.tile:hover { translate: 0 -5px; box-shadow: var(--shadow-lg); }
.tile-copy { padding: clamp(24px, 3vw, 34px) clamp(24px, 3vw, 34px) 0; display: grid; gap: 8px; max-width: 44ch; position: relative; z-index: 2; }
.tile-kicker { font-size: .88rem; font-weight: 600; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tile p { color: var(--muted); }
.tile .art { position: relative; flex: 1; min-height: 190px; }
.tile-more { position: absolute; right: 18px; bottom: 18px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; transition: transform .6s var(--ease-out); }
.stage .tile-more, .tile.stage .tile-more { background: #F4F6FA; color: #05070B; }
.tile-more .ic { width: 18px; height: 18px; stroke-width: 2; }
.tile:hover .tile-more { transform: rotate(90deg); }
.badge { font-size: .74rem; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: var(--signal-soft); color: var(--signal-text); letter-spacing: 0; }
.badge-muted { background: var(--accent-soft); color: var(--accent); }
.t-deca { grid-column: span 7; grid-row: span 2; min-height: 620px; }
.t-operaciones, .t-planificacion { grid-column: span 5; }
.t-stock, .t-finanzas, .t-documentos { grid-column: span 4; min-height: 380px; }
.t-jornada, .t-accesos { grid-column: span 6; min-height: 340px; }
@media (max-width: 1024px) {
  .t-deca { grid-column: span 12; grid-row: auto; min-height: 520px; }
  .t-operaciones, .t-planificacion, .t-jornada, .t-accesos { grid-column: span 6; }
  .t-stock, .t-finanzas { grid-column: span 6; }
  .t-documentos { grid-column: span 12; }
}
@media (max-width: 680px) {
  .bento > .tile { grid-column: span 12; min-height: 360px; }
}

/* ---------- arts ---------- */
.art-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ops { position: absolute; inset: 4% 8% 24%; display: grid; gap: 10px; align-content: center; }
.ops-row { position: relative; display: grid; grid-template-columns: 10px 1fr .55fr 22%; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); animation: ops-hl 4.8s var(--ease-io) infinite paused; animation-delay: calc(var(--i) * 1.2s); }
.ops-row::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; border: 1.5px solid var(--accent); opacity: 0; animation: ops-ring 4.8s var(--ease-io) infinite paused; animation-delay: inherit; }
.ops-row i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.ops-row:nth-child(2) i { background: var(--accent-2); }
.ops-row:nth-child(3) i { background: var(--signal); }
.ops-row:nth-child(4) i { background: var(--muted); }
.ops-row b { height: 7px; width: var(--w); border-radius: 4px; background: var(--line-strong); }
.ops-pill { height: 7px; border-radius: 4px; background: var(--line); overflow: hidden; }
.ops-pill span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(.18); animation: pill 4.8s var(--ease-io) infinite paused; animation-delay: calc(var(--i) * 1.2s); }
.live .ops-row, .live .ops-row::after, .live .ops-pill span { animation-play-state: running; }
@keyframes ops-hl { 0%, 34%, 100% { transform: none; } 8%, 24% { transform: translateX(8px) scale(1.012); } }
@keyframes ops-ring { 0%, 34%, 100% { opacity: 0; } 8%, 24% { opacity: .55; } }
@keyframes pill { 0% { transform: scaleX(.18); } 55%, 100% { transform: scaleX(1); } }

.plan { position: absolute; inset: 6% 6% 12%; }
.plan i { position: absolute; left: 0; top: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; transform: translate(var(--x0, 0), var(--y0, 0)); transition: transform 1.2s var(--ease-out); transition-delay: calc(var(--k) * 22ms); box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 0%, transparent); }
.plan.grouped i { transform: translate(var(--x1, 0), var(--y1, 0)); }
.plan em { position: absolute; left: 14%; right: 14%; height: 1px; background: var(--line-strong); opacity: 0; transition: opacity .9s var(--ease-out); }
.plan.grouped em { opacity: 1; }

.stock { position: absolute; inset: 14% 8% 18%; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; align-content: center; }
.stock span { position: relative; aspect-ratio: 1.45; border: 1px dashed var(--line-strong); border-radius: 7px; }
.stock span::after { content: ""; position: absolute; inset: 3px; border-radius: 5px; background: linear-gradient(160deg, var(--accent-2), var(--accent)); opacity: 0; transform: scale(.4); transition: opacity .7s var(--ease-out), transform .9s var(--ease-out); }
.stock span.on::after { opacity: .92; transform: none; }

.fin { position: absolute; inset: 8% 6% 14%; width: 88%; height: 78%; overflow: visible; }
.fin .grid { stroke: var(--line); stroke-width: 1; }
.fin .line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease-io); }
.fin .area { opacity: 0; transition: opacity 1.4s var(--ease-out) 1s; }
.fin .dot { fill: var(--accent); opacity: 0; transition: opacity .5s 2s; }
.fin .pulse { fill: none; stroke: var(--accent); opacity: 0; transform-box: fill-box; transform-origin: center; }
.drawn .fin .line { stroke-dashoffset: 0; }
.drawn .fin .area { opacity: 1; }
.drawn .fin .dot { opacity: 1; }
.live.drawn .fin .pulse { animation: pulse 2.2s var(--ease-out) 2.2s infinite; }
@keyframes pulse { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(3.2); } }

.docs { position: absolute; inset: 0 0 8%; display: grid; place-items: center; }
.sheet-doc { position: absolute; width: min(34%, 150px); aspect-ratio: .74; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 10%; display: flex; flex-direction: column; gap: 8%; transition: transform 1.1s var(--ease-out); }
.sheet-doc b { height: 9%; width: 55%; border-radius: 3px; background: var(--accent); }
.sheet-doc i { height: 5%; border-radius: 3px; background: var(--line-strong); }
.sheet-doc i.short { width: 60%; }
.sheet-doc.s0 { transform: translate(-6%, 4%) rotate(-5deg); }
.sheet-doc.s1 { transform: translate(6%, 2%) rotate(4deg); }
.sheet-doc.s2 { transform: none; }
.fan .sheet-doc.s0, .tile:hover .sheet-doc.s0 { transform: translate(-62%, 8%) rotate(-13deg); }
.fan .sheet-doc.s1, .tile:hover .sheet-doc.s1 { transform: translate(62%, 8%) rotate(13deg); }
.fan .sheet-doc.s2, .tile:hover .sheet-doc.s2 { transform: translateY(-6%); }

.time { position: absolute; inset: 6% 0 10%; margin: auto; height: 88%; width: 100%; overflow: visible; }
.time .track { fill: none; stroke: var(--line); stroke-width: 10; }
.time .arc { fill: none; stroke-width: 10; stroke-linecap: round; stroke-dasharray: 100 100; stroke-dashoffset: 100; transform: rotate(-90deg); transform-box: fill-box; transform-origin: center; transition: stroke-dashoffset 2s var(--ease-io); }
.drawn .time .arc { stroke-dashoffset: 28; }
.time .tick { stroke: var(--line-strong); stroke-width: 2; stroke-linecap: round; }
.time text { fill: var(--ink); font-family: var(--font); font-weight: 600; letter-spacing: -.04em; }

.gate { position: absolute; inset: 8% 6% 12%; width: 88%; height: 80%; overflow: hidden; }
.gate .ground { stroke: var(--line-strong); stroke-width: 2; stroke-dasharray: 10 8; }
.gate .post { fill: var(--ink); }
.gate .arm { transform-box: view-box; transform-origin: 84px 78px; animation: arm 5.5s var(--ease-io) infinite paused; }
.gate .gate-car { animation: gcar 5.5s var(--ease-io) infinite paused; }
.live .gate .arm, .live .gate .gate-car { animation-play-state: running; }
@keyframes arm { 0%, 12% { transform: rotate(0); } 26%, 62% { transform: rotate(-72deg); } 78%, 100% { transform: rotate(0); } }
@keyframes gcar { 0%, 22% { transform: translateX(-150px); } 64%, 100% { transform: translateX(380px); } }

/* ---------- story ---------- */
.story { height: 290vh; position: relative; }
.story-sticky { position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); display: grid; align-items: center; overflow: hidden; }
.story-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: center; width: 100%; }
.story-copy { display: grid; gap: 26px; justify-items: start; }
.story-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.story-steps li { padding: 14px 0 14px 20px; border-left: 2px solid var(--line); color: var(--muted); transition: color .6s var(--ease-out), border-color .6s var(--ease-out); }
.story-steps li p { font-size: .98rem; max-width: 40ch; margin-top: 4px; }
.story-steps li .h4 { color: var(--muted); transition: color .6s var(--ease-out); }
.story-steps li.is-on { border-left-color: var(--signal); color: color-mix(in srgb, var(--ink) 78%, transparent); }
.story-steps li.is-on .h4 { color: var(--ink); }
.story-cd { color: var(--muted); font-size: .98rem; }
.story-cd b { color: var(--signal); font-variant-numeric: tabular-nums; font-weight: 600; }
.story-art { position: relative; height: min(72vh, 620px); }
.story-art canvas, .deca-canvas-box canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 900px) {
  .story { height: auto; padding-block: 96px; }
  .story-sticky { position: static; height: auto; overflow: visible; }
  .story-grid { grid-template-columns: 1fr; }
  .story-art { height: 440px; }
  .story-steps li { border-left-color: var(--signal); }
  .story-steps li .h4 { color: var(--ink); }
}

/* ---------- benefits / points ---------- */
.benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px); }
.benefit, .points article { display: grid; gap: 12px; align-content: start; }
.benefit p, .points p { color: var(--muted); max-width: 34ch; }
.icon-bubble { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 8px; }
.icon-bubble .ic { width: 26px; height: 26px; }
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(44px, 5vw, 72px) clamp(32px, 4vw, 56px); }
@media (max-width: 860px) { .benefits, .points { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .benefits, .points { grid-template-columns: 1fr; } }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 1.08rem; }
.checks li { display: flex; gap: 10px; align-items: center; }
.checks .ic { color: var(--accent); width: 22px; height: 22px; }

/* ---------- languages ring ---------- */
.langs-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.langs-grid .head { margin-bottom: 0; }
@media (max-width: 900px) { .langs-grid { grid-template-columns: 1fr; } }
.ring { position: relative; height: clamp(300px, 36vw, 440px); }
.ring-word { position: absolute; left: 50%; top: 50%; font-size: clamp(1.1rem, 2vw, 1.6rem); font-weight: 600; letter-spacing: -.02em; white-space: nowrap; will-change: transform, opacity; }
.ring-core { position: absolute; left: 50%; top: 50%; width: 88px; height: 88px; transform: translate(-50%, -50%); z-index: 50; border-radius: 24px; box-shadow: 0 18px 50px -12px rgba(27, 63, 216, .55); }
.ring-core svg { width: 100%; height: 100%; display: block; }

/* ---------- map ---------- */
.map-box { position: relative; aspect-ratio: 1.08; max-width: 100%; }
.map-box canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- CTA ---------- */
.cta-final { text-align: center; }
.cta-final .wrap { display: grid; justify-items: center; gap: 22px; }
.cta-final .lead { margin-inline: auto; }

/* ---------- product ---------- */
.page-hero { padding-block: clamp(80px, 11vw, 140px) clamp(56px, 8vw, 96px); }
.page-hero .wrap > * + * { margin-top: 22px; }
.page-hero .split > div > * + * { margin-top: 22px; }
.seg { position: sticky; top: var(--nav-h); z-index: 40; background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid var(--line); }
.seg-scroll { position: relative; max-width: 1180px; margin-inline: auto; padding: 10px clamp(16px, 4vw, 44px); display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.seg-scroll::-webkit-scrollbar { display: none; }
.seg-scroll a { position: relative; z-index: 1; flex: none; font-size: .88rem; font-weight: 500; color: var(--muted); text-decoration: none; padding: 8px 14px; border-radius: 999px; transition: color .4s var(--ease-out); }
.seg-scroll a[aria-current="true"] { color: var(--bg); }
.seg-ind { position: absolute; top: 10px; height: calc(100% - 20px); left: 0; width: 0; border-radius: 999px; background: var(--ink); transition: transform .6s var(--ease-out), width .6s var(--ease-out); }
.module { padding-block: clamp(88px, 11vw, 140px); scroll-margin-top: calc(var(--nav-h) + 56px); }
.module-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.module.flip .module-art { order: -1; }
@media (max-width: 900px) { .module-grid { grid-template-columns: 1fr; } .module.flip .module-art { order: 0; } }
.module-copy { display: grid; gap: 22px; justify-items: start; }
.module-art { position: relative; aspect-ratio: 5 / 4; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.module.section-alt .module-art { background: var(--bg); }
.module-art .art { position: absolute; inset: 0; }

/* ---------- deca page ---------- */
.deca-hero { background: radial-gradient(60% 60% at 80% 0%, rgba(255, 180, 0, .10), transparent 60%), var(--stage); }
.cd { display: flex; flex-wrap: wrap; gap: clamp(18px, 4vw, 48px); margin-top: 44px !important; }
.cd div { display: grid; }
.cd b { font-size: clamp(3rem, 9vw, 7rem); font-weight: 600; letter-spacing: -.055em; line-height: 1; font-variant-numeric: tabular-nums; }
.cd b.roll { animation: roll .55s var(--ease-out); }
@keyframes roll { from { transform: translateY(-22%); opacity: .25; filter: blur(4px); } }
.cd small { color: var(--muted); font-size: .98rem; margin-top: 6px; }
.cd-done { font-size: 1.5rem; font-weight: 600; color: var(--signal-text); }
.deca-show { padding-top: 0; }
.deca-canvas-box { position: relative; aspect-ratio: 1; max-height: 620px; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 32px; }
.features article { display: grid; gap: 8px; align-content: start; }
.features .ic { width: 28px; height: 28px; color: var(--signal); margin-bottom: 6px; }
.features p { color: var(--muted); }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }
.faq-wrap { max-width: 900px; }
.faq .q { border-top: 1px solid var(--line); }
.faq .q:last-child { border-bottom: 1px solid var(--line); }
.faq button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0; background: none; border: 0; color: var(--ink); font: 500 clamp(1.15rem, 2vw, 1.4rem)/1.3 var(--font); letter-spacing: -.02em; text-align: left; cursor: pointer; }
.faq button .ic { transition: transform .6s var(--ease-out); width: 22px; height: 22px; }
.faq button[aria-expanded="true"] .ic { transform: rotate(45deg); }
.faq .a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease-out); }
.faq .a > div { overflow: hidden; }
.faq .a p { color: var(--muted); padding-bottom: 26px; max-width: 62ch; font-size: 1.08rem; }
.faq .q.open .a { grid-template-rows: 1fr; }

/* ---------- demo ---------- */
.demo-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.demo-grid > div > * + * { margin-top: 22px; }
@media (max-width: 900px) { .demo-grid { grid-template-columns: 1fr; } }
.card-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3.4vw, 40px); box-shadow: var(--shadow-lg); display: grid; gap: 20px; margin: 0 !important; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-size: .92rem; font-weight: 500; padding: 0; margin-bottom: 0; }
.field legend { margin-bottom: 8px; }
.opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; width: 100%; transition: border-color .3s, box-shadow .3s; }
.field textarea { resize: vertical; }
.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 input[aria-invalid="true"] { border-color: var(--danger); }
.err { color: var(--danger); font-size: .82rem; min-height: 0; }
.err:empty { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: .9rem; transition: background-color .3s var(--ease-out), color .3s, border-color .3s; }
.chip span .ic { width: 14px; height: 14px; stroke-width: 2.4; display: none; }
.chip input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip input:checked + span .ic { display: block; }
.chip input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 70%, transparent); outline-offset: 2px; }
.form-result { border-radius: 16px; padding: 16px 18px; background: var(--ok-soft); color: var(--ink); animation: rise .7s var(--ease-out) both; }
.form-result strong { display: block; color: var(--ok); margin-bottom: 4px; }
.form-result p { color: var(--muted); font-size: .95rem; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 36px 52px; color: var(--muted); font-size: .86rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 36px; }
.brand-foot { color: var(--ink); }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.footer-inner p { margin-left: auto; }
@media (max-width: 700px) { .footer-inner p { margin-left: 0; } }

/* ---------- page transitions ---------- */
@view-transition { navigation: auto; }
::view-transition-group(nav) { animation: none; }
::view-transition-old(root) { animation: vt-out .38s var(--ease-io) both; }
::view-transition-new(root) { animation: vt-in .72s var(--ease-out) .06s both; }
::view-transition-group(module-art) { animation-duration: .85s; animation-timing-function: var(--ease-out); }
::view-transition-old(module-art), ::view-transition-new(module-art) { animation-duration: .85s; height: 100%; object-fit: cover; }
@keyframes vt-out { to { opacity: 0; transform: scale(.975); filter: blur(8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(26px) scale(1.01); filter: blur(8px); } }
.page-enter { animation: vt-in .72s var(--ease-out) both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .rv { transform: none; }
  .truck-svg .draw, .truck-svg .car { stroke-dashoffset: 0; animation: none; }
  .truck-svg .car { fill-opacity: 1; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
