/* =====================================================
   ShiftGo AI (餐勤通) — Pure HTML5 Static Version
   styles.css — Global stylesheet for index.html & demo.html
   ===================================================== */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;600;700;900&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  --color-primary: #00152a;
  --color-secondary: #4059aa;
  --color-brand-orange: #ff6f00;
  --color-brand-orange-hover: #e65f00;
  --color-line-green: #06c755;
  --color-accent-purple: #5c2d91;
  --color-surface-bg: #faf9fb;
  --font-sans: "Inter", "Noto Sans TC", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}
body {
  font-family: var(--font-sans);
  color: var(--color-primary);
  background: var(--color-surface-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button, select, input, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #c5c5c5; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #a9a9a9; }

/* ---------- Material Symbols ---------- */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined', sans-serif !important;
  font-weight: normal;
  font-style: normal;
  display: inline-block;
  line-height: inherit;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  vertical-align: middle;
  user-select: none;
  /* CDN fallback: if font fails, icon text shows as small readable label */
  font-size: 1.25em;
  overflow: hidden;
  max-width: 1.5em;
}

/* ---------- Animations ---------- */
@keyframes wiggle {
  0%, 100% { transform: rotate(-8deg) translateY(0); }
  50% { transform: rotate(8deg) translateY(-4px); }
}
@keyframes ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}
@keyframes pulse-opacity {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

.animate-wiggle { animation: wiggle 2.5s ease-in-out infinite; }
.animate-pulse { animation: pulse-opacity 2s cubic-bezier(0.4,0,0.6,1) infinite; }
.animate-bounce { animation: bounce 1s ease-in-out infinite; }
.animate-spin { animation: spin 1s linear infinite; }
.animate-ping { animation: ping 1s cubic-bezier(0,0,0.2,1) infinite; }
.animate-ping-slow { animation: ping 3s cubic-bezier(0,0,0.2,1) infinite; }
.animate-fade-in-up { animation: fadeInUp 0.5s ease both; }

/* ---------- Layout helpers ---------- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px)  { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.grid { display: grid; }
.grid-2, .grid-3, .grid-4 { display: grid; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 1023px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.25rem; } .gap-2 { gap: 0.5rem; } .gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; } .gap-6 { gap: 1.5rem; } .gap-8 { gap: 2rem; }
.flex-1 { flex: 1; } .shrink-0 { flex-shrink: 0; }
.flex-wrap { flex-wrap: wrap; }
.hidden { display: none !important; }
.block { display: block; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }
.cursor-pointer { cursor: pointer; }

/* ---------- Typography ---------- */
.font-mono { font-family: var(--font-mono); }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }
.text-xs  { font-size: 0.75rem;  line-height: 1.4; }
.text-sm  { font-size: 0.875rem; line-height: 1.5; }
.text-base{ font-size: 1rem;     line-height: 1.6; }
.text-lg  { font-size: 1.125rem; line-height: 1.5; }
.text-xl  { font-size: 1.25rem;  line-height: 1.4; }
.text-2xl { font-size: 1.5rem;   line-height: 1.3; }
.text-3xl { font-size: 1.875rem; line-height: 1.25; }
.text-4xl { font-size: 2.25rem;  line-height: 1.15; }
.text-5xl { font-size: 3rem;     line-height: 1.1; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.uppercase { text-transform: uppercase; }
.leading-tight { line-height: 1.25; }
.leading-snug  { line-height: 1.375; }
.leading-relaxed { line-height: 1.625; }
.whitespace-pre-wrap { white-space: pre-wrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select-none { user-select: none; }

/* ---------- Colors (text) ---------- */
.text-primary    { color: var(--color-primary); }
.text-orange     { color: var(--color-brand-orange); }
.text-green      { color: var(--color-line-green); }
.text-purple     { color: var(--color-accent-purple); }
.text-white      { color: #fff; }
.text-gray-400   { color: #9ca3af; }
.text-gray-500   { color: #6b7280; }
.text-gray-600   { color: #4b5563; }
.text-gray-700   { color: #374151; }
.text-slate-400  { color: #94a3b8; }
.text-slate-500  { color: #64748b; }
.text-slate-600  { color: #475569; }
.text-slate-700  { color: #334155; }
.text-slate-800  { color: #1e293b; }
.text-slate-900  { color: #0f172a; }
.text-emerald-600{ color: #059669; }
.text-emerald-700{ color: #047857; }
.text-emerald-800{ color: #065f46; }
.text-red-600    { color: #dc2626; }
.text-red-800    { color: #991b1b; }
.text-amber-600  { color: #d97706; }
.text-amber-700  { color: #b45309; }
.text-indigo-600 { color: #4f46e5; }
.text-zinc-300   { color: #d4d4d8; }
.text-zinc-400   { color: #a1a1aa; }
.text-zinc-500   { color: #71717a; }

/* ---------- Backgrounds ---------- */
.bg-white        { background: #fff; }
.bg-primary      { background: var(--color-primary); }
.bg-orange       { background: var(--color-brand-orange); }
.bg-slate-50     { background: #f8fafc; }
.bg-slate-100    { background: #f1f5f9; }
.bg-slate-800    { background: #1e293b; }
.bg-slate-900    { background: #0f172a; }
.bg-zinc-800     { background: #27272a; }
.bg-zinc-900     { background: #18181b; }
.bg-zinc-950     { background: #09090b; }
.bg-emerald-50   { background: #ecfdf5; }
.bg-red-50       { background: #fef2f2; }
.bg-amber-50     { background: #fffbeb; }
.bg-indigo-50    { background: #eef2ff; }

/* ---------- Borders & Radius ---------- */
.rounded    { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl{ border-radius: 1rem; }
.rounded-3xl{ border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }
.border     { border: 1px solid #e2e8f0; }
.border-t   { border-top: 1px solid #e2e8f0; }
.border-b   { border-bottom: 1px solid #e2e8f0; }

/* ---------- Shadows ---------- */
.shadow-xs  { box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.shadow-sm  { box-shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06); }
.shadow-md  { box-shadow: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06); }
.shadow-lg  { box-shadow: 0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05); }
.shadow-xl  { box-shadow: 0 20px 25px rgba(0,0,0,.1), 0 10px 10px rgba(0,0,0,.04); }
.shadow-2xl { box-shadow: 0 25px 50px rgba(0,0,0,.25); }

/* ========================
   LANDING PAGE STYLES
   ======================== */

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #f1f5f9;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.header-inner {
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-img { height: 3rem; object-fit: contain; cursor: pointer; display: block; }
.logo-fallback {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}
.logo-icon-box {
  width: 2.75rem; height: 2.75rem;
  background: #E8F7EF;
  border: 1px solid #d1fae5;
  border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-text-main { font-weight: 900; font-size: 1.125rem; color: #374151; letter-spacing: -0.025em; }
.logo-badge {
  background: #E8F7EF; color: #0F8F4D;
  font-size: 0.5625rem; font-weight: 800;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-family: var(--font-mono);
  border: 1px solid #d1fae5;
}
.logo-subtitle { font-size: 0.5625rem; color: #6b7280; font-weight: 700; }

.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav a {
  font-size: 0.875rem; font-weight: 500; color: #4b5563;
  transition: color 0.15s;
}
.site-nav a:hover { color: var(--color-brand-orange); }
@media (max-width: 1023px) { .site-nav { display: none; } .nav-home-desktop { display: none !important; } }

/* Mobile menu */
.mobile-menu-btn {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 0.5rem; color: var(--color-primary);
}
@media (max-width: 1023px) { .mobile-menu-btn { display: flex; align-items: center; } }
.mobile-nav {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px rgba(0,0,0,.07);
  z-index: 99;
  flex-direction: column;
  padding: 0.75rem 1rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 0.75rem 1rem;
  font-size: 0.875rem; font-weight: 600; color: #374151;
  border-bottom: 1px solid #f1f5f9;
}
.mobile-nav a:last-child { border-bottom: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-weight: 700; border-radius: 0.75rem; cursor: pointer;
  transition: all 0.15s; border: none; text-decoration: none;
}
.btn-primary {
  background: var(--color-brand-orange);
  color: #fff;
  padding: 0.625rem 1.25rem;
  box-shadow: 0 4px 6px rgba(255,111,0,.2);
}
.btn-primary:hover { background: var(--color-brand-orange-hover); box-shadow: 0 6px 12px rgba(255,111,0,.3); }
.btn-outline {
  background: rgba(0,21,42,.05); color: var(--color-primary);
  border: 1px solid #e2e8f0;
  padding: 0.625rem 1.25rem;
}
.btn-outline:hover { background: rgba(0,21,42,.1); }
.btn-green { background: var(--color-line-green); color: #333; }
.btn-green:hover { background: #05b04b; }
.btn-dark  { background: var(--color-primary); color: #fff; }
.btn-dark:hover { background: #263545; }
.btn-lg { padding: 1rem 1.5rem; font-size: 0.9375rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.75rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- Hero Section ---------- */
.hero-section {
  padding: 4rem 0 6rem;
  background: linear-gradient(180deg, #fff 0%, rgba(248,250,252,0.5) 50%, var(--color-surface-bg) 100%);
  border-bottom: 1px solid #f1f5f9;
}
.hero-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 1023px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,111,0,.1); border: 1px solid rgba(255,111,0,.2);
  color: var(--color-brand-orange);
  padding: 0.375rem 0.875rem; border-radius: 9999px;
  font-size: 0.6875rem; font-weight: 600;
}
.hero-title {
  font-size: 2.5rem; font-weight: 900; letter-spacing: -0.025em; line-height: 1.15;
}
@media (min-width: 640px) { .hero-title { font-size: 3rem; } }
.hero-title .gradient-text {
  background: linear-gradient(90deg, var(--color-brand-orange), #fbbf24, #fde68a);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-subtitle { font-size: 1rem; color: #4b5563; max-width: 42rem; line-height: 1.7; }
.quick-matrix {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  max-width: 32rem;
}
.matrix-card {
  display: flex; align-items: flex-start; gap: 0.75rem;
  background: #fff; padding: 0.875rem; border-radius: 0.75rem;
  border: 1px solid #f1f5f9; box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.matrix-icon-box {
  padding: 0.5rem; border-radius: 0.5rem; flex-shrink: 0;
}
.matrix-icon-box.green { background: #ecfdf5; color: #059669; }
.matrix-icon-box.rose  { background: #fff1f2; color: #e11d48; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; max-width: 32rem; }
.hero-ctas .btn { flex: 1; min-width: 180px; text-align: center; }
.trust-row { display: flex; align-items: center; gap: 0.75rem; font-size: 0.75rem; color: #6b7280; border-top: 1px solid rgba(0,0,0,.06); padding-top: 1rem; }
.trust-row .check { color: #059669; font-weight: 600; display: flex; align-items: center; gap: 0.25rem; }

/* Dashboard mockup card */
.hero-mockup {
  background: #fff; border-radius: 1.5rem; border: 1px solid #f1f5f9;
  box-shadow: 0 25px 50px rgba(0,0,0,.12);
  padding: 1.5rem; position: relative; overflow: hidden;
}
.mockup-titlebar {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid #f1f5f9;
}
.mockup-dots { display: flex; gap: 0.375rem; }
.mockup-dot { width: 0.75rem; height: 0.75rem; border-radius: 9999px; }
.mockup-badge-red { background: #fee2e2; color: #dc2626; font-size: 0.625rem; font-weight: 700; padding: 0.125rem 0.5rem; border-radius: 9999px; }
.ai-bubble {
  display: flex; align-items: flex-start; gap: 0.75rem;
  background: #f8fafc; padding: 0.875rem; border-radius: 1rem; border: 1px solid #e2e8f0;
}
.ai-badge-red { background: #dc2626; color: #fff; font-size: 0.625rem; font-weight: 700; padding: 0.125rem 0.5rem; border-radius: 0.25rem; }
.dark-terminal {
  background: #0f172a; color: #fff; border-radius: 1rem; padding: 1rem; box-shadow: inset 0 2px 4px rgba(0,0,0,.3);
}
.terminal-row {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(39,39,42,.8); padding: 0.5rem 0.75rem; border-radius: 0.375rem;
  border: 1px solid rgba(63,63,70,.5);
}
.deco-blob {
  position: absolute; border-radius: 9999px; filter: blur(48px); pointer-events: none; z-index: -1;
}

/* ---------- Pain Points Section ---------- */
.section-label { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 900; color: var(--color-brand-orange); }
.section-title { font-size: 1.875rem; font-weight: 800; color: var(--color-primary); }
.section-sub   { font-size: 0.8125rem; color: #6b7280; }

.pain-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 1023px) { .pain-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px)  { .pain-grid { grid-template-columns: 1fr; } }

.pain-card {
  background: #f8fafc;
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex; flex-direction: column; justify-content: space-between;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  cursor: default;
}
.pain-card:hover {
  transform: scale(1.04);
  box-shadow: 0 20px 40px rgba(0,0,0,.1);
  background: #fff;
  border-color: rgba(230,95,0,.2);
  z-index: 2;
}
.pain-num { font-size: 0.8125rem; font-weight: 900; color: #f43f5e; }
.pain-badge-todo { font-size: 0.6875rem; font-weight: 700; color: #94a3b8; background: #e2e8f0; padding: 0.125rem 0.5rem; border-radius: 9999px; }
.pain-footer {
  margin: 1.5rem -1.5rem -1.5rem;
  padding: 1rem 1.5rem;
  background: rgba(241,245,249,.3);
  border-radius: 0 0 1rem 1rem;
  border-top: 1px solid rgba(241,245,249,.8);
  transition: background 0.25s;
}
.pain-card:hover .pain-footer { background: rgba(255,111,0,.05); }
.solution-label { font-size: 0.75rem; font-weight: 700; color: #1e293b; display: flex; align-items: center; gap: 0.375rem; margin-bottom: 0.375rem; }

/* ---------- LINE LIFF Section ---------- */
.liff-section { padding: 5rem 0; background: #f8fafc; border-top: 1px solid rgba(226,232,240,.5); border-bottom: 1px solid rgba(226,232,240,.5); }
.liff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 1023px) { .liff-grid { grid-template-columns: 1fr; } }
.check-list { display: flex; flex-direction: column; gap: 0.875rem; }
.check-item { display: flex; align-items: center; gap: 0.75rem; font-size: 0.75rem; font-weight: 600; color: var(--color-primary); }
.pulse-dot { width: 0.625rem; height: 0.625rem; border-radius: 9999px; background: var(--color-line-green); display: inline-block; animation: pulse-opacity 2s infinite; }

/* iPhone mockup */
.phone-frame {
  width: 18rem; background: #171717;
  border-radius: 2.1875rem; border: 8px solid #262626;
  box-shadow: 0 25px 50px rgba(0,0,0,.3);
  overflow: hidden; position: relative; margin: 0 auto;
}
.phone-notch {
  position: absolute; top: 0.25rem; left: 50%; transform: translateX(-50%);
  width: 5rem; height: 0.875rem; background: #262626;
  border-radius: 9999px; z-index: 10;
  display: flex; align-items: center; justify-content: center;
}
.phone-notch-dot { width: 0.5rem; height: 0.5rem; border-radius: 9999px; background: #171717; }
.line-header {
  background: var(--color-line-green); color: #fff;
  padding: 0.75rem 1rem 0.625rem;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.6875rem; font-weight: 700;
  margin-top: 1.5rem;
}
.line-chat-bg {
  background: #8cabd9; height: 24rem; padding: 0.75rem;
  display: flex; flex-direction: column; gap: 0.75rem; overflow-y: auto;
}
.line-message-bubble {
  background: rgba(255,255,255,.93); border-radius: 0.875rem; border-top-left-radius: 0;
  max-width: 85%; padding: 0.625rem 0.75rem;
  font-size: 0.625rem; line-height: 1.5; color: var(--color-primary);
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.liff-card {
  background: #fff; border-radius: 1rem; padding: 0.75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.1); border: 1px solid #f5f5f5;
}
.liff-actions { display: grid; grid-template-columns: repeat(3,1fr); gap: 0.25rem; padding-top: 0.5rem; border-top: 1px solid #f5f5f5; text-align: center; }
.liff-action-btn { padding: 0.25rem; border-radius: 0.25rem; cursor: pointer; transition: background 0.15s; }
.liff-action-btn:hover { background: #f5f5f5; }
.liff-action-icon { display: block; margin: 0 auto 0.125rem; }

/* ---------- OpenClaw Section ---------- */
.openclaw-section {
  padding: 5rem 0;
  background: #09090b; color: #f8fafc;
  border-top: 1px solid #18181b; border-bottom: 1px solid #18181b;
  position: relative; overflow: hidden;
}
.openclaw-section::before {
  content: '';
  position: absolute; top: 0; right: 25%; width: 500px; height: 500px;
  background: rgba(255,111,0,.05); border-radius: 9999px; filter: blur(96px);
  pointer-events: none;
}
.openclaw-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 2rem; align-items: start; }
@media (max-width: 1023px) { .openclaw-grid { grid-template-columns: 1fr; } }

.claw-source-btn {
  padding: 1rem; border-radius: 1rem; cursor: pointer; border: 1px solid #3f3f46;
  background: rgba(39,39,42,.4); transition: all 0.15s;
  display: flex; align-items: flex-start; gap: 1rem; text-align: left; width: 100%; color: inherit;
}
.claw-source-btn:hover { background: rgba(39,39,42,.7); border-color: #52525b; }
.claw-source-btn.active { background: #1c1917; border-color: var(--color-brand-orange); box-shadow: 0 10px 15px rgba(255,111,0,.1); }
.claw-source-icon {
  padding: 0.625rem; border-radius: 0.75rem; background: #3f3f46; color: #a1a1aa; flex-shrink: 0;
  transition: all 0.15s;
}
.claw-source-btn.active .claw-source-icon { background: var(--color-brand-orange); color: #fff; }
.claw-live-badge {
  font-size: 0.625rem; background: rgba(255,111,0,.2); color: var(--color-brand-orange);
  padding: 0.125rem 0.5rem; border-radius: 9999px; font-family: var(--font-mono);
}

/* Console panel */
.console-panel {
  background: #09090b; border-radius: 1.5rem; border: 1px solid #27272a;
  padding: 1.5rem; box-shadow: 0 25px 50px rgba(0,0,0,.3);
  min-width: 0; max-width: 100%; overflow: hidden;
}
.console-titlebar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem;
  padding-bottom: 1rem; border-bottom: 1px solid #27272a;
}
.console-dots { display: flex; gap: 0.375rem; }
.console-dot-r { background: #ef4444; width: 0.75rem; height: 0.75rem; border-radius: 9999px; }
.console-dot-y { background: #eab308; width: 0.75rem; height: 0.75rem; border-radius: 9999px; }
.console-dot-g { background: #22c55e; width: 0.75rem; height: 0.75rem; border-radius: 9999px; }
.console-online { display: flex; align-items: center; gap: 0.375rem; font-size: 0.625rem; color: #4ade80; background: rgba(74,222,128,.1); padding: 0.125rem 0.625rem; border-radius: 0.25rem; font-family: var(--font-mono); }
.code-output {
  background: #1c1917; border: 1px solid #27272a; border-radius: 0.75rem;
  padding: 0.75rem; font-family: var(--font-mono); font-size: 0.625rem; color: #fbbf24;
  height: 13rem; overflow-y: auto;
}
.cmd-output {
  background: #1c1917; border: 1px solid #27272a; border-radius: 0.75rem;
  padding: 0.875rem; font-family: var(--font-mono); font-size: 0.625rem; color: #d4d4d8;
  height: 13rem; overflow-y: auto;
}
.cmd-btn {
  padding: 0.5rem 0.75rem; border-radius: 0.75rem; text-align: left;
  font-size: 0.75rem; border: 1px solid #3f3f46; background: rgba(39,39,42,.6);
  color: #d4d4d8; cursor: pointer; display: flex; align-items: center; gap: 0.5rem;
  transition: all 0.15s; width: 100%;
}
.cmd-btn:hover { border-color: #52525b; background: #27272a; }
.cmd-btn.active { background: rgba(255,111,0,.15); border-color: var(--color-brand-orange); color: var(--color-brand-orange); font-weight: 700; }

/* ---------- Architecture Section ---------- */
.arch-section { padding: 5rem 0; background: #fff; }
.arch-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
@media (max-width: 767px) { .arch-grid { grid-template-columns: 1fr; } }
.arch-card {
  background: #f8fafc; border-radius: 1rem; padding: 2rem;
  border: 1px solid #f1f5f9; display: flex; flex-direction: column; justify-content: space-between;
}
.arch-phase { font-family: var(--font-mono); font-size: 1.875rem; font-weight: 900; margin-bottom: 1rem; }
.arch-footer {
  background: #fff; padding: 0.75rem; border-radius: 0.75rem;
  text-align: center; font-size: 0.75rem; font-weight: 700;
  border: 1px solid #e2e8f0; box-shadow: 0 1px 2px rgba(0,0,0,.05);
  display: flex; align-items: center; justify-content: center; gap: 0.375rem; margin-top: 1.5rem;
}

/* ---------- Calculator Section ---------- */
.calc-section { padding: 5rem 0; background: #0f172a; color: #fff; position: relative; overflow: hidden; }
.calc-card {
  background: #1e293b; border-radius: 1.5rem; padding: 2rem;
  border: 1px solid rgba(255,255,255,.1); box-shadow: 0 25px 50px rgba(0,0,0,.3);
}
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
@media (max-width: 767px) { .calc-grid { grid-template-columns: 1fr; } }
.range-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 0.5rem; border-radius: 9999px;
  background: #334155; outline: none; cursor: pointer;
}
.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 1.25rem; height: 1.25rem;
  border-radius: 9999px; background: var(--color-brand-orange); cursor: pointer;
  box-shadow: 0 2px 4px rgba(255,111,0,.4);
}
.savings-box {
  background: linear-gradient(135deg, var(--color-brand-orange), #d97706);
  border-radius: 1rem; padding: 1.5rem; text-align: center;
}
.savings-amount { font-size: 2.5rem; font-weight: 900; font-family: var(--font-mono); }

/* ---------- Scenarios Section ---------- */
.scenarios-section { padding: 5rem 0; background: #fff; }
.scenario-card {
  background: #f8fafc; border-radius: 1rem; padding: 1.5rem;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: box-shadow 0.3s; min-width: 0; height: 100%;
}
.scenario-card:hover { box-shadow: 0 20px 25px rgba(0,0,0,.1); }
.scenario-img-wrap { width: 100%; aspect-ratio: 16/9; overflow: hidden; border-radius: 0.75rem; background: #e2e8f0; }
.scenario-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.scenario-card:hover .scenario-img-wrap img { transform: scale(1.08); }

/* ---------- Labor Safety Section ---------- */
.labor-section { padding: 5rem 0; background: #f8fafc; border-top: 1px solid rgba(226,232,240,.6); border-bottom: 1px solid rgba(226,232,240,.6); }
.labor-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #ecfdf5; border: 1px solid #a7f3d0; color: #064e3b;
  padding: 0.375rem 0.875rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 600;
}
.labor-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 2rem; }
@media (max-width: 1023px) { .labor-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 639px)  { .labor-grid { grid-template-columns: 1fr; } }
.labor-card {
  background: #fff; border-radius: 1rem; padding: 1.5rem;
  border: 1px solid #f1f5f9; box-shadow: 0 1px 2px rgba(0,0,0,.05);
  transition: all 0.2s; display: flex; flex-direction: column; justify-content: space-between;
}
.labor-card:hover { box-shadow: 0 4px 6px rgba(0,0,0,.07); border-color: rgba(5,150,105,.2); }
.labor-icon-box { width: 2.75rem; height: 2.75rem; border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.labor-legal-ref { font-size: 0.625rem; color: #9ca3af; font-family: var(--font-mono); background: #f8fafc; border: 1px solid rgba(241,245,249,.5); padding: 0.25rem 0.5rem; border-radius: 0.25rem; width: fit-content; }
.labor-cta-row {
  background: #fff; border-radius: 1.5rem; border: 1px solid #f1f5f9;
  padding: 1.5rem 2rem; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 1.5rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.05); margin-top: 3rem;
}

/* ---------- Consultation Form ---------- */
.form-section { padding: 6rem 0; background: #f8fafc; border-top: 1px solid #e2e8f0; }
.form-card {
  background: #fff; border-radius: 1.5rem; border: 1px solid #e2e8f0;
  padding: 2rem 2.5rem; box-shadow: 0 20px 25px rgba(0,0,0,.08);
  max-width: 48rem; margin: 0 auto; position: relative; overflow: hidden;
}
@media (min-width: 640px) { .form-card { padding: 3.5rem; } }
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.form-label { font-size: 0.75rem; font-weight: 700; color: #374151; }
.form-input {
  background: #f8fafc; border: 1px solid #e2e8f0;
  border-radius: 0.75rem; padding: 0.75rem 1rem;
  font-size: 0.75rem; transition: border-color 0.15s, background 0.15s;
  outline: none; width: 100%;
}
.form-input:focus { border-color: var(--color-brand-orange); background: #fff; }
.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.9rem;
}
.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.9rem;
}
#consult-form-body {
  display: flex;
  flex-direction: column;
  gap: 1.9rem;
}
.form-submit-row {
  padding-top: 2.25rem;
  margin-top: 0.25rem;
}
@media (max-width: 639px) {
  .form-grid-2,
  .form-grid-3 {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  #consult-form-body {
    gap: 1.75rem;
  }
}
/* ---------- Site logo ---------- */
.site-logo {
  display: flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
}
.site-logo-img {
  display: block;
  width: auto;
  max-width: 180px;
  height: 48px;
  object-fit: contain;
}
@media (max-width: 640px) {
  .site-logo-img {
    max-width: 140px;
    height: 40px;
  }
}
.form-success {
  background: #ecfdf5; color: #065f46; padding: 1.5rem; border-radius: 1rem;
  text-align: center; border: 1px solid #a7f3d0; display: none;
}
.form-success.visible { display: block; }
.form-body.hidden { display: none; }
.req { color: #ef4444; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-primary); color: #9ca3af; padding: 3rem 0; font-size: 0.75rem; border-top: 1px solid #1e293b; }

/* ========================
   DEMO SYSTEM STYLES
   ======================== */

.demo-wrapper { display: flex; min-height: 100vh; background: #f8fafc; }

/* Sidebar */
.demo-sidebar {
  width: 16rem; flex-shrink: 0;
  background: var(--color-primary); color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
  border-right: 1px solid #1e293b;
}
@media (max-width: 767px) {
  .demo-sidebar {
    position: fixed; left: -16rem; top: 0; height: 100vh;
    z-index: 200; transition: left 0.25s ease; overflow-y: auto;
  }
  .demo-sidebar.open { left: 0; box-shadow: 4px 0 20px rgba(0,0,0,.3); }
}
.sidebar-brand { padding: 1.25rem; border-bottom: 1px solid #1e293b; }
.sidebar-logo-box {
  width: 2rem; height: 2rem; background: rgba(232,247,239,.1);
  border: 1px solid rgba(34,197,94,.2); border-radius: 0.5rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sidebar-nav { padding: 1rem; display: flex; flex-direction: column; gap: 0.25rem; }
.nav-btn {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem; border-radius: 0.75rem;
  font-size: 0.75rem; font-weight: 700; color: #94a3b8;
  background: none; border: none; cursor: pointer; text-align: left;
  transition: all 0.15s; width: 100%; position: relative;
}
.nav-btn:hover { background: #1e293b; color: #fff; }
.nav-btn.active { background: var(--color-brand-orange); color: #fff; box-shadow: 0 2px 8px rgba(255,111,0,.3); }
.nav-badge {
  position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%);
  background: #ef4444; color: #fff; font-family: var(--font-mono);
  font-size: 0.5625rem; font-weight: 900;
  min-width: 1.125rem; height: 1.125rem; border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  animation: bounce 1s ease-in-out infinite;
}
.sidebar-footer { padding: 1rem; border-top: 1px solid #1e293b; }
.store-info { background: rgba(30,41,59,.6); padding: 0.75rem; border-radius: 0.75rem; margin-bottom: 0.75rem; }
.exit-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: rgba(69,10,10,.4); color: #fca5a5; border: 1px solid rgba(127,29,29,.5);
  padding: 0.625rem; border-radius: 0.75rem; font-size: 0.75rem; font-weight: 700;
  cursor: pointer; transition: all 0.15s; width: 100%; text-decoration: none;
}
.exit-btn:hover { background: #450a0a; color: #fff; }

/* Sidebar overlay (mobile) */
.sidebar-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 199;
}
.sidebar-overlay.open { display: block; }
.mobile-topbar {
  display: none; align-items: center; justify-content: space-between;
  background: var(--color-primary); color: #fff; padding: 0.75rem 1rem;
  position: sticky; top: 0; z-index: 150;
}
@media (max-width: 767px) { .mobile-topbar { display: flex; } }
.hamburger-btn { background: none; border: none; color: #fff; cursor: pointer; padding: 0.25rem; }

/* Main workspace */
.demo-main { flex: 1; padding: 1.5rem 2rem; overflow-y: auto; min-width: 0; }
@media (max-width: 767px) { .demo-main { padding: 1rem; } }

.workspace-header {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: flex-start; gap: 1rem;
  padding-bottom: 1.5rem; margin-bottom: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}
.workspace-title { font-size: 1.5rem; font-weight: 900; color: #0f172a; display: flex; align-items: center; gap: 0.5rem; margin-top: 0.25rem; }
.workspace-actions { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.date-badge { background: #e2e8f0; font-weight: 700; padding: 0.375rem 0.75rem; border-radius: 0.5rem; font-family: var(--font-mono); font-size: 0.75rem; }
.ai-resolve-btn {
  background: var(--color-accent-purple); color: #fff;
  font-size: 0.75rem; font-weight: 700; padding: 0.375rem 1rem;
  border-radius: 0.5rem; border: none; cursor: pointer;
  display: flex; align-items: center; gap: 0.375rem; transition: all 0.15s;
  box-shadow: 0 1px 2px rgba(0,0,0,.1);
}
.ai-resolve-btn:hover { background: #4b2375; }

/* Tab content */
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Dashboard KPI cards */
.kpi-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
@media (max-width: 1023px) { .kpi-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 639px)  { .kpi-grid { grid-template-columns: 1fr 1fr; } }
.kpi-card {
  background: #fff; padding: 1.25rem; border-radius: 1rem;
  border: 1px solid rgba(226,232,240,.8); box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.kpi-label { font-size: 0.75rem; color: #64748b; font-weight: 600; display: block; margin-bottom: 0.5rem; }
.kpi-value { font-size: 1.875rem; font-weight: 900; font-family: var(--font-mono); }
.kpi-sub { display: flex; justify-content: space-between; font-size: 0.6875rem; color: #64748b; margin-top: 0.375rem; }
.kpi-up   { color: #059669; font-weight: 700; }
.kpi-safe { color: #059669; font-weight: 700; }

/* Alert banner */
.alert-banner {
  background: #fef2f2; border: 1px solid #fecaca; border-radius: 1rem;
  padding: 1.25rem; display: flex; gap: 1rem; align-items: flex-start;
}
.alert-banner.hidden { display: none; }
.alert-list { list-style: disc; list-style-position: inside; font-size: 0.75rem; color: #991b1b; display: flex; flex-direction: column; gap: 0.25rem; padding-top: 0.375rem; }

/* Charts container */
.charts-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 2rem; }
@media (max-width: 1023px) { .charts-grid { grid-template-columns: 1fr; } }
.chart-card { background: #fff; padding: 1.5rem; border-radius: 1.5rem; border: 1px solid rgba(226,232,240,.8); box-shadow: 0 1px 2px rgba(0,0,0,.05); min-width: 0; overflow: hidden; }

/* SVG chart */
.chart-wrap { width: 100%; max-width: 100%; overflow: hidden; }
.bar-chart-tip {
  position: absolute; background: rgba(0,21,42,.9); color: #fff;
  font-size: 0.625rem; padding: 0.375rem 0.625rem; border-radius: 0.375rem;
  pointer-events: none; white-space: nowrap; z-index: 50; display: none;
}

/* Scheduling matrix */
.schedule-table-wrap { overflow-x: auto; }
.schedule-table { width: 100%; border-collapse: collapse; font-size: 0.75rem; color: #334155; }
.schedule-table th { background: #f8fafc; padding: 1rem; font-weight: 700; color: #64748b; white-space: nowrap; border-bottom: 1px solid #e2e8f0; }
.schedule-table td { padding: 0.75rem; border-bottom: 1px solid #f1f5f9; transition: background 0.15s; }
.schedule-table tr:hover td { background: rgba(248,250,252,.5); }
.staff-cell { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0; min-width: 10rem; }
.staff-type-badge { font-size: 0.625rem; font-weight: 600; padding: 0.125rem 0.5rem; border-radius: 9999px; display: inline-block; margin-top: 0.125rem; }
.shift-select {
  display: block; width: 5rem; text-align: center;
  font-size: 0.6875rem; font-weight: 700; padding: 0.375rem 0.375rem;
  border-radius: 0.5rem; border-width: 1px; border-style: solid;
  cursor: pointer; outline: none; -webkit-appearance: none; appearance: none;
  margin: 0 auto;
}
.shift-select.shift-early  { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.shift-select.shift-mid    { background: #eef2ff; color: #3730a3; border-color: #c7d2fe; }
.shift-select.shift-late   { background: #faf5ff; color: #6d28d9; border-color: #ddd6fe; }
.shift-select.shift-noon   { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.shift-select.shift-night  { background: #fff7ed; color: #92400e; border-color: #fcd9a0; }
.shift-select.shift-off    { background: #f1f5f9; color: #64748b; border-color: #e2e8f0; }
.shift-warning-dot {
  position: absolute; top: -0.125rem; right: -0.125rem;
  width: 0.5rem; height: 0.5rem; background: #ef4444; border-radius: 9999px;
}
.shift-warning-dot::before {
  content: ''; display: block; width: 100%; height: 100%;
  background: #f87171; border-radius: 9999px; animation: ping 1s cubic-bezier(0,0,.2,1) infinite;
}
.overhours-badge { background: #fef2f2; color: #dc2626; font-size: 0.5625rem; font-weight: 900; font-family: var(--font-mono); padding: 0.125rem 0.375rem; border-radius: 0.25rem; display: flex; align-items: center; gap: 0.125rem; position: absolute; bottom: -0.25rem; left: 0; right: 0; justify-content: center; }
.weekly-hours { font-size: 0.75rem; font-family: var(--font-mono); font-weight: 800; }
.weekly-hours.over { color: #dc2626; }

/* Compliance & masking */
.compliance-item {
  padding: 1rem; background: #f8fafc; border-radius: 0.75rem;
  border: 1px solid rgba(226,232,240,.8);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
}
.severity-badge-danger { background: #ef4444; color: #fff; font-size: 0.625rem; text-transform: uppercase; font-weight: 700; padding: 0.125rem 0.5rem; border-radius: 0.25rem; animation: pulse-opacity 2s infinite; }
.severity-badge-warning { background: #f59e0b; color: #1c1917; font-size: 0.625rem; text-transform: uppercase; font-weight: 700; padding: 0.125rem 0.5rem; border-radius: 0.25rem; }
.severity-badge-info    { background: #3b82f6; color: #fff; font-size: 0.625rem; text-transform: uppercase; font-weight: 700; padding: 0.125rem 0.5rem; border-radius: 0.25rem; }

/* Payroll table */
.payroll-table { width: 100%; border-collapse: collapse; font-size: 0.75rem; }
.payroll-table th { background: #f8fafc; padding: 1rem; font-weight: 700; color: #64748b; white-space: nowrap; text-align: left; border-bottom: 1px solid #e2e8f0; }
.payroll-table td { padding: 1rem; border-bottom: 1px solid #f1f5f9; }
.payroll-table tr:hover td { background: rgba(248,250,252,.5); }
.overtime-highlight { color: #d97706; font-weight: 700; }

/* Compliance export cards */
.export-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
@media (max-width: 767px) { .export-grid { grid-template-columns: 1fr; } }
.export-card { background: #f8fafc; padding: 1.25rem; border-radius: 1rem; border: 1px solid #e2e8f0; display: flex; flex-direction: column; justify-content: space-between; }
.export-icon-box { width: 2.5rem; height: 2.5rem; border-radius: 0.5rem; display: flex; align-items: center; justify-content: center; margin-bottom: 0.75rem; }
.export-btn {
  margin-top: 1.5rem; width: 100%; background: #0f172a; color: #fff;
  font-size: 0.6875rem; font-weight: 700; padding: 0.625rem; border-radius: 0.5rem;
  border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  transition: background 0.15s;
}
.export-btn:hover { background: #1e293b; }

/* LINE simulator */
.liff-sim-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 2rem; align-items: center; }
@media (max-width: 1023px) { .liff-sim-grid { grid-template-columns: 1fr; } }
.staff-picker { display: grid; grid-template-columns: repeat(4,1fr); gap: 0.75rem; }
@media (max-width: 639px) { .staff-picker { grid-template-columns: repeat(2,1fr); } }
.staff-pick-btn {
  padding: 0.75rem; border-radius: 1rem; border: 1px solid #e2e8f0;
  background: #f8fafc; text-align: center; cursor: pointer; transition: all 0.15s;
}
.staff-pick-btn:hover { background: #f1f5f9; }
.staff-pick-btn.selected { background: rgba(255,111,0,.1); border-color: var(--color-brand-orange); font-weight: 700; transform: scale(1.02); }
.clock-event-log { max-height: 5rem; overflow-y: auto; }
.clock-event { font-size: 0.5rem; padding-top: 0.25rem; border-top: 1px solid rgba(241,245,249,.8); }

/* Agent Hub chat */
.chat-layout { display: grid; grid-template-columns: 4fr 8fr; gap: 2rem; min-height: 36rem; }
@media (max-width: 1023px) { .chat-layout { grid-template-columns: 1fr; } }
.chat-guide { background: #f8fafc; padding: 1.5rem; border-radius: 1rem; border: 1px solid #e2e8f0; display: flex; flex-direction: column; justify-content: space-between; }
.quick-cue-btn {
  width: 100%; text-align: left; background: #fff; padding: 0.625rem 0.75rem;
  border-radius: 0.75rem; border: 1px solid #e2e8f0; font-size: 0.625rem; font-weight: 600;
  color: #334155; cursor: pointer; transition: background 0.15s;
  display: flex; align-items: center; justify-content: space-between;
}
.quick-cue-btn:hover { background: #f1f5f9; }
.chat-window { display: flex; flex-direction: column; border: 1px solid rgba(226,232,240,.8); border-radius: 1rem; height: 34rem; }
.chat-messages { flex: 1; padding: 1.25rem; overflow-y: auto; background: rgba(248,250,252,.5); display: flex; flex-direction: column; gap: 1rem; }
.chat-msg { display: flex; gap: 0.75rem; align-items: flex-start; }
.chat-msg.user { flex-direction: row-reverse; gap: 0.75rem; }
.chat-avatar {
  width: 2rem; height: 2rem; border-radius: 9999px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #e2e8f0; box-shadow: 0 1px 2px rgba(0,0,0,.05); overflow: hidden;
}
.chat-avatar.user-av { background: #4f46e5; }
.chat-avatar img { width: 100%; height: 100%; object-fit: contain; padding: 0.125rem; }
.chat-bubble {
  padding: 0.875rem 1rem; border-radius: 1rem; max-width: 85%;
  font-size: 0.75rem; line-height: 1.6; box-shadow: 0 1px 2px rgba(0,0,0,.05); border: 1px solid transparent;
}
.chat-bubble.ai { background: #fff; border-color: #e2e8f0; border-top-left-radius: 0; color: #1e293b; }
.chat-bubble.user { background: #4f46e5; color: #fff; border-color: #4338ca; border-top-right-radius: 0; }
.chat-ts.ai-ts { font-size: 0.5rem; color: #94a3b8; text-align: right; margin-top: 0.375rem; }
.chat-ts.user-ts { font-size: 0.5rem; color: rgba(199,210,254,.8); text-align: right; margin-top: 0.375rem; }
.thinking-indicator { display: none; }
.thinking-indicator.visible { display: flex; }
.chat-input-row { padding: 1rem; border-top: 1px solid #e2e8f0; background: #fff; border-radius: 0 0 1rem 1rem; display: flex; gap: 0.5rem; }
.chat-input {
  flex: 1; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 0.75rem;
  padding: 0.75rem 1rem; font-size: 0.75rem; outline: none; transition: border-color 0.15s;
}
.chat-input:focus { border-color: var(--color-brand-orange); background: #fff; }
.send-btn {
  background: var(--color-brand-orange); color: #fff; border: none;
  padding: 0.625rem 1.25rem; border-radius: 0.75rem; font-size: 0.75rem; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; gap: 0.375rem; transition: background 0.15s;
}
.send-btn:hover { background: var(--color-brand-orange-hover); }
.send-btn:disabled { background: #e2e8f0; color: #94a3b8; cursor: not-allowed; }

/* Watermark legal box */
.legal-box {
  background: #171717; color: #d4d4d8; border-radius: 1.5rem; padding: 2rem;
  border: 1px solid #27272a; position: relative; overflow: hidden;
}
.legal-watermark {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) rotate(12deg);
  font-size: 4rem; font-weight: 900; color: #27272a; white-space: nowrap;
  user-select: none; pointer-events: none; text-transform: uppercase; letter-spacing: 0.1em;
}

/* Shared panel card */
.panel-card { background: #fff; padding: 1.5rem; border-radius: 1.5rem; border: 1px solid #e2e8f0; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.panel-card + .panel-card { margin-top: 1.5rem; }

/* Scrollable height helpers */
.h-48 { height: 12rem; }
.h-52 { height: 13rem; }
.h-64 { height: 16rem; }
.h-72 { height: 18rem; }
.max-h-20 { max-height: 5rem; }

/* Spacing helpers */
.mt-1 { margin-top: 0.25rem; } .mt-2 { margin-top: 0.5rem; } .mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.25rem; } .mb-2 { margin-bottom: 0.5rem; } .mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; } .mb-6 { margin-bottom: 1.5rem; } .mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; } .mb-16 { margin-bottom: 4rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.pt-4 { padding-top: 1rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

/* Intersection Observer fade-in */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ---------- Console content grid ---------- */
.console-content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
@media (max-width: 900px) {
  .console-content-grid {
    grid-template-columns: 1fr;
  }
}
.code-output pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  margin: 0;
}

/* ---------- Responsive SVG chart ---------- */
.responsive-svg-chart {
  width: 100%;
  max-width: 100%;
  height: 220px;
  display: block;
}

/* ---------- FAQ demo list ---------- */
.faq-demo-list {
  display: grid;
  gap: 0.5rem;
}
.faq-demo-list button {
  width: 100%;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 0.75rem;
  padding: 0.625rem 0.75rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.faq-demo-list button:hover {
  background: #f8fafc;
  border-color: var(--color-brand-orange);
}

/* ---------- Overflow protection for demo containers ---------- */
.demo-wrapper,
.demo-main,
.tab-panel,
.panel-card,
.chart-card,
.console-panel,
.openclaw-grid,
.scenario-card {
  min-width: 0;
}

/* ---------- Chat input row — mobile flex guard ---------- */
.chat-input-row {
  min-width: 0;
}
.chat-input {
  min-width: 0;
}
.send-btn {
  flex-shrink: 0;
}

/* ---------- OpenClaw hero layout ---------- */
.openclaw-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 320px);
  gap: 2rem;
  align-items: start;
  margin-bottom: 2.5rem;
}
.openclaw-copy {
  min-width: 0;
}
.openclaw-brand-visual {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
  pointer-events: none;
}
.openclaw-mascot {
  width: min(280px, 100%);
  max-width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(255, 122, 0, 0.25));
  position: relative;
}
.openclaw-mascot-fallback {
  min-width: 160px;
  min-height: 80px;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 122, 0, 0.35);
  color: #ff7a00;
  font-weight: 900;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 122, 0, 0.08);
}
@media (max-width: 900px) {
  .openclaw-hero {
    grid-template-columns: 1fr;
  }
  .openclaw-brand-visual {
    justify-content: center;
    order: -1;
  }
  .openclaw-mascot {
    width: min(180px, 70vw);
  }
}

/* ---------- Unified Popup / Toast ---------- */
.app-popup-root {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  display: grid;
  gap: 0.75rem;
  width: min(360px, calc(100vw - 2rem));
  pointer-events: none;
}
.app-popup {
  pointer-events: auto;
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  animation: popupIn 0.18s ease-out;
}
.app-popup-info  { border-left: 4px solid #0ea5e9; }
.app-popup-success { border-left: 4px solid #16a34a; }
.app-popup-warning { border-left: 4px solid #f97316; }
.app-popup-error { border-left: 4px solid #ef4444; }
.app-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem 0.5rem;
  font-size: 0.9rem;
}
.app-popup-body {
  padding: 0 1rem 1rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #334155;
}
.app-popup-close {
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.app-popup.closing {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
@keyframes popupIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)   scale(1);    }
}
@media (max-width: 640px) {
  .app-popup-root {
    top: auto;
    right: 1rem;
    bottom: 1rem;
    width: calc(100vw - 2rem);
  }
}

/* ---------- FAQ Section ---------- */
.faq-section {
  background: #fff;
  padding: 5rem 0;
}
.faq-list {
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.2s;
}
.faq-item[open] {
  border-color: var(--color-brand-orange);
}
.faq-question {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0f172a;
  padding: 1.125rem 1.25rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  user-select: none;
  transition: background 0.15s;
}
.faq-question:hover { background: #fafafa; }
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-brand-orange);
  flex-shrink: 0;
  line-height: 1;
}
.faq-item[open] .faq-question::after { content: "\2212"; }
.faq-answer {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.75;
  border-top: 1px solid #f1f5f9;
}

/* ── Merged FAQ + Contact form section ── */
.consult-faq-section {
  padding: 6rem 0;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}
.consult-faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: start;
}
.consult-faq-column,
.consult-form-column { min-width: 0; }
.consult-faq-column .section-title { text-align: left; }
.consult-faq-column .section-sub { text-align: left; margin-left: 0; margin-right: 0; }
.consult-faq-column .faq-list { max-width: none; margin: 0; }
.consult-form-column .form-card { max-width: none; margin: 0; }
.consult-form-column .form-card {
  position: sticky;
  top: 6rem;
}
@media (max-width: 1023px) {
  .consult-faq-layout { grid-template-columns: 1fr; gap: 2rem; }
  .consult-form-column { order: 1; }
  .consult-faq-column { order: 2; }
  .consult-form-column .form-card { position: relative; top: auto; }
}
