/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #f5f9ff;
  --bg-2:      #eaf2ff;
  --bg-3:      #dce9ff;
  --ink:       #0d1b3d;
  --ink-soft:  #33466f;
  --mute:      #5b6c8f;
  --accent:    #2f6fed;
  --accent-2:  #5b93f5;
  --accent-3:  #a9cbff;
  --navy:      #0b1736;
  --line:      rgba(13, 27, 61, 0.12);

  --display: "Red Hat Display", "Segoe UI", system-ui, sans-serif;
  --text:    "Red Hat Text", "Segoe UI", system-ui, sans-serif;
  --label:   "Sora", "Segoe UI", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --nav-h: 72px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: linear-gradient(180deg, #f5f9ff 0%, #e6f0ff 100%) fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--display); text-wrap: balance; letter-spacing: -0.025em; line-height: 1.06; font-weight: 700; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* =============================================================
   3. Scene (fixed 3D background)
   ============================================================= */
.scene-wrap { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene-wrap::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(90% 70% at 18% 28%, rgba(245,249,255,.78), rgba(245,249,255,.28) 70%),
    linear-gradient(180deg, rgba(245,249,255,.25), rgba(245,249,255,.45));
}
.page { position: relative; z-index: 1; }
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 300; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

/* =============================================================
   4. Utilities
   ============================================================= */
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 9999; padding: .6rem 1rem; background: var(--ink); color: #fff; border-radius: 8px; transition: top .3s var(--ease-out); }
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.container { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.kicker {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--label); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section-head { max-width: 780px; margin-bottom: clamp(2.2rem, 5vw, 3.4rem); }
.section-head h2 { font-size: clamp(2rem, 4.6vw, 3.5rem); margin-top: 1.1rem; }
.section-head p.lead { margin-top: 1.3rem; color: var(--ink-soft); font-size: 1.15rem; max-width: 60ch; }
.panel { background: rgba(255,255,255,.82); border: 1px solid var(--line); border-radius: 18px; }
@supports (backdrop-filter: blur(14px)) {
  .panel { background: rgba(255,255,255,.66); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
}
.more-link { display: inline-flex; gap: .5rem; align-items: center; font-family: var(--display); font-weight: 700; color: var(--accent); }
.more-link span { transition: transform .35s var(--ease-out); }
.more-link:hover span { transform: translateX(4px); }

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; gap: .65rem;
  padding: .95rem 1.5rem; border-radius: 12px; font-family: var(--display); font-weight: 700; font-size: .98rem; letter-spacing: -.005em;
  transition: transform .35s var(--ease-out), background .3s, color .3s, border-color .3s, box-shadow .35s var(--ease-out);
}
.btn .arrow { transition: transform .35s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 16px 34px -16px rgba(47,111,237,.85); }
.btn-primary:hover { background: #1f5ad4; transform: translateY(-2px); }
.btn-ghost { border: 1px solid rgba(13,27,61,.28); background: rgba(255,255,255,.55); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; view-transition-name: site-nav; }
.nav.is-scrolled { background: rgba(245,249,255,.82); border-color: var(--line); }
@supports (backdrop-filter: blur(14px)) { .nav.is-scrolled { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); } }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); position: relative; }
.brand { display: inline-flex; align-items: center; line-height: 0; }
.brand img { height: 36px; width: auto; }
.footer .brand img { height: 30px; }
.nav-links { display: none; gap: 1.9rem; font-size: .92rem; font-weight: 500; color: var(--ink-soft); }
.nav-links a { position: relative; padding-block: .3rem; transition: color .25s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; background: var(--accent); transition: right .4s var(--ease-out); }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--accent); }
.nav-links a:hover::after, .nav-links a[aria-current]::after { right: 0; }
.nav-cta { display: none; padding: .7rem 1.2rem; font-size: .9rem; }
.nav-toggle { width: 56px; height: 56px; border-radius: 16px; background: var(--navy); display: grid; place-items: center; box-shadow: 0 14px 28px -12px rgba(11,23,54,.75); transition: background .3s, transform .3s var(--ease-out); }
.nav-toggle:hover { background: var(--accent); }
.nav-toggle:active { transform: scale(.94); }
.nav-toggle .bars { display: grid; gap: 6px; width: 28px; }
.nav-toggle .bars i { display: block; height: 3px; border-radius: 2px; background: #fff; transition: transform .35s var(--ease-out), opacity .2s; }
.nav-toggle[aria-expanded="true"] .bars i:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars i:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
.nav-links.is-open {
  display: flex; flex-direction: column; gap: 1.1rem; position: absolute; top: calc(var(--nav-h) - 4px); left: 0; right: 0;
  padding: 1.4rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 30px 60px -30px rgba(13,27,61,.4);
}
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* =============================================================
   6. Page heroes
   ============================================================= */
.hero { min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 3rem) 0 4rem; }
.hero-copy { max-width: 780px; }
.hero-title { font-size: clamp(2.5rem, 6.2vw, 5.4rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; margin-top: 1.4rem; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.hero-title .line > span { display: inline-block; }
.grad { background: linear-gradient(95deg, var(--accent) 10%, #6ea4ff 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin-top: 1.8rem; max-width: 58ch; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--ink-soft); }
.hero-actions { margin-top: 2.2rem; display: flex; gap: .9rem; flex-wrap: wrap; }
.hero-pillars { margin-top: clamp(2.6rem, 6vw, 4.2rem); display: flex; flex-wrap: wrap; gap: .6rem 2.4rem; font-family: var(--label); font-size: .72rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.hero-pillars a { color: var(--mute); transition: color .25s; }
.hero-pillars a:hover { color: var(--accent); }
.hero-pillars b { color: var(--accent); font-weight: 600; margin-right: .6rem; }

.page-hero { padding: calc(var(--nav-h) + clamp(3rem, 8vw, 6rem)) 0 clamp(1.5rem, 4vw, 3rem); }
.page-hero .hero-title { font-size: clamp(2.4rem, 5.6vw, 4.8rem); max-width: 19ch; margin-top: 1.3rem; }
.page-hero .hero-sub { margin-top: 1.5rem; }

/* =============================================================
   7. Landing sections
   ============================================================= */
.problem-grid { display: grid; gap: 1.2rem; }
.problem-card { padding: 1.8rem; display: flex; flex-direction: column; gap: .9rem; transition: transform .4s var(--ease-out), border-color .3s; }
.problem-card:hover { transform: translateY(-5px); border-color: var(--accent-3); }
.problem-card .idx { font-family: var(--label); font-weight: 600; font-size: .74rem; color: var(--accent); letter-spacing: .12em; }
.problem-card h3 { font-size: 1.35rem; }
.problem-card p { color: var(--ink-soft); font-size: .98rem; }
.problem-close { margin-top: 2.4rem; font-family: var(--display); font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 600; max-width: 34ch; letter-spacing: -.02em; line-height: 1.2; }
.problem-close em { font-style: normal; color: var(--accent); }

.action-grid { display: grid; gap: 1.2rem; }
.action-card { padding: 1.4rem; display: flex; flex-direction: column; gap: 1rem; }
.action-card .num { font-family: var(--label); font-weight: 600; font-size: .72rem; letter-spacing: .12em; color: var(--accent); }
.action-card h3 { font-size: 1.4rem; margin-top: .3rem; }
.action-card p { color: var(--ink-soft); font-size: .96rem; }
.action-card .more-link { margin-top: auto; padding-top: .4rem; }

.path { display: grid; gap: 1rem; counter-reset: p; }
.path li { padding: 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .35rem; }
.path .n { font-family: var(--label); font-weight: 600; font-size: .72rem; letter-spacing: .12em; color: var(--accent); }
.path strong { font-family: var(--display); font-size: 1.2rem; }
.path span.d { color: var(--ink-soft); font-size: .92rem; }

/* =============================================================
   8. Animated demos
   ============================================================= */
.demo { width: 100%; }
.demo-cap { margin-top: .9rem; font-family: var(--label); font-size: .66rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); text-align: center; }

/* --- Browser mock (Páginas web) --- */
.mock { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 44px 70px -42px rgba(13,27,61,.55); }
.mock-bar { display: flex; align-items: center; gap: .45rem; padding: .55rem .8rem; background: #eef3fb; border-bottom: 1px solid var(--line); }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: #c9d6ee; }
.mock-url { flex: 1; margin-left: .6rem; font-family: var(--label); font-size: .64rem; color: var(--mute); background: #fff; border-radius: 6px; padding: .22rem .65rem; }
.mock-view { height: 310px; overflow: hidden; position: relative; background: #fff; }
.site { padding: .9rem; display: grid; gap: .8rem; animation: siteScroll 16s ease-in-out infinite; }
.s-in { animation: siteIn 16s ease-out infinite backwards; animation-delay: calc(var(--i, 0) * .3s); }
.s-nav { display: flex; align-items: center; gap: .6rem; }
.s-logo { width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(135deg, var(--navy), var(--accent)); }
.s-pill { width: 42px; height: 7px; border-radius: 4px; background: #d7e3f8; }
.s-btn { margin-left: auto; padding: .28rem .7rem; font-size: .6rem; border-radius: 6px; background: var(--accent); color: #fff; font-weight: 700; }
.s-hero { border-radius: 10px; padding: 1.2rem 1rem; background: linear-gradient(135deg, #0d1b3d, #2f6fed); color: #fff; display: grid; gap: .55rem; }
.s-hero b { font-family: var(--display); font-size: 1.1rem; line-height: 1.08; letter-spacing: -.02em; max-width: 14ch; }
.s-line { height: 6px; border-radius: 3px; background: rgba(255,255,255,.35); width: 68%; }
.s-line.short { width: 44%; }
.s-cta { justify-self: start; font-size: .6rem; font-weight: 700; padding: .32rem .75rem; border-radius: 6px; background: #fff; color: var(--navy); animation: ctaClick 16s ease-in-out infinite; }
.s-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.s-card { border: 1px solid var(--line); border-radius: 8px; padding: .6rem; display: grid; gap: .4rem; background: #fff; font-size: .62rem; font-weight: 700; color: var(--ink); }
.s-ico { width: 18px; height: 18px; border-radius: 5px; background: var(--bg-3); }
.s-card i { height: 5px; border-radius: 3px; background: #e3ebf8; display: block; }
.s-card i.s { width: 60%; }
.s-band { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; padding: .8rem; border-radius: 10px; background: var(--bg-2); gap: .4rem; }
.s-band b { display: block; font-family: var(--display); font-size: 1rem; color: var(--accent); }
.s-band span { font-size: .55rem; color: var(--mute); }
.s-foot { height: 38px; border-radius: 10px; background: var(--navy); display: flex; align-items: center; padding: 0 .9rem; gap: .5rem; }
.s-foot i { width: 38px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.25); display: block; }
.s-cursor { position: absolute; left: 78%; top: 88%; width: 18px; height: 18px; z-index: 3; animation: cursorMove 16s ease-in-out infinite; filter: drop-shadow(0 3px 4px rgba(13,27,61,.35)); }
@keyframes siteScroll { 0%, 26% { transform: translateY(0); } 44%, 68% { transform: translateY(-150px); } 86%, 100% { transform: translateY(0); } }
@keyframes siteIn { 0% { opacity: 0; transform: translateY(14px); } 5%, 93% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes ctaClick { 0%, 14% { transform: scale(1); box-shadow: none; } 17% { transform: scale(.92); } 20% { transform: scale(1.04); box-shadow: 0 0 0 6px rgba(255,255,255,.28); } 26%, 100% { transform: scale(1); box-shadow: none; } }
@keyframes cursorMove { 0% { left: 80%; top: 90%; } 14% { left: 22%; top: 48%; } 28% { left: 22%; top: 48%; } 50% { left: 64%; top: 72%; } 72% { left: 30%; top: 40%; } 100% { left: 80%; top: 90%; } }

/* --- Auto-reply chat (Automatización) --- */
.phone { max-width: 410px; margin-inline: auto; background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: 0 44px 70px -42px rgba(13,27,61,.55); }
.phone-head { display: flex; gap: .75rem; align-items: center; padding: .85rem 1rem; background: var(--navy); color: #fff; }
.phone-head .av { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font-family: var(--display); font-weight: 800; }
.phone-head strong { font-family: var(--display); font-size: .95rem; display: block; line-height: 1.2; }
.phone-head small { display: block; color: var(--accent-3); font-size: .72rem; }
.phone-body { padding: 1rem; display: flex; flex-direction: column; gap: .55rem; min-height: 290px; background: var(--bg-2); }
.b { max-width: 86%; padding: .55rem .8rem; border-radius: 14px; font-size: .86rem; line-height: 1.4; }
.b-in { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.b-out { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.b.typing { display: flex; gap: 4px; padding: .75rem .9rem; }
.b.typing i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.9); animation: blink 1s infinite; }
.b.typing i:nth-child(2) { animation-delay: .15s; }
.b.typing i:nth-child(3) { animation-delay: .3s; }
.armed .b:not(.is-in):not(.typing) { display: none; }
.b.is-in { animation: popIn .55s var(--ease-out) both; }
.auto-log { display: grid; gap: .45rem; padding: .85rem 1rem 1rem; background: #fff; border-top: 1px solid var(--line); font-size: .78rem; color: var(--ink-soft); }
.auto-log li { display: flex; gap: .55rem; align-items: center; transition: opacity .4s; }
.auto-log li::before { content: "✓"; flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .6rem; display: grid; place-items: center; }
.armed .auto-log li:not(.is-in) { opacity: .28; }
@keyframes popIn { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-2px); } }

/* --- Systems connecting (CRM) --- */
.demo-dark { background: var(--navy); color: #fff; border-radius: clamp(16px, 2.6vw, 26px); padding: clamp(1rem, 2.6vw, 1.8rem); position: relative; overflow: hidden; }
.demo-dark::before { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; background: radial-gradient(circle, rgba(91,147,245,.3), transparent 65%); pointer-events: none; }
.demo-dark .demo-cap { color: rgba(255,255,255,.55); }
.sys-svg { width: 100%; height: auto; position: relative; }
.sys-line { fill: none; stroke: var(--accent-2); stroke-width: 1.6; stroke-dasharray: 200; stroke-dashoffset: 200; animation: sysConnect 9s ease-in-out infinite; animation-delay: calc(var(--i) * .55s); }
.sys-node rect { fill: rgba(255,255,255,.08); stroke: rgba(255,255,255,.3); stroke-width: 1; animation: nodeOn 9s ease-in-out infinite; animation-delay: calc(var(--i) * .55s); }
.sys-node text { font-family: var(--text); font-size: 16.5px; font-weight: 600; fill: #fff; }
.sys-hub circle.core { fill: var(--accent); }
.sys-hub text { font-family: var(--display); font-size: 19px; font-weight: 800; fill: #fff; letter-spacing: .04em; }
.sys-hub circle.ring { fill: none; stroke: var(--accent-2); stroke-width: 1.5; transform-origin: 280px 180px; animation: hubPulse 2.6s ease-out infinite; }
.sys-packet { fill: #fff; }
@keyframes sysConnect { 0% { stroke-dashoffset: 200; opacity: .3; } 12%, 86% { stroke-dashoffset: 0; opacity: 1; } 95% { stroke-dashoffset: 0; opacity: .25; } 100% { stroke-dashoffset: 200; opacity: .25; } }
@keyframes nodeOn { 0% { fill: rgba(255,255,255,.08); stroke: rgba(255,255,255,.3); } 12%, 86% { fill: rgba(91,147,245,.28); stroke: #5b93f5; } 100% { fill: rgba(255,255,255,.08); stroke: rgba(255,255,255,.3); } }
@keyframes hubPulse { 0% { opacity: .75; transform: scale(1); } 100% { opacity: 0; transform: scale(1.45); } }

.board { position: relative; margin-top: 1rem; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: .9rem; }
.board-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .1rem .2rem .8rem; font-family: var(--label); font-size: .64rem; font-weight: 500; letter-spacing: .1em; color: rgba(255,255,255,.7); text-transform: uppercase; }
.board-bar .tag { padding: .2rem .6rem; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; color: var(--accent-3); text-transform: none; letter-spacing: .04em; }
.cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.col { background: rgba(255,255,255,.06); border-radius: 11px; padding: .65rem; min-height: 112px; display: flex; flex-direction: column; gap: .5rem; }
.col h5 { font-family: var(--label); font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.62); font-weight: 500; display: flex; justify-content: space-between; }
.kcard { background: rgba(255,255,255,.95); color: var(--ink); border-radius: 8px; padding: .5rem .6rem; font-size: .76rem; line-height: 1.3; font-weight: 600; box-shadow: 0 10px 20px -14px rgba(0,0,0,.6); }
.kcard small { display: block; margin-top: .15rem; font-weight: 400; color: var(--mute); font-size: .66rem; }
.kcard.is-live { box-shadow: 0 0 0 2px var(--accent-2), 0 12px 26px -12px rgba(91,147,245,.9); }

/* =============================================================
   9. Services page
   ============================================================= */
.svc { display: grid; gap: 2.2rem; align-items: center; padding-block: clamp(2.6rem, 6vw, 4.6rem); border-top: 1px solid var(--line); }
.svc:first-of-type { border-top: 0; }
.svc-copy .num { font-family: var(--label); font-weight: 600; font-size: .74rem; letter-spacing: .14em; color: var(--accent); text-transform: uppercase; }
.svc-copy h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); margin-top: 1rem; }
.svc-copy > p { margin-top: 1.1rem; color: var(--ink-soft); font-size: 1.08rem; max-width: 54ch; }
.checks { display: grid; gap: .8rem; margin-top: 1.5rem; }
.checks li { display: grid; grid-template-columns: 1.4rem 1fr; gap: .7rem; color: var(--ink-soft); font-size: 1rem; }
.checks li::before { content: ""; width: 1rem; height: 1rem; margin-top: .4rem; border-radius: 50%; border: 2px solid var(--accent); background: radial-gradient(circle, var(--accent) 35%, transparent 38%); }
.svc-ideal { margin-top: 1.5rem; padding: .9rem 1.1rem; border-left: 3px solid var(--accent); background: rgba(255,255,255,.62); color: var(--ink-soft); font-size: .95rem; border-radius: 0 10px 10px 0; }
.svc-ideal b { color: var(--ink); }

.support { margin-top: 1rem; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.support > div { background: rgba(255,255,255,.8); padding: 1.3rem 1.5rem; }
.support h4 { font-size: 1.05rem; margin-bottom: .35rem; }
.support p { font-size: .92rem; color: var(--mute); }

.picker { padding: clamp(1.4rem, 4vw, 2.4rem); display: grid; gap: 1.4rem; }
.chips { display: grid; gap: .7rem; border: 0; padding: 0; }
.chip { position: relative; display: block; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip > span { display: grid; gap: .1rem; padding: .95rem 1.1rem 1rem 3rem; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.8); transition: border-color .25s, background .25s, transform .3s var(--ease-out); position: relative; }
.chip > span::before { content: ""; position: absolute; left: 1.05rem; top: 1.15rem; width: 1.1rem; height: 1.1rem; border-radius: 6px; border: 2px solid var(--accent-3); background: #fff; transition: all .25s; }
.chip strong { font-family: var(--display); font-size: 1.02rem; }
.chip small { color: var(--mute); font-size: .82rem; }
.chip:hover > span { border-color: var(--accent-3); transform: translateY(-2px); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.chip.is-on > span { border-color: var(--accent); background: #fff; box-shadow: 0 16px 30px -20px rgba(47,111,237,.7); }
.chip.is-on > span::before { background: var(--accent) center / 70% no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6 9.6 3.6' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); border-color: var(--accent); }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink-soft); margin-bottom: .45rem; }
.field textarea { width: 100%; min-height: 84px; resize: vertical; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px; font: inherit; font-size: .95rem; background: rgba(255,255,255,.85); color: var(--ink); }
.field textarea:focus { border-color: var(--accent); outline: none; }
.picker-foot { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-items: center; justify-content: space-between; }
.picker-foot p { color: var(--ink-soft); font-size: .95rem; max-width: 50ch; }

/* =============================================================
   10. Method page
   ============================================================= */
.timeline { position: relative; display: grid; gap: 1.4rem; padding-left: 2.6rem; --tl: 1; }
.js .timeline { --tl: 0; }
.timeline::before { content: ""; position: absolute; left: .85rem; top: 1rem; bottom: 1rem; width: 2px; background: var(--line); }
.timeline::after { content: ""; position: absolute; left: .85rem; top: 1rem; bottom: 1rem; width: 2px; background: linear-gradient(180deg, var(--accent), var(--accent-2)); transform-origin: 50% 0; transform: scaleY(var(--tl)); }
.t-step { position: relative; padding: clamp(1.4rem, 3vw, 2rem); display: grid; gap: 1.2rem; }
.t-step::before { content: ""; position: absolute; left: calc(-2.6rem + .85rem - 7px + 1px); top: 1.8rem; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); box-shadow: 0 0 0 5px rgba(47,111,237,.14); }
.t-step .num { font-family: var(--label); font-weight: 600; font-size: .72rem; letter-spacing: .14em; color: var(--accent); }
.t-step h3 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin-top: .5rem; }
.t-step .what { color: var(--ink-soft); margin-top: .8rem; max-width: 60ch; }
.t-cols { display: grid; gap: 1.2rem; }
.t-cols h4 { font-family: var(--label); font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin-bottom: .6rem; }
.t-cols li { position: relative; padding-left: 1.2rem; font-size: .95rem; color: var(--ink-soft); margin-bottom: .45rem; }
.t-cols li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }

.principles { display: grid; gap: 1.4rem 2rem; }
.principle { border-top: 1px solid var(--ink); padding-top: 1.1rem; }
.principle h3 { font-size: 1.25rem; margin-bottom: .55rem; }
.principle p { color: var(--ink-soft); font-size: .98rem; }
.targets { margin-top: 2.6rem; padding: 1.4rem 1.6rem; display: grid; gap: 1.1rem 2rem; grid-template-columns: repeat(2, 1fr); }
.targets b { display: block; font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.03em; }
.targets span { display: block; font-size: .8rem; color: var(--mute); margin-top: .2rem; }
.targets-note { grid-column: 1 / -1; font-family: var(--label); font-size: .64rem; letter-spacing: .04em; color: var(--mute); }

.faq-list { border-top: 1px solid var(--ink); max-width: 880px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1.5rem; align-items: baseline; padding: 1.4rem 0; font-family: var(--display); font-weight: 600; font-size: clamp(1.1rem, 2vw, 1.35rem); letter-spacing: -.015em; transition: color .25s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary .plus { font-family: var(--label); color: var(--accent); font-size: 1.3rem; transition: transform .35s var(--ease-out); }
.faq details[open] summary .plus { transform: rotate(45deg); }
.faq details p { padding: 0 0 1.5rem; max-width: 62ch; color: var(--ink-soft); }

/* =============================================================
   11. Contact, footer, chat
   ============================================================= */
.contact-box { padding: clamp(2rem, 6vw, 4.5rem); display: grid; gap: 2rem; }
.contact-box h2 { font-size: clamp(2rem, 5vw, 3.7rem); max-width: 18ch; margin-top: 1.1rem; }
.contact-box p.lead { margin-top: 1.2rem; color: var(--ink-soft); font-size: 1.12rem; max-width: 52ch; }
.contact-mail { display: inline-block; font-family: var(--display); font-weight: 700; font-size: clamp(1.15rem, 3.4vw, 2rem); color: var(--accent); position: relative; word-break: break-all; padding-bottom: 4px; }
.contact-mail::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--accent); transition: right .5s var(--ease-out); }
.contact-mail:hover::after, .contact-mail:focus-visible::after { right: 0; }
.contact-note { font-size: .88rem; color: var(--mute); margin-top: .8rem; }

.footer { border-top: 1px solid var(--line); padding: 2.2rem 0; font-size: .85rem; color: var(--mute); background: rgba(245,249,255,.7); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.footer .brand { color: var(--ink); }
.footer nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer nav a:hover { color: var(--accent); }

.chat { position: fixed; right: 1rem; bottom: 1rem; z-index: 200; display: flex; flex-direction: column; align-items: flex-end; gap: .8rem; view-transition-name: site-chat; }
.chat-fab { display: inline-flex; align-items: center; gap: .55rem; padding: .85rem 1.2rem; border-radius: 14px; background: var(--navy); color: #fff; font-family: var(--display); font-size: .92rem; box-shadow: 0 18px 36px -14px rgba(11,23,54,.7); transition: transform .3s var(--ease-out), background .3s; }
.chat-fab:hover { transform: translateY(-2px); background: var(--accent); }
.chat-panel { width: min(390px, calc(100vw - 2rem)); max-height: min(580px, calc(100dvh - 6.5rem)); display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 40px 80px -30px rgba(13,27,61,.5); }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: .9rem 1.1rem; background: var(--navy); color: #fff; }
.chat-head strong { display: block; font-family: var(--display); font-size: 1rem; }
.chat-head span { font-size: .75rem; color: var(--accent-3); }
.chat-close { color: #fff; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.12); }
.chat-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; background: var(--bg-2); }
.msg { max-width: 86%; padding: .65rem .9rem; border-radius: 14px; font-size: .92rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg-user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.msg-typing { color: var(--mute); font-style: italic; }
.chat-suggest { display: flex; flex-wrap: wrap; gap: .4rem; padding: .6rem 1rem 0; background: var(--bg-2); }
.chat-suggest[hidden] { display: none; }
.chat-suggest button { font-size: .78rem; padding: .35rem .75rem; border-radius: 999px; background: #fff; border: 1px solid var(--accent-3); color: var(--accent); }
.chat-suggest button:hover { background: var(--bg-3); }
.chat-form { display: flex; gap: .5rem; padding: .8rem 1rem; background: var(--bg-2); }
.chat-form input { flex: 1; min-width: 0; padding: .65rem .9rem; border-radius: 999px; border: 1px solid var(--line); font: inherit; font-size: .92rem; background: #fff; color: var(--ink); }
.chat-form button { width: 42px; border-radius: 50%; background: var(--accent); color: #fff; }
.chat-form button:disabled { opacity: .5; cursor: not-allowed; }
.chat-note { padding: .4rem 1rem .7rem; font-size: .7rem; color: var(--mute); background: var(--bg-2); }
@media (max-width: 539px) { .chat-fab b { display: none; } .chat-fab { padding: .95rem; } }

/* =============================================================
   12. Effects
   ============================================================= */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .hero-title .line > span { transform: translateY(112%); transition: transform 1.05s var(--ease-out); transition-delay: calc(.12s * var(--i, 0) + .1s); animation: lineSafety .01s 3.5s forwards; }
.js.is-ready .hero-title .line > span { transform: none; }
.js .hero-fade { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease-out) .55s, transform .9s var(--ease-out) .55s; animation: lineSafety .01s 3.5s forwards; }
.js.is-ready .hero-fade { opacity: 1; transform: none; }
@keyframes lineSafety { to { transform: none; opacity: 1; } }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; animation-timing-function: var(--ease-out); }

/* =============================================================
   13. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .targets { grid-template-columns: repeat(4, 1fr); }
  .chips { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 720px) {
  .problem-grid { grid-template-columns: repeat(3, 1fr); }
  .support { grid-template-columns: repeat(3, 1fr); }
  .principles { grid-template-columns: repeat(2, 1fr); }
  .path { grid-template-columns: repeat(2, 1fr); }
  .t-cols { grid-template-columns: 1fr 1fr; }
  .cols { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .action-grid { grid-template-columns: repeat(3, 1fr); }
  .path { grid-template-columns: repeat(4, 1fr); }
  .principles { grid-template-columns: repeat(4, 1fr); }
  .chips { grid-template-columns: repeat(3, 1fr); }
  .svc { grid-template-columns: 1fr 1.05fr; gap: 4rem; }
  .svc:nth-of-type(even) .svc-demo { order: -1; }
  .contact-box { grid-template-columns: 1.3fr 1fr; align-items: end; }
  .timeline { padding-left: 3.4rem; }
  .t-step::before { left: calc(-3.4rem + .85rem - 7px + 1px); }
}
.action-card .mock-view { height: 250px; }
.action-card .phone-body { min-height: 240px; }

/* =============================================================
   14. Reduced motion (only intrusive effects)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .sys-hub circle.ring { animation: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
