:root {
  --ink: #14213d;
  --muted: #657087;
  --line: #e5e9f2;
  --panel: #ffffff;
  --soft: #f6f8fc;
  --orange: #ff8a1f;
  --orange-dark: #e66f08;
  --blue: #1d4ed8;
  --green: #18a36b;
  --shadow: 0 18px 50px rgba(20, 33, 61, .10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, #fffaf4 0%, #f8fbff 45%, #eef5ff 100%);
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
.announcement {
  background: var(--ink); color: #fff; text-align: center; padding: 8px 16px; font-size: 13px; letter-spacing: .02em;
}
.site-header {
  width: min(1280px, calc(100% - 40px)); margin: 0 auto; height: 78px; display: flex; align-items: center; gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.brand b { color: var(--orange); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, var(--orange), #ffb25f); box-shadow: 0 8px 20px rgba(255, 138, 31, .25);
}
.nav-links { display: flex; gap: 24px; margin-left: 16px; font-size: 14px; color: #4b5870; }
.nav-links a:hover { color: var(--ink); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; box-shadow: 0 5px 16px rgba(20,33,61,.05); }
.live-pill i { width: 8px; height: 8px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 4px rgba(24,163,107,.1); }
.cart-button { border: 0; background: var(--ink); color: white; padding: 10px 14px; border-radius: 12px; }
.cart-button span { display: inline-grid; place-items: center; width: 22px; height: 22px; background: var(--orange); border-radius: 50%; margin-left: 6px; }
main { width: min(1280px, calc(100% - 40px)); margin: 0 auto; }
.hero { min-height: 560px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 50px; padding: 44px 0 60px; }
.eyebrow { display: inline-block; color: var(--orange-dark); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 12px; }
.hero h1 { font-size: clamp(44px, 5vw, 72px); line-height: .98; letter-spacing: -.055em; margin: 0 0 22px; max-width: 760px; }
.hero h1 span { color: var(--orange); }
.hero p { max-width: 650px; font-size: 18px; line-height: 1.65; color: var(--muted); margin: 0; }
.hero-actions { display: flex; gap: 12px; margin: 30px 0; flex-wrap: wrap; }
.primary-btn, .secondary-btn { border-radius: 14px; padding: 14px 20px; font-weight: 750; border: 1px solid transparent; }
.primary-btn { background: var(--orange); color: #151515; box-shadow: 0 12px 24px rgba(255,138,31,.2); }
.primary-btn:hover { background: #ff9a3c; }
.secondary-btn { background: #fff; color: var(--ink); border-color: var(--line); }
.hero-stats { display: flex; gap: 32px; }
.hero-stats div { display: grid; gap: 2px; }
.hero-stats strong { font-size: 23px; }
.hero-stats span { color: var(--muted); font-size: 12px; }
.hero-visual { height: 460px; position: relative; display: grid; place-items: center; }
.orb { position: absolute; border-radius: 50%; filter: blur(2px); }
.orb-one { width: 340px; height: 340px; background: radial-gradient(circle, #ffe0bd 0%, rgba(255,224,189,0) 70%); }
.orb-two { width: 360px; height: 360px; background: radial-gradient(circle, #dbeafe 0%, rgba(219,234,254,0) 72%); transform: translate(80px, 30px); }
.hero-card { position: absolute; background: rgba(255,255,255,.92); border: 1px solid rgba(255,255,255,.9); box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.main-card { width: 310px; min-height: 330px; border-radius: 28px; padding: 28px; text-align: center; transform: rotate(-2deg); }
.main-card .mini-label { display: inline-block; padding: 6px 10px; border-radius: 999px; font-size: 11px; background: #fff4e8; color: var(--orange-dark); font-weight: 800; }
.product-emoji { font-size: 78px; margin: 24px 0 10px; }
.main-card h3 { margin: 8px 0 6px; font-size: 22px; }
.main-card p { font-size: 13px; line-height: 1.4; margin: 0; }
.price-row { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; border-top: 1px solid var(--line); padding-top: 18px; }
.price-row strong { font-size: 22px; }
.price-row span { font-size: 13px; color: #7b6114; }
.float-card { padding: 13px 16px; border-radius: 16px; font-weight: 700; font-size: 13px; display: flex; gap: 8px; align-items: center; }
.float-card.one { top: 70px; right: 10px; }
.float-card.two { bottom: 70px; left: 18px; }
.store-section, .agent-section, .architecture { padding: 76px 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
.section-heading h2 { font-size: 38px; letter-spacing: -.04em; margin: 0; }
.section-heading.compact { margin-bottom: 34px; }
.catalog-search { width: min(380px, 100%); display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; box-shadow: 0 6px 18px rgba(20,33,61,.05); }
.catalog-search input { width: 100%; border: 0; outline: none; background: transparent; padding: 13px 0; color: var(--ink); }
.category-row { display: flex; gap: 9px; overflow-x: auto; padding-bottom: 8px; }
.category-row button { white-space: nowrap; border: 1px solid var(--line); background: #fff; padding: 9px 14px; border-radius: 999px; color: #4d5970; }
.category-row button.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.catalog-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; margin: 14px 0 18px; }
.text-button { border: 0; background: transparent; color: var(--orange-dark); font-weight: 700; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-card { background: rgba(255,255,255,.95); border: 1px solid var(--line); border-radius: 22px; padding: 18px; box-shadow: 0 12px 34px rgba(20,33,61,.06); transition: transform .2s ease, box-shadow .2s ease; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(20,33,61,.10); }
.product-top { height: 150px; border-radius: 17px; background: linear-gradient(145deg, #f4f7fb, #edf3fb); display: grid; place-items: center; position: relative; }
.product-top .emoji { font-size: 58px; }
.badge { position: absolute; top: 10px; left: 10px; font-size: 10px; font-weight: 800; color: var(--orange-dark); background: #fff5e9; padding: 6px 8px; border-radius: 999px; }
.category-label { margin-top: 14px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.product-card h3 { margin: 6px 0 8px; font-size: 17px; }
.specs { min-height: 42px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.rating { font-size: 12px; color: #7b6114; margin: 9px 0 12px; }
.product-price { display: flex; align-items: baseline; gap: 8px; }
.product-price strong { font-size: 20px; }
.product-price del { color: #9aa4b6; font-size: 12px; }
.product-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 14px; }
.product-actions button { border-radius: 11px; padding: 10px 12px; border: 1px solid var(--line); font-weight: 750; }
.add-cart { background: var(--ink); color: white; border-color: var(--ink) !important; }
.ask-product { background: #fff; color: var(--ink); }
.agent-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 30px; align-items: stretch; }
.agent-info, .chat-card { background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); }
.agent-info { padding: 34px; }
.agent-info h2 { font-size: 40px; letter-spacing: -.04em; margin: 0 0 12px; }
.agent-info > p { color: var(--muted); line-height: 1.6; }
.tool-list { display: grid; gap: 10px; margin: 26px 0; }
.tool-list button { width: 100%; text-align: left; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); background: var(--soft); border-radius: 16px; padding: 13px; color: var(--ink); }
.tool-list button:hover { border-color: #ffc98f; background: #fff9f2; }
.tool-list button > span { width: 36px; height: 36px; background: var(--ink); color: white; display: grid; place-items: center; border-radius: 10px; font-weight: 800; }
.tool-list div { display: grid; gap: 3px; }
.tool-list small, .demo-orders { color: var(--muted); font-size: 12px; }
.chat-card { min-height: 560px; display: grid; grid-template-rows: auto 1fr auto auto; overflow: hidden; }
.chat-header { display: flex; align-items: center; gap: 10px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.assistant-avatar { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: white; font-weight: 900; background: linear-gradient(145deg, var(--orange), #ffb25f); }
.chat-header > div:nth-child(2) { display: grid; gap: 2px; }
.chat-header small { color: var(--muted); }
.mode-badge { margin-left: auto; font-size: 10px; font-weight: 900; padding: 6px 9px; border-radius: 999px; background: #e8fff5; color: #0b7b50; }
.mode-badge.fallback { background: #fff4e8; color: #a65300; }
.messages { padding: 22px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; min-height: 320px; max-height: 430px; }
.message { max-width: 84%; padding: 13px 15px; border-radius: 16px; line-height: 1.5; font-size: 14px; white-space: pre-wrap; }
.message.assistant { align-self: flex-start; background: #f0f4f9; }
.message.user { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 5px; }
.message.error { background: #fff1f1; color: #9b1c1c; }
.demo-prompt-panel { border-top: 1px solid var(--line); background: #fbfcfe; padding: 16px 18px 14px; }
.demo-prompt-heading { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 12px; }
.demo-prompt-heading > div { display: grid; gap: 3px; }
.demo-prompt-heading b { font-size: 14px; }
.demo-prompt-heading small, .demo-prompt-heading > span { color: var(--muted); font-size: 11px; }
.demo-prompt-heading > span { white-space: nowrap; }
.demo-prompt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.demo-prompt { min-width: 0; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 13px; padding: 11px 12px; color: var(--ink); display: grid; gap: 4px; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.demo-prompt:hover { border-color: #ffc98f; background: #fff9f2; transform: translateY(-1px); }
.demo-prompt b { font-size: 12px; }
.demo-prompt small { color: var(--muted); font-size: 11px; line-height: 1.35; overflow-wrap: anywhere; }
.prompt-tag { width: max-content; font-size: 9px; line-height: 1; letter-spacing: .06em; font-weight: 900; color: #315f8a; background: #eef6ff; border-radius: 999px; padding: 5px 7px; }
.prompt-tag.danger { color: #9b1c1c; background: #fff1f1; }
.quick-prompts { display: flex; gap: 8px; overflow-x: auto; padding: 12px 18px; border-top: 1px solid var(--line); }
.quick-prompts button { white-space: nowrap; border: 1px solid var(--line); background: white; border-radius: 999px; padding: 8px 11px; color: #4f5b72; font-size: 12px; }
.chat-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 14px 18px 18px; }
.chat-form input { border: 1px solid #cfd7e5; border-radius: 14px; outline: none; padding: 13px 14px; }
.chat-form input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,138,31,.12); }
.chat-form button { border: 0; background: var(--orange); color: #161616; border-radius: 14px; padding: 0 20px; font-weight: 800; }
.architecture { padding-bottom: 90px; }
.architecture-flow { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.9); border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: 0 12px 34px rgba(20,33,61,.06); overflow-x: auto; }
.architecture-flow > div { min-width: 125px; padding: 12px; text-align: center; border-radius: 14px; background: var(--soft); display: grid; gap: 4px; }
.architecture-flow small { color: var(--muted); font-size: 11px; }
.architecture-flow > span { color: var(--orange); font-weight: 900; }
.architecture-note { color: var(--muted); font-size: 13px; line-height: 1.6; margin-top: 14px; }
.toast { position: fixed; right: 24px; bottom: 24px; background: var(--ink); color: white; padding: 12px 16px; border-radius: 12px; opacity: 0; transform: translateY(10px); pointer-events: none; transition: all .2s ease; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translateY(0); }
footer { width: min(1280px, calc(100% - 40px)); margin: 0 auto; padding: 30px 0 42px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12px; }
footer .brand { font-size: 17px; color: var(--ink); }
footer .brand-mark { width: 30px; height: 30px; border-radius: 9px; }
@media (max-width: 1050px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 65px; }
  .hero-visual { display: none; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .agent-section { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .site-header, main, footer { width: min(100% - 24px, 1280px); }
  .site-header { height: 68px; }
  .live-pill { display: none; }
  .brand { font-size: 18px; }
  .hero { min-height: auto; padding: 55px 0; }
  .hero h1 { font-size: 46px; }
  .hero p { font-size: 16px; }
  .hero-stats { gap: 18px; }
  .section-heading { align-items: stretch; flex-direction: column; }
  .catalog-search { width: 100%; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .agent-info { padding: 24px; }
  .agent-info h2 { font-size: 34px; }
  footer { flex-direction: column; gap: 12px; align-items: flex-start; }
}
@media (max-width: 520px) {
  .product-grid { grid-template-columns: 1fr; }
  .hero-actions { display: grid; }
  .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); }
  .chat-card { min-height: 600px; }
  .demo-prompt-grid { grid-template-columns: 1fr; }
  .demo-prompt-heading { align-items: flex-start; flex-direction: column; }
}
.message.system-note { font-size: 12px; background: #eef6ff; color: #315f8a; border: 1px dashed #b9d7f1; }
