/* Creo v2 (prototype): futuristic system (Manrope + Azeret Mono, deep navy glass, electric accent,
   copper only for the main action). Rules: research/design-inspo/ux-principles.md section 7. */
:root {
  --c2-bg: #070C18; --c2-glass: rgba(12, 19, 36, 0.86); --c2-line: rgba(232, 238, 248, 0.14); --c2-ink: #E8EEF8;
  --c2-muted: #A3B2C8; --c2-electric: #6FA8FF; --c2-copper: #6FA8FF;   /* action colour: electric blue (copper retired 2026-10-22) */ --c2-me: rgba(111, 168, 255, 0.14);
  --c2-sans: 'Manrope', system-ui, sans-serif; --c2-mono: 'Azeret Mono', ui-monospace, monospace;
}
.c2-orb { position: relative; display: inline-block; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 30%, #FFFFFF 0 6%, #BFD6FF 16%, #6FA8FF 38%, #2A4F9A 62%, #0B1530 100%);
  box-shadow: 0 0 14px rgba(111, 168, 255, 0.55), inset 0 0 6px rgba(255, 255, 255, 0.35); }
.c2-orb::after { content: ''; position: absolute; inset: 28%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(146, 189, 255, 0) 70%); mix-blend-mode: screen; }
.c2-busy .c2-orb, .c2-launch.is-busy .c2-orb { animation: c2-pulse 1.4s ease-in-out infinite; }
@keyframes c2-pulse { 50% { box-shadow: 0 0 26px rgba(111, 168, 255, 0.95), inset 0 0 6px rgba(255, 255, 255, 0.35); transform: scale(1.06); } }

/* launcher: always text-labelled (NN/g), same place on every page */
.c2-launch { position: fixed; z-index: 9000; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px 0 12px; border-radius: 999px; cursor: pointer;
  background: var(--c2-glass); color: var(--c2-ink); border: 1px solid rgba(111, 168, 255, 0.45);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  font: 600 0.95rem/1 var(--c2-sans); letter-spacing: -0.005em; }
.c2-launch .c2-orb { width: 22px; height: 22px; }
.c2-launch:hover { border-color: var(--c2-electric); }
.c2-launch:focus-visible, .c2-panel :focus-visible { outline: 2px solid var(--c2-electric); outline-offset: 2px; }
.c2-launch[hidden] { display: none; }

.c2-panel { position: fixed; z-index: 9001; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  width: min(420px, calc(100vw - 32px)); height: min(640px, calc(100vh - 32px)); display: flex; flex-direction: column;
  background: var(--c2-glass); color: var(--c2-ink); border: 1px solid var(--c2-line); border-radius: 20px; overflow: hidden;
  backdrop-filter: blur(20px) saturate(1.2); -webkit-backdrop-filter: blur(20px) saturate(1.2); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  font: 400 1rem/1.5 var(--c2-sans); -webkit-text-size-adjust: 100%; }
.c2-panel[hidden] { display: none; }
@media (max-width: 560px) {
  .c2-panel { inset: 0; width: 100%; height: 100%; height: 100dvh; border-radius: 0; border: 0; background: var(--c2-bg); }
}

.c2-head { display: flex; align-items: center; gap: 12px; padding: 12px 10px 12px 16px; border-bottom: 1px solid var(--c2-line); }
.c2-head .c2-orb { width: 30px; height: 30px; }
.c2-title { flex: 1; min-width: 0; }
.c2-title b { display: block; font: 600 1rem/1.2 var(--c2-sans); }
.c2-title span { display: block; font: 400 0.8rem/1.3 var(--c2-mono); color: var(--c2-muted); letter-spacing: 0.02em; }
.c2-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 0; background: none; color: var(--c2-ink); cursor: pointer; }
.c2-icon:hover { background: rgba(232, 238, 248, 0.07); }
.c2-icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.c2-log { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; scroll-behavior: auto; }

/* welcome: who it is + three jobs as big tap targets (NN/g: state what it can do) */
.c2-welcome { display: flex; flex-direction: column; gap: 14px; margin: auto 0; }
.c2-welcome .c2-orb { width: 56px; height: 56px; margin-bottom: 4px; }
.c2-welcome h2 { font: 300 1.7rem/1.15 var(--c2-sans); letter-spacing: -0.03em; margin: 0; }
.c2-welcome p { margin: 0; color: var(--c2-muted); font-size: 1rem; }
.c2-jobs { display: grid; gap: 10px; margin-top: 4px; }
.c2-job { display: grid; grid-template-columns: 40px 1fr 16px; align-items: center; gap: 12px; text-align: left; width: 100%; min-height: 64px;
  padding: 12px 14px; border-radius: 14px; cursor: pointer; color: var(--c2-ink); background: rgba(232, 238, 248, 0.04); border: 1px solid var(--c2-line);
  font: inherit; transition: border-color .2s ease, background .2s ease; }
.c2-job:hover { border-color: rgba(111, 168, 255, 0.6); background: rgba(111, 168, 255, 0.07); }
.c2-job i { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(111, 168, 255, 0.12); color: var(--c2-electric); font-style: normal; }
.c2-job i svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.c2-job b { display: block; font: 600 1rem/1.25 var(--c2-sans); }
.c2-job span { display: block; font-size: 0.875rem; line-height: 1.35; color: var(--c2-muted); }
.c2-job em { font-style: normal; color: var(--c2-muted); }
.c2-job--main { border-color: rgba(111, 168, 255, 0.6); background: rgba(111, 168, 255, 0.08); }
.c2-job--main i { background: rgba(111, 168, 255, 0.18); color: var(--c2-electric); }

.c2-msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 1rem; line-height: 1.5; }
.c2-msg--creo { align-self: flex-start; background: rgba(232, 238, 248, 0.05); border: 1px solid var(--c2-line); border-top-left-radius: 6px; }
.c2-msg--me { align-self: flex-end; background: var(--c2-me); border: 1px solid rgba(111, 168, 255, 0.35); border-top-right-radius: 6px; }
.c2-msg--note { align-self: center; max-width: 100%; text-align: center; font: 400 0.85rem/1.45 var(--c2-mono); color: var(--c2-muted); background: none; border: 0; }
.c2-msg a { color: var(--c2-electric); text-underline-offset: 3px; }
.c2-typing::after { content: ''; display: inline-block; width: 0.5em; height: 1em; margin-left: 2px; vertical-align: -0.15em; background: var(--c2-electric); animation: c2-blink 1s steps(1) infinite; }
@keyframes c2-blink { 50% { opacity: 0; } }

.c2-row { display: flex; flex-wrap: wrap; gap: 8px; align-self: flex-start; }
.c2-chip { min-height: 44px; padding: 0 14px; border-radius: 999px; cursor: pointer; background: none; color: var(--c2-ink); border: 1px solid rgba(232, 238, 248, 0.3); font: 500 0.9rem/1 var(--c2-sans); }
.c2-chip:hover { border-color: var(--c2-electric); }
.c2-chip--main { background: var(--c2-copper); border-color: var(--c2-copper); color: #160B04; font-weight: 600; }

.c2-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px 6px; border-top: 1px solid var(--c2-line); }
.c2-input { flex: 1; min-height: 48px; max-height: 140px; resize: none; padding: 12px 14px; border-radius: 14px; background: rgba(232, 238, 248, 0.05);
  color: var(--c2-ink); border: 1px solid var(--c2-line); font: 400 1rem/1.4 var(--c2-sans); }
.c2-input::placeholder { color: #8796AD; }
.c2-input:focus { outline: none; border-color: var(--c2-electric); box-shadow: 0 0 0 3px rgba(111, 168, 255, 0.18); }
.c2-send { width: 48px; height: 48px; border-radius: 14px; border: 0; cursor: pointer; display: grid; place-items: center; background: var(--c2-copper); color: #160B04; }
.c2-send svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.c2-send:disabled { opacity: 0.45; cursor: wait; }

.c2-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 12px max(10px, env(safe-area-inset-bottom)); }
.c2-foot small { font: 400 0.75rem/1.4 var(--c2-mono); color: var(--c2-muted); }
.c2-foot small a { color: var(--c2-muted); }
.c2-human { min-height: 44px; padding: 0 12px; border-radius: 999px; background: none; border: 1px solid transparent; color: var(--c2-ink); cursor: pointer;
  font: 500 0.85rem/1 var(--c2-sans); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(232, 238, 248, 0.4); }
.c2-human:hover { border-color: var(--c2-line); text-decoration: none; }
.c2-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.nav-open .c2-launch { display: none; }
@media (prefers-reduced-motion: reduce) { .c2-orb, .c2-busy .c2-orb, .c2-launch.is-busy .c2-orb, .c2-typing::after { animation: none !important; } .c2-job { transition: none; } }
.c2-row--choices { margin-top: -2px; }
.c2-chip--link { display: inline-flex; align-items: center; text-decoration: none; }

/* UX review 2026-10-23: Creo must read as something opened on top of the page, not a new page.
   A lighter glass surface, a dimmed page behind, and a short open/close motion (slide-up sheet on phones). */
:root { --c2-sheet: #0E1830; --c2-sheet-edge: rgba(111, 168, 255, 0.42); }
.c2-scrim { position: fixed; inset: 0; z-index: 9000; background: rgba(2, 5, 12, 0.6); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: c2-fade .25s ease both; }
.c2-scrim[hidden] { display: none; }
.c2-panel { background: rgba(16, 27, 52, 0.94); border-color: var(--c2-sheet-edge);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(111, 168, 255, 0.08), 0 0 60px rgba(47, 107, 255, 0.18);
  transform-origin: 100% 100%; animation: c2-pop .3s cubic-bezier(.2, .8, .2, 1) both; }
.c2-head { background: linear-gradient(180deg, rgba(111, 168, 255, 0.10), rgba(111, 168, 255, 0)); }
.c2-panel .c2-head .c2-orb, .c2-panel .c2-welcome .c2-orb { animation: c2-wake .9s ease-out .12s 1 both; }
@media (max-width: 560px) {
  .c2-panel { inset: auto 0 0 0; top: max(52px, 7dvh); width: 100%; height: auto; border-radius: 22px 22px 0 0; border: 0; border-top: 1px solid var(--c2-sheet-edge);
    background: var(--c2-sheet); transform-origin: 50% 100%; animation: c2-sheet .34s cubic-bezier(.2, .8, .2, 1) both; }
  .c2-panel::before { content: ''; position: absolute; top: 7px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: rgba(232, 238, 248, 0.28); }
  .c2-head { padding-top: 18px; }
}
.c2-panel.c2-closing { animation: c2-pop-out .2s ease-in both; }
.c2-scrim.c2-closing { animation: c2-fade-out .2s ease-in both; }
@media (max-width: 560px) { .c2-panel.c2-closing { animation: c2-sheet-out .22s ease-in both; } }
@keyframes c2-fade { from { opacity: 0; } }
@keyframes c2-fade-out { to { opacity: 0; } }
@keyframes c2-pop { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes c2-pop-out { to { opacity: 0; transform: translateY(10px) scale(.97); } }
@keyframes c2-sheet { from { transform: translateY(100%); } }
@keyframes c2-sheet-out { to { transform: translateY(100%); } }
@keyframes c2-wake { 0% { transform: scale(.6); opacity: 0; } 55% { transform: scale(1.12); opacity: 1; box-shadow: 0 0 34px rgba(111, 168, 255, 1), inset 0 0 6px rgba(255, 255, 255, 0.35); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .c2-panel, .c2-scrim, .c2-panel.c2-closing, .c2-scrim.c2-closing, .c2-panel .c2-head .c2-orb, .c2-panel .c2-welcome .c2-orb { animation: none !important; } }
