/* =========================================================
   MACHICOLO — Design tokens
   ========================================================= */
:root {
  --blue: #2457f5;
  --blue-700: #1a3fc4;
  --blue-50: #eef3ff;
  --blue-100: #dde7ff;
  --cyan: #0bb4d8;
  --ink: #0b1220;
  --text: #1f2a3d;
  --sub: #475569;
  --faint: #8391a7;
  --line: #e4e9f2;
  --line-strong: #cfd8e8;
  --bg: #ffffff;
  --bg-alt: #f6f8fc;
  --ok: #0f9f6e;
  --warn: #d97706;
  --grad: linear-gradient(105deg, #2457f5 0%, #3b7bff 50%, #0bb4d8 100%);
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, .04), 0 2px 8px rgba(11, 18, 32, .04);
  --shadow: 0 1px 2px rgba(11, 18, 32, .04), 0 18px 40px -18px rgba(36, 87, 245, .22);
  --shadow-lg: 0 2px 6px rgba(11, 18, 32, .05), 0 40px 80px -30px rgba(36, 87, 245, .35);
  --header-h: 72px;
  --sans: "IBM Plex Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* =========================================================
   Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 16px; font-weight: 400; line-height: 1.9; letter-spacing: .03em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 700; line-height: 1.45; letter-spacing: .04em; font-feature-settings: "palt"; }
p { margin: 0; }
strong, b { font-weight: 600; color: var(--ink); }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: rgba(36, 87, 245, .16); }
:focus-visible { outline: 3px solid rgba(36, 87, 245, .45); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1180px, 100% - 48px); margin-inline: auto; }
.container-narrow { width: min(860px, 100% - 48px); margin-inline: auto; }
.pc { display: inline; }
.sp { display: none; }
.mono { font-family: var(--mono); letter-spacing: .02em; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 200; padding: 8px 16px; border-radius: 8px; background: var(--ink); color: #fff; }
.skip-link:focus { left: 8px; }

/* Scroll progress */
.progress { position: fixed; inset: 0 0 auto 0; z-index: 120; height: 2px; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  font-weight: 600; font-size: .95rem; letter-spacing: .05em; line-height: 1.4; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s, background-color .25s, color .25s, border-color .25s;
}
.btn .arr { display: inline-block; transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-lg { padding: 18px 34px; font-size: 1rem; }
.btn-sm { padding: 9px 20px; font-size: .88rem; }
.btn-block { width: 100%; }
.btn-primary { color: #fff; background: var(--blue); box-shadow: 0 10px 24px -10px rgba(36, 87, 245, .7), inset 0 1px 0 rgba(255, 255, 255, .18); overflow: hidden; }
.btn-primary::before { content: ""; position: absolute; inset: 0; background: var(--grad); opacity: 0; transition: opacity .3s; }
.btn-primary span { position: relative; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(36, 87, 245, .75); }
.btn-primary:hover::before { opacity: 1; }
.btn-ghost { color: var(--ink); background: #fff; border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn-white { color: var(--blue-700); background: #fff; box-shadow: 0 12px 28px -12px rgba(0, 0, 0, .4); }
.btn-white:hover { transform: translateY(-2px); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.text-link .arr { transition: transform .25s var(--ease); }
.text-link:hover .arr { transform: translateX(4px); }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(255, 255, 255, .72); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(255, 255, 255, .9); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--mono); font-weight: 500; font-size: 1.12rem; letter-spacing: .24em; }
.logo-mark { position: relative; width: 22px; height: 22px; border-radius: 7px; background: var(--grad); box-shadow: 0 4px 12px -4px rgba(36, 87, 245, .7); }
.logo-mark::after { content: ""; position: absolute; inset: 6px; border-radius: 3px; background: #fff; transform: rotate(45deg) scale(.8); }
.logo-light { color: #fff; }
.gnav { display: flex; align-items: center; gap: 34px; }
.gnav-link { position: relative; color: var(--sub); text-decoration: none; font-size: .92rem; font-weight: 500; transition: color .2s; }
.gnav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.gnav-link:hover, .gnav-link[aria-current="page"] { color: var(--ink); }
.gnav-link:hover::after, .gnav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-toggle { display: none; }

/* =========================================================
   Section scaffolding
   ========================================================= */
.section { position: relative; padding: 128px 0; }
.section-sm { padding: 88px 0; }
.bg-alt { background: var(--bg-alt); }
.bg-dots { background-image: radial-gradient(rgba(36, 87, 245, .12) 1px, transparent 1px); background-size: 22px 22px; }
.sec-head { max-width: 780px; margin-bottom: 64px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.label {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font-family: var(--mono); font-size: .8rem; font-weight: 500; letter-spacing: .14em; color: var(--blue); text-transform: uppercase;
}
.label::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--grad); }
.sec-title { font-size: clamp(1.75rem, 3.6vw, 2.6rem); letter-spacing: .04em; margin-bottom: 22px; }
.sec-lead { font-size: 1.06rem; color: var(--sub); line-height: 2; }
.note { margin-top: 28px; font-size: .84rem; color: var(--faint); line-height: 1.8; }
.chip { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 4px 12px; border-radius: 999px; font-size: .78rem; font-weight: 600; letter-spacing: .04em; background: var(--blue-50); color: var(--blue); }
.chip-gray { background: #eef1f6; color: var(--sub); }

/* =========================================================
   Hero (top)
   ========================================================= */
.hero { position: relative; overflow: hidden; padding: 88px 0 120px; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg .grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(36, 87, 245, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(36, 87, 245, .07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 25%, transparent 75%);
  animation: grid-pan 30s linear infinite;
}
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.blob-1 { width: 520px; height: 520px; right: -120px; top: -140px; background: radial-gradient(circle, rgba(11, 180, 216, .55), transparent 65%); animation: drift 18s ease-in-out infinite; }
.blob-2 { width: 620px; height: 620px; left: -220px; bottom: -260px; background: radial-gradient(circle, rgba(36, 87, 245, .45), transparent 65%); animation: drift 22s ease-in-out infinite reverse; }
@keyframes grid-pan { to { background-position: 64px 64px, 64px 64px; } }
@keyframes drift { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(40px, 30px) scale(1.06); } 66% { transform: translate(-30px, 20px) scale(.96); } }

.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 64px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .8); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: .82rem; font-weight: 500; color: var(--sub);
}
.hero-badge .chip { padding: 2px 10px; font-family: var(--mono); font-size: .72rem; }
.hero-title { margin: 26px 0 26px; font-size: clamp(2.1rem, 4vw, 3.1rem); line-height: 1.36; letter-spacing: .04em; }
.hero-title .line { white-space: nowrap; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; }
.js .hero-title .line > span { transform: translateY(105%); transition: transform 1s var(--ease); }
.js .is-loaded .hero-title .line > span { transform: none; }
.js .is-loaded .hero-title .line:nth-child(2) > span { transition-delay: .12s; }
.hero-lead { max-width: 34em; font-size: 1.08rem; line-height: 2.05; color: var(--sub); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 30px; font-size: .9rem; color: var(--sub); }
.hero-meta li { display: flex; align-items: center; gap: 8px; }
.check { flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--blue-50); display: grid; place-items: center; }
.check svg { width: 11px; height: 11px; stroke: var(--blue); stroke-width: 3.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.fade-up { opacity: 1; }
.js .fade-up { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .is-loaded .fade-up { opacity: 1; transform: none; }
.js .is-loaded .fade-up.d1 { transition-delay: .25s; } .js .is-loaded .fade-up.d2 { transition-delay: .4s; } .js .is-loaded .fade-up.d3 { transition-delay: .55s; } .js .is-loaded .fade-up.d4 { transition-delay: .7s; }

/* Marquee */
.marquee { position: relative; overflow: hidden; padding: 22px 0; border-block: 1px solid var(--line); background: #fff; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line); font-size: .9rem; color: var(--sub); white-space: nowrap; }
.marquee-item i { width: 6px; height: 6px; border-radius: 50%; background: var(--grad); }
.marquee-label { position: absolute; left: 0; top: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   Page hero (sub pages)
   ========================================================= */
.page-hero { position: relative; overflow: hidden; padding: 96px 0 88px; isolation: isolate; border-bottom: 1px solid var(--line); }
.page-hero .hero-bg .grid { -webkit-mask-image: radial-gradient(ellipse 80% 90% at 70% 0%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse 80% 90% at 70% 0%, #000 20%, transparent 70%); }
.crumbs { display: flex; gap: 10px; margin-bottom: 26px; font-family: var(--mono); font-size: .8rem; color: var(--faint); }
.crumbs a { color: var(--faint); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }
.page-title { font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.35; margin-bottom: 22px; }
.page-lead { max-width: 40em; font-size: 1.08rem; color: var(--sub); line-height: 2; }

/* =========================================================
   Reveal
   ========================================================= */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-scale { opacity: 0; transform: scale(.96) translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal-scale.is-in { opacity: 1; transform: none; }

/* Spotlight cards (cursor glow) */
.spot { position: relative; isolation: isolate; }
.spot::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(36, 87, 245, .09), transparent 45%);
}
.spot:hover::before { opacity: 1; }
.card {
  border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }

/* =========================================================
   Approach / Philosophy
   ========================================================= */
.problem-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.problem { padding: 30px 28px; border-radius: var(--radius); background: #fff; border: 1px dashed var(--line-strong); }
.problem .stat { font-family: var(--mono); font-size: .78rem; color: var(--faint); letter-spacing: .08em; margin-bottom: 14px; }
.problem h3 { font-size: 1.08rem; margin-bottom: 10px; }
.problem p { color: var(--sub); font-size: .95rem; line-height: 1.85; }
.arrow-down { display: grid; place-items: center; margin: 44px auto; width: 52px; height: 52px; border-radius: 50%; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--blue); }
.arrow-down svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: p; }
.principle { position: relative; overflow: hidden; padding: 36px 32px 34px; }
.principle .num { font-family: var(--mono); font-size: 2.6rem; font-weight: 500; line-height: 1; letter-spacing: 0; margin-bottom: 24px; color: var(--blue); -webkit-text-fill-color: currentColor; background: none; }
.principle h3 { font-size: 1.22rem; margin-bottom: 12px; }
.principle p { color: var(--sub); font-size: .97rem; }
.principle::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.principle:hover::after, .principle.is-in::after { transform: scaleX(1); }
.principle.is-in::after { transition-delay: .4s; }

/* =========================================================
   Service overview
   ========================================================= */
.svc-main { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.svc-card { position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 44px 40px 40px; color: inherit; text-decoration: none; }
.svc-card .kicker { font-family: var(--mono); font-size: .8rem; color: var(--blue); letter-spacing: .08em; margin-bottom: 10px; }
.svc-card h3 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin-bottom: 14px; }
.svc-card > p { color: var(--sub); flex: 1; }
.svc-card .feat { display: grid; gap: 10px; margin: 26px 0 30px; }
.svc-card .feat li { display: flex; align-items: flex-start; gap: 10px; font-size: .95rem; }
.svc-card .feat .check { margin-top: 5px; }
.svc-card .more { margin-top: auto; }
.svc-card.is-feature { background: linear-gradient(160deg, #1a3fc4, #2457f5 55%, #1f8fe0); border: 0; color: #dbe6ff; box-shadow: var(--shadow-lg); }
.svc-card.is-feature h3, .svc-card.is-feature b { color: #fff; }
.svc-card.is-feature > p { color: #dbe6ff; }
.svc-card.is-feature .kicker { color: #9fe6ff; }
.svc-card.is-feature .check { background: rgba(255, 255, 255, .18); }
.svc-card.is-feature .check svg { stroke: #fff; }
.svc-card.is-feature .text-link { color: #fff; }
.svc-card.is-feature::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(159, 230, 255, .35), transparent 65%); animation: drift 14s ease-in-out infinite;
}
.svc-sub { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.svc-mini { padding: 24px 22px; text-decoration: none; color: inherit; }
.svc-mini .mono { font-size: .75rem; color: var(--faint); }
.svc-mini h4 { font-size: 1rem; margin: 6px 0 6px; }
.svc-mini p { font-size: .86rem; color: var(--sub); line-height: 1.75; }

/* =========================================================
   Agent demo
   ========================================================= */
.demo { --demo-h: 520px; }
.demo-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.demo-tab {
  position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; cursor: pointer;
  background: #fff; border: 1px solid var(--line); font-size: .9rem; font-weight: 500; color: var(--sub);
  transition: color .2s, border-color .2s, background-color .2s, box-shadow .2s;
}
.demo-tab:hover { border-color: var(--line-strong); color: var(--ink); }
.demo-tab[aria-selected="true"] { color: #fff; background: var(--ink); border-color: var(--ink); box-shadow: 0 8px 20px -10px rgba(11, 18, 32, .6); }
.demo-tab svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.demo-window { position: relative; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; }
.demo-window::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(36, 87, 245, .5), transparent 40%, transparent 60%, rgba(11, 180, 216, .5)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.demo-bar { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: #fbfcfe; }
.demo-dots { display: flex; gap: 6px; }
.demo-dots i { width: 10px; height: 10px; border-radius: 50%; background: #e3e8f0; }
.demo-title { font-family: var(--mono); font-size: .8rem; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-status { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; font-family: var(--mono); font-size: .74rem; background: #eef1f6; color: var(--sub); white-space: nowrap; }
.demo-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.demo-status[data-state="running"] { background: var(--blue-50); color: var(--blue); }
.demo-status[data-state="running"] i { background: var(--blue); animation: blink 1s infinite; }
.demo-status[data-state="waiting"] { background: #fff7e8; color: var(--warn); }
.demo-status[data-state="waiting"] i { background: var(--warn); animation: blink 1.4s infinite; }
.demo-status[data-state="done"] { background: #e9f8f1; color: var(--ok); }
.demo-status[data-state="done"] i { background: var(--ok); }
@keyframes blink { 50% { opacity: .3; } }

.demo-body { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); min-height: var(--demo-h); }
.demo-left { padding: 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; background: linear-gradient(#fff, #fbfcff); }
.demo-right { position: relative; padding: 24px; display: flex; flex-direction: column; gap: 16px; background-image: radial-gradient(rgba(36, 87, 245, .08) 1px, transparent 1px); background-size: 18px 18px; }
.demo-sub { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; color: var(--faint); text-transform: uppercase; }
.demo-input { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 14px; background: var(--bg-alt); border: 1px solid var(--line); }
.demo-input .ico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--blue); }
.demo-input .ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.demo-input strong { display: block; font-size: .93rem; line-height: 1.5; }
.demo-input small { display: block; font-size: .82rem; color: var(--sub); line-height: 1.6; margin-top: 2px; }
.demo-steps { display: grid; gap: 4px; }
.step { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: start; padding: 10px 8px; border-radius: 10px; transition: background-color .3s, opacity .3s; }
.step[data-state="pending"] { opacity: .42; }
.step[data-state="running"] { background: var(--blue-50); }
.step-ico { position: relative; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: #fff; }
.step[data-state="running"] .step-ico { border-color: rgba(36, 87, 245, .25); border-top-color: var(--blue); animation: spin .8s linear infinite; }
.step[data-state="done"] .step-ico { border-color: var(--ok); background: var(--ok); }
.step[data-state="done"] .step-ico::after { content: ""; position: absolute; left: 7px; top: 3.5px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.step[data-state="flag"] .step-ico { border-color: var(--warn); background: var(--warn); }
.step[data-state="flag"] .step-ico::after { content: "!"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .78rem; line-height: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.step-text { font-size: .92rem; line-height: 1.6; color: var(--ink); }
.step-detail { display: block; font-size: .8rem; color: var(--sub); margin-top: 2px; min-height: 0; }
.step-time { font-family: var(--mono); font-size: .74rem; color: var(--faint); padding-top: 3px; }
.demo-out-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.doc { flex: 1; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: 20px 22px; font-size: .9rem; line-height: 1.85; overflow: hidden; }
.doc-empty { display: grid; place-items: center; min-height: 260px; color: var(--faint); font-family: var(--mono); font-size: .8rem; text-align: center; }
.doc-empty .pulse { width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 14px; background: var(--grad); opacity: .14; animation: breathe 2s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.12); opacity: .28; } }
.mail-meta { display: grid; gap: 4px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); font-size: .82rem; color: var(--sub); }
.mail-meta b { display: inline-block; min-width: 3.4em; color: var(--faint); font-weight: 500; }
.mail-body { white-space: pre-wrap; color: var(--text); }
.caret::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 1px; vertical-align: -2px; background: var(--blue); animation: blink .8s step-end infinite; }
.doc-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.doc-table th { text-align: left; font-weight: 500; font-size: .76rem; color: var(--faint); padding: 0 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.doc-table td { padding: 12px 8px; border-bottom: 1px solid var(--line); color: var(--ink); }
.doc-table tr.row-in { animation: row-in .5s var(--ease) both; }
.doc-table .num { font-family: var(--mono); text-align: right; white-space: nowrap; }
.tag-ok, .tag-warn { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: .74rem; font-weight: 600; white-space: nowrap; }
.tag-ok { background: #e9f8f1; color: var(--ok); }
.tag-warn { background: #fff4e0; color: var(--warn); }
@keyframes row-in { from { opacity: 0; transform: translateY(8px); } }
.doc-cards { display: grid; gap: 10px; }
.doc-card { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-alt); animation: row-in .5s var(--ease) both; }
.doc-card .chip { margin-bottom: 6px; }
.doc-card p { font-size: .86rem; line-height: 1.75; }
.banners { display: grid; grid-template-columns: 1fr 1.4fr; grid-template-rows: auto auto; gap: 12px; }
.banner { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px; border-radius: 12px; color: #fff; animation: row-in .6s var(--ease) both; background: linear-gradient(140deg, #2457f5, #0bb4d8); }
.banner:nth-child(1) { grid-row: span 2; aspect-ratio: 1; background: linear-gradient(160deg, #ff8a5c, #f4b23c); }
.banner:nth-child(2) { aspect-ratio: 1.91; }
.banner:nth-child(3) { aspect-ratio: 3.2; background: linear-gradient(110deg, #0b1220, #2457f5); }
.banner::before { content: ""; position: absolute; right: -20%; top: -30%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.banner b { position: relative; color: #fff; font-size: .95rem; line-height: 1.4; }
.banner small { position: relative; font-family: var(--mono); font-size: .66rem; opacity: .85; }
.demo-approve {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.demo-approve.is-show { opacity: 1; transform: none; pointer-events: auto; }
.demo-metric { font-size: .8rem; color: var(--sub); line-height: 1.5; }
.demo-metric b { display: block; font-family: var(--mono); font-size: 1.02rem; font-weight: 500; color: var(--ink); }
.demo-metric b em { font-style: normal; color: var(--blue); }
.demo-approve .btn { padding: 11px 20px; font-size: .86rem; }
.demo-approve.is-approved .btn { background: var(--ok); box-shadow: none; pointer-events: none; }
.demo-approve.is-approved .btn::before { display: none; }
.demo-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: .8rem; color: var(--faint); }
.demo-replay { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; font-size: .8rem; color: var(--sub); }
.demo-replay:hover { border-color: var(--blue); color: var(--blue); }
.demo-replay svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Compact (hero) variant */
.demo-compact { --demo-h: 0px; }
.demo-compact .demo-body { grid-template-columns: minmax(0, 1fr); }
.demo-compact .demo-left { border-right: 0; padding: 20px 20px 8px; gap: 12px; }
.demo-compact .demo-right { padding: 8px 20px 20px; background: none; }
.demo-compact .demo-right .demo-out-head { display: none; }
.demo-compact .doc { padding: 16px 18px; font-size: .84rem; max-height: 200px; position: relative; }
.demo-compact .doc::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40px; background: linear-gradient(transparent, #fff); }
.demo-compact .doc-empty { min-height: 140px; }
.demo-compact .step { padding: 6px 8px; }
.demo-compact .step-text { font-size: .86rem; }
.demo-compact .step-detail { display: none; }
.demo-compact .demo-input { padding: 12px; }
.hero-demo { position: relative; }
.hero-demo .floating {
  position: absolute; z-index: 2; padding: 12px 16px; border-radius: 14px; background: rgba(255, 255, 255, .92); border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--shadow); animation: float 6s ease-in-out infinite;
}
.hero-demo .floating small { display: block; font-size: .72rem; color: var(--faint); line-height: 1.4; }
.hero-demo .floating b { font-family: var(--mono); font-weight: 500; font-size: 1.05rem; }
.hero-demo .f1 { left: -36px; bottom: 54px; }
.hero-demo .f2 { right: -24px; top: -22px; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* =========================================================
   Stats / numbers
   ========================================================= */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; overflow: hidden; }
.stat-cell { padding: 40px 36px; }
.stat-cell + .stat-cell { border-left: 1px solid var(--line); }
.stat-cell small { display: block; font-size: .88rem; color: var(--sub); }
.stat-cell .big { display: block; margin: 8px 0 4px; font-family: var(--mono); font-size: clamp(2.4rem, 4.6vw, 3.4rem); font-weight: 500; line-height: 1.1; letter-spacing: -.01em; color: var(--ink); }
.stat-cell .big span.unit { font-family: var(--sans); font-size: .42em; font-weight: 600; margin-left: 4px; letter-spacing: .04em; }
.stat-cell p { font-size: .88rem; color: var(--faint); }

/* =========================================================
   Simulation chart
   ========================================================= */
.sim { display: grid; grid-template-columns: 1.55fr 1fr; gap: 24px; }
.sim-chart { margin: 0; padding: 30px; display: flex; flex-direction: column; justify-content: center; }
.sim-chart figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; margin-bottom: 14px; font-size: .9rem; font-weight: 600; color: var(--ink); }
.legend { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 400; color: var(--sub); }
.legend i { display: inline-block; width: 18px; height: 3px; border-radius: 2px; }
.lg-h { background: #9aa7bb; } .lg-a { background: var(--blue); margin-left: 12px; }
.sim-chart svg { width: 100%; overflow: visible; }
.c-grid line { stroke: #edf1f7; }
.c-y text { font-family: var(--mono); font-size: 12px; fill: var(--faint); text-anchor: end; }
.c-x text { font-size: 12px; fill: var(--faint); text-anchor: middle; }
.c-x text:first-child { text-anchor: start; } .c-x text:last-child { text-anchor: end; }
.c-line { fill: none; stroke-width: 3.5; stroke-linecap: round; }
.c-human { stroke: #9aa7bb; stroke-dasharray: 8 7; }
.c-ai { stroke: var(--blue); stroke-dasharray: 700; stroke-dashoffset: 0; }
.c-be line { stroke: var(--blue); stroke-dasharray: 3 4; }
.c-be circle { fill: #fff; stroke: var(--blue); stroke-width: 3; }
.c-be text { font-size: 13px; font-weight: 600; fill: var(--blue); }
.c-save { font-family: var(--mono); font-size: 18px; font-weight: 500; fill: var(--blue); text-anchor: end; }
.js .sim .c-ai { stroke-dashoffset: 700; transition: stroke-dashoffset 1.6s var(--ease) .3s; }
.js .sim .c-area, .js .sim .c-be, .js .sim .c-end { opacity: 0; transition: opacity .7s ease 1.5s; }
.js .sim.is-in .c-ai { stroke-dashoffset: 0; }
.js .sim.is-in .c-area, .js .sim.is-in .c-be, .js .sim.is-in .c-end { opacity: 1; }
.sim-kpis { display: grid; gap: 16px; }
.kpi { padding: 26px 30px; display: flex; flex-direction: column; justify-content: center; }
.kpi small { font-size: .85rem; font-weight: 600; color: var(--sub); }
.kpi strong { font-family: var(--mono); font-weight: 500; font-size: 2.3rem; line-height: 1.25; }
.kpi strong .unit { font-family: var(--sans); font-size: .45em; font-weight: 600; margin-left: 4px; }
.kpi span.desc { font-size: .88rem; color: var(--sub); }
.kpi-main { background: var(--grad); border: 0; color: #fff; box-shadow: var(--shadow-lg); }
.kpi-main small, .kpi-main span.desc { color: #dbe8ff; }
.kpi-main strong { color: #fff; }

/* =========================================================
   Cases
   ========================================================= */
.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.case { overflow: hidden; display: flex; flex-direction: column; }
.case-img { overflow: hidden; aspect-ratio: 16 / 9; background: var(--bg-alt); }
.case-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.case:hover .case-img img { transform: scale(1.05); }
.case-body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 24px 26px 28px; }
.case-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.case h3 { font-size: 1.1rem; }
.case-metric { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; padding: 12px 14px; border-radius: 12px; background: var(--blue-50); font-size: .86rem; color: var(--sub); }
.case-metric b { font-family: var(--mono); font-weight: 500; font-size: 1.1rem; color: var(--blue); }
.case-body > p:last-child { font-size: .93rem; color: var(--sub); line-height: 1.85; }

/* =========================================================
   Levels
   ========================================================= */
.agent-build { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.price-box { margin-top: 32px; padding: 26px 28px; border-radius: var(--radius); background: var(--bg-alt); border: 1px solid var(--line); }
.price-box small { display: block; font-size: .85rem; color: var(--sub); }
.price-box .price { font-family: var(--mono); font-size: 2.2rem; font-weight: 500; color: var(--blue); line-height: 1.3; }
.price-box .sub { font-size: .9rem; color: var(--sub); }
.levels { position: relative; display: grid; gap: 14px; }
.levels::before { content: ""; position: absolute; left: 31px; top: 30px; bottom: 30px; width: 2px; background: linear-gradient(var(--blue-100), var(--blue)); }
.level { position: relative; display: grid; grid-template-columns: 64px 1fr auto; gap: 18px; align-items: center; padding: 20px 24px 20px 0; border-radius: var(--radius); background: transparent; }
.level-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: #fff; border: 1px solid var(--line-strong); font-family: var(--mono); font-size: .95rem; font-weight: 500; color: var(--blue); box-shadow: var(--shadow-sm); }
.level:nth-child(4) .level-dot { background: var(--grad); color: #fff; border: 0; }
.level-body h4 { font-size: 1.06rem; }
.level-body h4 small { margin-left: 8px; font-size: .78rem; font-weight: 500; color: var(--blue); }
.level-body p { font-size: .9rem; color: var(--sub); line-height: 1.7; }
.level-price { text-align: right; font-size: .8rem; color: var(--faint); line-height: 1.5; }
.level-price b { display: block; font-family: var(--mono); font-weight: 500; font-size: 1rem; color: var(--ink); }
.level.is-rec .level-dot { box-shadow: 0 0 0 6px rgba(36, 87, 245, .12); border-color: var(--blue); }

/* Other services */
.other-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.other { overflow: hidden; display: grid; grid-template-columns: 230px 1fr; }
.other-img { overflow: hidden; }
.other-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.other:hover .other-img img { transform: scale(1.05); }
.other-img img[src*="svc-tools"] { object-position: 35% center; }
.other-body { display: flex; flex-direction: column; padding: 28px 30px; }
.other-body .mono { font-size: .78rem; color: var(--blue); }
.other h3 { font-size: 1.15rem; margin: 6px 0 8px; }
.other-body p:not(.mono):not(.other-price) { flex: 1; font-size: .92rem; color: var(--sub); line-height: 1.85; }
.other-price { margin-top: 14px; font-family: var(--mono); font-weight: 500; font-size: 1.15rem; color: var(--ink); }

/* Flow */
.flow { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.flow::before { content: ""; position: absolute; top: 34px; left: 10%; right: 10%; height: 2px; background: var(--line-strong); }
.flow::after { content: ""; position: absolute; top: 34px; left: 10%; right: 10%; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform 1.8s var(--ease) .2s; }
.flow.is-in::after { transform: scaleX(1); }
.flow li { position: relative; text-align: center; padding: 0 6px; }
.flow-n { position: relative; z-index: 1; display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 20px; border-radius: 50%; background: #fff; border: 1px solid var(--line-strong); font-family: var(--mono); font-size: 1.05rem; color: var(--blue); box-shadow: var(--shadow-sm); }
.flow h3 { font-size: 1.02rem; margin-bottom: 6px; }
.flow p { font-size: .88rem; color: var(--sub); line-height: 1.75; }
.flow .chip { margin-top: 10px; background: #e9f8f1; color: var(--ok); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { border-radius: 16px; background: #fff; border: 1px solid var(--line); transition: border-color .25s, box-shadow .25s; }
.faq details[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.faq summary { position: relative; list-style: none; cursor: pointer; padding: 22px 64px 22px 66px; font-weight: 600; line-height: 1.65; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; position: absolute; left: 24px; top: 20px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--ink); color: #fff; font-family: var(--mono); font-size: .85rem; }
.faq summary::after { content: ""; position: absolute; right: 28px; top: 50%; width: 9px; height: 9px; margin-top: -6px; border-right: 2px solid var(--sub); border-bottom: 2px solid var(--sub); transform: rotate(45deg); transition: transform .3s var(--ease), margin-top .3s; }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -1px; }
.faq .ans { position: relative; padding: 0 30px 24px 66px; color: var(--sub); line-height: 1.95; }
.faq .ans::before { content: "A"; position: absolute; left: 24px; top: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--blue-50); color: var(--blue); font-family: var(--mono); font-size: .85rem; }

/* =========================================================
   Role detail (agents page)
   ========================================================= */
.role-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.role { padding: 34px 34px 30px; }
.role-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.role-ico { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--blue-50); color: var(--blue); }
.role-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.role h3 { font-size: 1.2rem; }
.role > p { color: var(--sub); }
.role-levels { display: grid; gap: 10px; margin: 22px 0 20px; }
.role-levels li { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: start; font-size: .92rem; line-height: 1.7; }
.role-levels .mono { display: inline-block; padding: 2px 0; border-radius: 6px; font-size: .74rem; text-align: center; background: var(--blue-50); color: var(--blue); }
.role-levels li:nth-child(2) .mono { background: var(--ink); color: #fff; }
.role-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--sub); }
.role-foot b { font-family: var(--mono); font-weight: 500; color: var(--blue); }
.role-foot button { padding: 0; border: 0; background: none; cursor: pointer; color: var(--blue); font-weight: 600; }

/* =========================================================
   Company
   ========================================================= */
.mission { padding: 64px; border-radius: var(--radius-lg); background: var(--ink); color: #c9d4e6; position: relative; overflow: hidden; }
.mission::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(36, 87, 245, .5), transparent 65%); filter: blur(20px); }
.mission .label { color: #8fb3ff; }
.mission h2 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin-bottom: 22px; position: relative; z-index: 1; }
.mission p { position: relative; z-index: 1; max-width: 42em; line-height: 2.05; }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.value { padding: 30px 28px; }
.value .mono { font-size: .78rem; color: var(--blue); }
.value h3 { font-size: 1.12rem; margin: 8px 0 10px; }
.value p { font-size: .93rem; color: var(--sub); }
.info { border-top: 1px solid var(--line); }
.info div { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 22px 4px; border-bottom: 1px solid var(--line); }
.info dt { font-weight: 600; color: var(--ink); }
.info dd { margin: 0; color: var(--sub); }

/* =========================================================
   Contact
   ========================================================= */
.contact-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.contact-points { display: grid; gap: 14px; margin: 32px 0 40px; }
.contact-points li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--ink); }
.after-steps { display: grid; gap: 0; border-left: 2px solid var(--line); margin-left: 6px; }
.after-steps li { position: relative; padding: 0 0 22px 26px; }
.after-steps li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--blue); }
.after-steps b { display: block; font-size: .95rem; }
.after-steps span { font-size: .88rem; color: var(--sub); }
.form { padding: 44px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; }
.field label { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: .9rem; font-weight: 600; color: var(--ink); }
.req, .opt { padding: 1px 8px; border-radius: 4px; font-size: .7rem; font-weight: 600; letter-spacing: .04em; }
.req { background: var(--blue); color: #fff; }
.opt { background: #eef1f6; color: var(--sub); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: #fbfcfe;
  font: inherit; font-size: 16px; color: var(--ink); letter-spacing: .02em; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field input::placeholder, .field textarea::placeholder { color: #a3aec0; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 44px; background: #fbfcfe url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center / 16px; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background-color: #fff; box-shadow: 0 0 0 4px rgba(36, 87, 245, .12); }
.field.is-error input, .field.is-error textarea { border-color: #e5484d; background-color: #fff5f5; }
.field-error { display: none; margin-top: 6px; font-size: .82rem; color: #d1343a; }
.field.is-error .field-error { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-size: .92rem; text-align: center; }
.form-status:empty { display: none; }
.form-status.ok { background: #e9f8f1; color: #0b7a55; font-weight: 600; }
.form-status.ng { background: #fff1f1; color: #b4232a; }
.form-note { margin-top: 14px; font-size: .82rem; color: var(--faint); text-align: center; }

/* =========================================================
   CTA band
   ========================================================= */
.cta-band { position: relative; overflow: hidden; padding: 80px 72px; border-radius: 32px; color: #dbe6ff; isolation: isolate; background: linear-gradient(130deg, #13245e 0%, #1a3fc4 45%, #2457f5 75%, #0f9fd0 100%); box-shadow: var(--shadow-lg); }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%); }
.cta-band::after { content: ""; position: absolute; z-index: -1; right: -100px; top: -140px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(159, 230, 255, .45), transparent 65%); animation: drift 16s ease-in-out infinite; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.cta-band .label { color: #9fe6ff; }
.cta-band .label::before { background: #9fe6ff; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin-bottom: 14px; }
.cta-band p { max-width: 34em; line-height: 2; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { padding: 80px 0 32px; background: var(--ink); color: #94a3b8; }
.footer-top { display: grid; grid-template-columns: 1.3fr 2fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer-tag { margin-top: 16px; font-size: .92rem; line-height: 1.9; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer-cols h4 { margin-bottom: 14px; font-family: var(--mono); font-size: .76rem; font-weight: 500; letter-spacing: .14em; color: #64748b; text-transform: uppercase; }
.footer-cols li + li { margin-top: 10px; }
.footer-cols a { color: #cbd5e1; text-decoration: none; font-size: .9rem; transition: color .2s; }
.footer-cols a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 26px; font-size: .8rem; }

/* Floating CTA */
.float-cta {
  position: fixed; right: 24px; bottom: 24px; z-index: 90; display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px;
  border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; font-size: .92rem;
  box-shadow: 0 16px 36px -12px rgba(11, 18, 32, .6); opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease), background-color .25s;
}
.float-cta .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: ping 2s infinite; }
.float-cta:hover { background: var(--blue); }
.float-cta.is-show { opacity: 1; transform: none; pointer-events: auto; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }

.hero-inner > *, .agent-build > *, .contact-wrap > *, .sim > *, .demo-body > *, .svc-main > *, .footer-top > * { min-width: 0; }

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .marquee-track { animation: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .gnav { gap: 24px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .hero-demo { max-width: 640px; margin-inline: auto; width: 100%; }
  .agent-build { grid-template-columns: 1fr; gap: 40px; }
  .sim { grid-template-columns: 1fr; }
  .sim-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact-wrap { grid-template-columns: 1fr; gap: 48px; }
  .svc-sub { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: 1fr; gap: 0; max-width: 560px; margin-inline: auto; }
  .flow::before, .flow::after { top: 34px; bottom: 34px; left: 33px; right: auto; width: 2px; height: auto; }
  .flow::after { transform: scaleY(0); transform-origin: top; }
  .flow.is-in::after { transform: scaleY(1); }
  .flow li { display: grid; grid-template-columns: 68px 1fr; column-gap: 22px; text-align: left; padding: 0 0 28px; }
  .flow-n { grid-row: span 3; margin: 0; }
  .flow h3 { margin-top: 10px; }
  .flow .chip { justify-self: start; }
}
@media (max-width: 900px) {
  .nav-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 11px; border: 0; background: none; cursor: pointer; }
  .nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .3s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .gnav {
    position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 28px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(11, 18, 32, .3);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .gnav.is-open { opacity: 1; visibility: visible; transform: none; }
  .gnav-link { padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: 1rem; color: var(--ink); }
  .gnav-link::after { display: none; }
  .gnav .btn { margin-top: 20px; padding: 16px; }
  .problem-grid, .principles, .values { grid-template-columns: 1fr; }
  .svc-main { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .role-grid, .other-grid { grid-template-columns: 1fr; }
  .demo-body { grid-template-columns: minmax(0, 1fr); }
  .demo-left { border-right: 0; border-bottom: 1px solid var(--line); }
  .stats { grid-template-columns: 1fr; }
  .stat-cell + .stat-cell { border-left: 0; border-top: 1px solid var(--line); }
  .footer-top { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  body { font-size: 15.5px; line-height: 1.95; }
  .container, .container-narrow { width: calc(100% - 40px); }
  .pc { display: none; }
  .sp { display: inline; }
  .section { padding: 88px 0; }
  .section-sm { padding: 64px 0; }
  .sec-head { margin-bottom: 44px; }
  .hero { padding: 48px 0 80px; }
  .hero-title { font-size: clamp(1.7rem, 8.2vw, 2.3rem); letter-spacing: .02em; }
  .hero-lead, .page-lead, .sec-lead { font-size: 1rem; }
  .hero-cta .btn { width: 100%; }
  .hero-demo .f1 { left: -6px; bottom: -22px; }
  .hero-demo .f2 { right: -6px; top: -26px; }
  .page-hero { padding: 56px 0 56px; }
  .svc-card { padding: 34px 26px 30px; }
  .svc-sub { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .sim-chart { padding: 22px 14px; }
  .sim-kpis { grid-template-columns: 1fr; }
  .demo-tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: -20px; padding: 0 20px 4px; scrollbar-width: none; }
  .demo-tabs::-webkit-scrollbar { display: none; }
  .demo-tab { flex: none; }
  .demo-left, .demo-right { padding: 18px; }
  .demo-approve { flex-direction: column; align-items: stretch; }
  .demo-approve .btn { width: 100%; }
  .banners { grid-template-columns: 1fr 1fr; }
  .level { grid-template-columns: 52px 1fr; padding-right: 0; }
  .level-dot { width: 52px; height: 52px; border-radius: 14px; font-size: .85rem; }
  .levels::before { left: 25px; }
  .level-price { grid-column: 2; text-align: left; }
  .level-price b { display: inline; margin-right: 8px; }
  .other { grid-template-columns: 1fr; }
  .other-img img { aspect-ratio: 16 / 9; height: auto; }
  .role { padding: 28px 22px 24px; }
  .mission { padding: 40px 26px; }
  .info div { grid-template-columns: 1fr; gap: 4px; }
  .form { padding: 28px 20px; border-radius: 22px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .faq summary { padding: 18px 48px 18px 56px; }
  .faq summary::before { left: 16px; top: 17px; }
  .faq summary::after { right: 20px; }
  .faq .ans { padding: 0 20px 20px 56px; }
  .faq .ans::before { left: 16px; }
  .cta-band { padding: 52px 26px; border-radius: 24px; }
  .cta-band .btn { width: 100%; }
  .float-cta { left: 16px; right: 16px; bottom: 16px; justify-content: center; }
  .site-footer { padding-bottom: 100px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
