/* POLYMESH · demo.css — /demo pitch page.
   Built strictly on base.css tokens: dark-first canvas, hairline strokes, scarce
   indigo, tight radii. No one-off colors — if something needs a new value it gets
   a token there first. */

/* ---------- page frame ---------- */
.demo-nav-cta { display: flex; align-items: center; gap: 10px; }

.demo-hero { padding: 120px 24px 72px; text-align: center; position: relative; }
.demo-hero .chip { margin-bottom: 22px; }
.demo-hero h1 { font-size: clamp(34px, 5.2vw, 58px); font-weight: 650; letter-spacing: -0.03em; line-height: 1.05; margin: 0 auto 18px; max-width: 900px; }
.demo-hero p.sub { color: var(--ink-dim); font-size: 17px; line-height: 1.6; max-width: 680px; margin: 0 auto 30px; }
.demo-hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.demo-wrap { max-width: 1060px; margin: 0 auto; padding: 0 24px; }

.demo-sec { padding: 64px 0; border-top: 1px solid var(--line); }
.demo-kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 14px; }
.demo-h2 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 640; letter-spacing: -0.02em; margin: 0 0 10px; }
.demo-lede { color: var(--ink-dim); max-width: 720px; margin: 0 0 34px; line-height: 1.6; }

/* ---------- problem / solution ---------- */
.ps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .ps-grid { grid-template-columns: 1fr; } }
.ps-card { background: var(--bg1); border: 1px solid var(--line); border-radius: var(--r-md, 10px); padding: 26px 26px 22px; }
.ps-card h3 { margin: 0 0 16px; font-size: 17px; font-weight: 620; display: flex; align-items: center; gap: 10px; }
.ps-card .tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-dim); }
.ps-card--problem h3 .tag { color: var(--err-ink); border-color: rgba(255, 92, 92, 0.35); }
.ps-card--solution h3 .tag { color: var(--ok); border-color: rgba(39, 166, 68, 0.4); }
.ps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.ps-list li { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; padding-left: 20px; position: relative; }
.ps-list li::before { content: ''; position: absolute; left: 2px; top: 8px; width: 6px; height: 6px; border-radius: 2px; background: var(--line-2); }
.ps-card--solution .ps-list li::before { background: var(--brand); }
.ps-list b { color: var(--ink); font-weight: 600; }

/* ---------- team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } }
.team-card { background: var(--bg1); border: 1px solid var(--line); border-radius: var(--r-md, 10px); padding: 22px 20px; display: flex; flex-direction: column; gap: 12px; }
.team-av { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: var(--ink); }
.team-role { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-ink); }
.team-name { font-size: 15.5px; font-weight: 620; color: var(--ink); }
.team-name small { display: block; font-weight: 400; color: var(--ink-faint); font-size: 12px; margin-top: 3px; }
.skill-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-chips span { font-size: 11.5px; padding: 3px 9px; border-radius: 999px; background: var(--bg2); border: 1px solid var(--line); color: var(--ink-dim); }
.team-links { margin-top: auto; display: flex; gap: 14px; }
.team-links a { font-size: 12.5px; color: var(--ink-dim); text-decoration: none; border-bottom: 1px dashed var(--line-2); padding-bottom: 1px; }
.team-links a:hover { color: var(--ink); border-bottom-color: var(--brand); }

/* ---------- why us ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .why-grid { grid-template-columns: 1fr; } }
.why-card { border: 1px solid var(--line); background: var(--bg1); border-radius: var(--r-md, 10px); padding: 20px 22px; }
.why-card h4 { margin: 0 0 8px; font-size: 15px; font-weight: 620; display: flex; gap: 10px; align-items: center; }
.why-card h4 .num { font-family: var(--font-mono); font-size: 11px; color: var(--brand-2); border: 1px solid var(--brand-edge); border-radius: 6px; padding: 1px 7px; }
.why-card p { margin: 0; color: var(--ink-dim); font-size: 13.5px; line-height: 1.6; }

/* ---------- roadmap ---------- */
.road { display: grid; gap: 0; position: relative; margin-top: 8px; }
.road-item { display: grid; grid-template-columns: 22px 150px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.road-item:last-child { border-bottom: none; }
.road-dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 5px; border: 2px solid var(--line-2); background: var(--bg0); }
.road-item.done .road-dot { border-color: var(--ok); background: var(--ok); box-shadow: 0 0 0 4px rgba(39, 166, 68, 0.15); }
.road-item.now .road-dot { border-color: var(--brand); background: var(--brand); box-shadow: 0 0 0 4px rgba(94, 106, 210, 0.18); }
.road-when { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); padding-top: 3px; }
.road-body h4 { margin: 0 0 4px; font-size: 15.5px; font-weight: 620; }
.road-body h4 .pill { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; border-radius: 999px; padding: 2px 9px; margin-left: 10px; vertical-align: 1px; }
.road-item.done .pill { color: var(--ok); border: 1px solid rgba(39, 166, 68, 0.4); }
.road-item.now .pill { color: var(--on-brand); background: var(--brand-soft); border: 1px solid var(--brand-edge); }
.road-item.next .pill { color: var(--ink-faint); border: 1px solid var(--line-2); }
.road-body p { margin: 0; color: var(--ink-dim); font-size: 13.5px; line-height: 1.55; }
@media (max-width: 640px) { .road-item { grid-template-columns: 22px 1fr; } .road-when { grid-column: 2; padding-top: 0; margin-top: -2px; } .road-body { grid-column: 2; } }

/* ---------- implementation plan ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 760px) { .plan-grid { grid-template-columns: 1fr; } }
.plan-card { background: var(--bg1); border: 1px solid var(--line); border-radius: var(--r-md, 10px); padding: 22px; }
.plan-card .stage { font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); letter-spacing: 0.1em; }
.plan-card h4 { margin: 6px 0 8px; font-size: 16px; font-weight: 620; }
.plan-card p { margin: 0 0 12px; color: var(--ink-dim); font-size: 13.5px; line-height: 1.6; }
.plan-tech { display: flex; flex-wrap: wrap; gap: 6px; }
.plan-tech span { font-family: var(--font-mono); font-size: 10.5px; padding: 3px 8px; border-radius: 6px; background: var(--grad-soft); color: var(--on-brand); border: 1px solid var(--brand-edge); }

/* ---------- demo video ---------- */
.video-frame { position: relative; border: 1px solid var(--line); border-radius: 12px; background: var(--viewport); aspect-ratio: 16 / 9; overflow: hidden; display: grid; place-items: center; }
.video-frame video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
.video-empty { text-align: center; color: var(--ink-dim); padding: 30px; }
.video-empty .play-ring { width: 74px; height: 74px; margin: 0 auto 18px; border-radius: 50%; border: 1.5px solid var(--brand-edge); display: grid; place-items: center; background: var(--brand-soft); }
.video-empty .play-ring svg { margin-left: 4px; }
.video-empty h4 { margin: 0 0 6px; color: var(--ink); font-size: 16px; font-weight: 620; }
.video-empty p { margin: 0; font-size: 13px; }
/* vertical stack — every clip has its own player, no switching UI */
.video-stack { display: grid; gap: 26px; }
.video-stack > .video-empty { border: 1px solid var(--line); border-radius: 12px; background: var(--viewport); aspect-ratio: 16 / 9; display: grid; place-items: center; text-align: center; }
.video-stack:has(.video-item) .video-empty { display: none; }
.video-item video { width: 100%; display: block; border: 1px solid var(--line); border-radius: 12px; background: #000; aspect-ratio: 16 / 9; object-fit: contain; }
.video-item + .video-item { padding-top: 26px; border-top: 1px solid var(--line); }
.video-item .video-meta { margin-top: 10px; }
.video-item .video-cap { color: var(--ink-dim); font-size: 14px; line-height: 1.55; margin: 8px 0 0; max-width: 760px; }
.video-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.video-tabs[hidden] { display: none; }
.vt-chip { appearance: none; cursor: pointer; font: 500 12.5px/1 var(--font-mono); color: var(--ink-dim); background: var(--bg2, var(--viewport-2)); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; transition: color .15s, border-color .15s, background .15s; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vt-chip:hover { color: var(--ink); border-color: var(--brand-edge); }
.vt-chip.active { color: #fff; background: var(--brand); border-color: var(--brand-edge); }
.video-meta { display: flex; justify-content: space-between; gap: 14px; margin-top: 12px; color: var(--ink-faint); font-size: 12px; font-family: var(--font-mono); flex-wrap: wrap; }

/* upload panel */
.upl { margin-top: 22px; background: var(--bg1); border: 1px solid var(--line); border-radius: var(--r-md, 10px); padding: 22px; display: grid; gap: 14px; }
.upl h4 { margin: 0; font-size: 15px; font-weight: 620; }
.upl .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .upl .row { grid-template-columns: 1fr; } }
.upl label { display: block; font-size: 12px; color: var(--ink-dim); margin-bottom: 6px; font-family: var(--font-mono); letter-spacing: 0.06em; }
.upl input[type="text"], .upl textarea {
  width: 100%; box-sizing: border-box; background: var(--bg0); color: var(--ink);
  border: 1px solid var(--line-2); border-radius: 8px; padding: 10px 12px; font-size: 14px; font-family: inherit;
}
.upl textarea { min-height: 84px; resize: vertical; line-height: 1.5; }
.upl input[type="text"]:focus, .upl textarea:focus { outline: none; border-color: var(--brand-edge); box-shadow: 0 0 0 3px rgba(94, 106, 210, 0.16); }
.upl-file { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.upl-file .fname { font-size: 12.5px; color: var(--ink-dim); font-family: var(--font-mono); }
.upl-note { font-size: 12.5px; color: var(--ink-faint); line-height: 1.5; }
.upl-note a { color: var(--accent-ink); }
.upl-progress { height: 6px; border-radius: 999px; background: var(--bg2); overflow: hidden; display: none; }
.upl-progress.on { display: block; }
.upl-progress i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .2s ease; }
.upl-status { font-size: 12.5px; font-family: var(--font-mono); min-height: 16px; }
.upl-status.ok { color: var(--ok); }
.upl-status.err { color: var(--err-ink); }

/* ---------- prototype link ---------- */
.proto-band { display: flex; align-items: center; justify-content: space-between; gap: 18px; background: var(--grad-soft); border: 1px solid var(--brand-edge); border-radius: 12px; padding: 24px 26px; flex-wrap: wrap; }
.proto-band h3 { margin: 0 0 4px; font-size: 18px; font-weight: 630; }
.proto-band p { margin: 0; color: var(--ink-dim); font-size: 13.5px; }
.proto-band code { font-family: var(--font-mono); font-size: 12px; color: var(--on-brand); }

/* ---------- chatbot ---------- */
.chat-shell { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: stretch; }
@media (max-width: 860px) { .chat-shell { grid-template-columns: 1fr; } }
.chat-about { color: var(--ink-dim); font-size: 14px; line-height: 1.65; }
.chat-about .note { margin-top: 14px; font-size: 12.5px; color: var(--ink-faint); border-left: 2px solid var(--line-2); padding-left: 12px; }
.chat-box { background: var(--bg1); border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; min-height: 430px; overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.chat-head .st { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px rgba(39, 166, 68, .7); }
.chat-head b { font-size: 13.5px; }
.chat-head span { font-size: 11.5px; color: var(--ink-faint); font-family: var(--font-mono); margin-left: auto; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.chat-msg { max-width: 86%; padding: 10px 13px; border-radius: 12px; font-size: 13.5px; line-height: 1.55; }
.chat-msg--bot { align-self: flex-start; background: var(--bg2); border: 1px solid var(--line); color: var(--ink-2); border-bottom-left-radius: 4px; }
.chat-msg--bot b { color: var(--ink); }
.chat-msg--user { align-self: flex-end; background: var(--brand-soft); border: 1px solid var(--brand-edge); color: var(--ink); border-bottom-right-radius: 4px; }
.chat-msg.typing { display: flex; gap: 5px; padding: 12px 14px; }
.chat-msg.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-faint); animation: chatdot 1s infinite; }
.chat-msg.typing span:nth-child(2) { animation-delay: .15s; }
.chat-msg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chatdot { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.chat-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 10px 14px; border-top: 1px solid var(--line); }
.chat-chip { font-size: 11.5px; padding: 5px 11px; border-radius: 999px; background: var(--bg2); border: 1px solid var(--line-2); color: var(--ink-dim); cursor: pointer; transition: color .15s ease, border-color .15s ease; }
.chat-chip:hover { color: var(--ink); border-color: var(--brand-edge); }
.chat-form { display: flex; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; background: var(--bg0); border: 1px solid var(--line-2); border-radius: 8px; color: var(--ink); padding: 10px 12px; font-size: 13.5px; }
.chat-form input:focus { outline: none; border-color: var(--brand-edge); }

/* ---------- API access ---------- */
.api-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; }
@media (max-width: 860px) { .api-grid { grid-template-columns: 1fr; } }
.api-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.api-table th { text-align: left; color: var(--ink-faint); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; padding: 8px 10px; border-bottom: 1px solid var(--line); font-weight: 500; }
.api-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.api-table tr:last-child td { border-bottom: none; }
.api-table .m { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; padding: 2px 7px; border-radius: 5px; margin-right: 8px; white-space: nowrap; }
.api-table .m.get { color: var(--ok); border: 1px solid rgba(39, 166, 68, .4); }
.api-table .m.post { color: var(--on-brand); border: 1px solid var(--brand-edge); }
.api-table .m.del { color: var(--err-ink); border: 1px solid rgba(255, 92, 92, .35); }
.api-table .m.patch { color: var(--warn); border: 1px solid rgba(242, 169, 59, .35); }
.api-table code { font-family: var(--font-mono); font-size: 12px; color: var(--ink); }
.api-card { background: var(--bg1); border: 1px solid var(--line); border-radius: var(--r-md, 10px); padding: 18px 20px; }
.api-card h4 { margin: 0 0 10px; font-size: 14px; font-weight: 620; }
pre.api-pre { margin: 0; padding: 14px 16px; background: var(--bg0); border: 1px solid var(--line-2); border-radius: 8px; overflow-x: auto; font-family: var(--font-mono); font-size: 12px; line-height: 1.65; color: var(--ink-2); }
pre.api-pre .c { color: var(--ink-faint); }
pre.api-pre .s { color: #9ece6a; }
pre.api-pre .k { color: var(--accent-ink); }
.api-actions { display: flex; align-items: center; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.api-live { font-family: var(--font-mono); font-size: 12px; color: var(--ink-dim); display: inline-flex; align-items: center; gap: 8px; }
.api-live .st { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.api-live .st.up { background: var(--ok); box-shadow: 0 0 8px rgba(39, 166, 68, .7); }
.api-live .st.down { background: var(--err); }

.demo-foot { border-top: 1px solid var(--line); padding: 30px 24px 44px; text-align: center; color: var(--ink-faint); font-size: 12.5px; }
.demo-foot a { color: var(--ink-dim); }
