/* site.css */
/* Styles de la vitrine : jetons de la charte de l'application, animations pilotées par le défilement, mise en page adaptative */

@font-face { font-family: 'Inter Variable'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(fonts/inter-latin-wght-normal.woff2) format('woff2-variations');
  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 Variable'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(fonts/inter-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,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: 'Inter Variable'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(fonts/inter-greek-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF; }
@font-face { font-family: 'Inter Variable'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(fonts/inter-cyrillic-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }

@property --angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

:root {
  /* the charter of the application (web/src/styles/tokens.css) */
  --bg-app: #F7F7F8;
  --surface: #FFFFFF;
  --lane-even: #F5F5F5;
  --border: #E3E4E8;
  --text: #1D1D1F;
  --text-muted: #6B6E76;
  --accent: #5B5BD6;
  --accent-strong: #4343B8;
  --edge: #80858E;
  --success: #2F8F5B;
  --ai-start: #5B5BD6;
  --ai-end: #9B4FCB;
  --ai-gradient: linear-gradient(135deg, var(--ai-start), var(--ai-end));
  --ai-soft: #F3F0FD;
  --ai-border: #DAD3F6;
  --ai-ink: #4A3BAE;
  --canvas-dot: #E3E4E8;
  --shadow-step: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .10);
  --lane-1-pastel: #F9DCE6; --lane-1-ink: #8A3459;
  --lane-2-pastel: #E5E0F8; --lane-2-ink: #4F3F99;
  --lane-3-pastel: #D9E9FA; --lane-3-ink: #285B8C;
  --lane-4-pastel: #D5F0E3; --lane-4-ink: #276A4F;
  --lane-5-pastel: #FCE3D4; --lane-5-ink: #8A4424;
  --lane-6-pastel: #F8EFC8; --lane-6-ink: #6E5A10;
  --lane-7-pastel: #EEDDF4; --lane-7-ink: #6E3D86;
  --lane-8-pastel: #D4EEF0; --lane-8-ink: #25646B;
  --font-sans: 'Inter Variable', 'Segoe UI Variable', system-ui, sans-serif;
  --font-mono: ui-monospace, 'Cascadia Mono', Consolas, monospace;

  /* the site */
  --page: #FBFBFC;
  --night: #0B0B17;
  --night-text: #ECECF6;
  --night-muted: #A3A3BD;
  --radius-card: 18px;
  --max: 1180px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--text); font: 400 16px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3 { margin: 0; line-height: 1.08; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
button { font: inherit; }
svg { display: block; }
::selection { background: var(--lane-2-pastel); color: var(--lane-2-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 16px; }

/* ---------- navigation ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; gap: 28px;
  height: 64px; padding: 0 max(20px, calc((100vw - var(--max)) / 2)); border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, box-shadow .3s; }
.nav.scrolled { background: rgba(251, 251, 252, .78); border-color: var(--border);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); }
@supports (animation-timeline: scroll()) {
  .nav { animation: nav-solid linear both; animation-timeline: scroll(root); animation-range: 0 140px; }
  @keyframes nav-solid {
    from { background: rgba(251, 251, 252, 0); border-color: transparent; }
    to { background: rgba(251, 251, 252, .78); border-color: var(--border);
      -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); }
  }
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 17px; text-decoration: none; letter-spacing: -.01em; }
.brand-mark { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 26px; font-size: 14px; color: var(--text-muted); }
.nav-links a { text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.lang { display: flex; padding: 3px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.lang button { border: 0; background: transparent; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  color: var(--text-muted); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--surface); color: var(--accent-strong); box-shadow: inset 0 0 0 1.5px var(--accent); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 12px;
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .25s var(--ease-out), box-shadow .25s, background .2s; }
.btn svg { width: 19px; height: 19px; }
.btn-small { height: 36px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: #C9CBD3; transform: translateY(-1px); }
.btn-glow { position: relative; box-shadow: 0 8px 28px -8px rgba(91, 91, 214, .55), 0 2px 6px rgba(91, 91, 214, .25); }
.btn-glow::before { content: ""; position: absolute; inset: -2px; border-radius: 14px; z-index: -1;
  background: conic-gradient(from var(--angle), var(--ai-start), var(--ai-end), #F49AC1, var(--ai-start));
  filter: blur(10px); opacity: .55; animation: spin 6s linear infinite; }
.btn-big { height: 58px; padding: 0 30px; font-size: 17px; border-radius: 14px; }
@keyframes spin { to { --angle: 360deg; } }

/* ---------- hero ---------- */
.hero { position: relative; padding: 140px 20px 40px; overflow: hidden; isolation: isolate; }
.aurora { position: absolute; inset: 0 0 auto 0; width: 100%; height: 760px; z-index: -2; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 95%); mask-image: linear-gradient(to bottom, #000 30%, transparent 95%); }
.dots { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(var(--canvas-dot) 1.2px, transparent 1.3px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 20%, transparent 75%); }
.hero-copy { max-width: 900px; margin: 0 auto; text-align: center; }
.eyebrow { position: relative; display: inline-flex; align-items: center; gap: 9px; padding: 7px 16px 7px 12px; border-radius: 999px;
  font-size: 13.5px; font-weight: 550; color: var(--ai-ink); background: rgba(255, 255, 255, .75); }
.eyebrow::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  background: conic-gradient(from var(--angle), var(--ai-start), var(--ai-end), #F49AC1, var(--ai-start));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: spin 4s linear infinite; }
.ai-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ai-gradient); box-shadow: 0 0 0 4px rgba(124, 92, 214, .16); }
.hero-title { margin: 26px 0 0; font-size: clamp(46px, 8.6vw, 112px); letter-spacing: -.045em; line-height: .98; }
.hero-title > span { display: block; }
.t-light { font-weight: 300; color: #2A2A33; animation: weight-in 1.6s var(--ease-out) both; }
.t-strong { font-weight: 800; }
@keyframes weight-in { from { font-weight: 100; letter-spacing: .02em; opacity: 0; filter: blur(8px); } }
.grad { font-style: normal; background: linear-gradient(90deg, var(--ai-start), var(--ai-end) 45%, #D0609E 70%, var(--ai-start));
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: grad-shift 9s ease-in-out infinite alternate; }
@keyframes grad-shift { to { background-position: 100% 0; } }
.hero-sub { max-width: 640px; margin: 26px auto 0; font-size: clamp(17px, 2vw, 19.5px); color: var(--text-muted); line-height: 1.55; }
.hero-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-note { margin-top: 16px; font-size: 13.5px; color: var(--text-muted); }

/* the application window of the demonstration */
.stage-wrap { max-width: var(--max); margin: 64px auto 0; perspective: 1600px; }
.stage { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 40px 80px -30px rgba(40, 32, 110, .35), 0 12px 30px -12px rgba(16, 24, 40, .18);
  transform-origin: 50% 0; }
@supports (animation-timeline: view()) {
  .stage { animation: flatten linear both; animation-timeline: view(); animation-range: entry 0% cover 38%; }
  @keyframes flatten { from { transform: rotateX(16deg) scale(.93); opacity: .6; } to { transform: none; opacity: 1; } }
}
.app-bar { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 14px; border-bottom: 1px solid var(--border); font-size: 13px; }
.app-logo { display: flex; align-items: center; gap: 8px; font-weight: 650; }
.app-logo svg { width: 22px; height: 22px; }
.app-sep { width: 1px; height: 20px; background: var(--border); }
.app-project { font-weight: 600; display: flex; align-items: center; gap: 6px; }
.chip-code { font: 500 10.5px var(--font-mono); padding: 2px 6px; border: 1px solid var(--border); border-radius: 6px; color: var(--text-muted); }
.app-spacer { flex: 1; }
.app-lang { display: flex; padding: 2px; border: 1px solid var(--border); border-radius: 999px; font-size: 11px; }
.app-lang b, .app-lang i { font-style: normal; padding: 1px 8px; border-radius: 999px; color: var(--text-muted); font-weight: 600; }
.app-lang b { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--text); }
.app-user { display: flex; align-items: center; gap: 7px; }
.initials { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: 11px; font-weight: 650;
  background: var(--lane-4-pastel); color: var(--lane-4-ink); }
.app-ribbon { display: flex; align-items: center; gap: 4px; height: 42px; padding: 0 12px; border-bottom: 1px solid var(--border); background: #FCFCFD; }
.rb { display: grid; place-items: center; width: 32px; height: 30px; border-radius: 8px; color: #5D6068; }
.rb i { display: block; border: 1.6px solid currentColor; }
.rb-rect { width: 15px; height: 11px; border-radius: 3px; }
.rb-pill { width: 17px; height: 10px; border-radius: 6px; }
.rb-diamond { width: 11px; height: 11px; transform: rotate(45deg); border-radius: 2px; }
.rb-link { width: 15px; height: 10px; border-width: 0 0 1.6px 1.6px !important; border-radius: 0 0 0 6px; }
.rb-sep { width: 1px; height: 22px; margin: 0 6px; background: var(--border); }
.rb-ai { width: auto; padding: 0 10px; gap: 5px; display: flex; font-size: 12px; font-weight: 650; color: var(--ai-ink);
  border: 1px solid var(--ai-border); background: var(--ai-soft); transition: box-shadow .3s; }
.rb-ai svg { width: 15px; height: 15px; }
.rb-ai.on { box-shadow: 0 0 0 4px rgba(124, 92, 214, .18), 0 0 18px rgba(124, 92, 214, .35); }
.app-body { display: grid; grid-template-columns: 1fr 312px; height: 440px; }
.canvas { position: relative; background-color: var(--bg-app);
  background-image: radial-gradient(var(--canvas-dot) 1px, transparent 1.2px); background-size: 18px 18px; overflow: hidden; }
.map { width: 100%; height: 100%; }

/* the swimlane map drawn by site.js */
.lane-bg { fill: #fff; }
.lane-bg.even { fill: var(--lane-even); }
.lane-line { stroke: #E8E8EC; stroke-width: 1; }
.lane-name { font: 600 12.5px var(--font-sans); }
.lane-code { font: 500 10px var(--font-mono); }
.step-box { fill: #fff; stroke: #D5D7DD; stroke-width: 1; transition: fill .5s, stroke .5s, stroke-dasharray .5s; }
.step-code { font: 500 9.5px var(--font-mono); }
.step-label { font: 500 11.5px var(--font-sans); fill: var(--text); }
.step-box.gw { stroke: var(--ink); stroke-width: 1.4; }
.step.preview .step-box, .step.preview .step-box.gw { fill: var(--ai-soft); stroke: #8C6CE0; stroke-dasharray: 4 3; stroke-width: 1.4; }
.step.preview .step-accent { opacity: 0; }
.step-accent { transition: opacity .5s; }
.step-shadow { filter: drop-shadow(0 1px 2px rgba(16, 24, 40, .08)) drop-shadow(0 2px 4px rgba(16, 24, 40, .06)); }
.edge { fill: none; stroke: var(--edge); stroke-width: 1.4; }
.edge-label { font: 500 10.5px var(--font-sans); fill: var(--text-muted); }
.arrow { fill: var(--edge); }

/* the assistant panel */
.assistant { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-left: 1px solid var(--border); background: #fff; font-size: 13px; }
.as-head { display: flex; align-items: center; gap: 8px; font-weight: 650; }
.as-mark { position: relative; width: 22px; height: 22px; border-radius: 50%; background: var(--ai-gradient); flex: none; }
.as-mark::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #fff; opacity: .9; }
.as-mark.small { width: 18px; height: 18px; }
.as-mark.small::after { inset: 5px; }
.as-mark.busy { animation: orbit 2.4s linear infinite; background: conic-gradient(from 0deg, var(--ai-start), var(--ai-end), #F49AC1, var(--ai-start)); }
@keyframes orbit { to { transform: rotate(360deg); } }
.as-field { position: relative; min-height: 148px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); line-height: 1.55;
  transition: border-color .3s, box-shadow .3s; }
.as-field.focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91, 91, 214, .2); }
.as-text { display: inline; white-space: pre-wrap; }
.as-text .actor { border-radius: 4px; transition: background .4s, color .4s; }
.as-text .actor.hl { padding: 0 2px; }
.as-text .act { transition: background-size .5s var(--ease-out); background: linear-gradient(transparent 62%, rgba(140, 108, 224, .28) 0) no-repeat 0 0 / 0% 100%; }
.as-text .act.hl { background-size: 100% 100%; }
.caret { display: inline-block; width: 1.5px; height: 1.1em; margin-left: 1px; vertical-align: -2px; background: var(--accent); animation: blink 1s steps(1) infinite; }
.caret.off { visibility: hidden; }
@keyframes blink { 50% { opacity: 0; } }
.as-actions { display: flex; align-items: center; justify-content: space-between; color: var(--text-muted); font-size: 12px; }
.as-send { padding: 6px 14px; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 600; transition: transform .15s, background .2s; }
.as-send.press, .as-apply.press { transform: scale(.93); }
.as-work { display: none; align-items: center; gap: 10px; color: var(--ai-ink); font-size: 12.5px; }
.as-work.on { display: flex; }
.as-bar { position: relative; width: 70px; height: 4px; border-radius: 4px; background: var(--ai-soft); overflow: hidden; }
.as-bar::after { content: ""; position: absolute; inset: 0; width: 40%; border-radius: inherit; background: var(--ai-gradient); animation: slide 1.6s ease-in-out infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.as-proposal { display: none; padding: 12px; border-radius: 12px; background: var(--ai-soft); border: 1px solid var(--ai-border); }
.as-proposal.on { display: block; animation: pop-in .5s var(--spring); }
@keyframes pop-in { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.as-kind { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ai-ink); }
.as-summary { margin-top: 4px; font-weight: 550; }
.as-buttons { display: flex; gap: 8px; margin-top: 10px; }
.as-apply { padding: 6px 14px; border-radius: 8px; background: var(--ai-gradient); color: #fff; font-weight: 600; transition: transform .15s; }
.as-ignore { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--ai-border); color: var(--ai-ink); background: #fff; }
.as-done { display: none; align-items: center; gap: 6px; margin-top: 10px; color: var(--success); font-size: 12.5px; font-weight: 600; }
.as-done svg { width: 16px; height: 16px; }
.as-done.on { display: flex; animation: pop-in .4s var(--spring); }
.as-proposal.applied .as-buttons { display: none; }

/* the words that fly from the story to the lanes */
.flyer { position: fixed; z-index: 60; margin: 0; padding: 0 2px; border-radius: 4px; pointer-events: none; white-space: nowrap;
  transform-origin: 0 0; font-family: var(--font-sans); will-change: transform; }

.stories { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.stories button { position: relative; overflow: hidden; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text-muted); font-size: 13.5px; font-weight: 550; cursor: pointer; transition: color .2s, border-color .2s; }
.stories button[aria-selected="true"] { color: var(--accent-strong); border-color: var(--ai-border); }
.stories button::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--ai-gradient);
  transform-origin: 0 0; transform: scaleX(var(--p, 0)); opacity: 0; }
.stories button[aria-selected="true"]::after { opacity: 1; }

/* ---------- sections ---------- */
.section { position: relative; padding: 130px 20px; }
.section-head { max-width: 780px; margin: 0 auto 64px; text-align: center; }
.section-head.left { margin: 0; text-align: left; }
.kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: var(--ai-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section h2 { margin-top: 14px; font-size: clamp(34px, 5vw, 58px); font-weight: 750; letter-spacing: -.035em; }
.lead { margin-top: 20px; font-size: clamp(16.5px, 1.8vw, 19px); color: var(--text-muted); line-height: 1.6; }

/* three gestures */
.steps-line { position: relative; max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.draw-line { position: absolute; left: 4%; right: 4%; top: 30px; width: 92%; height: 8px; overflow: visible; }
.draw-line path { fill: none; stroke: var(--ai-border); stroke-width: 2; stroke-dasharray: 1000; stroke-dashoffset: 0; }
@supports (animation-timeline: view()) {
  .draw-line path { stroke: var(--accent); animation: draw linear both; animation-timeline: view(); animation-range: entry 20% cover 55%; }
  @keyframes draw { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0; } }
}
.gesture { position: relative; padding: 0 6px; }
.g-num { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 22px; border-radius: 18px; background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow-step); font: 700 18px var(--font-mono); color: var(--accent-strong); position: relative; z-index: 1; }
.gesture h3 { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.gesture p { margin-top: 10px; color: var(--text-muted); }

/* bento */
.bento { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 270px; gap: 18px; }
.card { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding: 22px; overflow: hidden;
  border-radius: var(--radius-card); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-step);
  transition: transform .4s var(--ease-out), box-shadow .4s; }
.card::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(124, 92, 214, .10), transparent 60%); }
.card:hover::before { opacity: 1; }
.card:hover { box-shadow: 0 18px 40px -18px rgba(40, 32, 110, .28); }
.card h3 { font-size: 18px; font-weight: 680; letter-spacing: -.015em; }
.card p { margin-top: 6px; font-size: 14.5px; color: var(--text-muted); line-height: 1.5; }
.card-xl { grid-column: span 2; grid-row: span 2; }
.playground { width: 100%; flex: 1; min-height: 0; touch-action: none; user-select: none; -webkit-user-select: none; }
.pg-step { cursor: grab; }
.pg-step.dragging { cursor: grabbing; }
.pg-step.dragging .step-box { stroke: var(--accent); stroke-width: 1.6; }
.pg-lane-hot { fill: rgba(91, 91, 214, .06); }
.pg-hint { font: 600 11px var(--font-sans); fill: var(--accent-strong); }
.pg-cursor { pointer-events: none; }

.card-ai::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--angle), transparent 0 60%, var(--ai-start), var(--ai-end), transparent 95%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: spin 5s linear infinite; }
.prompt-chip { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; min-height: 66px; border-radius: 12px; background: var(--ai-soft);
  border: 1px solid var(--ai-border); font-size: 14px; color: var(--ai-ink); font-weight: 500; }
.prompt-typed::after { content: ""; display: inline-block; width: 1.5px; height: 1em; margin-left: 2px; vertical-align: -2px; background: currentColor; animation: blink 1s steps(1) infinite; }

.docs-flow { display: flex; align-items: center; gap: 12px; }
.doc-stack { display: grid; grid-template-columns: repeat(2, auto); gap: 5px; }
.doc { text-align: center; padding: 4px 7px; border-radius: 6px; font: 650 10.5px var(--font-mono); color: #fff; animation: doc-in 4s var(--ease-out) infinite; }
.d-pdf { background: #C0362C; } .d-doc { background: #285B8C; animation-delay: .25s; } .d-xls { background: #276A4F; animation-delay: .5s; } .d-vsd { background: #4F3F99; animation-delay: .75s; }
@keyframes doc-in { 0% { transform: translateX(0); opacity: 1; } 45% { transform: translateX(0); opacity: 1; } 60% { transform: translateX(26px) scale(.6); opacity: 0; } 61% { transform: translateX(-14px); opacity: 0; } 80%, 100% { transform: none; opacity: 1; } }
.docs-arrow { width: 40px; color: var(--accent); }
.mini-map { display: grid; gap: 4px; padding: 8px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-app); }
.mini-map i { display: block; width: 58px; height: 9px; border-radius: 3px; background: var(--lane-3-pastel); }
.mini-map i:nth-child(2) { background: var(--lane-4-pastel); width: 40px; margin-left: 16px; }
.mini-map i:nth-child(3) { background: var(--lane-1-pastel); width: 32px; margin-left: 26px; }

.nest { position: relative; height: 92px; }
.nest-step { position: absolute; left: 0; top: 18px; display: grid; place-items: center; width: 120px; height: 48px; border-radius: 10px; background: #fff;
  border: 1px solid #D5D7DD; box-shadow: var(--shadow-step); font: 500 10px var(--font-mono); color: var(--lane-3-ink); transition: transform .6s var(--ease-out); }
.nest-step::after { content: ""; position: absolute; right: 6px; bottom: 6px; width: 10px; height: 8px; border: 1.5px solid var(--lane-3-ink); border-radius: 2px; opacity: .7; }
.nest-sub { position: absolute; right: 0; top: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; width: 46%; height: 92px; padding: 8px;
  border-radius: 12px; border: 1.5px dashed var(--accent); background: rgba(91, 91, 214, .04); transform: scale(.4); transform-origin: 0 50%; opacity: 0;
  transition: transform .6s var(--spring), opacity .4s; }
.nest-sub i { border-radius: 5px; background: var(--lane-3-pastel); }
.nest-sub i:nth-child(2) { background: var(--lane-2-pastel); } .nest-sub i:nth-child(3) { background: var(--lane-4-pastel); }
.card:hover .nest-sub, .nest.on .nest-sub { transform: none; opacity: 1; }
.card:hover .nest-step, .nest.on .nest-step { transform: scale(.92); }

.sheet { display: grid; gap: 7px; font-size: 13px; }
.sh-row { display: flex; align-items: center; gap: 8px; }
.sh-row i { width: 15px; height: 15px; border-radius: 4px; border: 1.5px solid #C4C7CE; }
.sh-row i.ok { border-color: var(--success); background: var(--success) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.sh-row b { font-weight: 500; }
.sh-gauge { display: flex; align-items: center; gap: 8px; margin-top: 2px; font: 600 11.5px var(--font-mono); color: var(--success); }
.gauge { flex: 1; height: 6px; border-radius: 6px; background: var(--lane-4-pastel); overflow: hidden; }
.gauge i { display: block; height: 100%; width: calc(var(--v) * 100%); border-radius: inherit; background: var(--success); transform-origin: 0 0; }
.in .gauge i { animation: grow 1.4s var(--ease-out) both .3s; }
@keyframes grow { from { transform: scaleX(0); } }

.raci { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.raci i { display: grid; place-items: center; height: 26px; border-radius: 6px; background: var(--lane-even); font: 700 11.5px var(--font-mono); font-style: normal; color: #44464D; }
.raci .r { background: var(--lane-4-pastel); color: var(--lane-4-ink); } .raci .a { background: var(--lane-3-pastel); color: var(--lane-3-ink); }
.raci .c { background: var(--lane-7-pastel); color: var(--lane-7-ink); } .raci .i { background: var(--lane-5-pastel); color: var(--lane-5-ink); }
.in .raci i { animation: cell .5s var(--spring) both; }
.raci i:nth-child(n) { animation-delay: calc(var(--d, 0) * 1ms); }
@keyframes cell { from { transform: scale(.4); opacity: 0; } }

.flow { width: 100%; height: 80px; overflow: visible; }
.flow rect { fill: #fff; stroke: #D5D7DD; }
.flow .f1 { fill: var(--lane-5-pastel); stroke: var(--lane-5-ink); } .flow .f2 { fill: var(--lane-3-pastel); stroke: var(--lane-3-ink); } .flow .f3 { fill: var(--lane-4-pastel); stroke: var(--lane-4-ink); }
.flow text { font: 600 10px var(--font-mono); fill: var(--ai-ink); text-anchor: middle; }
.flow-path { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 6 8; animation: march 1.2s linear infinite; }
@keyframes march { to { stroke-dashoffset: -14; } }

.langs { display: flex; align-items: center; gap: 12px; height: 56px; overflow: hidden; }
.lang-code { flex: none; display: grid; place-items: center; width: 40px; height: 30px; border-radius: 8px; background: var(--lane-2-pastel); color: var(--lane-2-ink); font: 700 12px var(--font-mono); }
.lang-word { font-size: 18px; font-weight: 650; letter-spacing: -.01em; line-height: 1.2; }
.lang-word.swap { animation: word-swap .5s var(--ease-out); }
@keyframes word-swap { from { transform: translateY(70%); opacity: 0; filter: blur(4px); } }

.exports { display: flex; flex-wrap: wrap; gap: 8px; }
.exports span { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-app); font: 600 12.5px var(--font-mono); color: #44464D; transition: transform .3s var(--spring); }
.card:hover .exports span { transform: translateY(-3px); }
.card:hover .exports span:nth-child(2) { transition-delay: .04s; } .card:hover .exports span:nth-child(3) { transition-delay: .08s; } .card:hover .exports span:nth-child(4) { transition-delay: .12s; }

/* managers, at night */
.dark { background: var(--night); color: var(--night-text); overflow: hidden; isolation: isolate; }
.dark .aurora { height: 100%; z-index: -1; opacity: .9; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent); }
.dark-inner { max-width: var(--max); margin: 0 auto; }
.dark .lead { color: var(--night-muted); }
.dark .kicker { background: linear-gradient(90deg, #A9A9FF, #E2A8FF); -webkit-background-clip: text; background-clip: text; }
.hooks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.hook { padding: 28px; border-radius: var(--radius-card); background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .09);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.hook h3 { font-size: 21px; font-weight: 680; letter-spacing: -.015em; }
.hook p { margin-top: 10px; color: var(--night-muted); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 56px; padding-top: 44px; border-top: 1px solid rgba(255, 255, 255, .1); }
.stat { display: flex; flex-direction: column; gap: 6px; color: var(--night-muted); font-size: 14.5px; }
.num { font-size: clamp(44px, 6vw, 72px); font-weight: 750; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff, #B9B9F5); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* teams */
.teams-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.ticks { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 32px; color: #3B3D44; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 6px; background: var(--ai-soft)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%234A3BAE' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat; }
.teams-visual { position: relative; padding: 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 30px 60px -30px rgba(40, 32, 110, .3); }
.tv-lane { display: grid; grid-template-columns: 112px 1fr; align-items: center; height: 84px; border-bottom: 1px solid #E8E8EC; }
.tv-lane:last-of-type { border-bottom: 0; }
.tv-head { align-self: stretch; display: flex; align-items: center; padding-left: 12px; font-size: 13px; font-weight: 600; border-radius: 8px 0 0 8px; }
.l1 .tv-head { background: var(--lane-5-pastel); color: var(--lane-5-ink); box-shadow: inset -3px 0 var(--lane-5-ink); }
.l2 .tv-head { background: var(--lane-3-pastel); color: var(--lane-3-ink); box-shadow: inset -3px 0 var(--lane-3-ink); }
.l3 .tv-head { background: var(--lane-4-pastel); color: var(--lane-4-ink); box-shadow: inset -3px 0 var(--lane-4-ink); }
.tv-step { justify-self: start; margin-left: 22px; padding: 11px 14px; border-radius: 10px; background: #fff; border: 1px solid #D5D7DD; box-shadow: var(--shadow-step); font-size: 13px; font-weight: 500; }
.tv-step.s2 { margin-left: 120px; }
.tv-step.s3 { margin-left: 230px; }
.tv-step.focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(91, 91, 214, .15); }
.tv-bubble { position: relative; display: flex; gap: 10px; max-width: 330px; margin: 16px 0 26px 200px; padding: 12px 14px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--ai-border); box-shadow: 0 14px 34px -14px rgba(40, 32, 110, .35); font-size: 13px; }
.tv-bubble::before { content: ""; position: absolute; left: 40px; top: -7px; width: 12px; height: 12px; background: var(--surface);
  border-left: 1px solid var(--ai-border); border-top: 1px solid var(--ai-border); transform: rotate(45deg); }
.in .tv-bubble { animation: bubble 7s var(--ease-out) infinite; }
@keyframes bubble { 0%, 6% { opacity: 0; transform: translateY(10px) scale(.96); } 14%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
.tv-bubble p { display: grid; gap: 2px; }
.tv-bubble b { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ai-ink); }
.i-anim { flex: none; background: var(--lane-2-pastel); color: var(--lane-2-ink); }
.tv-avatars { position: absolute; left: 22px; bottom: -16px; display: flex; }
.tv-avatars .initials { width: 34px; height: 34px; margin-right: -8px; border: 2.5px solid var(--page); }
.tv-avatars .i2 { background: var(--lane-3-pastel); color: var(--lane-3-ink); }
.tv-avatars .i3 { background: var(--lane-2-pastel); color: var(--lane-2-ink); }
.tv-avatars .i4 { background: #ECECF1; color: var(--text-muted); }

/* download */
.download { padding-top: 40px; }
.dl-card { position: relative; max-width: 920px; margin: 0 auto; padding: 72px 32px 56px; text-align: center; border-radius: 28px; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 50% 0%, #EFEBFF 0%, #fff 60%); border: 1px solid var(--ai-border); }
.dl-glow { position: absolute; left: 50%; top: -140px; width: 520px; height: 280px; transform: translateX(-50%); z-index: -1; border-radius: 50%;
  background: conic-gradient(from var(--angle), var(--ai-start), var(--ai-end), #F49AC1, var(--ai-start)); filter: blur(70px); opacity: .35; animation: spin 10s linear infinite; }
.dl-card h2 { margin: 0 auto; max-width: 700px; }
.dl-card .btn { margin-top: 34px; }
.dl-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin: 30px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--text-muted); }
.dl-facts li::before { content: "·"; margin-right: 8px; color: var(--accent); font-weight: 800; }

/* footer */
.footer { max-width: var(--max); margin: 0 auto; padding: 56px 20px 40px; display: grid; gap: 30px; border-top: 1px solid var(--border); font-size: 14px; color: var(--text-muted); }
.foot-brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; }
.foot-slogan { margin-left: 10px; color: var(--text-muted); font-weight: 400; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.foot-cols p { display: grid; gap: 4px; }
.foot-cols b { color: var(--text); font-weight: 600; }
.foot-cols a { text-decoration: none; color: var(--accent-strong); }
.foot-copy { font-size: 13px; }
.foot-copy a { text-underline-offset: 3px; }
.foot-copy a:hover { color: var(--text); }

/* legal notice page */
.legal-page .nav { animation: none; background: rgba(251, 251, 252, .86); border-color: var(--border);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); }
.legal { max-width: 760px; margin: 0 auto; padding: 132px 20px 72px; }
.legal h1 { font-size: clamp(34px, 5vw, 48px); letter-spacing: -.025em; margin-top: 10px; }
.legal .lead { margin-top: 14px; }
.legal section { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border); }
.legal h2 { font-size: 20px; letter-spacing: -.01em; }
.legal section p, .legal address { margin-top: 12px; color: var(--text-muted); font-style: normal; line-height: 1.65; }
.legal section a { color: var(--accent-strong); text-underline-offset: 3px; }
.legal b { color: var(--text); font-weight: 600; }
.legal-foot { padding-top: 32px; }

/* the download, before the release is online */
.btn.is-soon { cursor: default; }
.btn.is-soon:hover { background: var(--accent); transform: none; }

/* ---------- reveals: driven by the scroll where the browser can, by site.js elsewhere ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
@supports (animation-timeline: view()) {
  .js .reveal { opacity: 1; transform: none; animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  @keyframes rise { from { opacity: 0; transform: translateY(40px) scale(.98); } }
}

/* ---------- small screens ---------- */
@media (max-width: 1060px) {
  .nav-links { display: none; }
  .app-body { grid-template-columns: 1fr; height: auto; }
  .canvas { height: 300px; }
  .assistant { border-left: 0; border-top: 1px solid var(--border); }
  .as-field { min-height: 0; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card-xl { grid-row: span 2; }
  .teams-grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 680px) {
  .hero { padding-top: 112px; }
  .nav-end .btn { display: none; }
  .hide-sm, .app-lang, .app-ribbon { display: none; }
  .stage { animation: none; }
  .canvas { height: 300px; overflow-x: auto; overscroll-behavior-x: contain; }
  .map { width: 640px; }
  .section { padding: 96px 16px; }
  .steps-line { grid-template-columns: 1fr; gap: 36px; }
  .draw-line { display: none; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .card { min-height: 230px; }
  .card-xl { grid-column: auto; grid-row: auto; min-height: 380px; }
  .hooks, .stats { grid-template-columns: 1fr 1fr; }
  .hooks { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr; }
  .tv-lane { grid-template-columns: 92px 1fr; }
  .tv-step.s2 { margin-left: 40px; } .tv-step.s3 { margin-left: 60px; }
  .tv-bubble { margin-left: 0; max-width: none; }
  .tv-bubble::before { left: 70px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; animation: none; }
  .stage { animation: none; }
}
