/* Layout: K Facilities rhythm (sticky blurred header, 1240px shell, rounded surfaces, pill buttons)
   recoloured to the KTech logo. Short copy; each idea is carried by a small looping animation. */
:root {
  color-scheme: light;
  --navy: #0b2566;
  --blue: #1660f5;
  --cyan: #12c2f4;
  --canvas: #f3f6fb;
  --surface: #ffffff;
  --ink: #0d1a38;
  --muted: #56627e;
  --line: #dbe3f0;
  --pale: #e6eefc;
  --soft: #eef3fb;
  --accent-ink: #1452d6;
  --signal: #0a8fc0;
  --ok: #128a5a;
  --ok-bg: #e2f6ec;
  --header: rgba(243, 246, 251, 0.9);
  --shadow: 0 24px 70px #0d1a3814;
  --grid: #0b256610;
  --glow: #1660f51a;
  --grad: linear-gradient(120deg, #0b2566 0%, #1660f5 55%, #12c2f4 100%);
  --grad-text: linear-gradient(120deg, #0b2566 0%, #1660f5 60%, #12c2f4 100%);
  --contact-bg: #0b1d4d;
  --contact-ink: #f2f6ff;
  --contact-muted: #b7c6e6;
  --logo-light: block;
  --logo-dark: none;
  --font: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-family: var(--font);
  background: var(--canvas);
  color: var(--ink);
  scroll-behavior: smooth;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --canvas: #060c1d;
    --surface: #0c1630;
    --ink: #eaf1ff;
    --muted: #9fb0d2;
    --line: #1c2b50;
    --pale: #13244a;
    --soft: #0f1d3c;
    --accent-ink: #6fb4ff;
    --signal: #4fd6ff;
    --ok: #4fd39a;
    --ok-bg: #0f3327;
    --header: rgba(6, 12, 29, 0.88);
    --shadow: 0 24px 70px #0006;
    --grid: #6fb4ff12;
    --glow: #12c2f41f;
    --grad-text: linear-gradient(120deg, #6fb4ff, #12c2f4);
    --contact-bg: #0f2160;
    --logo-light: none;
    --logo-dark: block;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #060c1d;
  --surface: #0c1630;
  --ink: #eaf1ff;
  --muted: #9fb0d2;
  --line: #1c2b50;
  --pale: #13244a;
  --soft: #0f1d3c;
  --accent-ink: #6fb4ff;
  --signal: #4fd6ff;
  --ok: #4fd39a;
  --ok-bg: #0f3327;
  --header: rgba(6, 12, 29, 0.88);
  --shadow: 0 24px 70px #0006;
  --grid: #6fb4ff12;
  --glow: #12c2f41f;
  --grad-text: linear-gradient(120deg, #6fb4ff, #12c2f4);
  --contact-bg: #0f2160;
  --logo-light: none;
  --logo-dark: block;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { max-width: 100%; }
h1, h2, h3 { text-wrap: balance; }
.icon { width: 21px; height: 21px; flex-shrink: 0; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 5px; }
a, button { transition: background 0.18s ease, color 0.18s ease, transform 0.25s ease, border-color 0.18s ease, box-shadow 0.25s ease; -webkit-tap-highlight-color: transparent; }
button:active, .button:active { transform: scale(0.97); }

.shell {
  max-width: 1240px;
  margin-inline: auto;
  padding-left: max(32px, env(safe-area-inset-left, 0px));
  padding-right: max(32px, env(safe-area-inset-right, 0px));
}
.section { padding-block: 104px; scroll-margin-top: 86px; }
.skip-link { position: fixed; top: 12px; left: 12px; padding: 14px 20px; background: var(--surface); border: 2px solid var(--blue); z-index: 3; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--header); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 2; background: var(--header); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.nav-shell { height: 76px; display: flex; align-items: center; gap: 26px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 40px; width: auto; }
.brand .logo-light { display: var(--logo-light); }
.brand .logo-dark { display: var(--logo-dark); }
.site-header nav { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.site-header nav a { font-size: 13.5px; font-weight: 500; white-space: nowrap; color: var(--muted); position: relative; }
.site-header nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transition: transform 0.25s ease; }
.site-header nav a:hover { color: var(--ink); }
.site-header nav a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; gap: 14px; align-items: center; }
.language { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 40px; font-size: 12px; font-weight: 700; line-height: 1; white-space: nowrap; border: 0; background: transparent; color: var(--ink); padding: 0 8px; border-radius: 10px; }
.language:hover { background: var(--pale); }
.icon-button { border: 0; background: transparent; color: var(--ink); width: 40px; height: 44px; padding: 0; display: grid; place-items: center; border-radius: 12px; }
.icon-button:hover { background: var(--pale); }
.theme-toggle .sun-icon { display: none; }
.theme-toggle.is-dark .moon-icon { display: none; }
.theme-toggle.is-dark .sun-icon { display: inline; }
.menu-toggle { display: none; }
.close-icon { display: none; }
.menu-toggle[aria-expanded="true"] .menu-icon { display: none; }
.menu-toggle[aria-expanded="true"] .close-icon { display: block; }

/* Buttons */
.button { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px; padding: 0 22px; border-radius: 999px; font-size: 14px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.button.primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px #1660f533; }
.button.primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, #ffffff55 50%, transparent 70%); transform: translateX(-120%); }
.button.primary:hover { background: #0f4fd8; transform: translateY(-2px); box-shadow: 0 12px 28px #1660f544; }
.button.primary:hover::after { transform: translateX(120%); transition: transform 0.7s ease; }
.button .icon { transition: transform 0.25s ease; }
.button:hover .icon { transform: translate(2px, -2px); }
.button.secondary { border-color: var(--line); background: transparent; color: var(--ink); }
.button.secondary:hover { background: var(--pale); }
.button.secondary:hover .icon { transform: translateX(3px); }

/* Hero */
.hero-band { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 80% at 70% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 30%, #000 30%, transparent 75%);
  animation: grid-pan 24s linear infinite;
}
@keyframes grid-pan { to { background-position: 44px 44px, 44px 44px; } }
.orb { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(40px); }
.hero-band .orb-a { width: 420px; height: 420px; right: 4%; top: -120px; background: radial-gradient(circle, #12c2f440, transparent 65%); animation: drift-a 14s ease-in-out infinite alternate; }
.hero-band .orb-b { width: 360px; height: 360px; right: 26%; top: 180px; background: radial-gradient(circle, #1660f533, transparent 65%); animation: drift-b 18s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate(-80px, 60px) scale(1.1); } }
@keyframes drift-b { to { transform: translate(90px, -40px) scale(0.9); } }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-block: 88px 72px; }
.hero-copy { min-width: 0; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--signal); margin: 0 0 22px; }
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 #12c2f466; animation: ping 2s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 #12c2f466; } 100% { box-shadow: 0 0 0 10px #12c2f400; } }
h1 { font-size: clamp(42px, 5.6vw, 74px); line-height: 1.04; letter-spacing: -2.6px; margin: 0 0 24px; font-weight: 800; }
h1 span { display: block; }
.accent { background: var(--grad-text); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 6s ease-in-out infinite alternate; }
@keyframes sheen { to { background-position: 100% 0; } }
.hero-lead { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 500px; margin: 0 0 34px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero console */
.hero-visual { position: relative; min-width: 0; padding-bottom: 56px; }
.console { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.console-bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.console-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.console-bar i:nth-child(1) { background: #ff5f57; } .console-bar i:nth-child(2) { background: #febc2e; } .console-bar i:nth-child(3) { background: #28c840; }
.console-bar span { margin-left: 10px; font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.console-body { position: relative; padding: 22px 22px 24px; display: grid; gap: 16px; }
.console-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.console-head strong { font-size: 17px; letter-spacing: -0.4px; }
.console-head small { font-family: var(--mono); font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pipeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pipeline li { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--muted); transition: background 0.3s ease, color 0.3s ease; }
.pipeline li.active { background: var(--pale); color: var(--ink); }
.pipeline li.done { color: var(--ink); }
.pipeline .dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: 10px; transition: all 0.3s ease; }
.pipeline .dot b { font-weight: 500; }
.pipeline .dot .icon { display: none; width: 14px; height: 14px; stroke-width: 2.2; }
.pipeline li.done .dot { background: var(--blue); border-color: var(--blue); color: #fff; animation: pop-in 0.35s ease; }
.pipeline li.done .dot b { display: none; }
.pipeline li.done .dot .icon { display: block; }
.pipeline li.active .dot { border-color: var(--blue); color: var(--accent-ink); box-shadow: 0 0 0 4px var(--glow); }
.pipeline em { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.pipeline li.active em { color: var(--accent-ink); }
@keyframes pop-in { 0% { transform: scale(0.6); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
.progress { height: 6px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--grad); border-radius: inherit; transition: width 0.12s linear; }
.launched { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 8px; background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: blur(3px); font-size: 22px; font-weight: 800; letter-spacing: -0.5px; color: var(--accent-ink); opacity: 0; pointer-events: none; transition: opacity 0.35s ease; }
.launched .icon { width: 44px; height: 44px; color: var(--blue); }
.launched.show { opacity: 1; }
.launched.show .icon { animation: liftoff 1.6s ease-in-out infinite; }
@keyframes liftoff { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(4px, -8px); } }
.chat-float { position: absolute; right: -20px; bottom: 0; width: min(290px, 78%); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 14px; display: grid; gap: 8px; animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.chat-float header { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; }
.chat-float header .live { margin-left: auto; font-family: var(--mono); font-weight: 500; font-size: 10px; color: var(--ok); display: inline-flex; align-items: center; gap: 5px; }
.chat-float header .live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.3; } }
.float-log { display: grid; gap: 8px; min-height: 104px; align-content: end; }
.bot-avatar { width: 26px; height: 26px; border-radius: 8px; background: var(--grad); display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.bot-avatar .icon { width: 16px; height: 16px; }
.bubble { font-size: 12.5px; line-height: 1.5; padding: 9px 12px; border-radius: 14px; max-width: 92%; animation: bubble-in 0.35s cubic-bezier(.2,.8,.3,1.2) both; }
.bubble.user { background: var(--soft); justify-self: end; border-bottom-right-radius: 4px; }
.bubble.bot { background: var(--blue); color: #fff; border-bottom-left-radius: 4px; }
@keyframes bubble-in { from { opacity: 0; transform: translateY(8px) scale(0.96); } }
.typing { display: inline-flex; gap: 4px; padding: 11px 13px; border-radius: 14px; border-bottom-left-radius: 4px; background: var(--soft); justify-self: start; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: bounce 1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; } .typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }

/* Marquee */
.marquee { position: relative; overflow: hidden; border-top: 1px solid var(--line); padding-block: 18px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 0; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-family: var(--mono); font-size: 13px; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; }
.marquee span::after { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--grad); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Section intro */
.section-intro { max-width: 720px; margin-bottom: 44px; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--signal); margin: 0 0 14px; display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--grad); }
h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.12; letter-spacing: -1.6px; margin: 0; font-weight: 800; }

/* Spotlight surface: follows the pointer */
.spot { background: radial-gradient(360px circle at var(--mx, -999px) var(--my, -999px), var(--glow), transparent 60%), var(--surface); }

/* Services */
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.service { border: 1px solid var(--line); border-radius: 26px; padding: 14px 14px 26px; display: flex; flex-direction: column; min-width: 0; }
.service:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--blue) 40%, var(--line)); box-shadow: var(--shadow); }
.service h3 { font-size: 20px; letter-spacing: -0.5px; margin: 20px 12px 6px; line-height: 1.3; }
.service p { font-size: 14.5px; line-height: 1.55; color: var(--muted); margin: 0 12px; }
.service.highlight { background: var(--grad); border-color: transparent; color: #fff; }
.service.highlight p { color: #dce8ff; }

.viz { position: relative; height: 168px; border-radius: 18px; background-color: var(--soft); overflow: hidden;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 20px 20px; }
.service.highlight .viz { background-color: #ffffff14; background-image: linear-gradient(#ffffff10 1px, transparent 1px), linear-gradient(90deg, #ffffff10 1px, transparent 1px); }

/* viz: website assembling */
.mb { position: absolute; left: 12%; right: 12%; top: 22px; bottom: -8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px 12px 0 0; box-shadow: 0 12px 30px #0d1a3814; overflow: hidden; }
.mb-bar { display: flex; align-items: center; gap: 4px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.mb-bar i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.mb-bar span { margin-left: 8px; height: 6px; width: 40%; border-radius: 4px; background: var(--soft); }
.mb-hero { margin: 10px 10px 8px; height: 44px; border-radius: 8px; background: var(--grad); transform-origin: left; animation: build 5s ease-in-out infinite; }
.mb-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0 10px; }
.mb-row span { height: 34px; border-radius: 6px; background: var(--pale); animation: rise 5s ease-in-out infinite; }
.mb-row span:nth-child(2) { animation-delay: 0.15s; } .mb-row span:nth-child(3) { animation-delay: 0.3s; }
@keyframes build { 0%, 8% { transform: scaleX(0); } 28%, 88% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes rise { 0%, 28% { opacity: 0; transform: translateY(10px); } 44%, 88% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; } }
.cursor { position: absolute; width: 14px; height: 14px; left: 30%; top: 60%; border-radius: 50% 50% 50% 0; background: var(--ink); transform: rotate(-90deg); animation: cursor 5s ease-in-out infinite; }
@keyframes cursor { 0%, 40% { left: 30%; top: 70%; } 60% { left: 62%; top: 44%; } 66% { transform: rotate(-90deg) scale(0.8); } 72%, 100% { left: 62%; top: 44%; transform: rotate(-90deg) scale(1); } }

/* viz: ERP bars */
.viz-erp .bars { position: absolute; left: 14%; right: 14%; bottom: 22px; height: 100px; display: flex; align-items: flex-end; gap: 9px; }
.viz-erp .bars span { flex: 1; height: var(--h); border-radius: 6px 6px 3px 3px; background: var(--grad); background-size: 100% 200%; transform-origin: bottom; animation: bar 3.4s ease-in-out infinite; }
.viz-erp .bars span:nth-child(2) { animation-delay: 0.12s; } .viz-erp .bars span:nth-child(3) { animation-delay: 0.24s; }
.viz-erp .bars span:nth-child(4) { animation-delay: 0.36s; } .viz-erp .bars span:nth-child(5) { animation-delay: 0.48s; } .viz-erp .bars span:nth-child(6) { animation-delay: 0.6s; }
@keyframes bar { 0%, 100% { transform: scaleY(0.25); } 45%, 70% { transform: scaleY(1); } }
.kpi { position: absolute; top: 16px; left: 14%; font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--ok); background: var(--ok-bg); padding: 4px 8px; border-radius: 8px; animation: blink 3.4s ease-in-out infinite; }

/* viz: phones */
.ph { position: absolute; width: 70px; height: 132px; border: 3px solid var(--ink); border-radius: 16px; background: var(--surface); overflow: hidden; padding: 12px 7px; }
.ph.back { left: calc(50% - 72px); top: 26px; transform: rotate(-10deg); opacity: 0.55; animation: sway 5s ease-in-out infinite alternate; }
.ph.front { left: calc(50% - 20px); top: 18px; box-shadow: 0 14px 30px #0d1a3826; }
.ph-screen { display: grid; gap: 6px; }
.ph-screen i { display: block; height: 14px; border-radius: 4px; background: var(--pale); }
.ph-screen i.g { height: 26px; background: var(--grad); }
.ph-screen.scroll { animation: scroll-up 6s linear infinite; }
@keyframes scroll-up { to { transform: translateY(-50%); } }
@keyframes sway { to { transform: rotate(-4deg) translateY(-4px); } }

/* viz: chat */
.viz-chat { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 18px 20px; }
.vb { display: grid; gap: 5px; padding: 10px 12px; border-radius: 14px; width: 62%; }
.vb i { display: block; height: 6px; border-radius: 4px; background: currentColor; opacity: 0.55; }
.vb i.short { width: 55%; }
.vb.user { align-self: flex-end; background: #ffffff33; color: #fff; border-bottom-right-radius: 4px; animation: seq-a 6s ease infinite; }
.viz-chat .typing { background: #ffffff26; animation: seq-b 6s ease infinite; }
.viz-chat .typing i { background: #fff; }
.vb.bot { background: #fff; color: var(--blue); border-bottom-left-radius: 4px; position: absolute; left: 20px; bottom: 22px; width: 70%; animation: seq-c 6s ease infinite; }
@keyframes seq-a { 0%, 5% { opacity: 0; transform: translateY(8px); } 12%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes seq-b { 0%, 18% { opacity: 0; } 22%, 40% { opacity: 1; } 44%, 100% { opacity: 0; } }
@keyframes seq-c { 0%, 42% { opacity: 0; transform: translateY(8px); } 50%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* viz: agent network */
.viz-agent svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.viz-agent .links path { stroke: var(--blue); stroke-width: 1.6; fill: none; stroke-dasharray: 4 6; animation: flow 1.2s linear infinite; opacity: 0.7; }
.viz-agent .links path:nth-child(2) { animation-duration: 1.6s; } .viz-agent .links path:nth-child(3) { animation-duration: 1.4s; } .viz-agent .links path:nth-child(4) { animation-duration: 1.8s; }
@keyframes flow { to { stroke-dashoffset: -20; } }
.viz-agent .nodes rect { fill: var(--surface); stroke: var(--line); }
.viz-agent .nodes text { fill: var(--ink); font-family: var(--mono); font-size: 9px; text-anchor: middle; }
.viz-agent .core { fill: var(--blue); }
.viz-agent .pulse { fill: none; stroke: var(--cyan); stroke-width: 2; transform-origin: 120px 66px; animation: halo 2s ease-out infinite; }
@keyframes halo { from { transform: scale(1); opacity: 0.9; } to { transform: scale(2); opacity: 0; } }
.core-icon { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: #fff; display: grid; }
.core-icon .icon { width: 22px; height: 22px; }

/* viz: Play ring */
.viz-play { display: grid; place-items: center; }
.viz-play .ring { position: absolute; width: 124px; height: 124px; transform: rotate(-90deg); }
.viz-play .ring circle { fill: none; stroke-width: 6; }
.viz-play .ring .track { stroke: var(--line); }
.viz-play .ring .fill { stroke: var(--blue); stroke-linecap: round; stroke-dasharray: 252; stroke-dashoffset: 252; animation: ring 4s ease-in-out infinite; }
@keyframes ring { 0% { stroke-dashoffset: 252; } 55%, 100% { stroke-dashoffset: 0; } }
.play-tile { width: 72px; height: 72px; border-radius: 20px; background: var(--grad); display: grid; place-items: center; color: #fff; box-shadow: 0 10px 24px #1660f540; }
.play-tile .icon { width: 32px; height: 32px; }
.viz-play .ok { position: absolute; left: calc(50% + 28px); top: calc(50% - 50px); width: 30px; height: 30px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; border: 3px solid var(--soft); animation: ok-pop 4s ease infinite; }
.viz-play .ok .icon { width: 16px; height: 16px; stroke-width: 2.4; }
@keyframes ok-pop { 0%, 56% { transform: scale(0); } 64% { transform: scale(1.2); } 70%, 94% { transform: scale(1); } 100% { transform: scale(0); } }

/* AI demo */
.experience-card { display: grid; grid-template-columns: 1fr 1.05fr; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; }
.experience-copy { padding: 40px; min-width: 0; display: flex; flex-direction: column; }
.role-tabs { position: relative; display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: var(--canvas); margin-bottom: 40px; }
.role-tab { flex: 1; min-width: 0; padding: 11px 8px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; min-height: 44px; }
.role-tab:hover { color: var(--ink); }
.role-tab.selected { background: var(--blue); color: #fff; box-shadow: 0 4px 12px #1660f540; }
.experience-copy h3 { font-size: 32px; line-height: 1.18; letter-spacing: -1px; margin: 0 0 12px; }
.experience-copy .role-body { font-size: 15.5px; line-height: 1.6; color: var(--muted); margin: 0 0 24px; }
#ai-panel > * { animation: fade-up 0.45s ease both; }
#ai-panel .role-body { animation-delay: 0.06s; } #ai-panel .chips { animation-delay: 0.12s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 10px; border-radius: 99px; background: var(--soft); border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.chips .icon { width: 16px; height: 16px; color: #fff; background: var(--blue); border-radius: 50%; padding: 2px; stroke-width: 2.4; }
.replay { margin-top: auto; align-self: flex-start; display: inline-flex; gap: 8px; align-items: center; border: 0; background: transparent; color: var(--accent-ink); font-size: 13px; font-weight: 600; padding: 28px 0 0; }
.replay .icon { width: 16px; height: 16px; }
.replay:hover { color: var(--ink); }
.experience-preview { position: relative; background: var(--soft); padding: 40px; display: flex; flex-direction: column; justify-content: center; gap: 12px; min-width: 0; border-left: 1px solid var(--line); overflow: hidden; }
.experience-preview::before { content: ""; position: absolute; width: 360px; height: 360px; right: -120px; top: -120px; border-radius: 50%; background: radial-gradient(circle, var(--glow), transparent 65%); pointer-events: none; }
.chat-window { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.chat-window header { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.chat-window header strong { font-size: 14px; display: block; }
.chat-window header small { font-size: 11px; color: var(--ok); font-family: var(--mono); }
.chat-window header .channel { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--accent-ink); background: var(--pale); padding: 5px 9px; border-radius: 99px; white-space: nowrap; }
.chat-log { padding: 18px 16px 20px; display: grid; gap: 10px; height: 340px; align-content: end; overflow: hidden; }
.chat-log .bubble { font-size: 13.5px; max-width: 86%; }
.tool-call { justify-self: start; font-family: var(--mono); font-size: 11.5px; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: 10px; padding: 7px 10px; display: inline-flex; gap: 8px; align-items: center; animation: bubble-in 0.3s ease both; }
.tool-call.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); }
.tool-call .icon { width: 14px; height: 14px; stroke-width: 2.2; }
.spinner { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--blue); animation: spin 0.7s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.system-line { justify-self: center; font-family: var(--mono); font-size: 11px; color: var(--muted); background: var(--soft); padding: 4px 10px; border-radius: 99px; animation: bubble-in 0.3s ease both; }
.example-note { font-size: 12px; color: var(--muted); margin: 0; position: relative; }

/* Play Store */
.play-layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.play-copy { min-width: 0; }
.play-badge { display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 14px; border-radius: 14px; background: var(--ink); color: var(--canvas); margin-bottom: 26px; }
.play-badge .icon { width: 26px; height: 26px; }
.play-badge small { display: block; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.75; }
.play-badge strong { display: block; font-size: 16px; letter-spacing: -0.3px; }
.play-lead { font-size: 17px; line-height: 1.6; color: var(--muted); margin: 18px 0 30px; max-width: 440px; }
.tracker { border: 1px solid var(--line); border-radius: 26px; padding: 26px; box-shadow: var(--shadow); min-width: 0; }
.tracker-head { display: flex; align-items: center; gap: 14px; padding-bottom: 20px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.app-icon { width: 52px; height: 52px; border-radius: 14px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; flex-shrink: 0; }
.app-icon img { width: 40px; height: 40px; }
.app-name { min-width: 0; flex: 1; }
.app-name strong { display: block; font-size: 16px; }
.app-name small { display: block; font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-pill { font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 99px; background: var(--pale); color: var(--accent-ink); white-space: nowrap; transition: all 0.3s ease; }
.status-pill.live { background: var(--ok-bg); color: var(--ok); animation: pop-in 0.4s ease; }
.tracker-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; }
.tracker-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 13px 4px; font-size: 15px; font-weight: 600; color: var(--muted); border-bottom: 1px dashed var(--line); transition: color 0.3s ease; }
.tracker-list li:last-child { border-bottom: 0; }
.tracker-list em { font-style: normal; font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--muted); }
.tk { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; color: transparent; transition: all 0.3s ease; }
.tk .icon { width: 14px; height: 14px; stroke-width: 2.6; }
.tracker-list li.doing { color: var(--ink); }
.tracker-list li.doing .tk { border-color: var(--line); border-top-color: var(--blue); animation: spin 0.7s linear infinite; }
.tracker-list li.done { color: var(--ink); }
.tracker-list li.done .tk { background: var(--blue); border-color: var(--blue); color: #fff; animation: pop-in 0.35s ease; }

/* Process */
.process { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; position: relative; margin: 0; padding: 0; }
.process::before, .process::after { content: ""; position: absolute; left: 24px; right: 24px; top: 27px; height: 2px; border-radius: 2px; }
.process::before { background: var(--line); }
.process::after { background: linear-gradient(90deg, var(--blue), var(--cyan)); transform-origin: left; transform: scaleX(0); }
.process.in::after { transform: scaleX(1); transition: transform 2.4s cubic-bezier(.4,0,.2,1) 0.2s; }
.process li { list-style: none; position: relative; z-index: 1; padding-right: 16px; min-width: 0; }
.process .node { width: 56px; height: 56px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent-ink); margin-bottom: 20px; transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease; }
.process .node .icon { width: 24px; height: 24px; }
.process.in .node { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 8px 20px #1660f540; transition-delay: calc(0.2s + var(--i) * 0.4s); }
.process h3 { font-size: 18px; margin: 0 0 6px; letter-spacing: -0.4px; }
.process p { font-size: 14px; line-height: 1.5; color: var(--muted); margin: 0; }
.process li:hover .node { transform: translateY(-4px) rotate(-4deg); transition-delay: 0s; }

/* Products */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1180px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.product { border: 1px solid var(--line); border-radius: 22px; padding: 20px 22px; display: flex; align-items: center; gap: 16px; min-width: 0; }
.product:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--blue) 40%, var(--line)); box-shadow: var(--shadow); }
.product img { width: 56px; height: 56px; object-fit: contain; border-radius: 16px; background: #fff; padding: 5px; border: 1px solid var(--line); flex-shrink: 0; transition: transform 0.35s ease; }
.product:hover img { transform: rotate(-6deg) scale(1.06); }
.product-text { flex: 1; min-width: 0; }
.product-text strong { display: block; font-size: 18px; letter-spacing: -0.4px; }
.product-text small { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }
.product .go { width: 22px; height: 22px; color: var(--muted); transition: transform 0.25s ease, color 0.25s ease; }
.product:hover .go { color: var(--accent-ink); transform: translate(3px, -3px); }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-size: 16px; font-weight: 650; transition: color 0.2s ease; }
summary:hover { color: var(--accent-ink); }
summary::-webkit-details-marker { display: none; }
summary .icon { transition: transform 0.25s ease; color: var(--muted); }
details[open] summary .icon { transform: rotate(180deg); }
details p { margin: -6px 0 22px; font-size: 15px; line-height: 1.7; color: var(--muted); max-width: 640px; }
details[open] p { animation: fade-up 0.3s ease; }

/* Contact */
.contact-card { position: relative; overflow: hidden; background: var(--contact-bg); color: var(--contact-ink); border-radius: 32px; padding: 88px 40px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.contact-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 15% 0%, #1660f566, transparent 70%), radial-gradient(500px 260px at 90% 100%, #12c2f444, transparent 70%); pointer-events: none; }
.contact-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.contact-card > :not(canvas) { position: relative; }
.contact-card h2 { color: var(--contact-ink); }
.contact-card .button.primary { background: #fff; color: #0b2566; box-shadow: 0 10px 30px #0006; min-height: 56px; padding: 0 28px; font-size: 15px; }
.contact-card .button.primary::after { background: linear-gradient(110deg, transparent 30%, #1660f522 50%, transparent 70%); }
.contact-card .button.primary:hover { background: #e6efff; }
.contact-number { display: inline-flex; gap: 8px; align-items: center; font-family: var(--mono); font-size: 14px; color: var(--contact-muted); }
.contact-number:hover { color: var(--contact-ink); }

/* Footer */
.site-footer { margin-top: 24px; padding-block: 0 40px; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 48px; align-items: start; border-top: 1px solid var(--line); padding-top: 48px; }
.footer-brand { min-width: 0; }
.site-footer .brand img { height: 34px; }
.footer-brand p { font-size: 13px; color: var(--muted); margin: 12px 0 0; line-height: 1.6; }
.site-footer nav { display: flex; gap: 10px 22px; flex-wrap: wrap; justify-content: flex-end; padding-top: 8px; }
.site-footer nav a { font-size: 13px; line-height: 1.5; color: var(--muted); }
.site-footer nav a:hover { color: var(--ink); }
.corp { grid-column: 1 / -1; margin: 0; padding-top: 24px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr); gap: 20px 32px; }
.corp > div { min-width: 0; }
.corp dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.corp dd { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.corp code { font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--accent-ink); background: var(--pale); padding: 3px 8px; border-radius: 6px; }
.corp ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.corp li { display: flex; align-items: baseline; gap: 10px; font-size: 13.5px; font-weight: 500; }
.copyright { grid-column: 1 / -1; margin: 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); font-family: var(--mono); }

.fab { display: none; }

/* Reveal on scroll (JS only; without JS everything is simply visible) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.8s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--d, 0) * 0.1s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .service.reveal.in:hover, .js .product.reveal.in:hover { transform: translateY(-4px); transition-delay: 0s; }
.enter { animation: enter 0.8s cubic-bezier(.2,.7,.2,1) both; }
.delay-one { animation-delay: 0.1s; }
.delay-two { animation-delay: 0.2s; }
@keyframes enter { from { transform: translateY(16px); opacity: 0; } }

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

/* Responsive */
@media (max-width: 1080px) {
  .site-header nav { gap: 18px; }
  .process { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .process::before, .process::after { display: none; }
}
@media (max-width: 960px) {
  .menu-toggle { display: grid; }
  .site-header nav { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); box-shadow: var(--shadow); }
  .site-header nav.open { display: flex; animation: fade-up 0.25s ease; }
  .site-header nav a { font-size: 15px; padding: 14px 8px; border-radius: 10px; }
  .site-header nav a::after { display: none; }
  .site-header nav a:hover { background: var(--soft); }
  .nav-actions { margin-left: auto; }
  .hero { grid-template-columns: 1fr; gap: 48px; padding-block: 56px 64px; }
  .chat-float { right: 0; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: 1fr; }
  .experience-card { grid-template-columns: 1fr; }
  .experience-preview { border-left: 0; border-top: 1px solid var(--line); }
  .play-layout, .faq { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  html { -webkit-text-size-adjust: 100%; }
  .shell { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .section { padding-block: 64px; scroll-margin-top: 64px; }
  .nav-shell { gap: 8px; height: 64px; }
  .site-header nav { top: 64px; max-height: calc(100dvh - 64px); overflow-y: auto; }
  .brand img { height: 30px; }
  .nav-demo { display: none; }
  .nav-actions { gap: 2px; }
  .language { min-height: 44px; padding: 0 10px; }

  .hero { padding-block: 40px 44px; gap: 36px; }
  .kicker { font-size: 11px; margin-bottom: 16px; }
  h1 { font-size: clamp(38px, 11vw, 46px); letter-spacing: -1.6px; margin-bottom: 18px; }
  .hero-lead { font-size: 16.5px; margin-bottom: 26px; }
  .hero-actions { gap: 10px; }
  .hero-actions .button { flex: 1 1 100%; }
  .hero-band .orb-a { right: -160px; }
  .hero-band .orb-b { display: none; }
  .console { border-radius: 18px; }
  .console-bar { padding: 12px 14px; }
  .console-body { padding: 16px 14px 18px; gap: 12px; }
  .pipeline li { padding: 8px 10px; font-size: 13.5px; gap: 10px; }
  .chat-float { position: relative; right: auto; bottom: auto; width: 100%; margin-top: 12px; animation: none; }
  .hero-visual { padding-bottom: 0; }
  .marquee { padding-block: 14px; }
  .marquee span { font-size: 12px; }

  .section-intro { margin-bottom: 28px; }
  h2 { font-size: clamp(28px, 8vw, 34px); letter-spacing: -1px; }

  .service-grid { grid-template-columns: 1fr; gap: 14px; }
  .service { border-radius: 22px; padding: 12px 12px 22px; }
  .viz { height: 150px; border-radius: 14px; }
  .service h3 { font-size: 18px; margin: 16px 8px 4px; }
  .service p { margin: 0 8px; font-size: 14px; }

  .experience-card { border-radius: 22px; }
  .experience-copy, .experience-preview { padding: 20px 16px; }
  .role-tabs { margin-bottom: 22px; }
  .role-tab { font-size: 12.5px; padding: 10px 4px; }
  .experience-copy h3 { font-size: 24px; }
  .experience-copy .role-body { font-size: 14.5px; margin-bottom: 16px; }
  .replay { padding-top: 18px; }
  .chat-log { height: 320px; padding: 14px 12px 16px; }
  .chat-log .bubble { font-size: 13px; max-width: 90%; }

  .play-copy .button { width: 100%; }
  .play-lead { font-size: 15.5px; }
  .tracker { padding: 18px 16px; border-radius: 22px; }
  .tracker-list li { font-size: 14px; gap: 12px; padding: 12px 2px; }
  .tracker-list em { display: none; }

  .process { grid-template-columns: 1fr; row-gap: 0; }
  .process::before, .process::after { display: block; left: 23px; right: auto; top: 24px; bottom: 24px; width: 2px; height: auto; }
  .process::after { background: linear-gradient(180deg, var(--blue), var(--cyan)); transform-origin: top; transform: scaleY(0); }
  .process.in::after { transform: scaleY(1); }
  .process li { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 16px; align-items: center; padding: 0 0 18px; }
  .process li:last-child { padding-bottom: 0; }
  .process .node { width: 48px; height: 48px; border-radius: 14px; margin: 0; grid-row: 1 / span 2; }
  .process li > :not(.node) { grid-column: 2; }
  .process h3 { font-size: 16.5px; margin: 0 0 2px; align-self: end; }
  .process p { align-self: start; }

  .product { padding: 16px; border-radius: 18px; }
  .product img { width: 48px; height: 48px; border-radius: 14px; }
  .product-text strong { font-size: 17px; }

  .faq { gap: 20px; }
  summary { padding: 18px 0; font-size: 15px; }
  details p { font-size: 14px; }

  #contact { padding-bottom: 24px; }
  .contact-card { padding: 60px 20px; border-radius: 24px; gap: 20px; }
  .contact-card .button { width: 100%; }
  .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .footer-inner { grid-template-columns: 1fr; padding-top: 32px; gap: 20px; }
  .site-footer nav { justify-content: flex-start; padding-top: 0; gap: 4px 18px; }
  .site-footer nav a { padding: 8px 0; }
  .corp { grid-template-columns: 1fr; gap: 18px; }

  .fab {
    display: grid; place-items: center;
    position: fixed; z-index: 1;
    right: calc(16px + env(safe-area-inset-right, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--blue); color: #fff;
    box-shadow: 0 10px 28px #1660f566;
    animation: fab-pulse 2.6s ease-out infinite;
  }
  .fab .icon { width: 28px; height: 28px; }
  @keyframes fab-pulse { 0% { box-shadow: 0 10px 28px #1660f566, 0 0 0 0 #1660f566; } 100% { box-shadow: 0 10px 28px #1660f566, 0 0 0 16px #1660f500; } }
}
