/* deoLabs landing — tokens from "deoLabs Design System.md" */

/* Figtree (SIL Open Font License), self-hosted and preloaded. `fallback` display keeps the
   first paint stable: a short block, then no late swap if the font arrives slowly. */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 800;
  font-display: fallback;
  src: url('fonts/figtree-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --surface-page: #F6F5F2;
  --surface-card: #FFFFFF;
  --surface-panel: #EEEDE8;
  --surface-inset: #F3F2EE;
  --surface-inset-soft: #F7F6F3;
  --surface-inverse: #3D3E4E;
  --surface-photo: #E9E8E3;
  --surface-stage: linear-gradient(180deg, #F0EFEB 0%, #E9E8E3 100%);

  --text: #2B2B29;
  --text-2: #6B6A66;
  --text-frag: #55544F;
  --text-prev: #77766F;
  --text-inv: #F5F5F7;
  --text-inv-2: #C9CAD6;

  --accent: #4F5BD5;
  --accent-hover: #434EC0;
  --accent-tint: #F2F3FD;
  --accent-border: rgba(79, 91, 213, .45);
  --accent-avatar: #5B66D9;
  --auto-dot: #3E9B66;
  --auto-text: #2B5E3B;

  --line-section: rgba(43, 43, 41, .14);
  --line-list: rgba(43, 43, 41, .10);
  --line-divider: rgba(43, 43, 41, .08);
  --line-card: rgba(43, 43, 41, .07);
  --line-control: rgba(43, 43, 41, .25);
  --line-link: rgba(43, 43, 41, .40);

  --shadow-main: 0 1px 2px rgba(43, 43, 41, .05), 0 28px 64px rgba(80, 70, 160, .14);
  --shadow-card: 0 1px 2px rgba(43, 43, 41, .04), 0 18px 40px rgba(90, 80, 170, .08);
  --shadow-fragment: 0 1px 2px rgba(43, 43, 41, .05), 0 16px 36px rgba(80, 70, 160, .10);
  --shadow-selected: 0 1px 2px rgba(43, 43, 41, .05), 0 14px 34px rgba(80, 70, 160, .10);
  --shadow-panel: 0 1px 2px rgba(43, 43, 41, .04), 0 30px 70px rgba(90, 80, 170, .08);
  --shadow-inverse: 0 2px 4px rgba(30, 30, 50, .12), 0 18px 40px rgba(40, 36, 90, .26);
  --shadow-soft: 0 10px 26px rgba(80, 70, 160, .08);

  --font: 'Arcadia', 'Figtree', system-ui, sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --gutter: clamp(20px, 5vw, 56px);
  --section-pad: clamp(72px, 10vw, 120px);
  --section-top: clamp(56px, 7vw, 88px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }
::selection { background: var(--accent); color: #fff; }
h1, h2, p { margin: 0; }
h1, h2 { font-family: var(--font); text-wrap: balance; }
p { text-wrap: pretty; }
button { font: inherit; color: inherit; }
img { display: block; }
svg { display: block; }

a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Layout helpers ---------- */
.container { max-width: 1280px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.container--panel { padding-left: clamp(12px, 3vw, 32px); padding-right: clamp(12px, 3vw, 32px); }
.section { padding-bottom: var(--section-pad); }
.section__open { border-top: 1px solid var(--line-section); padding-top: var(--section-top); display: flex; flex-direction: column; }

.heading-row { display: flex; flex-wrap: wrap; gap: 24px 64px; align-items: flex-end; justify-content: space-between; }
.heading-row--tight { gap: 16px 64px; }
.h2 { flex: 1 1 520px; min-width: 0; max-width: 720px; font-weight: 500; font-size: clamp(32px, 3.8vw, 50px); line-height: 1.1; letter-spacing: .2px; }
.h2--wide { flex-basis: 560px; max-width: 780px; }
.heading-row__lead { flex: 0 1 380px; min-width: 0; font-size: 17px; line-height: 1.625; color: var(--text-2); }

.eyebrow { font-size: 13px; font-weight: 600; color: var(--text-2); }
.eyebrow--accent { color: var(--accent); }
.closing { display: flex; flex-wrap: wrap; gap: 16px 48px; align-items: baseline; justify-content: space-between; border-top: 1px solid var(--line-section); padding-top: 28px; }
.closing__line { font-weight: 500; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.25; letter-spacing: .2px; text-wrap: balance; }
.closing__note { flex: 0 1 460px; min-width: 0; font-size: 15px; line-height: 1.6; color: var(--text-2); }

.btn { display: inline-block; background: var(--accent); color: #fff; font-size: 16px; font-weight: 600; padding: 16px 24px; border-radius: 8px; white-space: nowrap; transition: background-color .2s ease; }
.btn:hover { background: var(--accent-hover); color: #fff; }
.btn--lg { font-size: 17px; padding: 18px 28px; }
.btn--outline { background: transparent; color: var(--text); border: 1px solid var(--line-control); padding: 10px 16px; font-size: 14px; }
.btn--outline:hover { background: transparent; color: var(--text); border-color: var(--text); }
.text-link { font-size: 16px; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--line-link); padding-bottom: 3px; }
.text-link:hover { color: var(--text); border-color: var(--text); }

.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.status__dot { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.status--auto { color: var(--auto-text); }
.status--auto .status__dot { background: var(--auto-dot); }
.status--approval { color: var(--accent); }
.status--approval .status__dot { background: var(--accent); }
.status--judgment { color: var(--text); }
.status--judgment .status__dot { width: 7px; height: 7px; border: 1.5px solid var(--text); background: transparent; }

.arrow-row { display: flex; align-items: flex-start; gap: 10px; }
.arrow-row svg { flex: none; margin-top: 4px; }

/* ---------- Motion vocabulary (shared by page sections and demos) ---------- */
[data-anim="drop"] { opacity: 0; transform: translateY(-16px) scale(.97); transition: opacity .45s var(--ease), transform .8s var(--ease); }
[data-anim="drop"].on { opacity: 1; transform: translateY(0) scale(1); }

[data-anim="slide"] { opacity: 0; transform: translateX(40px) rotate(1.2deg); transition: opacity .5s var(--ease), transform .9s var(--ease); }
[data-anim="slide"].on { opacity: 1; transform: translateX(0) rotate(0deg); }
[data-anim="slide-sm"] { opacity: 0; transform: translateX(28px) rotate(1deg); transition: opacity .5s var(--ease), transform .8s var(--ease); }
[data-anim="slide-sm"].on { opacity: 1; transform: translateX(0) rotate(0deg); }
[data-anim="slide-l"] { opacity: 0; transform: translateX(-18px); transition: opacity .5s var(--ease), transform .8s var(--ease); }
[data-anim="slide-r"] { opacity: 0; transform: translateX(18px); transition: opacity .5s var(--ease), transform .8s var(--ease); }
[data-anim="slide-l"].on, [data-anim="slide-r"].on { opacity: 1; transform: translateX(0); }

[data-anim="mask"] { clip-path: inset(0 0 100% 0); transform: translateY(6px); transition: clip-path .7s var(--ease), transform .7s var(--ease), opacity .6s var(--ease), filter .6s var(--ease); }
[data-anim="mask"].on { clip-path: inset(0 0 0 0); transform: translateY(0); }
[data-anim="mask"].delay-1 { transition-delay: .14s; }

[data-anim="wipe"] { clip-path: inset(0 100% 0 0); transition: clip-path .9s var(--ease); }
[data-anim="wipe"].on { clip-path: inset(0 0 0 0); }

[data-anim="rise"] { opacity: 0; clip-path: inset(100% 0 0 0); transform: translateY(14px); transition: clip-path .8s var(--ease), transform .8s var(--ease), opacity .4s var(--ease); }
[data-anim="rise"].on { opacity: 1; clip-path: inset(0 0 0 0); transform: translateY(0); }

[data-anim="fade"] { opacity: 0; transition: opacity .45s ease; }
[data-anim="fade"].on { opacity: 1; }

[data-anim="ul"] { background-image: linear-gradient(var(--accent), var(--accent)); background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 2px; padding-bottom: 2px; transition: background-size .6s var(--ease); }
[data-anim="ul"].on { background-size: 100% 2px; }

[data-anim="tint"] { background-color: rgba(79, 91, 213, 0); border-radius: 4px; padding: 0 3px; margin: 0 -3px; transition: background-color .5s ease; }
[data-anim="tint"].on { background-color: rgba(79, 91, 213, .16); }
.done [data-anim="tint"].on { background-color: rgba(79, 91, 213, .08); }

/* ---------- Skip link ---------- */
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 10; background: var(--surface-card); color: var(--text); border: 1px solid var(--line-control); border-radius: 8px; padding: 10px 16px; font-size: 14px; font-weight: 600; }
.skip-link:focus { top: 16px; outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Header ---------- */
.header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 22px; padding-bottom: 22px; }
.wordmark { font-size: 22px; font-weight: 560; letter-spacing: .2px; color: var(--text); }
.wordmark:hover { color: var(--text); }
.header__right { display: flex; align-items: center; gap: 36px; }
.nav { display: none; gap: 32px; font-size: 15px; }
.nav a { color: var(--text-2); }
.nav a:hover { color: var(--text); }
@media (min-width: 860px) { .nav { display: flex; } }

/* ---------- 01 Hero ---------- */
.hero { position: relative; overflow-x: clip; padding-top: clamp(32px, 4.5vw, 56px); padding-bottom: clamp(72px, 8vw, 104px); }
.hero__glow { position: absolute; top: 0; right: -10%; width: 70%; height: 100%; background: radial-gradient(closest-side, rgba(150, 140, 215, .16), rgba(150, 140, 215, 0)); pointer-events: none; }
.hero__inner { position: relative; display: flex; flex-wrap: wrap; gap: clamp(40px, 5vw, 64px); align-items: center; justify-content: space-between; }
.hero__copy { flex: 0 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero__title { font-weight: 480; font-size: clamp(42px, 4.4vw, 58px); line-height: 1.05; letter-spacing: .4px; }
.hero__lead { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.625; color: var(--text-2); max-width: 470px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding-top: 8px; }
.hero__demo { flex: 1 1 560px; min-width: 0; max-width: 680px; display: flex; flex-direction: column; gap: 10px; }
.hero__demo-title { padding: 0 6px; font-size: clamp(19px, 1.7vw, 22px); font-weight: 500; line-height: 1.25; letter-spacing: .2px; }

/* ---------- 02 Context ---------- */
.s2 .section__open { gap: clamp(40px, 5vw, 64px); }
.s2__stage { position: relative; overflow: hidden; background: var(--surface-stage); border-radius: 20px; padding: clamp(28px, 4vw, 48px) clamp(16px, 3vw, 40px); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(16px, 3vw, 40px); }
.s2__frag { flex: 0 1 270px; min-width: 0; background: var(--surface-card); border: 1px solid var(--line-card); border-radius: 14px; padding: 14px 18px; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 1px 2px rgba(43, 43, 41, .04), 0 14px 34px rgba(80, 70, 160, .10); opacity: 0; transition: opacity .6s var(--ease), transform 1.1s var(--ease); }
.s2__frag:nth-child(1) { transform: translate(-18px, 10px) rotate(-3deg); }
.s2__frag:nth-child(2) { transform: translate(0, 18px) rotate(2deg); }
.s2__frag:nth-child(3) { transform: translate(18px, 10px) rotate(1.5deg); }
.s2__frag.on { opacity: 1; }
.s2__frag:nth-child(1).on { transform: translate(0, 0) rotate(-1.4deg); }
.s2__frag:nth-child(2).on { transform: translate(0, -8px) rotate(.8deg); }
.s2__frag:nth-child(3).on { transform: translate(0, 4px) rotate(-.6deg); }
.frag__label { font-size: 12px; font-weight: 600; color: var(--text-2); }
.frag__sub { font-size: 14px; color: var(--text-frag); }
.frag__value { font-size: 15px; line-height: 1.4; font-weight: 500; }
.s2__quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); column-gap: clamp(32px, 5vw, 72px); }
.s2__quote { padding: 32px 0 36px; border-top: 1px solid var(--line-list); font-weight: 400; font-size: clamp(22px, 2.1vw, 27px); line-height: 1.35; letter-spacing: .1px; }
.s2__close { display: flex; flex-wrap: wrap; gap: 16px 48px; align-items: baseline; border-top: 1px solid var(--line-section); padding-top: 28px; }
.s2__close p { flex: 1 1 520px; min-width: 0; max-width: 680px; font-size: clamp(18px, 1.5vw, 20px); line-height: 1.55; }

/* ---------- 03 How it works ---------- */
.panel { background: var(--surface-panel); border-radius: 24px; padding: clamp(48px, 7vw, 96px) clamp(20px, 4vw, 56px); display: flex; flex-direction: column; position: relative; overflow: hidden; }
.panel__glow { position: absolute; top: -20%; left: 20%; width: 60%; height: 70%; background: radial-gradient(closest-side, rgba(150, 140, 215, .18), rgba(150, 140, 215, 0)); pointer-events: none; }
.panel > * { position: relative; }
.s3 .panel { gap: clamp(40px, 5vw, 56px); }
.s3__head { flex: 1 1 560px; min-width: 0; max-width: 760px; display: flex; flex-direction: column; gap: 16px; }
.s3__head .h2 { max-width: none; flex: none; }
.s3__lead { flex: 0 1 400px; }
.cols-3 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: stretch; }
@media (min-width: 1040px) { .cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.s3__col { display: flex; flex-direction: column; gap: 16px; }
.s3__colhead { display: flex; flex-direction: column; gap: 6px; padding: 0 4px; }
.s3__coltitle { font-size: 20px; font-weight: 600; line-height: 1.3; }
.s3__coltext { font-size: 15px; line-height: 1.55; color: var(--text-2); }
.card { flex: 1; background: var(--surface-card); border: 1px solid var(--line-divider); border-radius: 14px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; }
.card__head { padding: 14px 18px; border-bottom: 1px solid var(--line-divider); font-size: 13px; font-weight: 600; color: var(--text-2); }
.card__row { padding: 14px 18px; display: flex; flex-direction: column; gap: 4px; }
.card__row + .card__row { border-top: 1px solid var(--line-divider); }
.card__row--gap8 { gap: 8px; }
.card__meta { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--text-2); }
.card__meta--wrap { align-items: center; flex-wrap: wrap; }
.card__meta b { font-weight: 600; color: var(--text); }
.card__label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.card__text { font-size: 15px; line-height: 1.5; }
.card__note { margin-top: auto; padding: 12px 18px; background: var(--surface-inset-soft); border-top: 1px solid var(--line-divider); border-radius: 0 0 14px 14px; font-size: 13px; line-height: 1.5; color: var(--text-2); }
.card--pad { padding: 16px; gap: 12px; }
.says { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.says__tile { background: var(--surface-inset); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.says__tile span:first-child { font-size: 12px; font-weight: 600; color: var(--text-2); }
.says__tile span:last-child { font-size: 15px; line-height: 1.45; }
.found { background: var(--accent-tint); border: 1px solid var(--accent-border); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.found__label { font-size: 13px; font-weight: 600; color: var(--accent); }
.found__text { font-size: 16px; line-height: 1.5; font-weight: 500; }
.memo { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.memo__line { display: flex; gap: 10px; align-items: baseline; font-size: 14px; line-height: 1.45; }
.memo__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text); flex: none; transform: translateY(-2px); }
.memo__dot--accent { background: var(--accent); }
.memo__dot--ring { background: transparent; border: 1px solid var(--text); }

/* ---------- 04 Tools ---------- */
.s4__inner { display: flex; flex-direction: column; gap: clamp(48px, 6vw, 72px); }
.split { display: flex; flex-wrap: wrap; gap: clamp(40px, 5vw, 72px); align-items: center; }
.split__copy { flex: 5 1 380px; min-width: 0; max-width: 500px; display: flex; flex-direction: column; gap: 24px; }
.split__copy .h2 { flex: none; max-width: none; }
.split__lead { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.625; }
.split__note { font-size: 15px; line-height: 1.6; color: var(--text-2); padding-top: 8px; border-top: 1px solid var(--line-list); }
.split__demo { flex: 6 1 480px; min-width: 0; max-width: 600px; }
.foundations { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px clamp(24px, 3vw, 40px); }
@media (min-width: 640px) { .foundations { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .foundations { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.foundation { padding-top: 24px; border-top: 1px solid var(--line-section); display: flex; flex-direction: column; gap: 10px; }
.foundation__title { font-size: 22px; font-weight: 500; letter-spacing: .2px; }
.foundation__title--accent { color: var(--accent); }
.foundation__text { font-size: 16px; line-height: 1.6; color: var(--text-2); }

/* ---------- 05 Examples ---------- */
.s5 .section__open { gap: clamp(36px, 4vw, 48px); }
.s5__lead { flex: 0 1 340px; font-size: 14px; }
.uc { display: flex; flex-wrap: nowrap; gap: clamp(24px, 4vw, 56px); align-items: flex-start; }
.uc__list { flex: 1 1 100%; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.uc__item { display: flex; flex-direction: column; gap: 12px; }
.uc__btn { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: 14px; background: transparent; transition: background .2s ease, box-shadow .2s ease; }
.uc__btn:hover { background: rgba(255, 255, 255, .6); }
.uc__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.uc__btn[aria-pressed="true"] { background: var(--surface-card); box-shadow: var(--shadow-selected); }
.uc__name { font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.uc__btn[aria-pressed="true"] .uc__name { color: var(--accent); }
.uc__outcome { font-size: clamp(20px, 1.8vw, 23px); font-weight: 500; line-height: 1.25; letter-spacing: .2px; color: var(--text); text-wrap: balance; }
.uc__desc { display: none; font-size: 15px; line-height: 1.55; color: var(--text-2); text-wrap: pretty; }
.uc__btn[aria-pressed="true"] .uc__desc { display: block; }
.uc__slot:empty { display: none; }
.uc__stage { display: none; flex: 1 1 0; min-width: 0; max-width: 680px; position: sticky; top: 24px; }
@media (min-width: 1120px) {
  .uc__list { flex: 0 0 380px; }
  .uc__stage { display: block; }
  .uc__slot { display: none; }
}

/* ---------- 06 Control ---------- */
.s6 .section__open { gap: clamp(40px, 5vw, 56px); }
.s6__lead { flex: 0 1 400px; }
.log-stage { position: relative; background: var(--surface-stage); border-radius: 20px; padding: clamp(20px, 4vw, 48px); overflow: hidden; display: flex; flex-direction: column; gap: 12px; }
.log-stage__glow { position: absolute; left: 20%; top: -40%; width: 60%; height: 120%; background: radial-gradient(closest-side, rgba(140, 128, 214, .24), rgba(140, 128, 214, 0)); pointer-events: none; }
.log { position: relative; max-width: 820px; width: 100%; margin: 0 auto; background: var(--surface-card); border: 1px solid var(--line-card); border-radius: 18px; box-shadow: var(--shadow-main); display: flex; flex-direction: column; }
.log__head { padding: 16px 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--text-2); }
.log__head b { font-weight: 600; color: var(--text); }
.log__row { padding: 16px 22px; border-top: 1px solid var(--line-divider); display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 24px; }
.log__row:last-child { padding-bottom: 18px; }
.log__label { flex: 0 0 150px; font-size: 13px; font-weight: 500; color: var(--text-2); }
.log__action { flex: 1 1 260px; min-width: 0; font-size: 16px; line-height: 1.45; font-weight: 500; }
.log__row .status { flex: 0 0 auto; font-size: 13px; }
.modes-wrap { display: flex; flex-direction: column; gap: 20px; }
.modes { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: clamp(32px, 4vw, 56px); }
@media (min-width: 1040px) { .modes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mode { padding: 28px 0 32px; border-top: 1px solid var(--line-section); display: flex; flex-direction: column; gap: 12px; }
.mode .status { font-size: 13px; gap: 7px; }
.mode .status__dot { width: 7px; height: 7px; }
.mode .status--judgment .status__dot { width: 8px; height: 8px; }
.mode__title { font-size: 24px; font-weight: 500; line-height: 1.25; letter-spacing: .2px; }
.mode__text { font-size: 16px; line-height: 1.6; color: var(--text-2); }
.band { background: var(--surface-panel); border-radius: 16px; padding: clamp(24px, 3vw, 32px) clamp(20px, 3vw, 36px); display: flex; flex-wrap: wrap; gap: 12px 48px; align-items: baseline; }
.band__title { flex: 0 1 400px; min-width: 0; font-size: 22px; font-weight: 500; line-height: 1.3; letter-spacing: .2px; }
.band__text { flex: 1 1 360px; min-width: 0; font-size: 16px; line-height: 1.6; color: var(--text-2); }
.s6 .closing__line { flex: 1 1 480px; min-width: 0; }
.s6 .closing__note { flex-basis: 420px; }

/* ---------- 07 Process ---------- */
.raised { background: var(--surface-card); border: 1px solid var(--line-divider); border-radius: 24px; box-shadow: var(--shadow-panel); padding: clamp(48px, 7vw, 88px) clamp(20px, 4vw, 56px); display: flex; flex-direction: column; gap: clamp(48px, 6vw, 72px); }
.raised .h2 { max-width: 760px; }
.s7__lead { flex: 0 1 360px; }
.steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px clamp(32px, 4vw, 56px); }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step { position: relative; border-top: 1px solid rgba(43, 43, 41, .18); padding-top: 36px; display: flex; flex-direction: column; gap: 12px; }
.step__bar { position: absolute; top: -1px; left: 0; right: 0; height: 2px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); transition: transform .5s var(--ease); }
.step:nth-child(2) .step__bar { transition-delay: .45s; }
.step:nth-child(3) .step__bar { transition-delay: .9s; }
.steps.on .step__bar { transform: scaleX(1); }
.step__marker { position: absolute; top: -16px; left: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-card); border: 1px solid var(--accent); color: var(--accent); font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center; transition: background-color .3s ease, color .3s ease; }
.step:nth-child(1) .step__marker { background: var(--accent); color: #fff; }
.step:nth-child(2) .step__marker { transition-delay: .5s; }
.step:nth-child(3) .step__marker { transition-delay: .95s; }
.steps.on .step__marker { background: var(--accent); color: #fff; }
.step__title { font-size: 26px; font-weight: 500; letter-spacing: .2px; }
.step__text { font-size: 16px; line-height: 1.6; color: var(--text-2); }
.success { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; background: var(--surface-page); border-radius: 14px; padding: 24px clamp(20px, 3vw, 32px); }
.success__copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.success__text { font-size: 16px; line-height: 1.6; }

/* ---------- 08 Team ---------- */
.team { display: flex; flex-wrap: wrap; gap: clamp(40px, 6vw, 96px); align-items: flex-start; }
.team__left { flex: 5 1 380px; min-width: 0; max-width: 520px; display: flex; flex-direction: column; gap: 36px; }
.team__left .h2 { flex: none; max-width: none; }
.photo { width: 100%; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--surface-photo); }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; transform: scale(1.04); transition: transform 1.6s var(--ease); }
.photo.on img { transform: scale(1); }
.team__right { flex: 6 1 440px; min-width: 0; display: flex; flex-direction: column; }
.team__point { padding: 24px 0 28px; border-top: 1px solid var(--line-list); display: flex; flex-direction: column; gap: 8px; }
.team__point:first-child { border-top-color: var(--line-section); }
.team__point:last-child { border-bottom: 1px solid var(--line-section); }
.team__title { font-size: 19px; font-weight: 600; line-height: 1.35; }
.team__text { font-size: 17px; line-height: 1.6; color: var(--text-2); }

/* ---------- 09 FAQ ---------- */
.faq { flex-direction: row; flex-wrap: wrap; gap: clamp(32px, 6vw, 96px); align-items: flex-start; }
.faq__intro { flex: 4 1 300px; min-width: 0; max-width: 420px; display: flex; flex-direction: column; gap: 16px; }
.faq__intro .h2 { flex: none; }
.faq__intro p { font-size: 16px; line-height: 1.6; color: var(--text-2); }
.faq__list { flex: 7 1 480px; min-width: 0; display: flex; flex-direction: column; border-bottom: 1px solid var(--line-section); }
.faq__item { border-top: 1px solid var(--line-list); }
.faq__item:first-child { border-top-color: var(--line-section); }
.faq__q { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-size: 19px; font-weight: 600; line-height: 1.4; color: var(--text); }
.faq__q:hover { color: var(--accent); }
.faq__q:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.faq__sign { flex: none; font-size: 22px; font-weight: 400; color: var(--accent); width: 20px; text-align: center; }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .22s ease; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 48px 24px 0; font-size: 17px; line-height: 1.625; color: var(--text-2); }
.faq__item.open .faq__a { grid-template-rows: 1fr; }

/* ---------- 10 Final CTA ---------- */
.s10 { padding-bottom: clamp(48px, 6vw, 72px); }
.cta { position: relative; overflow: hidden; background: var(--surface-panel); border-radius: 24px; padding: clamp(64px, 9vw, 120px) clamp(20px, 5vw, 56px); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }
.cta__glow { position: absolute; top: -30%; left: 15%; width: 70%; height: 90%; background: radial-gradient(closest-side, rgba(150, 140, 215, .22), rgba(150, 140, 215, 0)); pointer-events: none; transform: translate(-12px, 10px); transition: transform 2.4s var(--ease); }
.cta.on .cta__glow { transform: translate(0, 0); }
.cta__title { position: relative; max-width: 820px; font-weight: 500; font-size: clamp(36px, 4.6vw, 62px); line-height: 1.06; letter-spacing: .2px; clip-path: inset(0 0 100% 0); transform: translateY(10px); transition: clip-path .8s var(--ease), transform .8s var(--ease); }
.cta__lead { position: relative; max-width: 520px; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.625; color: var(--text-2); clip-path: inset(0 0 100% 0); transform: translateY(8px); transition: clip-path .8s var(--ease) .15s, transform .8s var(--ease) .15s; }
.cta.on .cta__title, .cta.on .cta__lead { clip-path: inset(0 0 0 0); transform: translateY(0); }
.cta .btn { position: relative; margin-top: 8px; }

/* ---------- Footer ---------- */
.footer { padding-bottom: 40px; }
.footer__inner { border-top: 1px solid var(--line-section); padding-top: 28px; display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; justify-content: space-between; font-size: 14px; color: var(--text-2); }
.footer__left { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.footer .wordmark { font-size: 19px; }
.footer a { color: var(--text-2); }
.footer a:hover { color: var(--text); }
.footer__links { display: flex; gap: 28px; }

/* ================= Demos ================= */
/* Reserve each scene's space before JavaScript mounts it, so nothing shifts on load. */
#hero-demo:empty, #uc-stage:empty { aspect-ratio: 680 / 612; }
#context-demo:empty { aspect-ratio: 600 / 478; }
.uc__slot:empty { display: none; }
@media (max-width: 559px) { #hero-demo:empty { aspect-ratio: 450 / 782; } }
@media (max-width: 431px) { #hero-demo:empty { aspect-ratio: 360 / 658; } }
@media (max-width: 519px) { #context-demo:empty { aspect-ratio: 360 / 734; } }

.demo { width: 100%; display: flex; flex-direction: column; gap: 12px; color: var(--text); }
.demo__stage { position: relative; width: 100%; border-radius: 20px; overflow: hidden; background: var(--surface-stage); }
.demo__inner { position: absolute; top: 0; left: 0; transform-origin: 0 0; }
.demo__glow { position: absolute; width: 520px; height: 420px; background: radial-gradient(closest-side, rgba(140, 128, 214, .30), rgba(140, 128, 214, 0)); pointer-events: none; }
.demo__caption { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 6px; }
.demo__caption span { font-size: 13px; font-weight: 500; color: var(--text-2); }
.replay { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--text-2); padding: 6px 8px; border-radius: 6px; opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility 0s linear .4s, color .2s ease, background-color .2s ease; }
.replay:hover { color: var(--text); background: rgba(43, 43, 41, .05); }
.replay:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.demo.done .replay { opacity: 1; visibility: visible; transition-delay: 0s; }

.piece { position: absolute; }
.frag { background: var(--surface-card); border: 1px solid var(--line-card); border-radius: 14px; padding: 12px 16px; display: flex; flex-direction: column; gap: 3px; box-shadow: var(--shadow-soft); }
.frag--lg { padding: 14px 16px; gap: 6px; box-shadow: var(--shadow-fragment); }
.frag__meta { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--text-2); }
.frag__meta b { font-weight: 600; }
.frag__line { font-size: 14px; line-height: 1.4; }
.frag__line--15 { font-size: 15px; line-height: 1.45; }
.frag__line--14-5 { font-size: 14.5px; line-height: 1.45; }
.frag__kv { display: flex; justify-content: space-between; font-size: 13.5px; }
.frag__kv span:first-child { color: var(--text-2); }
.frag__kv + .frag__kv { border-top: 1px solid var(--line-divider); padding-top: 8px; }
.frag__title { font-size: 14.5px; font-weight: 600; }
.main-card { background: var(--surface-card); border: 1px solid var(--line-card); border-radius: 18px; display: flex; flex-direction: column; box-shadow: var(--shadow-main); }
.main-card__head { display: flex; flex-direction: column; gap: 2px; }
.main-card__label { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.main-card__label--accent { color: var(--accent); }
.main-card__title { font-size: 17px; font-weight: 600; line-height: 1.3; }
.row { border-top: 1px solid var(--line-divider); display: flex; flex-direction: column; gap: 4px; }
.row__meta { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--text-2); }
.row__meta span:first-child { font-weight: 500; }
.row__label { font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.row__value { font-size: 14.5px; line-height: 1.4; }
.row__value--md { font-size: 15.5px; line-height: 1.45; }
.row__value--strong { font-weight: 500; }
.inverse { background: var(--surface-inverse); border-radius: 16px; box-shadow: var(--shadow-inverse); color: var(--text-inv); }
.chip { font-size: 12.5px; color: var(--text-frag); background: var(--surface-inset); border-radius: 6px; padding: 5px 9px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* --- Call Demo --- */
.cd__rec { background: rgba(255, 255, 255, .72); border-radius: 14px; padding: 16px 18px; filter: blur(1.4px); opacity: .88; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 12px 30px rgba(90, 80, 170, .08); }
.cd__rec-label { font-size: 12px; font-weight: 600; color: var(--text-2); }
.cd__rec-title { font-size: 17px; font-weight: 600; color: var(--text-frag); }
.cd__rec-kv { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-frag); border-top: 1px solid var(--line-divider); padding-top: 8px; }
.cd__brief { padding-top: 52px; }
.cd__brief-head { padding: 0 24px 14px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.cd__row { padding: 14px 24px 16px; gap: 6px; }
.cd__row:last-child { padding-bottom: 20px; }
.cd__row .row__meta { font-size: 12.5px; gap: 12px; }
.cd__value { font-size: 16.5px; line-height: 1.45; font-weight: 500; }
.cd__stlabel { display: flex; align-items: center; gap: 7px; font-weight: 600; color: var(--text-2); transition: color .4s ease; }
.cd__stlabel.on { color: var(--accent); }
.cd__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: 0; transform: scale(0); transition: opacity .4s ease, transform .4s ease; }
.cd__dot.on { opacity: 1; transform: scale(1); }
.cd__src { display: grid; text-align: right; color: var(--text-2); }
.cd__src span { grid-area: 1 / 1; transition: opacity .4s ease; }
.cd__src-old { opacity: 1; }
.cd__src-old.on { opacity: 0; }
.cd__src-new { opacity: 0; }
.cd__src-new.on { opacity: 1; }
.cd__swap { position: relative; display: grid; overflow: hidden; }
.cd__swap span { grid-area: 1 / 1; font-size: 16.5px; line-height: 1.45; transition: transform .6s var(--ease), opacity .45s var(--ease); }
.cd__old { font-weight: 500; color: var(--text-prev); }
.cd__old.on { transform: translateY(-100%); opacity: 0; }
.cd__new { font-weight: 600; color: var(--text); transform: translateY(100%); opacity: 0; }
.cd__new.on { transform: translateY(0); opacity: 1; }
.cd__call { padding: 12px 12px 12px 14px; display: flex; align-items: center; gap: 12px; }
.cd__call[data-anim="drop"] { transform: translateY(-18px) scale(.97); }
.cd__call[data-anim="drop"].on { transform: translateY(0) scale(1); }
.cd__avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--accent-avatar); color: #fff; font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex: none; }
.cd__who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.cd__name { font-size: 15.5px; font-weight: 600; color: var(--text-inv); }
.cd__proj { font-size: 13px; color: var(--text-inv-2); }
.cd__answer { width: 34px; height: 34px; border-radius: 50%; background: var(--auto-dot); display: flex; align-items: center; justify-content: center; flex: none; }
.cd__email { border-radius: 16px; padding: 16px 18px; gap: 10px; box-shadow: 0 1px 2px rgba(43, 43, 41, .05), 0 20px 48px rgba(80, 70, 160, .16); }
.cd__email[data-anim="slide"] { transform: translateX(36px) rotate(1.5deg); }
.cd__email[data-anim="slide"].on { transform: translateX(0) rotate(0deg); }
.cd__email-subj { font-size: 13.5px; font-weight: 600; }
.cd__email-body { font-size: 15.5px; line-height: 1.45; }
.cd__email-body [data-anim="ul"] { white-space: nowrap; }
.cd__attach { display: flex; align-items: center; gap: 8px; background: var(--surface-inset); border-radius: 8px; padding: 7px 10px; font-size: 12.5px; color: var(--text-frag); }
.cd__conn { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; transition: opacity .6s ease; }
.cd__conn.on { opacity: .4; }
.cd__conn-path { stroke-dashoffset: 1; transition: stroke-dashoffset .7s var(--ease); }
.cd__conn-path.on { stroke-dashoffset: 0; }
.cd__conn-start, .cd__conn-end { opacity: 0; transition: opacity .4s ease; }
.cd__conn-start.on, .cd__conn-end.on { opacity: 1; }
.demo.layout-m .cd__conn { display: none; }

/* --- Context Demo --- */
.ctx .demo__glow { width: 480px; height: 400px; }
.ctx .frag[data-anim="mask"].on.on2 { transform: translateX(-6px); opacity: .82; }
.ctx__card .main-card__head { padding: 18px 20px 14px; }
.ctx__row { padding: 12px 20px; }
.ctx__row:last-child { padding-bottom: 16px; }

/* --- Scenario Demo --- */
.sc__q { padding: 14px 18px; display: flex; flex-direction: column; gap: 4px; }
.sc__q-label { font-size: 12px; font-weight: 500; color: var(--text-inv-2); }
.sc__q-text { font-size: 16.5px; line-height: 1.4; font-weight: 600; color: var(--text-inv); }
.sc__answer-head { padding: 20px 24px 16px; display: flex; flex-direction: column; gap: 8px; }
.sc__answer-text { font-size: 17px; line-height: 1.45; font-weight: 500; }
.sc__refs { padding: 0 24px 16px; }
.sc__gap { padding: 12px 24px 18px; border-top: 1px solid var(--line-divider); font-size: 13.5px; line-height: 1.5; color: var(--text-2); }
.sc__hf.frag { gap: 4px; }
.sc__hf[data-anim="mask"].on.on2 { transform: translateX(-10px) scale(.97); opacity: .55; filter: blur(1px); }
.sc__hc .main-card__head { padding: 18px 22px 14px; }
.sc__hc .main-card__title { font-size: 18px; }
.sc__hrow { padding: 12px 22px 14px; }
.sc__hrow:last-child { padding-bottom: 18px; }
.sc__hrow .arrow-row svg { margin-top: 3px; }
.sc__task { border-radius: 16px; padding: 16px 18px; gap: 6px; box-shadow: 0 1px 2px rgba(43, 43, 41, .05), 0 22px 50px rgba(80, 70, 160, .14); }
.sc__task-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sc__task-title { font-size: 16px; line-height: 1.4; font-weight: 600; }
.sc__task-sub { font-size: 13px; color: var(--text-2); }
.sc__mail-head { padding: 16px 20px 12px; display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--text-2); }
.sc__mail-head b { font-weight: 600; }
.sc__mail-body { padding: 0 20px 14px; display: flex; flex-direction: column; gap: 6px; }
.sc__mail-subj { font-size: 15px; font-weight: 600; }
.sc__mail-text { font-size: 14.5px; line-height: 1.5; }
.sc__mail-foot { padding: 12px 20px 16px; border-top: 1px solid var(--line-divider); font-size: 12.5px; }
