/* Intel Platform landing page */
@font-face { font-family: "Montserrat"; src: url("/fonts/montserrat-latin-wght.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --navy: #050d24;
  --navy-2: #0a1a3f;
  --navy-3: #0f2557;
  --blue: #2b6cff;
  --blue-2: #3d8bff;
  --cyan: #5fd4ff;
  --ice: #dbe8ff;
  --ink: #0b1630;
  --ink-2: #4a5878;
  --paper: #f3f6fc;
  --line: rgba(43, 108, 255, .14);
  --font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --r: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--ui); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font); margin: 0; line-height: 1.1; letter-spacing: -.025em; }
p { margin: 0; }
mark { background: none; color: var(--blue); }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; padding: 10px 14px; border-radius: 10px; background: var(--cyan); color: var(--navy); z-index: 50; font-weight: 700; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: 999px; border: 0; cursor: pointer; font: 700 15px/1 var(--font); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s; }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: 14px; }
.btn-blue { background: linear-gradient(135deg, var(--blue-2), var(--blue)); color: #fff; box-shadow: 0 10px 30px rgba(43, 108, 255, .35); }
.btn-blue:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(43, 108, 255, .5); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .3); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .6); }

/* top bar */
.topbar { position: fixed; inset: 0 0 auto; z-index: 20; background: rgba(5, 13, 36, .6); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid rgba(255, 255, 255, .07); }
.topbar-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.lockup { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; margin-right: auto; }
.mark { width: 40px; height: 40px; }
.lockup strong { display: block; font: 800 17px/1.1 var(--font); }
.lockup small { display: block; margin-top: 3px; color: var(--cyan); font: 600 10.5px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; }
.topnav { display: flex; gap: 26px; }
.topnav a { color: rgba(255, 255, 255, .78); text-decoration: none; font: 600 14px/1 var(--font); }
.topnav a:hover { color: var(--cyan); }

/* hero */
.hero { position: relative; overflow: hidden; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; color: #fff; padding: 120px 0 90px;
  background: radial-gradient(900px 600px at 78% 40%, rgba(43, 108, 255, .28) 0%, transparent 60%), radial-gradient(700px 500px at 10% 100%, rgba(95, 212, 255, .12), transparent 60%), linear-gradient(170deg, var(--navy) 0%, var(--navy-2) 100%); }
.scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scene-fallback { display: none; position: absolute; right: 8%; top: 50%; width: 420px; aspect-ratio: 1; transform: translateY(-50%); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #8fd8ff, var(--blue) 45%, transparent 72%); filter: blur(2px); opacity: .7; }
.no-webgl .scene-fallback { display: block; }
.scene-labels span { position: absolute; left: 0; top: 0; padding: 6px 12px; border-radius: 999px; background: rgba(5, 13, 36, .55); border: 1px solid rgba(95, 212, 255, .45); color: #fff; font: 800 12px/1 var(--font); letter-spacing: .12em; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); pointer-events: none; opacity: 0; transition: opacity .6s; will-change: transform; }
.scene-ready .scene-labels span { opacity: 1; }
.hero-grid { position: relative; z-index: 2; pointer-events: none; }
.hero-copy { max-width: 640px; pointer-events: auto; }
.kicker { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: rgba(95, 212, 255, .1); border: 1px solid rgba(95, 212, 255, .2); color: var(--cyan); font: 700 13px/1 var(--font); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(95, 212, 255, .2); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(95, 212, 255, 0); } }
.hero h1 { margin-top: 22px; font-size: clamp(36px, 5.2vw, 64px); font-weight: 800; }
.hero h1 mark { background: linear-gradient(90deg, var(--cyan), #8ab4ff 50%, var(--blue-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: 22px; max-width: 580px; color: rgba(255, 255, 255, .8); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.formula { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 44px 0 0; padding: 24px 0 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .12); }
.formula strong { display: block; font: 800 26px/1 var(--font); background: linear-gradient(180deg, #fff, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.formula span { display: block; margin-top: 6px; color: rgba(255, 255, 255, .62); font-size: 12.5px; }
.formula .plus { color: var(--blue-2); font: 300 28px/1 var(--font); }
.scroll-hint { position: absolute; left: 50%; bottom: 26px; width: 24px; height: 38px; margin-left: -12px; border: 2px solid rgba(255, 255, 255, .3); border-radius: 14px; z-index: 2; }
.scroll-hint i { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--cyan); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 60% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.tilt { transform-style: preserve-3d; will-change: transform; }

/* sections */
.section-head { max-width: 720px; margin-bottom: 40px; }
.eyebrow { color: var(--blue); font: 700 13px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; }
.eyebrow-light { color: var(--cyan); }
.section-head h2, .layers h2, .trust h2 { margin-top: 12px; font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; }
.section-head p:not(.eyebrow) { margin-top: 12px; color: var(--ink-2); font-size: 17px; }

/* definition */
.define { position: relative; z-index: 3; margin-top: -60px; }
.define-card { padding: 48px 52px; border-radius: 30px; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(10, 26, 63, .14); }
.define-card blockquote { margin: 18px 0 0; }
.define-card blockquote p { font: 600 clamp(20px, 2.4vw, 28px)/1.4 var(--font); letter-spacing: -.01em; }
.define-sub { margin-top: 18px; color: var(--ink-2); font-size: 17px; max-width: 760px; }

/* layers */
.layers { padding: 110px 0 80px; }
.layers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.layer-text { display: grid; gap: 18px; margin-top: 30px; }
.layer-text article { display: flex; gap: 16px; align-items: flex-start; }
.layer-text h3 { font-size: 17px; }
.layer-text p { margin-top: 4px; color: var(--ink-2); font-size: 15px; }
.tag { flex: none; display: grid; place-items: center; width: 58px; height: 34px; border-radius: 10px; color: #fff; font: 800 13px/1 var(--font); letter-spacing: .08em; }
.tag-lms { background: #5fa8ff; }
.tag-sis { background: var(--blue); }
.tag-erp { background: var(--navy-3); }

.stack { position: relative; height: 460px; perspective: 1200px; }
.plate { position: absolute; left: 50%; top: 50%; width: 300px; height: 300px; margin: -150px 0 0 -150px; border-radius: 34px; display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; color: #fff; transform-style: preserve-3d;
  transform: rotateX(58deg) rotateZ(-38deg) translateZ(var(--z, 0px)); transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 40px 60px rgba(10, 26, 63, .25), inset 0 0 0 1px rgba(255, 255, 255, .25); }
.plate b { font: 800 34px/1 var(--font); letter-spacing: .04em; }
.plate span { margin-top: 6px; font: 600 13px/1.2 var(--font); opacity: .85; }
.plate-erp { background: linear-gradient(135deg, var(--navy-3), var(--navy)); --z: -10px; }
.plate-sis { background: linear-gradient(135deg, var(--blue-2), #1f4fd1); --z: 0px; opacity: .95; }
.plate-lms { background: linear-gradient(135deg, rgba(127, 224, 255, .95), rgba(61, 139, 255, .9)); --z: 10px; color: var(--navy); }
.stack.in .plate-erp { --z: -120px; }
.stack.in .plate-sis { --z: 0px; }
.stack.in .plate-lms { --z: 120px; }
.stack-core { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 40px 18px rgba(95, 212, 255, .45); opacity: 0; transition: opacity 1s .6s; }
.stack.in .stack-core { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .stack.in .plate { animation: float 8s ease-in-out infinite 1.2s; }
  .stack.in .plate-sis { animation-delay: 1.6s; }
  .stack.in .plate-lms { animation-delay: 2s; }
  @keyframes float { 50% { transform: rotateX(58deg) rotateZ(-38deg) translateZ(calc(var(--z) + 14px)); } }
}

/* compare */
.compare { padding: 90px 0 100px; background: linear-gradient(180deg, var(--paper), #e9f0fd); }
.scope { display: grid; gap: 16px; padding: 30px 32px; border-radius: var(--r); background: var(--navy); color: #fff; margin-bottom: 26px; box-shadow: 0 24px 60px rgba(5, 13, 36, .25); }
.scope-row { display: grid; grid-template-columns: 140px 1fr 220px; gap: 18px; align-items: center; }
.scope-name { font: 800 15px/1 var(--font); }
.scope-tag { color: rgba(255, 255, 255, .7); font-size: 14px; }
.scope-track { height: 14px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.scope-track i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, #5fa8ff, var(--blue)); transition: width 1.6s cubic-bezier(.2, .8, .2, 1); }
.scope-us .scope-track i { background: linear-gradient(90deg, var(--cyan), var(--blue-2), #7c8cff); box-shadow: 0 0 24px rgba(95, 212, 255, .6); }
.scope-us .scope-name, .scope-us .scope-tag { color: var(--cyan); }
.js .scope:not(.in) .scope-track i { width: 0; }
.scope.in .scope-row:nth-child(2) i { transition-delay: .25s; }
.scope.in .scope-row:nth-child(3) i { transition-delay: .5s; }

.table-wrap { overflow-x: auto; border-radius: var(--r); background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(10, 26, 63, .08); }
.matrix { width: 100%; border-collapse: collapse; min-width: 640px; }
.matrix th, .matrix td { padding: 15px 18px; text-align: center; border-bottom: 1px solid #eef2fa; font-size: 14.5px; }
.matrix thead th { font: 800 14px/1.2 var(--font); color: var(--ink-2); background: #f8faff; }
.matrix thead th.us { color: #fff; background: linear-gradient(135deg, var(--blue-2), var(--blue)); }
.matrix thead th small { display: block; margin-top: 4px; font-size: 11px; font-weight: 600; opacity: .8; }
.matrix tbody th { text-align: left; font-weight: 600; }
.matrix tbody tr:last-child > * { border-bottom: 0; }
.matrix td.us { background: rgba(43, 108, 255, .05); }
.matrix td { font-size: 0; }
.matrix td::before { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font: 800 14px/1 var(--font); transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); transition-delay: calc(var(--i, 0) * 60ms); }
.matrix td.y::before { content: "✓"; background: rgba(43, 108, 255, .12); color: var(--blue); }
.matrix td.y.us::before { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(43, 108, 255, .4); }
.matrix td.p::before { content: "~"; background: #fff3dc; color: #b57600; }
.matrix td.n::before { content: "–"; background: #f1f3f8; color: #9aa3b8; }
.js .table-wrap:not(.in) .matrix td::before { transform: scale(0); }
.note { margin-top: 14px; color: var(--ink-2); font-size: 13px; }

/* platform cards */
.platform { padding: 100px 0; }
.cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; perspective: 1000px; }
.card { position: relative; padding: 26px 22px 28px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); overflow: hidden; transition: box-shadow .3s; }
.card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--c); }
.card::after { content: ""; position: absolute; width: 160px; height: 160px; right: -60px; top: -60px; border-radius: 50%; background: radial-gradient(circle, color-mix(in oklab, var(--c) 30%, transparent), transparent 70%); }
.card:hover { box-shadow: 0 26px 60px rgba(10, 26, 63, .15); }
.card h3 { font-size: 19px; font-weight: 800; color: var(--navy-3); transform: translateZ(30px); }
.card p { margin-top: 10px; color: var(--ink-2); font-size: 14.5px; transform: translateZ(18px); }

/* contact */
.contact { padding: 60px 0 100px; }
.contact-card { position: relative; overflow: hidden; padding: 60px 56px; border-radius: 34px; color: #fff; text-align: center; background: linear-gradient(150deg, var(--navy-3), var(--navy)); box-shadow: 0 40px 90px rgba(5, 13, 36, .3); }
.contact-glow { position: absolute; left: 50%; top: -70%; width: 700px; height: 500px; margin-left: -350px; border-radius: 50%; background: radial-gradient(circle, rgba(61, 139, 255, .45), transparent 65%); pointer-events: none; }
.contact-card > :not(.contact-glow) { position: relative; }
.contact-card h2 { margin: 14px auto 0; max-width: 640px; font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
.contact-card > p:not(.eyebrow) { margin-top: 12px; color: rgba(255, 255, 255, .75); }
.contact-card > p:not(.eyebrow) { max-width: 620px; margin-left: auto; margin-right: auto; }
.contact-points { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 24px 0 0; padding: 0; list-style: none; }
.contact-points li { padding: 8px 16px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .88); font-size: 14px; }
.contact-points li::before { content: "✓"; margin-right: 8px; color: var(--cyan); font-weight: 700; }
.mail-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; margin-top: 30px; }
.mail { font: 800 clamp(19px, 3vw, 32px)/1.2 var(--font); text-decoration: none; background: linear-gradient(90deg, #fff, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; border-bottom: 2px solid rgba(95, 212, 255, .4); padding-bottom: 4px; }
.mail:hover { border-color: var(--cyan); }
@media (prefers-reduced-motion: no-preference) {
  .contact-glow { animation: glow 9s ease-in-out infinite; }
  @keyframes glow { 0%, 100% { transform: translateX(-18%) scale(1); opacity: .8; } 50% { transform: translateX(18%) scale(1.15); opacity: 1; } }
}
@media (max-width: 760px) { .contact-card { padding: 44px 22px; } }

.footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--ink-2); font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.footer a { color: var(--blue); text-decoration: none; }
.footer-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-2); opacity: .5; }

/* responsive */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .layers-grid { grid-template-columns: 1fr; gap: 36px; }
  .stack { height: 420px; }
}
@media (max-width: 760px) {
  .topnav { display: none; }
  .lockup small { font-size: 9px; }
  .hero { align-items: flex-start; padding: 400px 0 70px; }
  .hero h1 { margin-top: 18px; }
  .formula { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .formula .plus { display: none; }
  .lead { font-size: 16px; }
  .formula strong { font-size: 22px; }
  .scroll-hint { display: none; }
  .define { margin-top: 0; padding-top: 40px; }
  .define-card { padding: 30px 24px; }
  .cards { grid-template-columns: 1fr; }
  .scope { padding: 22px 20px; }
  .scope-row { grid-template-columns: 1fr; gap: 8px; }
  .stack { height: 360px; transform: scale(.8); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .dot, .scroll-hint i { animation: none; }
}
.scene-labels { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.scope-track .w30 { --w: 30%; } .scope-track .w55 { --w: 55%; } .scope-track .w100 { --w: 100%; }
.card.c1 { --c: #5fd4ff; } .card.c2 { --c: #3d8bff; } .card.c3 { --c: #8ab4ff; } .card.c4 { --c: #7c8cff; } .card.c5 { --c: #2b6cff; }

/* ---------- assistant (orb button + chat panel) ---------- */
.ipa-fab, .ipa-panel { --accent: var(--blue); --accent-ink: var(--blue); font-family: var(--ui); }
.ipa-fab { position: fixed; z-index: 60; right: 22px; bottom: 22px; height: 58px; padding: 0 22px 0 14px; display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 999px; background: linear-gradient(135deg, var(--blue-2), var(--blue) 55%, var(--navy-3)); color: #fff; font: 700 15px/1 var(--font); cursor: pointer; box-shadow: 0 14px 34px rgba(43, 108, 255, .42), 0 2px 6px rgba(5, 13, 36, .2); transition: transform .2s ease, box-shadow .2s ease; }
.ipa-fab[hidden] { display: none; }
.ipa-fab:hover { transform: translateY(-2px); box-shadow: 0 18px 42px rgba(43, 108, 255, .55), 0 2px 6px rgba(5, 13, 36, .2); }
.ipa-fab::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; animation: ipa-halo 2.6s ease-out 1s 3 both; }
@keyframes ipa-halo { 0% { box-shadow: 0 0 0 0 rgba(95, 212, 255, .6); } 100% { box-shadow: 0 0 0 18px rgba(95, 212, 255, 0); } }
.ipa-fab.is-busy { box-shadow: 0 0 0 4px rgba(95, 212, 255, .35), 0 14px 34px rgba(43, 108, 255, .42); }
.ipa-fab-orb { width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }

.ipa-panel { position: fixed; z-index: 70; right: 22px; bottom: 22px; width: min(400px, calc(100vw - 32px)); height: min(620px, calc(100dvh - 44px)); display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(43, 108, 255, .16); border-radius: 26px; background: #fff; color: var(--ink); box-shadow: 0 40px 90px rgba(5, 13, 36, .28), 0 4px 14px rgba(5, 13, 36, .1); opacity: 0; transform: translateY(14px) scale(.97); transform-origin: 100% 100%; transition: opacity .22s ease, transform .26s cubic-bezier(.2, .8, .2, 1); }
.ipa-panel[hidden] { display: none; }
.ipa-panel.is-open { opacity: 1; transform: none; }

.ipa-head { display: flex; align-items: center; gap: 10px; padding: 14px 12px 14px 16px; background: linear-gradient(150deg, var(--navy-3), var(--navy)); color: #fff; }
.ipa-head-orb { width: 32px; height: 32px; flex: 0 0 auto; border-radius: 50%; background: rgba(255, 255, 255, .92); }
.ipa-titles { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.ipa-titles strong { font: 700 15px/1.2 var(--font); letter-spacing: -.01em; }
.ipa-titles span { color: rgba(255, 255, 255, .62); font-size: 12px; }
.ipa-link { appearance: none; border: 1px solid rgba(255, 255, 255, .25); padding: 6px 12px; border-radius: 999px; background: none; color: #fff; font: 600 12px/1 var(--ui); cursor: pointer; }
.ipa-link:hover { background: rgba(255, 255, 255, .1); }
.ipa-link[hidden] { display: none; }
.ipa-close { appearance: none; width: 34px; height: 34px; border: 0; border-radius: 10px; background: none; color: rgba(255, 255, 255, .8); font: 400 26px/1 var(--ui); cursor: pointer; }
.ipa-close:hover { background: rgba(255, 255, 255, .1); color: #fff; }

.ipa-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 14px; background: linear-gradient(180deg, #f6f9ff, #fff 40%); }
.ipa-stream { display: flex; flex-direction: column; gap: 10px; }
.ipa-msg { display: flex; flex-direction: column; max-width: 100%; }
.ipa-msg.is-user { align-items: flex-end; }
.ipa-msg.is-assistant { align-items: flex-start; }
.ipa-bubble { max-width: 86%; padding: 10px 14px; border-radius: 20px; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.ipa-msg.is-user .ipa-bubble { background: linear-gradient(135deg, var(--blue-2), var(--blue)); color: #fff; border-bottom-right-radius: 6px; }
.ipa-msg.is-assistant .ipa-bubble { background: #eef3fd; color: var(--ink); border-bottom-left-radius: 6px; }
.ipa-bubble p { margin: 0; }
.ipa-bubble p + p, .ipa-bubble p + ul, .ipa-bubble ul + p { margin-top: 8px; }
.ipa-bubble ul { margin: 0; padding-left: 20px; }
.ipa-bubble li + li { margin-top: 3px; }
.ipa-bubble strong { font-weight: 700; }
.ipa-bubble a { color: var(--blue); font-weight: 600; }
.ipa-msg.is-fresh { animation: ipa-pop .26s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes ipa-pop { from { opacity: 0; transform: translateY(6px) scale(.97); } to { opacity: 1; transform: none; } }
.ipa-msg.is-thinking { flex-direction: row; align-items: flex-end; gap: 8px; }
.ipa-think-orb { width: 36px; height: 36px; flex: 0 0 auto; }
.ipa-pending { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; flex: 1 1 auto; }
.ipa-pending .ipa-bubble { max-width: 92%; }
.ipa-pending .ipa-bubble[hidden], .ipa-thinking-label[hidden] { display: none; }
.ipa-thinking-label { padding-bottom: 9px; color: var(--ink-2); font-size: 14px; }

.ipa-empty { display: grid; justify-items: center; gap: 6px; padding: 26px 6px 6px; text-align: center; }
.ipa-empty-orb { width: 64px; height: 64px; margin-bottom: 6px; }
.ipa-empty-title { font: 700 19px/1.25 var(--font); letter-spacing: -.02em; }
.ipa-empty-note { max-width: 32ch; color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.ipa-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.ipa-chip { appearance: none; padding: 9px 14px; border: 1px solid rgba(43, 108, 255, .22); border-radius: 999px; background: #fff; color: var(--ink); font: 550 13px/1.2 var(--ui); cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.ipa-chip:hover { border-color: var(--blue); background: #eef3fd; transform: translateY(-1px); }
.ipa-error { margin: 0; padding: 10px 12px; border: 1px solid rgba(220, 60, 60, .3); border-radius: 14px; background: rgba(220, 60, 60, .06); font-size: 13px; line-height: 1.45; }
.ipa-error a { color: var(--blue); font-weight: 600; }

.ipa-foot { padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
.ipa-form { display: flex; align-items: flex-end; gap: 6px; padding: 4px 4px 4px 14px; border: 1px solid rgba(43, 108, 255, .22); border-radius: 22px; background: #f8faff; transition: border-color .15s ease, box-shadow .15s ease; }
.ipa-form:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(43, 108, 255, .12); }
.ipa-input { flex: 1 1 auto; min-width: 0; height: 38px; max-height: 120px; resize: none; padding: 8px 0; border: 0; outline: none; background: transparent; color: var(--ink); font: 16px/1.4 var(--ui); }
.ipa-input:focus-visible { outline: none; }
.ipa-send { appearance: none; flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: linear-gradient(135deg, var(--blue-2), var(--blue)); color: #fff; cursor: pointer; transition: transform .15s ease, opacity .15s ease; }
.ipa-send svg { width: 18px; height: 18px; }
.ipa-send:hover:not(:disabled) { transform: scale(1.06); }
.ipa-send:disabled { opacity: .35; cursor: not-allowed; }
.ipa-fine { margin: 7px 4px 0; color: var(--ink-2); font-size: 11.5px; line-height: 1.35; text-align: center; }

@media (max-width: 560px) {
  .ipa-fab { right: 16px; bottom: 16px; height: 56px; padding: 0 18px 0 12px; }
  .ipa-panel { inset: 0; width: 100%; height: 100dvh; border: 0; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ipa-fab::after, .ipa-msg.is-fresh { animation: none; }
  .ipa-panel { transition: none; }
}
