@font-face {
  font-family: "YekanBakh";
  src: url("yekanbakh-regular.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f5f7f5;
  --bg-soft: #eef2ef;
  --surface: #ffffff;
  --surface-soft: #f7f9f7;
  --ink: #102027;
  --ink-soft: #263941;
  --muted: #6b7a80;
  --line: #dfe7e3;
  --line-strong: #cdd9d4;
  --primary: #0a7c67;
  --primary-dark: #075c4d;
  --primary-light: #dff4ed;
  --mint: #55cbb0;
  --accent: #efb15a;
  --accent-light: #fff2dc;
  --danger: #cf554f;
  --dark: #0e191e;
  --dark-soft: #18292e;
  --shadow-sm: 0 8px 30px rgba(26, 46, 54, 0.06);
  --shadow: 0 28px 80px rgba(21, 39, 46, 0.12);
  --radius-sm: 14px;
  --radius: 24px;
  --radius-lg: 36px;
  --container: 1240px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c1418;
  --bg-soft: #111d21;
  --surface: #142126;
  --surface-soft: #18282d;
  --ink: #edf5f2;
  --ink-soft: #c5d3d0;
  --muted: #91a29f;
  --line: #29393d;
  --line-strong: #35494d;
  --primary: #51c9ad;
  --primary-dark: #75dac3;
  --primary-light: #163930;
  --accent-light: #3a2d1d;
  --dark: #071014;
  --dark-soft: #101e23;
  --shadow-sm: 0 8px 30px rgba(0, 0, 0, 0.18);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body, button, input, textarea, select { font-family: "YekanBakh", Tahoma, sans-serif; }
body { margin: 0; color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.75; overflow-x: hidden; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
svg { width: 1.35em; height: 1.35em; flex: 0 0 auto; }
img { display: block; max-width: 100%; }
::selection { color: #fff; background: var(--primary); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 45%, transparent); outline-offset: 3px; }

.site-container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 200; top: 12px; right: 12px; padding: 10px 16px; color: #fff; background: var(--dark); border-radius: 12px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.section { padding: 116px 0; }
.section-kicker { display: inline-flex; align-items: center; gap: 9px; color: var(--primary); font-size: 13px; font-weight: 800; }
.section-kicker i { width: 18px; height: 2px; background: currentColor; border-radius: 4px; }
.section-kicker.light { color: #77ddc6; }
.section-heading { max-width: 590px; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-heading.split { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.section-heading.split > div { max-width: 700px; }
.section-heading.split > p { max-width: 390px; }
.section-heading h2 { margin: 12px 0 14px; font-size: clamp(34px, 4vw, 56px); line-height: 1.22; letter-spacing: -0.035em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.95; }

.button { min-height: 48px; padding: 11px 20px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent; border-radius: 14px; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--primary); box-shadow: 0 12px 28px color-mix(in srgb, var(--primary) 22%, transparent); }
.button-primary:hover { background: var(--primary-dark); }
.button-secondary { color: var(--ink); background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-sm); }
.button-light { color: #10231e; background: #effff9; box-shadow: 0 14px 34px rgba(0, 0, 0, .18); }
.button-outline-light { color: #fff; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .23); }
.button-small { min-height: 43px; padding: 8px 17px; border-radius: 12px; }
.button-large { min-height: 56px; padding: 14px 23px; border-radius: 16px; }
.inline-cta { margin-top: 22px; display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font-weight: 900; }
.inline-cta svg, .button svg { transition: transform .2s ease; }
.inline-cta:hover svg, .button:hover svg { transform: translateX(-4px); }
.icon-button { width: 43px; height: 43px; padding: 0; display: inline-grid; place-items: center; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 13px; }

.site-header { position: fixed; z-index: 100; top: 0; right: 0; left: 0; transition: .25s ease; }
.site-header.is-scrolled { background: color-mix(in srgb, var(--bg) 88%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); backdrop-filter: blur(18px); }
.header-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { position: relative; width: 43px; height: 43px; display: grid; place-items: center; overflow: hidden; color: #eafff8; background: var(--dark); border-radius: 14px; font-weight: 900; line-height: 1; letter-spacing: -1px; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; display: block; }
.brand-mark span { position: absolute; left: -9px; bottom: -9px; width: 24px; height: 24px; background: var(--mint); border-radius: 50%; }
.brand-copy { display: grid; line-height: 1.25; }
.brand-copy strong { font-size: 19px; font-weight: 900; }
.brand-copy small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.desktop-nav { display: flex; align-items: center; gap: 3px; }
.desktop-nav a { padding: 9px 11px; color: var(--muted); border-radius: 10px; font-size: 13px; font-weight: 700; transition: .2s ease; }
.desktop-nav a:hover { color: var(--ink); background: var(--surface); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.text-link { padding: 8px 10px; color: var(--ink-soft); font-weight: 800; }
.menu-toggle { display: none; }

.mobile-drawer { position: fixed; z-index: 150; inset: 0; visibility: hidden; pointer-events: none; }
.mobile-drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(5, 14, 17, .55); opacity: 0; transition: opacity .25s ease; backdrop-filter: blur(4px); }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); padding: 22px; display: flex; flex-direction: column; color: var(--ink); background: var(--surface); box-shadow: -24px 0 60px rgba(0, 0, 0, .22); transform: translateX(105%); transition: transform .28s ease; }
.mobile-drawer.is-open .drawer-backdrop { opacity: 1; }
.mobile-drawer.is-open .drawer-panel { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.drawer-panel nav { margin-top: 18px; display: grid; }
.drawer-panel nav a { padding: 13px 5px; color: var(--ink-soft); border-bottom: 1px solid var(--line); font-weight: 800; }
.drawer-actions { margin-top: auto; display: grid; gap: 10px; }

.hero-section { position: relative; min-height: 820px; padding: 150px 0 84px; overflow: hidden; background: radial-gradient(circle at 11% 22%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 28%), radial-gradient(circle at 87% 8%, color-mix(in srgb, var(--mint) 16%, transparent), transparent 25%), linear-gradient(180deg, var(--surface-soft), var(--bg)); }
.hero-section::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 120px; background: linear-gradient(180deg, transparent, var(--bg)); }
.hero-grid-bg { position: absolute; inset: 0; opacity: .42; background-image: linear-gradient(color-mix(in srgb, var(--line) 65%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--line) 65%, transparent) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(180deg, #000, transparent 80%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: .94fr 1.06fr; align-items: center; gap: 56px; }
.hero-copy h1 { max-width: 680px; margin: 18px 0 20px; font-size: clamp(48px, 5.3vw, 76px); line-height: 1.1; letter-spacing: -0.05em; font-weight: 900; }
.hero-lead { max-width: 620px; margin: 0; color: var(--muted); font-size: 18px; line-height: 2; }
.hero-actions { margin-top: 30px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.trust-note { margin: 21px 0 0; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.trust-note svg { color: var(--primary); }

.hero-product { position: relative; min-width: 0; direction: rtl; }
.hero-uploaded-visual { position: relative; z-index: 2; border-radius: 30px; overflow: hidden; box-shadow: 0 30px 90px rgba(10,24,30,.2); border: 1px solid rgba(255,255,255,.75); background: #fff; }
.hero-uploaded-visual img { width: 100%; aspect-ratio: 1.12; object-fit: cover; display: block; }
.product-glow { position: absolute; inset: 12% 5% 2%; background: color-mix(in srgb, var(--primary) 18%, transparent); filter: blur(55px); border-radius: 50%; }
.dashboard-window { position: relative; overflow: hidden; color: #14242a; background: #f7f9f8; border: 1px solid rgba(255, 255, 255, .9); border-radius: 24px; box-shadow: 0 38px 90px rgba(17, 42, 49, .2), 0 4px 0 rgba(255, 255, 255, .8) inset; transform: perspective(1300px) rotateY(4deg) rotateX(1deg); transform-origin: center; }
.window-topbar { height: 55px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #dce7e7; background: #0d181d; }
.window-brand { display: flex; align-items: center; gap: 8px; }
.window-brand span { width: 28px; height: 28px; display: grid; place-items: center; color: #0d2c25; background: #58cbb1; border-radius: 9px; font-size: 10px; font-weight: 900; }
.window-brand b { font-size: 10px; }
.window-status { display: flex; align-items: center; gap: 6px; color: #9eb0b3; font-size: 8px; }
.window-status i { width: 6px; height: 6px; background: #5bd2a7; border-radius: 50%; box-shadow: 0 0 0 4px rgba(91, 210, 167, .12); }
.window-user { width: 32px; height: 32px; display: grid; place-items: center; color: #1d3d35; background: #dff3ed; border-radius: 10px; font-size: 8px; font-weight: 800; }
.window-layout { min-height: 490px; display: grid; grid-template-columns: 52px 1fr; }
.window-sidebar { padding: 22px 10px; display: flex; flex-direction: column; align-items: center; gap: 18px; background: #132229; }
.window-sidebar span { width: 21px; height: 7px; background: #2f4146; border-radius: 5px; }
.window-sidebar span.active { width: 28px; height: 28px; background: #55cbb0; border-radius: 9px; }
.window-main { padding: 22px; min-width: 0; }
.window-heading { display: flex; align-items: center; justify-content: space-between; }
.window-heading div { display: grid; }
.window-heading small { color: #879397; font-size: 8px; }
.window-heading strong { font-size: 14px; }
.window-heading button, .control-footer button, .prompt-result button { padding: 7px 10px; color: #fff; background: #0a7c67; border: 0; border-radius: 8px; font-size: 8px; }
.window-metrics { margin-top: 17px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.window-metrics > div { position: relative; min-height: 75px; padding: 12px; display: grid; overflow: hidden; background: #fff; border: 1px solid #e3e9e6; border-radius: 12px; }
.window-metrics small { color: #7d898d; font-size: 7px; }
.window-metrics b { font-size: 18px; }
.window-metrics i { position: absolute; left: -14px; bottom: -18px; width: 52px; height: 52px; background: #dff4ed; border-radius: 50%; }
.window-metrics i.gold { background: #fff0d9; }
.window-metrics i.ink { background: #e8edef; }
.window-content-grid { margin-top: 9px; display: grid; grid-template-columns: 1.22fr .78fr; gap: 8px; }
.pipeline-card, .chart-card { min-width: 0; padding: 13px; background: #fff; border: 1px solid #e3e9e6; border-radius: 13px; }
.mini-card-head { display: flex; align-items: center; justify-content: space-between; }
.mini-card-head strong { font-size: 9px; }
.mini-card-head span { color: #0a7c67; background: #e5f6f0; border-radius: 12px; padding: 3px 6px; font-size: 6px; }
.pipeline-row { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 3px; direction: rtl; }
.pipeline-row > div { min-width: 55px; padding: 8px 5px; display: grid; justify-items: center; gap: 2px; background: #f6f8f7; border: 1px solid #e7ece9; border-radius: 9px; text-align: center; }
.pipeline-row > div.active { color: #fff; background: #0f2728; border-color: #0f2728; }
.pipeline-row i { width: 20px; height: 20px; display: grid; place-items: center; color: #0a7c67; background: #e2f4ee; border-radius: 6px; }
.pipeline-row i svg { width: 12px; }
.pipeline-row small { color: #849094; font-size: 5px; }
.pipeline-row b { font-size: 6px; }
.pipeline-row em { color: #9fa9ac; font-size: 10px; font-style: normal; }
.activity-line { margin-top: 18px; padding-top: 11px; display: grid; grid-template-columns: 9px 1fr auto; align-items: center; gap: 7px; border-top: 1px solid #edf0ef; }
.activity-line > span { width: 7px; height: 7px; background: #54c9a5; border-radius: 50%; box-shadow: 0 0 0 4px #e5f7f1; }
.activity-line p { margin: 0; display: grid; }
.activity-line b { font-size: 7px; }
.activity-line small, .activity-line time { color: #879397; font-size: 5px; }
.mini-chart { height: 154px; margin-top: 15px; padding-top: 8px; display: flex; align-items: end; justify-content: space-between; gap: 4px; border-bottom: 1px solid #dfe6e3; }
.chart-column { height: 100%; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: end; gap: 3px; }
.chart-column b { color: #607075; font-size: 5px; }
.chart-column i { width: 65%; height: var(--bar); min-height: 2px; display: block; background: linear-gradient(180deg, #56cbb0, #0b7c67); border-radius: 5px 5px 1px 1px; }
.chart-column small { color: #8a9699; font-size: 5px; direction: ltr; }
.floating-status { position: absolute; z-index: 4; min-width: 185px; padding: 11px 13px; display: flex; align-items: center; gap: 10px; color: #25353a; background: rgba(255, 255, 255, .94); border: 1px solid rgba(255, 255, 255, .9); border-radius: 15px; box-shadow: 0 16px 36px rgba(13, 34, 40, .16); backdrop-filter: blur(10px); }
.floating-status > span { width: 33px; height: 33px; display: grid; place-items: center; color: #0a7c67; background: #e1f5ee; border-radius: 10px; }
.floating-status div { display: grid; }
.floating-status b { font-size: 10px; }
.floating-status small { color: #7a888c; font-size: 7px; }
.status-ai { top: 18%; right: -34px; animation: float 5s ease-in-out infinite; }
.status-publish { bottom: 10%; left: -30px; animation: float 5s 1s ease-in-out infinite; }

.trust-strip { position: relative; z-index: 3; margin-top: -10px; background: var(--surface); border-block: 1px solid var(--line); }
.trust-list { min-height: 84px; display: grid; grid-template-columns: repeat(6, 1fr); align-items: center; }
.trust-list span { padding: 12px 14px; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); border-left: 1px solid var(--line); font-size: 12px; font-weight: 800; white-space: nowrap; }
.trust-list span:last-child { border-left: 0; }
.trust-list svg { color: var(--primary); }

.live-metrics-section { padding: 52px 0; }
.live-metrics-grid { padding: 28px 34px; display: grid; grid-template-columns: 1.5fr repeat(4, .55fr); align-items: center; gap: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.metrics-intro h2 { margin: 7px 0 4px; font-size: 22px; }
.metrics-intro p { margin: 0; color: var(--muted); font-size: 12px; }
.live-metric { min-height: 70px; padding-right: 19px; display: grid; align-content: center; border-right: 1px solid var(--line); }
.live-metric strong { font-size: 27px; line-height: 1; }
.live-metric span { margin-top: 7px; color: var(--muted); font-size: 11px; }

.problem-section { padding-top: 84px; }
.problem-layout { margin-top: 58px; display: grid; grid-template-columns: 1fr .82fr; gap: 30px; align-items: stretch; }
.problem-list { display: grid; gap: 12px; }
.problem-list > div { padding: 19px 21px; display: grid; grid-template-columns: 46px 1fr; align-items: center; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; transition: .2s ease; }
.problem-list > div:hover { transform: translateX(-6px); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.problem-list > div > span { color: var(--danger); font-size: 12px; font-weight: 900; }
.problem-list p { margin: 0; display: grid; }
.problem-list b { font-size: 16px; }
.problem-list small { margin-top: 3px; color: var(--muted); }
.solution-card { position: relative; min-height: 100%; padding: 42px; overflow: hidden; color: #e8f5f1; background: radial-gradient(circle at 88% 12%, rgba(85, 203, 176, .24), transparent 34%), linear-gradient(145deg, #0d181d, #183137); border-radius: var(--radius-lg); }
.solution-card::after { content: ""; position: absolute; left: -70px; bottom: -80px; width: 210px; height: 210px; border: 1px solid rgba(85, 203, 176, .19); border-radius: 50%; box-shadow: 0 0 0 30px rgba(85, 203, 176, .04), 0 0 0 60px rgba(85, 203, 176, .025); }
.solution-orbit { width: 58px; height: 58px; display: grid; place-items: center; color: #0b2b23; background: #62d4b9; border-radius: 18px; }
.solution-card > small { margin-top: 32px; display: block; color: #7cd9c4; }
.solution-card h3 { max-width: 430px; margin: 8px 0 25px; font-size: 31px; line-height: 1.4; }
.solution-card ul, .check-list { margin: 0; padding: 0; display: grid; gap: 10px; list-style: none; }
.solution-card li, .check-list li { display: flex; align-items: center; gap: 9px; color: #a9bbbd; }
.solution-card li svg { color: #69d5bd; }

.steps-section { color: #e9f2f2; background: #0d181d; }
.steps-section .section-heading h2 { color: #fff; }
.steps-section .section-heading p { color: #8ca0a5; }
.steps-grid { margin-top: 54px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.step-card { position: relative; min-height: 350px; padding: 24px 20px; overflow: hidden; background: #142329; border: 1px solid #22343a; border-radius: 22px; transition: transform .25s ease, border-color .25s ease; }
.step-card:hover { transform: translateY(-8px); border-color: #3a5c57; }
.step-card.featured { color: #10231e; background: #5bcdb3; border-color: #5bcdb3; }
.step-number { position: absolute; top: 13px; left: 16px; color: #53666b; font-size: 40px; line-height: 1; font-weight: 900; opacity: .45; }
.step-card.featured .step-number { color: #0a6a57; }
.step-icon { width: 46px; height: 46px; display: grid; place-items: center; color: #69d6bd; background: #1b3335; border-radius: 14px; }
.step-card.featured .step-icon { color: #dffff7; background: #0d6b59; }
.step-card h3 { margin: 24px 0 7px; color: #fff; font-size: 18px; }
.step-card.featured h3 { color: #10231e; }
.step-card p { margin: 0; color: #84979c; font-size: 13px; }
.step-card.featured p { color: #28594e; }
.step-ui { position: absolute; right: 18px; bottom: 20px; left: 18px; min-height: 78px; padding: 12px; background: #0f1c21; border: 1px solid #25363b; border-radius: 14px; }
.step-card.featured .step-ui { background: rgba(255, 255, 255, .3); border-color: rgba(10, 79, 65, .16); }
.source-ui { display: flex; align-items: center; gap: 5px; }
.source-ui i { width: 31px; height: 31px; display: grid; place-items: center; color: #7edbc6; background: #1a3234; border-radius: 8px; font-size: 7px; font-style: normal; }
.source-ui span { margin-right: auto; color: #78d8c1; font-size: 8px; }
.filter-ui { display: flex; align-content: center; flex-wrap: wrap; gap: 5px; }
.filter-ui span { padding: 5px 8px; color: #8de0ce; background: #193331; border-radius: 9px; font-size: 8px; }
.filter-ui span.off { color: #e89992; background: #362326; text-decoration: line-through; }
.prompt-ui { display: grid; align-content: center; gap: 6px; }
.prompt-ui i { width: 70%; height: 4px; background: #2a3d42; border-radius: 5px; }
.prompt-ui i:nth-child(2) { width: 92%; }
.prompt-ui i:nth-child(3) { width: 55%; }
.prompt-ui b { position: absolute; left: 10px; bottom: 10px; color: #67d2b9; font-size: 10px; }
.destination-ui { display: flex; align-items: center; justify-content: center; }
.destination-ui i { width: 34px; height: 34px; margin-right: -7px; display: grid; place-items: center; color: #8faaa9; background: #203136; border: 2px solid #0f1c21; border-radius: 50%; font-size: 8px; font-style: normal; }
.destination-ui i:first-child { color: #0a2b24; background: #62d3b8; }
.publish-ui { display: flex; align-items: center; justify-content: space-between; }
.publish-ui span { display: flex; align-items: center; gap: 7px; color: #174f43; font-size: 9px; font-weight: 800; }
.publish-ui span i { width: 7px; height: 7px; background: #0b7c67; border-radius: 50%; box-shadow: 0 0 0 4px rgba(11, 124, 103, .12); }
.publish-ui b { width: 30px; height: 30px; display: grid; place-items: center; color: #fff; background: #0b7c67; border-radius: 9px; }

.demo-section { background: var(--surface-soft); }
.flow-rail { margin: 52px auto 46px; padding: 24px; display: flex; align-items: center; justify-content: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-sm); }
.flow-rail > div { min-width: 100px; display: grid; justify-items: center; gap: 7px; }
.flow-rail > div > span { width: 46px; height: 46px; display: grid; place-items: center; color: var(--primary); background: var(--primary-light); border-radius: 14px; }
.flow-rail > div.active > span { color: #f3fff9; background: var(--primary); box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 25%, transparent); }
.flow-rail b { font-size: 11px; }
.flow-rail > i { color: var(--line-strong); transform: rotate(180deg); }
.compare-demo { padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.compare-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.compare-head h3 { margin: 5px 0 0; font-size: 25px; }
.compare-tabs { padding: 4px; display: flex; gap: 4px; background: var(--bg-soft); border-radius: 13px; }
.compare-tabs button { padding: 9px 16px; color: var(--muted); background: transparent; border: 0; border-radius: 10px; font-size: 12px; font-weight: 800; }
.compare-tabs button.active { color: #fff; background: var(--dark); }
.compare-panels { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare-panel { min-height: 260px; padding: 27px; border-radius: 21px; }
.compare-panel.raw { background: var(--bg-soft); border: 1px dashed var(--line-strong); }
.compare-panel.processed { color: #eaf7f3; background: radial-gradient(circle at 88% 8%, rgba(85, 203, 176, .25), transparent 27%), #102026; }
.compare-panel > small { color: var(--primary); font-weight: 800; }
.compare-panel.processed > small { color: #70d7bf; }
.compare-panel h4 { margin: 14px 0 10px; font-size: 19px; }
.compare-panel p { margin: 0; color: var(--muted); line-height: 2; }
.compare-panel.processed p { color: #9badaf; }
.raw-lines { margin-top: 30px; display: grid; gap: 7px; }
.raw-lines i { width: 90%; height: 6px; background: var(--line); border-radius: 4px; }
.raw-lines i:nth-child(2) { width: 65%; }
.raw-lines i:nth-child(3) { width: 78%; }
.output-meta { margin-top: 26px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.output-meta span, .output-meta time { padding: 5px 9px; color: #8ddfcb; background: rgba(85, 203, 176, .1); border: 1px solid rgba(85, 203, 176, .16); border-radius: 9px; font-size: 9px; }
.output-meta time { margin-right: auto; color: #acb9bb; background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .08); }

.feature-bento { margin-top: 52px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.feature-card { position: relative; min-height: 310px; padding: 28px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; transition: transform .25s ease, box-shadow .25s ease; }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-sm); }
.feature-card.feature-wide { grid-column: span 2; display: grid; grid-template-columns: 70px 1fr; gap: 22px; }
.feature-card.dark { color: #edf7f4; background: radial-gradient(circle at 85% 15%, rgba(85, 203, 176, .17), transparent 30%), #0e1a1f; border-color: #1f3237; }
.feature-icon { width: 52px; height: 52px; display: grid; place-items: center; color: var(--primary); background: var(--primary-light); border-radius: 16px; }
.feature-card.dark .feature-icon { color: #70d9c1; background: #193431; }
.feature-card h3 { margin: 20px 0 8px; font-size: 21px; }
.feature-card.feature-wide h3 { margin-top: 0; }
.feature-card p { margin: 0; color: var(--muted); line-height: 1.95; }
.feature-card.dark p { color: #899da1; }
.tag-list { margin-top: 32px; display: flex; gap: 7px; flex-wrap: wrap; }
.tag-list span { padding: 7px 10px; color: var(--primary); background: var(--primary-light); border-radius: 10px; font-size: 9px; font-weight: 800; }
.filter-visual { margin-top: 30px; display: grid; gap: 8px; }
.filter-visual span { padding: 8px 10px; color: var(--ink-soft); background: var(--surface-soft); border: 1px solid var(--line); border-radius: 10px; font-size: 10px; }
.filter-visual span::before { content: "✓"; margin-left: 8px; color: var(--primary); }
.ai-wave { position: absolute; right: 28px; bottom: 32px; left: 28px; height: 54px; display: flex; align-items: center; gap: 6px; }
.ai-wave i { flex: 1; height: 30%; background: #5ed1b6; border-radius: 7px; animation: wave 1.8s ease-in-out infinite alternate; }
.ai-wave i:nth-child(2), .ai-wave i:nth-child(6) { height: 65%; animation-delay: .15s; }
.ai-wave i:nth-child(3), .ai-wave i:nth-child(5) { height: 95%; animation-delay: .3s; }
.ai-wave i:nth-child(4) { height: 50%; animation-delay: .45s; }
.platform-stack { position: absolute; right: 28px; bottom: 34px; display: flex; }
.platform-stack i { width: 43px; height: 43px; margin-left: -8px; display: grid; place-items: center; color: var(--muted); background: var(--surface-soft); border: 3px solid var(--surface); border-radius: 50%; font-size: 10px; font-style: normal; font-weight: 900; }
.platform-stack i:first-child { color: #fff; background: var(--primary); }
.calendar-visual { position: absolute; right: 28px; bottom: 28px; left: 28px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.calendar-visual i { aspect-ratio: 1; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 5px; }
.calendar-visual i.marked { background: var(--primary-light); border-color: color-mix(in srgb, var(--primary) 28%, var(--line)); box-shadow: inset 0 -3px var(--primary); }
.report-visual { height: 90px; margin-top: 28px; display: flex; align-items: end; gap: 8px; border-bottom: 1px solid var(--line); }
.report-visual span { width: 34px; height: var(--v); background: linear-gradient(180deg, var(--mint), var(--primary)); border-radius: 7px 7px 1px 1px; }

.audience-section { color: #e7f2f0; background: #0d181d; }
.audience-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: center; }
.audience-copy h2 { margin: 12px 0 14px; color: #fff; font-size: clamp(37px, 4vw, 56px); line-height: 1.25; }
.audience-copy > p { color: #8ea0a4; }
.audience-tabs { margin-top: 28px; display: grid; gap: 6px; }
.audience-tabs button { padding: 12px 15px; color: #819398; background: transparent; border: 1px solid transparent; border-radius: 12px; text-align: right; font-weight: 800; }
.audience-tabs button.active { color: #ddf9f2; background: #17302f; border-color: #28504b; }
.audience-display { min-height: 430px; padding: 46px; display: grid; grid-template-columns: .72fr 1.28fr; align-items: center; gap: 38px; background: radial-gradient(circle at 20% 30%, rgba(85, 203, 176, .17), transparent 35%), #142329; border: 1px solid #25373c; border-radius: 32px; }
.audience-visual { position: relative; aspect-ratio: 1; display: grid; place-items: center; align-content: center; background: #102026; border-radius: 50%; }
.audience-visual b { color: #70d9c1; font-size: 40px; line-height: 1; }
.audience-visual small { margin-top: 8px; color: #7f9296; }
.audience-ring { position: absolute; inset: -15px; border: 1px solid rgba(85, 203, 176, .22); border-radius: 50%; }
.audience-ring.two { inset: -36px; border-style: dashed; animation: rotate 18s linear infinite; }
.audience-ring.two::after { content: ""; position: absolute; top: 9%; left: 15%; width: 10px; height: 10px; background: #56ceb3; border-radius: 50%; box-shadow: 0 0 0 6px rgba(86, 206, 179, .12); }
.audience-text { display: none; }
.audience-text.active { display: block; animation: fadeIn .25s ease; }
.audience-text small { color: #68d3bb; }
.audience-text h3 { margin: 10px 0 13px; color: #fff; font-size: 28px; line-height: 1.5; }
.audience-text p { margin: 0; color: #8fa1a5; line-height: 2; }

.control-section { background: var(--surface-soft); }
.control-layout { display: grid; grid-template-columns: 1.08fr .92fr; gap: 70px; align-items: center; }
.control-dashboard { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); }
.control-head { padding-bottom: 19px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.control-head div { display: grid; }
.control-head small { color: var(--muted); }
.control-head strong { font-size: 18px; }
.control-head > span { padding: 6px 10px; color: var(--primary); background: var(--primary-light); border-radius: 10px; font-size: 10px; font-weight: 800; }
.control-options { margin-top: 15px; display: grid; gap: 8px; }
.control-options > div { padding: 14px; display: grid; grid-template-columns: 17px 1fr auto; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 14px; }
.control-options > div > i { width: 16px; height: 16px; border: 2px solid var(--line-strong); border-radius: 50%; }
.control-options > div.selected { background: var(--primary-light); border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); }
.control-options > div.selected > i { border: 5px solid var(--primary); }
.control-options p { margin: 0; display: grid; }
.control-options small { color: var(--muted); }
.control-options svg { color: var(--primary); }
.control-footer { margin-top: 16px; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); }
.control-footer > span { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.control-footer button { padding: 10px 14px; font-size: 10px; }
.control-layout .section-heading h2 { font-size: clamp(38px, 4vw, 55px); }
.check-list { margin-top: 25px; }
.check-list li { color: var(--ink-soft); }
.check-list svg { color: var(--primary); }

.prompt-section { color: #edf6f4; background: #0d181d; }
.prompt-section .section-heading h2 { color: #fff; }
.prompt-section .section-heading p { color: #8da0a4; }
.prompt-workspace { margin-top: 52px; padding: 25px; display: grid; grid-template-columns: 1fr 60px 1fr; align-items: center; background: #142329; border: 1px solid #26373d; border-radius: 30px; }
.prompt-editor, .prompt-result { min-height: 280px; padding: 28px; background: #101d22; border: 1px solid #26383d; border-radius: 21px; }
.prompt-result { background: radial-gradient(circle at 85% 12%, rgba(85, 203, 176, .17), transparent 29%), #172a2d; }
.editor-head { display: flex; align-items: center; justify-content: space-between; }
.editor-head > span { display: flex; align-items: center; gap: 8px; color: #d8e8e5; font-weight: 800; }
.editor-head b { padding: 5px 8px; color: #6fd5bd; background: rgba(85, 203, 176, .1); border-radius: 8px; font-size: 8px; }
.prompt-editor > p { margin: 30px 0 0; color: #a3b3b4; font-size: 16px; line-height: 2.15; }
.prompt-tags { margin-top: 25px; display: flex; gap: 6px; flex-wrap: wrap; }
.prompt-tags span { padding: 5px 8px; color: #77d9c2; background: #19302f; border-radius: 8px; font-size: 8px; }
.prompt-arrow { width: 48px; height: 48px; margin: auto; display: grid; place-items: center; color: #72d6bf; background: #193330; border-radius: 50%; transform: rotate(180deg); }
.prompt-result h3 { margin: 27px 0 9px; color: #fff; font-size: 23px; }
.prompt-result p { color: #95a7a9; }
.prompt-result button { margin-top: 14px; padding: 10px 14px; background: #58cbb1; color: #102a23; font-weight: 900; }

.destination-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 75px; align-items: center; }
.destination-map { position: relative; min-height: 530px; }
.content-core { position: absolute; z-index: 3; top: 50%; right: 50%; width: 160px; height: 160px; transform: translate(50%, -50%); display: grid; place-items: center; align-content: center; color: #e9f7f3; background: radial-gradient(circle at 50% 25%, #244641, #102127); border: 1px solid #31504b; border-radius: 50%; box-shadow: 0 0 0 18px var(--primary-light), 0 24px 50px rgba(18, 54, 50, .22); }
.content-core > span { width: 42px; height: 42px; display: grid; place-items: center; color: #67d2ba; background: #193330; border-radius: 13px; }
.content-core b { margin-top: 8px; }
.content-core small { color: #8ba09f; }
.map-lines { position: absolute; inset: 0; }
.map-lines i { position: absolute; top: 50%; right: 50%; width: 36%; height: 1px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 5px, transparent 5px 10px); transform-origin: right center; }
.map-lines i:nth-child(1) { transform: rotate(0deg); }
.map-lines i:nth-child(2) { transform: rotate(60deg); }
.map-lines i:nth-child(3) { transform: rotate(120deg); }
.map-lines i:nth-child(4) { transform: rotate(180deg); }
.map-lines i:nth-child(5) { transform: rotate(240deg); }
.map-lines i:nth-child(6) { transform: rotate(300deg); }
.destination-node { position: absolute; z-index: 2; width: 98px; height: 98px; display: grid; place-items: center; align-content: center; gap: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-sm); }
.destination-node b { width: 34px; height: 34px; display: grid; place-items: center; color: #fff; background: var(--primary); border-radius: 10px; font-size: 10px; }
.destination-node span { color: var(--muted); font-size: 9px; font-weight: 800; }
.node-t { top: 4%; right: 43%; }
.node-b { top: 23%; right: 7%; }
.node-r { right: 8%; bottom: 16%; }
.node-e { bottom: 3%; right: 44%; }
.node-w { bottom: 17%; left: 7%; }
.node-a { top: 22%; left: 6%; }
.node-w b { color: #14242a; background: var(--accent); }
.node-a b { color: #14242a; background: #dce8e5; }

.comparison-section { background: var(--surface-soft); }
.comparison-grid { margin-top: 50px; display: grid; grid-template-columns: 1fr 80px 1fr; align-items: center; }
.comparison-card { padding: 34px; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; }
.comparison-card.smart { color: #eaf5f3; background: radial-gradient(circle at 85% 10%, rgba(85, 203, 176, .2), transparent 30%), #102026; border-color: #294039; box-shadow: var(--shadow); }
.comparison-title { display: flex; align-items: center; gap: 13px; padding-bottom: 21px; border-bottom: 1px solid var(--line); }
.comparison-card.smart .comparison-title { border-color: #2a3c40; }
.comparison-title > span { width: 42px; height: 42px; display: grid; place-items: center; color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, var(--surface)); border-radius: 13px; font-size: 20px; }
.comparison-card.smart .comparison-title > span { color: #0b2c24; background: #5dd0b5; }
.comparison-title div { display: grid; }
.comparison-title small { color: var(--muted); }
.comparison-title h3 { margin: 0; font-size: 22px; }
.comparison-card ul { margin: 24px 0 0; padding: 0; display: grid; gap: 12px; list-style: none; }
.comparison-card li { color: var(--muted); }
.comparison-card.smart li { color: #9badaf; }
.comparison-card li::before { content: "−"; margin-left: 10px; color: var(--danger); font-weight: 900; }
.comparison-card.smart li::before { content: "✓"; color: #65d1b8; }
.comparison-vs { display: grid; place-items: center; }
.comparison-vs span { width: 62px; height: 62px; display: grid; place-items: center; color: var(--muted); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 50%; font-size: 10px; font-weight: 900; }
.benefit-row { margin-top: 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.benefit-row span { padding: 12px; text-align: center; color: var(--ink-soft); background: var(--surface); border: 1px solid var(--line); border-radius: 13px; font-size: 11px; font-weight: 800; }

.security-section { color: #edf6f4; background: #0d181d; }
.security-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.security-section .section-heading h2 { color: #fff; }
.security-section .section-heading p { color: #8da0a4; }
.security-visual { position: relative; min-height: 430px; display: grid; place-items: center; }
.shield-core { width: 160px; height: 180px; display: grid; place-items: center; color: #0a2c24; background: linear-gradient(145deg, #70d8c1, #42b99f); clip-path: polygon(50% 0, 93% 17%, 85% 73%, 50% 100%, 15% 73%, 7% 17%); filter: drop-shadow(0 28px 35px rgba(31, 168, 138, .2)); }
.shield-core svg { width: 64px; height: 64px; }
.security-orbit { position: absolute; padding: 10px 13px; display: flex; align-items: center; gap: 8px; color: #afc0c1; background: #14262b; border: 1px solid #294046; border-radius: 12px; font-size: 10px; font-weight: 800; box-shadow: 0 15px 30px rgba(0, 0, 0, .2); }
.security-orbit i { width: 7px; height: 7px; background: #61d0b6; border-radius: 50%; }
.orbit-one { top: 13%; right: 6%; }
.orbit-two { top: 46%; left: 0; }
.orbit-three { right: 10%; bottom: 9%; }
.security-points { margin-top: 27px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.security-points span { padding: 12px; display: flex; align-items: center; gap: 8px; color: #9badaf; background: #142429; border: 1px solid #23363b; border-radius: 12px; font-size: 10px; }
.security-points svg { color: #68d2ba; }

.chatbot-landing-section { background: var(--surface-soft); }
.chatbot-landing-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: 80px; align-items: center; }
.chatbot-feature-pills { margin: 25px 0; display: flex; flex-wrap: wrap; gap: 7px; }
.chatbot-feature-pills span { padding: 7px 10px; color: var(--primary); background: var(--primary-light); border: 1px solid color-mix(in srgb,var(--primary) 16%,transparent); border-radius: 10px; font-size: 10px; font-weight: 800; }
.chatbot-product-preview { position: relative; min-height: 540px; padding: 40px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 16px; overflow: hidden; background: radial-gradient(circle at 85% 10%,rgba(85,203,176,.18),transparent 30%),#0e1a1f; border-radius: 34px; box-shadow: var(--shadow); }
.chatbot-product-preview::before { content:""; position:absolute; inset:0; opacity:.1; background-image:linear-gradient(rgba(255,255,255,.2) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.2) 1px,transparent 1px); background-size:42px 42px; }
.knowledge-flow-card,.landing-chat-widget { position:relative; z-index:2; overflow:hidden; background:#f8faf9; border:1px solid rgba(255,255,255,.8); border-radius:20px; box-shadow:0 22px 45px rgba(0,0,0,.2); }
.knowledge-flow-card { padding:15px; transform:translateY(-28px); }
.knowledge-flow-head { padding-bottom:12px; display:grid; grid-template-columns:35px 1fr auto; align-items:center; gap:8px; border-bottom:1px solid #e3e9e6; }
.knowledge-flow-head > span { width:35px;height:35px;display:grid;place-items:center;color:#0a7c67;background:#e1f5ee;border-radius:10px; }
.knowledge-flow-head div { display:grid;color:#203238; }
.knowledge-flow-head small { color:#849296;font-size:7px; }
.knowledge-flow-head em { padding:4px 7px;color:#0a7c67;background:#e1f5ee;border-radius:8px;font-size:6px;font-style:normal; }
.knowledge-source-row { padding:10px 3px;display:grid;grid-template-columns:31px 6px 1fr auto;align-items:center;gap:7px;border-bottom:1px solid #e8edeb;color:#2c3e43; }
.knowledge-source-row:last-child { border-bottom:0; }
.knowledge-source-row > span { width:30px;height:30px;display:grid;place-items:center;color:#0a7c67;background:#e5f4ef;border-radius:8px;font-size:6px;font-weight:900; }
.knowledge-source-row i { width:6px;height:6px;background:#55cbb0;border-radius:50%; }
.knowledge-source-row b { font-size:8px; }
.knowledge-source-row small { color:#7c8b8f;font-size:6px; }
.landing-chat-widget { min-height:380px; transform:translateY(28px); }
.landing-chat-widget header { padding:13px;display:grid;grid-template-columns:37px 1fr 8px;align-items:center;gap:8px;color:#fff;background:#0a7c67; }
.landing-chat-widget header > span { width:36px;height:36px;display:grid;place-items:center;background:rgba(255,255,255,.18);border-radius:11px;font-size:9px;font-weight:900; }
.landing-chat-widget header div { display:grid; }
.landing-chat-widget header b { font-size:9px; }
.landing-chat-widget header small { opacity:.75;font-size:6px; }
.landing-chat-widget header i { width:7px;height:7px;background:#92efd8;border-radius:50%; }
.landing-chat-widget main { padding:14px; }
.landing-chat-widget main p { max-width:84%;padding:9px;margin:0 0 9px;color:#526267;background:#edf2f0;border-radius:11px;font-size:7px;line-height:1.8; }
.landing-chat-widget main p.visitor { margin-right:auto;color:#fff;background:#0a7c67; }
.landing-chat-widget footer { position:absolute;right:10px;bottom:10px;left:10px;padding:10px;display:flex;justify-content:space-between;color:#849296;background:#f1f4f3;border:1px solid #e0e7e4;border-radius:10px;font-size:7px; }
.landing-chat-widget footer b { color:#0a7c67; }
.chatbot-live-badge { position:absolute;z-index:4;right:50%;bottom:25px;padding:10px 13px;display:flex;align-items:center;gap:8px;color:#dff6f0;background:#17302f;border:1px solid #2a504a;border-radius:13px;box-shadow:0 14px 30px rgba(0,0,0,.28); }
.chatbot-live-badge > i { width:8px;height:8px;background:#64d5ba;border-radius:50%;box-shadow:0 0 0 5px rgba(100,213,186,.12); }
.chatbot-live-badge span { display:grid; }
.chatbot-live-badge b { font-size:9px; }
.chatbot-live-badge small { color:#829b9b;font-size:6px; }

.pricing-layout { display: grid; grid-template-columns: .62fr 1.38fr; gap: 60px; align-items: center; }
.landing-plan-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.price-card { padding: 36px; background: var(--surface); border: 1px solid var(--line); border-radius: 30px; box-shadow: var(--shadow); }
.landing-plan-card { min-width: 0; padding: 28px; box-shadow: var(--shadow-sm); }
.landing-plan-card.recommended { border-color: color-mix(in srgb,var(--primary) 55%,var(--line)); box-shadow: 0 24px 65px rgba(12,125,104,.15); }
.landing-plan-card h3 { margin: 7px 0 0; font-size: 22px; }
.landing-plan-card .price-value strong { font-size: 36px; }
.landing-plan-card ul { min-height: 142px; margin: 0; padding: 0; display: grid; gap: 9px; list-style: none; }
.landing-plan-card li { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.landing-plan-card li::before { content: "✓"; color: var(--primary); font-weight: 900; }
.price-label { color: var(--primary); font-size: 12px; font-weight: 900; }
.price-value { margin-top: 18px; display: flex; align-items: center; gap: 14px; }
.price-value strong { font-size: 48px; line-height: 1; letter-spacing: -2px; }
.price-value span { color: var(--muted); font-size: 11px; line-height: 1.5; }
.price-unset strong { font-size: 33px; }
.price-card > p { color: var(--muted); }
.price-divider { height: 1px; margin: 27px 0; background: var(--line); }
.free-credit { display: flex; align-items: center; gap: 12px; }
.free-credit > span { width: 45px; height: 45px; display: grid; place-items: center; color: #6a470e; background: var(--accent-light); border-radius: 14px; }
.free-credit p { margin: 0; display: grid; }
.free-credit small { color: var(--muted); }
.price-card .button { width: 100%; margin-top: 27px; }
.price-note { margin-top: 12px; display: block; color: var(--muted); text-align: center; }

.templates-section { padding-top: 80px; background: var(--surface-soft); }
.template-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.template-card { min-height: 150px; padding: 22px; display: grid; grid-template-columns: 38px 1fr auto; align-items: start; gap: 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 19px; transition: .22s ease; }
.template-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--primary) 38%, var(--line)); box-shadow: var(--shadow-sm); }
.template-card > span { color: var(--primary); font-size: 11px; font-weight: 900; }
.template-card h3 { margin: 0 0 6px; font-size: 16px; }
.template-card p { margin: 0; color: var(--muted); font-size: 12px; }
.template-card > svg { margin-top: 3px; color: var(--line-strong); }

.quickstart-section { padding-top: 0; background: var(--surface-soft); }
.quickstart-card { position: relative; padding: 52px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; overflow: hidden; color: #edf8f5; background: radial-gradient(circle at 85% 0, rgba(85, 203, 176, .25), transparent 30%), linear-gradient(135deg, #0c181d, #163136); border-radius: 34px; }
.quickstart-copy h2 { margin: 11px 0; color: #fff; font-size: 38px; line-height: 1.35; }
.quickstart-copy p { color: #95a8aa; }
.quickstart-copy .button { margin-top: 15px; }
.quickstart-steps { margin: 0; padding: 0; display: grid; list-style: none; }
.quickstart-steps li { padding: 15px 0; display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 14px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.quickstart-steps li:last-child { border-bottom: 0; }
.quickstart-steps li > span { width: 42px; height: 42px; display: grid; place-items: center; color: #0c2a23; background: #60d2b7; border-radius: 13px; font-weight: 900; }
.quickstart-steps p { margin: 0; display: grid; }
.quickstart-steps b { color: #eaf7f3; }
.quickstart-steps small { color: #869a9e; }

.faq-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: 90px; align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { padding: 21px 0; display: grid; grid-template-columns: 34px 1fr 30px; align-items: center; gap: 12px; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary > span { color: var(--primary); font-size: 10px; font-weight: 900; }
.faq-item summary b { font-size: 15px; }
.faq-item summary i { width: 29px; height: 29px; display: grid; place-items: center; color: var(--muted); background: var(--surface-soft); border: 1px solid var(--line); border-radius: 9px; font-size: 17px; font-style: normal; transition: transform .2s ease; }
.faq-item[open] summary i { color: #fff; background: var(--primary); border-color: var(--primary); transform: rotate(45deg); }
.faq-item p { margin: -6px 46px 20px 42px; color: var(--muted); line-height: 2; }

.final-cta-section { padding: 30px 0 100px; }
.final-cta { position: relative; min-height: 380px; padding: 64px; display: flex; align-items: center; justify-content: space-between; gap: 50px; overflow: hidden; color: #eff8f5; background: #0d191e; border-radius: 40px; }
.final-cta > div:not(.cta-grid) { position: relative; z-index: 2; }
.final-cta h2 { max-width: 700px; margin: 12px 0; color: #fff; font-size: clamp(39px, 5vw, 66px); line-height: 1.2; }
.final-cta p { max-width: 620px; margin: 0; color: #91a5a8; font-size: 16px; }
.final-actions { display: grid; gap: 10px; flex: 0 0 230px; }
.cta-grid { position: absolute; inset: 0; opacity: .12; background-image: linear-gradient(rgba(255,255,255,.25) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.25) 1px, transparent 1px); background-size: 55px 55px; mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%); }
.cta-orb { position: absolute; border-radius: 50%; filter: blur(5px); }
.cta-orb.orb-one { width: 250px; height: 250px; top: -130px; right: 55%; background: rgba(85, 203, 176, .18); }
.cta-orb.orb-two { width: 190px; height: 190px; bottom: -100px; left: 5%; background: rgba(239, 177, 90, .12); }

.site-footer { padding: 65px 0 24px; color: #a2b0b2; background: #091216; }
.site-footer .brand-copy strong { color: #fff; }
.site-footer .brand-copy small { color: #718589; }
.footer-grid { display: grid; grid-template-columns: 1.65fr repeat(3, .7fr); gap: 60px; }
.footer-brand p { max-width: 340px; margin: 20px 0; color: #718589; }
.telegram-contact { display: inline-flex; align-items: center; gap: 8px; color: #69d5bd; font-weight: 800; }
.footer-column { display: grid; align-content: start; gap: 10px; }
.footer-column strong { margin-bottom: 7px; color: #eef6f4; }
.footer-column a { color: #788b8f; transition: .2s ease; }
.footer-column a:hover { color: #77d9c3; transform: translateX(-3px); }
.footer-bottom { margin-top: 50px; padding-top: 22px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid #1d2b30; color: #5f7276; font-size: 11px; }

.legal-page { min-height: 100vh; background: var(--surface-soft); }
.legal-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.legal-header > div { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.legal-layout { padding-top: 70px; padding-bottom: 100px; display: grid; grid-template-columns: 230px 1fr; gap: 70px; align-items: start; }
.legal-layout aside { position: sticky; top: 30px; padding: 22px; display: grid; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.legal-layout aside span { color: var(--muted); font-size: 11px; }
.legal-layout aside strong { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.legal-layout aside a { padding-top: 8px; color: var(--primary); font-weight: 800; }
.legal-layout article { max-width: 780px; padding: 42px; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow-sm); }
.legal-layout h1 { margin: 13px 0 10px; font-size: clamp(38px, 5vw, 62px); line-height: 1.2; }
.legal-lead { margin: 0 0 40px; color: var(--muted); font-size: 17px; }
.legal-layout article section { padding: 25px 0; border-top: 1px solid var(--line); }
.legal-layout article section h2 { margin: 0 0 8px; font-size: 21px; }
.legal-layout article section p { margin: 0; color: var(--muted); line-height: 2.1; }
.not-found-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 50% 30%, var(--primary-light), transparent 35%), var(--bg); }
.not-found-page main { max-width: 620px; text-align: center; }
.not-found-page main > span { display: block; color: var(--primary); font-size: clamp(95px, 20vw, 190px); line-height: .9; font-weight: 900; letter-spacing: -8px; opacity: .2; }
.not-found-page h1 { margin: 18px 0 7px; font-size: 39px; }
.not-found-page p { color: var(--muted); }
.not-found-page main > div { margin-top: 25px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.reveal-delay { transition-delay: .12s; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes wave { from { transform: scaleY(.7); opacity: .65; } to { transform: scaleY(1.08); opacity: 1; } }
@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 1120px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: inline-grid; }
  .hero-grid { grid-template-columns: 1fr; gap: 60px; }
  .hero-copy { max-width: 780px; margin-inline: auto; text-align: center; }
  .hero-copy h1, .hero-lead { margin-inline: auto; }
  .hero-actions, .trust-note { justify-content: center; }
  .hero-product { width: min(780px, 100%); margin-inline: auto; }
  .trust-list { grid-template-columns: repeat(3, 1fr); }
  .trust-list span:nth-child(3) { border-left: 0; }
  .trust-list span:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .live-metrics-grid { grid-template-columns: 1.4fr repeat(2, .6fr); }
  .metrics-intro { grid-row: span 2; }
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
  .step-card.featured { grid-column: span 2; }
  .feature-bento { grid-template-columns: 1fr 1fr; }
  .feature-card.feature-wide { grid-column: span 1; grid-template-columns: 1fr; }
  .audience-layout, .control-layout, .destination-layout, .pricing-layout { gap: 45px; }
  .audience-display { grid-template-columns: 1fr; }
  .audience-visual { width: 220px; margin-inline: auto; }
  .footer-grid { grid-template-columns: 1.4fr repeat(3, .7fr); gap: 30px; }
}

@media (max-width: 900px) {
  .section { padding: 88px 0; }
  .section-heading.split { align-items: start; flex-direction: column; gap: 10px; }
  .problem-layout, .audience-layout, .control-layout, .destination-layout, .security-layout, .pricing-layout, .faq-layout { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .step-card.featured { grid-column: auto; }
  .flow-rail { justify-content: flex-start; overflow-x: auto; }
  .flow-rail > div { min-width: 85px; }
  .compare-panels { grid-template-columns: 1fr; }
  .compare-panel { display: none; }
  .compare-panel.active { display: block; animation: fadeIn .22s ease; }
  .feature-bento { grid-template-columns: 1fr 1fr; }
  .audience-layout { gap: 36px; }
  .audience-tabs { grid-template-columns: 1fr 1fr; }
  .audience-display { min-height: 360px; grid-template-columns: .7fr 1.3fr; }
  .audience-visual { width: auto; }
  .prompt-workspace { grid-template-columns: 1fr; gap: 14px; }
  .prompt-arrow { transform: rotate(-90deg); }
  .destination-map { min-height: 490px; }
  .comparison-grid { grid-template-columns: 1fr; gap: 12px; }
  .comparison-vs span { width: auto; height: auto; padding: 5px 14px; border-radius: 20px; }
  .security-layout { gap: 30px; }
  .security-visual { order: 2; }
  .template-grid { grid-template-columns: 1fr 1fr; }
  .quickstart-card { grid-template-columns: 1fr; gap: 30px; }
  .final-cta { padding: 52px 40px; align-items: flex-start; flex-direction: column; }
  .final-actions { width: 100%; grid-template-columns: 1fr 1fr; flex-basis: auto; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-column:last-child { grid-column: 2 / 4; }
  .chatbot-landing-layout { grid-template-columns:1fr; gap:42px; }
  .legal-layout { grid-template-columns: 1fr; gap: 20px; }
  .legal-layout aside { position: static; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .landing-plan-grid { grid-template-columns: 1fr; }
  .landing-plan-card ul { min-height: 0; }
  .site-container { width: min(100% - 28px, var(--container)); }
  .site-header { background: color-mix(in srgb, var(--bg) 92%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
  .header-inner { min-height: 70px; }
  .brand-copy small, .theme-toggle, .header-actions .text-link, .header-actions .button { display: none; }
  .menu-toggle { display: inline-grid; }
  .hero-section { min-height: auto; padding: 118px 0 60px; }
  .hero-grid-bg { background-size: 42px 42px; }
  .hero-copy h1 { font-size: clamp(43px, 13vw, 62px); }
  .hero-lead { font-size: 16px; }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .trust-note { align-items: flex-start; text-align: right; }
  .dashboard-window { border-radius: 18px; transform: none; }
  .window-topbar { height: 46px; }
  .window-layout { min-height: 360px; grid-template-columns: 36px 1fr; }
  .window-sidebar { padding-inline: 7px; }
  .window-sidebar span { width: 14px; }
  .window-sidebar span.active { width: 21px; height: 21px; }
  .window-main { padding: 12px; }
  .window-content-grid { grid-template-columns: 1fr; }
  .chart-card { display: none; }
  .pipeline-row > div { min-width: 0; flex: 1; }
  .floating-status { min-width: 145px; padding: 8px; }
  .status-ai { top: -24px; right: 9px; }
  .status-publish { bottom: -26px; left: 8px; }
  .trust-strip { margin-top: 25px; }
  .trust-list { padding: 12px 0; grid-template-columns: 1fr 1fr; }
  .trust-list span { min-height: 48px; justify-content: flex-start; border: 0 !important; }
  .live-metrics-section { padding: 35px 0; }
  .live-metrics-grid { padding: 22px; grid-template-columns: 1fr 1fr; gap: 15px; }
  .metrics-intro { grid-column: 1 / -1; grid-row: auto; }
  .live-metric { border-right: 0; padding-right: 0; }
  .section { padding: 72px 0; }
  .section-heading h2 { font-size: 36px; }
  .section-heading p { font-size: 15px; }
  .problem-layout { margin-top: 35px; }
  .problem-list > div { grid-template-columns: 36px 1fr; padding: 16px; }
  .solution-card { padding: 28px; }
  .solution-card h3 { font-size: 25px; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-card { min-height: 315px; }
  .flow-rail { margin-top: 35px; padding: 17px; }
  .flow-rail > i { display: none; }
  .compare-demo { padding: 18px; }
  .compare-head { align-items: flex-start; flex-direction: column; }
  .compare-tabs { width: 100%; }
  .compare-tabs button { flex: 1; }
  .compare-panel { padding: 21px; }
  .feature-bento { grid-template-columns: 1fr; }
  .feature-card, .feature-card.feature-wide { min-height: 280px; padding: 23px; grid-template-columns: 1fr; }
  .audience-tabs { grid-template-columns: 1fr; }
  .audience-display { padding: 30px 22px; grid-template-columns: 1fr; }
  .audience-visual { width: 180px; }
  .audience-text h3 { font-size: 23px; }
  .control-dashboard { padding: 19px; }
  .control-options > div { grid-template-columns: 17px 1fr; }
  .control-options > div > span { display: none; }
  .control-footer { align-items: stretch; flex-direction: column; gap: 12px; }
  .prompt-workspace { padding: 14px; }
  .prompt-editor, .prompt-result { min-height: 240px; padding: 21px; }
  .destination-map { min-height: 390px; transform: scale(.88); margin-inline: -20px; }
  .content-core { width: 125px; height: 125px; }
  .destination-node { width: 77px; height: 77px; border-radius: 18px; }
  .benefit-row { grid-template-columns: 1fr 1fr; }
  .security-visual { min-height: 350px; }
  .security-points { grid-template-columns: 1fr; }
  .price-card { padding: 26px; }
  .price-value strong { font-size: 40px; }
  .template-grid { grid-template-columns: 1fr; }
  .quickstart-card { padding: 31px 22px; }
  .quickstart-copy h2 { font-size: 31px; }
  .faq-item p { margin-right: 0; margin-left: 0; }
  .final-cta { min-height: 440px; padding: 38px 24px; border-radius: 28px; }
  .final-cta h2 { font-size: 39px; }
  .final-actions { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-column:last-child { grid-column: auto; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .chatbot-product-preview { min-height:720px;padding:24px;grid-template-columns:1fr; }
  .knowledge-flow-card,.landing-chat-widget { transform:none; }
  .landing-chat-widget { min-height:350px; }
  .chatbot-live-badge { right:50%;bottom:340px;transform:translateX(50%); }
  .legal-header .brand-copy small { display: block; }
  .legal-header .button { min-height: 42px; padding: 8px 12px; font-size: 11px; }
  .legal-layout { padding-top: 30px; padding-bottom: 60px; }
  .legal-layout article { padding: 25px 20px; }
  .legal-layout aside { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .hero-copy h1 { font-size: 42px; }
  .brand-copy strong { font-size: 17px; }
  .window-heading button { display: none; }
  .window-metrics { grid-template-columns: 1fr 1fr; }
  .window-metrics > div:last-child { display: none; }
  .pipeline-row > em { display: none; }
  .floating-status { display: none; }
  .trust-list { grid-template-columns: 1fr; }
  .live-metrics-grid { grid-template-columns: 1fr; }
  .destination-map { margin-inline: -38px; transform: scale(.77); }
  .security-orbit { font-size: 8px; }
  .benefit-row, .footer-grid { grid-template-columns: 1fr; }
  .footer-brand, .footer-column:last-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
.business-ai-hero { margin-top: 22px; padding: 16px; border: 1px solid color-mix(in srgb, var(--line, #d7dee3) 80%, transparent); border-radius: 28px; background: color-mix(in srgb, var(--surface, #fff) 88%, transparent); box-shadow: 0 24px 70px rgba(15,27,32,.14); backdrop-filter: blur(18px); }
.business-ai-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.business-ai-head > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg,#0d7c66,#f5b942); color: #fff; font-weight: 900; }
.business-ai-head strong { display: block; color: var(--text, #102025); }
.business-ai-head small { color: var(--muted, #6a7a80); }
.business-ai-messages { max-height: 260px; overflow: auto; display: grid; gap: 10px; padding: 4px 2px 10px; scroll-behavior: smooth; }
.ai-message { max-width: 92%; padding: 11px 13px; border-radius: 18px; line-height: 1.9; font-size: .92rem; white-space: pre-wrap; }
.ai-message.assistant { justify-self: start; background: rgba(13,124,102,.09); color: var(--text, #102025); border-start-start-radius: 6px; }
.ai-message.user { justify-self: end; background: #102025; color: #fff; border-start-end-radius: 6px; }
.ai-message.pending { opacity: .72; animation: aiPulse 1.1s ease-in-out infinite alternate; }
.ai-message.error { background: rgba(220,38,38,.08); color: #991b1b; }
.ai-action-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.ai-action-row a { padding: 7px 10px; border-radius: 999px; background: #fff; color: #0d7c66; text-decoration: none; font-weight: 800; border: 1px solid rgba(13,124,102,.18); }
.business-ai-chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; }
.business-ai-chips button { flex: 0 0 auto; border: 1px solid rgba(13,124,102,.18); background: rgba(255,255,255,.7); color: var(--text, #102025); border-radius: 999px; padding: 8px 12px; cursor: pointer; font: inherit; }
.business-ai-form { display: flex; gap: 8px; padding: 8px; border-radius: 20px; background: color-mix(in srgb, var(--bg, #f3f6f4) 88%, #fff); border: 1px solid color-mix(in srgb, var(--line, #d7dee3) 80%, transparent); }
.business-ai-form input { flex: 1; border: 0; background: transparent; outline: 0; color: var(--text, #102025); min-width: 0; font: inherit; }
.business-ai-form button { border: 0; border-radius: 15px; padding: 10px 14px; background: #0d7c66; color: #fff; font-weight: 900; cursor: pointer; }
.business-ai-actions { display: flex; gap: 10px; margin-top: 10px; }
.business-ai-actions a { color: var(--muted, #6a7a80); text-decoration: none; font-weight: 800; }
@keyframes aiPulse { from { opacity: .55; } to { opacity: 1; } }
@media (max-width: 720px) {
  .business-ai-hero { border-radius: 22px; padding: 12px; }
  .business-ai-form { flex-direction: column; }
  .business-ai-form button { width: 100%; }
  .ai-message { max-width: 100%; }
}

/* The landing starts as a real AI workspace; the product sections continue below it. */
.hero-section.ai-first-hero {
  min-height: 100svh;
  padding: 128px 0 58px;
  display: grid;
  align-items: center;
  isolation: isolate;
  background:
    radial-gradient(circle at 18% 18%, rgba(85, 203, 176, .17), transparent 31%),
    radial-gradient(circle at 82% 10%, rgba(239, 177, 90, .13), transparent 27%),
    linear-gradient(180deg, #f7faf8 0%, #eef5f1 58%, var(--bg) 100%);
}
html[data-theme="dark"] .hero-section.ai-first-hero {
  background:
    radial-gradient(circle at 18% 18%, rgba(81, 201, 173, .14), transparent 31%),
    radial-gradient(circle at 82% 10%, rgba(239, 177, 90, .09), transparent 27%),
    linear-gradient(180deg, #0a1215 0%, #0e191b 58%, var(--bg) 100%);
}
.hero-section.ai-first-hero::after { height: 54px; background: linear-gradient(to bottom, transparent, var(--bg)); }
.ai-first-aura {
  position: absolute;
  z-index: -1;
  width: min(900px, 82vw);
  height: min(620px, 72vw);
  top: 105px;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid rgba(10, 124, 103, .08);
  border-radius: 50%;
  box-shadow:
    0 0 0 80px rgba(10, 124, 103, .025),
    0 0 0 170px rgba(10, 124, 103, .018);
  pointer-events: none;
}
.ai-first-shell { width: min(940px, calc(100% - 40px)); display: grid; justify-items: center; }
.ai-first-intro { max-width: 800px; max-height: 360px; overflow: hidden; text-align: center; transition: max-height .38s ease, opacity .26s ease, transform .38s ease; }
.ai-first-orb {
  width: 68px;
  height: 68px;
  margin: 0 auto 16px;
  position: relative;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #0d9275, #0b4b43);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 23px;
  box-shadow: 0 18px 45px rgba(10,124,103,.22), inset 0 1px rgba(255,255,255,.2);
  font-size: 18px;
  font-weight: 900;
}
.ai-first-orb i { position: absolute; left: -4px; bottom: -4px; width: 17px; height: 17px; background: var(--accent); border: 4px solid var(--bg); border-radius: 50%; }
.ai-first-status {
  padding: 7px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-dark);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 16%, var(--line));
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-size: 12px;
  font-weight: 800;
}
.ai-first-status i, .ai-first-workspace .business-ai-head small i {
  width: 7px;
  height: 7px;
  display: inline-block;
  background: #13a27f;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(19, 162, 127, .11);
}
.ai-first-intro h1 {
  margin: 20px 0 10px;
  color: var(--ink);
  font-size: clamp(39px, 5.7vw, 72px);
  line-height: 1.13;
  letter-spacing: -.055em;
}
.ai-first-intro p { margin: 0; color: var(--muted); font-size: clamp(15px, 1.8vw, 19px); }
.ai-first-workspace.business-ai-hero {
  width: 100%;
  margin-top: 34px;
  padding: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--line) 92%, #fff);
  border-radius: 30px;
  box-shadow: 0 30px 90px rgba(20, 49, 43, .16), 0 2px 8px rgba(20, 49, 43, .06);
  backdrop-filter: none;
  transition: box-shadow .25s ease, transform .25s ease;
}
.ai-first-workspace:focus-within { box-shadow: 0 34px 100px rgba(10, 124, 103, .2), 0 0 0 4px rgba(10, 124, 103, .07); }
.ai-first-workspace:not(.is-chatting) {
  max-width: 820px;
  overflow: visible;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.ai-first-workspace:not(.is-chatting):focus-within { box-shadow: none; }
.ai-first-workspace:not(.is-chatting) .business-ai-head,
.ai-first-workspace:not(.is-chatting) .business-ai-messages { display: none; }
.ai-first-workspace:not(.is-chatting) .business-ai-form {
  min-height: 76px;
  margin: 0;
  padding: 12px 13px 12px 20px;
  align-items: center;
  border-width: 1px;
  border-radius: 26px;
  box-shadow: 0 24px 65px rgba(20,49,43,.15), 0 2px 8px rgba(20,49,43,.06);
}
.ai-first-workspace:not(.is-chatting) .business-ai-form textarea { min-height: 48px; padding: 10px 7px; font-size: 16px; }
.ai-first-workspace:not(.is-chatting) .business-ai-form button { min-width: 52px; width: 52px; height: 52px; padding: 0; border-radius: 18px; }
.ai-first-workspace:not(.is-chatting) .business-ai-form button span { display: none; }
.ai-first-workspace:not(.is-chatting) .business-ai-chips { padding: 17px 4px 5px; justify-content: center; flex-wrap: wrap; overflow: visible; }
.ai-first-workspace:not(.is-chatting) .business-ai-chips button {
  min-height: 42px;
  padding: 9px 14px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: 0 5px 18px rgba(20,49,43,.04);
}
.ai-first-workspace:not(.is-chatting) .business-ai-actions {
  margin-top: 8px;
  padding: 8px 2px;
  justify-content: center;
  background: transparent;
  border: 0;
}
.ai-first-workspace:not(.is-chatting) .business-ai-actions > div { margin-right: 14px; }
.ai-first-workspace.is-chatting .business-ai-chips { display: none; }
.ai-first-workspace .business-ai-head {
  min-height: 72px;
  margin: 0;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
}
.ai-first-workspace .business-ai-head > span {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  background: linear-gradient(145deg, #0b8a70, #0d5147);
  box-shadow: 0 10px 25px rgba(10, 124, 103, .2);
}
.ai-first-workspace .business-ai-head strong { color: var(--ink); font-size: 15px; }
.ai-first-workspace .business-ai-head small { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.ai-first-workspace .business-ai-head > a {
  margin-right: auto;
  padding: 8px 13px;
  color: var(--ink);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 11px;
  font-size: 12px;
  font-weight: 800;
}
.ai-first-workspace .business-ai-messages {
  min-height: 130px;
  max-height: min(390px, 42vh);
  padding: 22px 22px 10px;
}
.ai-first-workspace .ai-message { max-width: min(82%, 650px); padding: 13px 16px; color: var(--ink); font-size: 14px; }
.ai-first-workspace .ai-message.assistant { background: var(--surface-soft); border: 1px solid var(--line); }
.ai-first-workspace .ai-message.assistant b,
.ai-first-workspace .ai-message.assistant span { display: block; }
.ai-first-workspace .ai-message.assistant b { margin-bottom: 2px; }
.ai-first-workspace .ai-message.assistant span { color: var(--muted); }
.ai-first-workspace .ai-message.user { background: #087663; color: #fff; box-shadow: 0 8px 24px rgba(8, 118, 99, .16); }
.ai-first-workspace .business-ai-chips { padding: 8px 22px 13px; scrollbar-width: none; }
.ai-first-workspace .business-ai-chips::-webkit-scrollbar { display: none; }
.ai-first-workspace .business-ai-chips button {
  background: var(--surface);
  color: var(--ink-soft);
  border-color: var(--line);
  transition: .18s ease;
}
.ai-first-workspace .business-ai-chips button:hover { color: var(--primary-dark); background: var(--primary-light); border-color: color-mix(in srgb, var(--primary) 25%, var(--line)); }
.ai-first-workspace .business-ai-form {
  margin: 0 16px 14px;
  padding: 9px 10px 9px 14px;
  align-items: flex-end;
  background: #fff;
  border: 1px solid #b9ccc5;
  border-radius: 19px;
  box-shadow: 0 6px 22px rgba(16, 45, 39, .07);
}
html[data-theme="dark"] .ai-first-workspace .business-ai-form { background: #101d21; border-color: #3c5553; }
.ai-first-workspace .business-ai-form textarea {
  width: 100%;
  min-height: 45px;
  max-height: 140px;
  padding: 11px 5px;
  resize: none;
  overflow-y: auto;
  color: #102027;
  background: transparent;
  border: 0;
  outline: 0;
  line-height: 1.8;
}
html[data-theme="dark"] .ai-first-workspace .business-ai-form textarea { color: #f2faf7; }
.ai-first-workspace .business-ai-form textarea::placeholder { color: #64756f; opacity: 1; }
html[data-theme="dark"] .ai-first-workspace .business-ai-form textarea::placeholder { color: #a9bab5; }
.ai-first-workspace .business-ai-form button {
  min-width: 96px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 14px;
}
.ai-first-workspace .business-ai-form button svg { width: 18px; height: 18px; }
.ai-first-workspace .business-ai-form button:disabled { opacity: .62; cursor: wait; }
.ai-first-workspace .business-ai-actions {
  min-height: 48px;
  margin: 0;
  padding: 10px 20px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface-soft) 70%, var(--surface));
  border-top: 1px solid var(--line);
  font-size: 11px;
}
.ai-first-workspace .business-ai-actions > span,
.ai-first-workspace .business-ai-actions > div { display: flex; align-items: center; gap: 8px; }
.ai-first-workspace .business-ai-actions svg { width: 15px; height: 15px; color: var(--primary); }
.ai-first-workspace .business-ai-actions a { color: var(--primary-dark); }
.ai-first-capabilities {
  width: min(720px, 94%);
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  color: var(--muted);
  font-size: 12px;
}
.ai-first-capabilities span { display: flex; justify-content: center; align-items: center; gap: 7px; border-left: 1px solid var(--line); }
.ai-first-capabilities span:last-child { border-left: 0; }
.ai-first-capabilities b { color: var(--primary); font-size: 10px; }
.ai-first-hero.is-chatting { padding-top: 104px; align-items: start; }
.ai-first-hero.is-chatting .ai-first-intro { max-height: 0; opacity: 0; transform: translateY(-22px); }
.ai-first-hero.is-chatting .ai-first-workspace { margin-top: 8px; }
.ai-first-hero.is-chatting .business-ai-messages { min-height: min(560px, 58vh); max-height: min(620px, 62vh); }
.ai-first-hero.is-chatting .ai-first-capabilities { display: none; }

.ai-first-workspace .rich-response { width: min(92%, 760px); max-width: 760px; padding: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 9px 30px rgba(20, 49, 43, .06); }
html[data-theme="dark"] .ai-first-workspace .rich-response { background: #142126; }
.ai-response-head { min-height: 44px; padding: 11px 14px; display: flex; align-items: center; gap: 9px; background: var(--surface-soft); border-bottom: 1px solid var(--line); }
.ai-response-head > span { padding: 4px 8px; color: var(--primary-dark); background: var(--primary-light); border-radius: 8px; font-size: 10px; font-weight: 900; }
.ai-response-head > strong { color: var(--ink); font-size: 13px; }
.ai-response-message { padding: 15px 16px; color: var(--ink); white-space: pre-wrap; line-height: 2; }
.ai-response-message > :first-child { margin-top: 0; }
.ai-response-message > :last-child { margin-bottom: 0; }
.ai-response-message p { margin: 0 0 10px; white-space: pre-wrap; }
.ai-response-message h3,.ai-response-message h4 { margin: 18px 0 8px; color: var(--ink); line-height: 1.55; }
.ai-response-message h3 { font-size: 18px; }
.ai-response-message h4 { font-size: 15px; }
.ai-response-message ul,.ai-response-message ol { margin: 8px 0 14px; padding-right: 22px; display: grid; gap: 6px; }
.ai-response-message code { padding: 2px 6px; direction: ltr; color: #0b6656; background: var(--primary-light); border-radius: 6px; font-family: Consolas, monospace; font-size: .9em; }
.ai-response-message pre { max-width: 100%; margin: 12px 0; padding: 14px; overflow: auto; direction: ltr; text-align: left; color: #e8f3ef; background: #102025; border-radius: 13px; }
.ai-response-message pre code { padding: 0; color: inherit; background: transparent; white-space: pre; }
.ai-response-message a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.ai-metric-grid { padding: 0 14px 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ai-metric { min-width: 0; padding: 11px; display: grid; gap: 3px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 13px; }
.ai-metric b { color: var(--ink); font-size: 20px; line-height: 1.25; }
.ai-metric span { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.ai-metric.success { border-color: rgba(10, 124, 103, .24); background: color-mix(in srgb, var(--primary-light) 55%, var(--surface)); }
.ai-metric.warning { border-color: rgba(214, 145, 45, .27); background: var(--accent-light); }
.ai-metric.danger { border-color: rgba(207, 85, 79, .25); background: color-mix(in srgb, #fff0ef 78%, var(--surface)); }
html[data-theme="dark"] .ai-metric.danger { background: #352126; }
.ai-step-list { margin: 0; padding: 0 16px 15px; display: grid; gap: 8px; counter-reset: ai-step; list-style: none; }
.ai-step-list li { min-height: 42px; display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 9px; color: var(--ink-soft); }
.ai-step-list li::before { counter-increment: ai-step; content: counter(ai-step); width: 28px; height: 28px; display: grid; place-items: center; color: #fff; background: var(--primary); border-radius: 9px; font-size: 11px; font-weight: 900; }
.ai-item-list { padding: 0 14px 14px; display: grid; gap: 7px; }
.ai-item { padding: 11px 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 12px; }
.ai-item strong { color: var(--ink); }
.ai-item > b { color: var(--primary-dark); }
.ai-item > span { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.ai-progress { padding: 0 15px 15px; display: grid; gap: 6px; color: var(--muted); font-size: 11px; }
.ai-progress i { height: 7px; display: block; overflow: hidden; background: var(--surface-soft); border-radius: 999px; }
.ai-progress b { height: 100%; display: block; background: linear-gradient(90deg, var(--primary), var(--mint)); border-radius: inherit; }
.ai-confirmation { margin: 0 14px 14px; padding: 13px; display: grid; gap: 4px; background: var(--accent-light); border: 1px solid rgba(214, 145, 45, .25); border-radius: 13px; }
.ai-confirmation strong { color: var(--ink); }
.ai-confirmation span { color: var(--ink-soft); }
.ai-confirmation small { color: var(--muted); }
.rich-response.response-error { border-color: rgba(207, 85, 79, .28); }
.rich-response.response-error .ai-response-head { background: color-mix(in srgb, #fff0ef 72%, var(--surface)); }
html[data-theme="dark"] .rich-response.response-error .ai-response-head { background: #352126; }
.rich-response.response-confirmation { border-color: rgba(214, 145, 45, .32); }
.rich-response .ai-action-row { margin: 0; padding: 0 14px 14px; }
.rich-response .ai-action-row a { display: inline-flex; align-items: center; min-height: 38px; padding: 8px 13px; color: #fff; background: var(--primary); border: 0; border-radius: 11px; }

@media (max-width: 720px) {
  html,
  body { width: 100%; max-width: 100%; overflow-x: clip; }
  .hero-section.ai-first-hero {
    width: 100%;
    max-width: 100vw;
    min-height: 100svh;
    padding: 96px 0 28px;
    align-items: start;
    overflow: hidden;
  }
  .ai-first-shell.site-container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-inline: 0;
    padding-inline: 16px;
  }
  .ai-first-intro,
  .ai-first-workspace.business-ai-hero,
  .ai-first-capabilities {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .ai-first-intro { padding-inline: 2px; }
  .ai-first-intro h1 {
    width: 100%;
    max-width: 100%;
    margin: 16px auto 9px;
    padding: 0;
    font-size: clamp(30px, 9.2vw, 39px);
    line-height: 1.32;
    letter-spacing: -.03em;
    overflow-wrap: anywhere;
    word-break: normal;
  }
  .ai-first-intro p {
    width: 100%;
    max-width: 360px;
    margin-inline: auto;
    padding-inline: 4px;
    font-size: 14px;
    line-height: 1.9;
    overflow-wrap: anywhere;
  }
  .ai-first-status {
    max-width: 100%;
    padding-inline: 13px;
    white-space: normal;
    text-align: center;
  }
  .ai-first-workspace.business-ai-hero {
    margin-top: 24px;
    padding: 0;
    border-radius: 24px;
    box-sizing: border-box;
  }
  .ai-first-orb { width: 58px; height: 58px; margin-bottom: 13px; border-radius: 19px; }
  .ai-first-workspace:not(.is-chatting) { margin-top: 22px; }
  .ai-first-workspace:not(.is-chatting) .business-ai-form {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 66px;
    margin: 0;
    padding: 8px 9px 8px 13px;
    border-radius: 22px;
  }
  .ai-first-workspace:not(.is-chatting) .business-ai-form textarea { min-width: 0; min-height: 45px; font-size: 14px; }
  .ai-first-workspace:not(.is-chatting) .business-ai-form button { width: 46px; min-width: 46px; height: 46px; border-radius: 15px; }
  .ai-first-workspace:not(.is-chatting) .business-ai-chips {
    width: 100%;
    max-width: 100%;
    padding: 13px 2px 0;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-padding-inline: 2px;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }
  .ai-first-workspace .business-ai-chips button {
    max-width: 84vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ai-first-workspace .business-ai-head { min-height: 66px; padding: 11px 12px; }
  .ai-first-workspace .business-ai-head > span { width: 40px; height: 40px; }
  .ai-first-workspace .business-ai-head > a { padding: 7px 10px; }
  .ai-first-workspace .business-ai-messages { min-height: 120px; max-height: 34vh; padding: 16px 12px 6px; }
  .ai-first-workspace .ai-message { max-width: 94%; padding: 11px 13px; }
  .ai-first-workspace .business-ai-chips { padding: 8px 12px 11px; }
  .ai-first-workspace .business-ai-form {
    width: calc(100% - 20px);
    max-width: calc(100% - 20px);
    min-width: 0;
    margin: 0 10px 10px;
    flex-direction: row;
  }
  .ai-first-workspace .business-ai-form textarea { flex: 1 1 auto; min-width: 0; max-width: 100%; }
  .ai-first-workspace .business-ai-form button { width: 46px; min-width: 46px; padding: 0; flex: 0 0 46px; }
  .ai-first-workspace .business-ai-form button span { display: none; }
  .ai-first-workspace .business-ai-actions { padding: 10px 13px; }
  .ai-first-workspace .business-ai-actions > span { display: none; }
  .ai-first-workspace .business-ai-actions > div { width: 100%; justify-content: space-between; }
  .ai-first-capabilities {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 0;
    padding-inline: 2px;
  }
  .ai-first-capabilities span {
    min-width: 0;
    padding: 6px 8px;
    text-align: center;
    white-space: normal;
    line-height: 1.7;
  }
  .ai-first-capabilities span:nth-child(2) { border-left: 0; }
  .ai-first-hero.is-chatting { padding-top: 84px; }
  .ai-first-hero.is-chatting .business-ai-messages { min-height: 56vh; max-height: 62vh; }
  .ai-first-workspace .rich-response { width: 98%; max-width: 98%; }
  .ai-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 390px) {
  .ai-first-shell.site-container { padding-inline: 12px; }
  .ai-first-intro h1 { font-size: clamp(28px, 8.8vw, 34px); }
  .ai-first-capabilities { font-size: 11px; }
}

/* AI-first landing refresh */
.site-header:not(.is-scrolled) {
  background: color-mix(in srgb, var(--bg) 58%, transparent);
  backdrop-filter: blur(14px);
}
.hero-section.ai-first-hero {
  min-height: 100svh;
  padding-top: 112px;
  background:
    linear-gradient(115deg, rgba(10, 124, 103, .08), transparent 28%),
    linear-gradient(245deg, rgba(239, 177, 90, .11), transparent 30%),
    radial-gradient(circle at 50% 36%, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 46%),
    linear-gradient(180deg, #f8faf8 0%, #eef5f1 66%, var(--bg) 100%);
}
html[data-theme="dark"] .hero-section.ai-first-hero {
  background:
    linear-gradient(115deg, rgba(81, 201, 173, .13), transparent 30%),
    linear-gradient(245deg, rgba(239, 177, 90, .08), transparent 31%),
    radial-gradient(circle at 50% 35%, rgba(31, 52, 55, .58), rgba(31, 52, 55, 0) 48%),
    linear-gradient(180deg, #081214 0%, #0e1b1d 64%, var(--bg) 100%);
}
.ai-first-shell {
  width: min(1040px, calc(100% - 40px));
}
.ai-first-intro {
  max-width: 860px;
}
.ai-first-intro h1 {
  margin-top: 18px;
  font-size: clamp(42px, 5.15vw, 76px);
  letter-spacing: 0;
  text-wrap: balance;
}
.ai-first-intro p {
  max-width: 620px;
  margin-inline: auto;
  line-height: 1.95;
}
.ai-first-workspace.business-ai-hero,
.ai-first-workspace:not(.is-chatting) {
  max-width: 900px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 78%, #fff);
  border-radius: 28px;
  box-shadow: 0 34px 95px rgba(16, 47, 42, .17), 0 1px 0 rgba(255,255,255,.8) inset;
  overflow: hidden;
}
html[data-theme="dark"] .ai-first-workspace.business-ai-hero,
html[data-theme="dark"] .ai-first-workspace:not(.is-chatting) {
  background: rgba(18, 31, 34, .94);
  border-color: rgba(95, 126, 122, .32);
  box-shadow: 0 34px 95px rgba(0, 0, 0, .36), 0 1px 0 rgba(255,255,255,.04) inset;
}
.ai-first-workspace:not(.is-chatting) .business-ai-head,
.ai-first-workspace:not(.is-chatting) .business-ai-messages {
  display: flex;
}
.ai-first-workspace:not(.is-chatting) .business-ai-head {
  border-bottom: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
}
.ai-first-workspace:not(.is-chatting) .business-ai-messages {
  min-height: 126px;
  padding: 24px 24px 2px;
  align-items: center;
  justify-content: center;
}
.ai-first-workspace .business-ai-messages:empty::before {
  content: "درخواستت را مثل یک گفت‌وگوی معمولی بنویس. مثلا: برای کسب‌وکارم برنامه محتوا بساز";
  width: min(680px, 100%);
  color: var(--muted);
  text-align: center;
  font-size: 15px;
  line-height: 2;
}
.ai-first-workspace:not(.is-chatting) .business-ai-form {
  margin: 8px 22px 14px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--line));
  box-shadow: 0 18px 50px rgba(10, 124, 103, .11);
}
.ai-first-workspace:not(.is-chatting) .business-ai-form textarea {
  min-height: 58px;
  font-size: 17px;
}
.ai-first-workspace:not(.is-chatting) .business-ai-form button {
  width: 58px;
  min-width: 58px;
  height: 58px;
  border-radius: 18px;
}
.ai-first-workspace:not(.is-chatting) .business-ai-chips {
  padding: 2px 22px 18px;
  justify-content: center;
}
.ai-first-workspace:not(.is-chatting) .business-ai-chips button {
  min-height: 40px;
  border-color: color-mix(in srgb, var(--line) 82%, transparent);
}
.ai-first-workspace:not(.is-chatting) .business-ai-actions {
  padding: 12px 22px 16px;
  background: color-mix(in srgb, var(--surface-soft) 78%, transparent);
  border-top: 1px solid var(--line);
}
.ai-first-capabilities {
  width: min(860px, 100%);
  margin-top: 22px;
  gap: 10px;
}
.ai-first-capabilities span {
  min-height: 46px;
  padding: 9px 12px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(20, 49, 43, .05);
}
.ai-first-capabilities span:last-child {
  border-left: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
}
.ai-first-hero.is-chatting {
  padding-top: 96px;
}
.ai-first-hero.is-chatting .ai-first-workspace {
  max-width: 980px;
}

@media (max-width: 720px) {
  .site-header:not(.is-scrolled) {
    background: color-mix(in srgb, var(--bg) 82%, transparent);
  }
  .hero-section.ai-first-hero {
    padding-top: 86px;
  }
  .ai-first-shell.site-container {
    width: 100%;
    padding-inline: 14px;
  }
  .ai-first-intro {
    max-height: none;
  }
  .ai-first-intro h1 {
    font-size: clamp(30px, 8.1vw, 38px);
    line-height: 1.38;
    letter-spacing: 0;
    text-wrap: pretty;
  }
  .ai-first-intro p {
    max-width: 340px;
    font-size: 13px;
  }
  .ai-first-workspace.business-ai-hero,
  .ai-first-workspace:not(.is-chatting) {
    border-radius: 22px;
  }
  .ai-first-workspace:not(.is-chatting) .business-ai-head {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
  }
  .ai-first-workspace:not(.is-chatting) .business-ai-head strong,
  .ai-first-workspace:not(.is-chatting) .business-ai-head small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ai-first-workspace:not(.is-chatting) .business-ai-messages {
    min-height: 94px;
    padding: 17px 14px 0;
  }
  .ai-first-workspace .business-ai-messages:empty::before {
    font-size: 12px;
    line-height: 1.9;
  }
  .ai-first-workspace:not(.is-chatting) .business-ai-form {
    margin: 8px 12px 12px;
    padding: 8px;
    flex-direction: row;
  }
  .ai-first-workspace:not(.is-chatting) .business-ai-form textarea {
    min-height: 46px;
    font-size: 14px;
  }
  .ai-first-workspace:not(.is-chatting) .business-ai-form button {
    width: 46px;
    min-width: 46px;
    height: 46px;
    border-radius: 15px;
  }
  .ai-first-workspace:not(.is-chatting) .business-ai-chips {
    padding: 0 12px 14px;
    justify-content: flex-start;
    overflow-x: auto;
  }
  .ai-first-workspace:not(.is-chatting) .business-ai-actions {
    padding: 10px 12px;
  }
  .ai-first-capabilities {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ai-first-capabilities span {
    border-left: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  }
}

/* Stable chat conversation layout */
.ai-first-hero.is-chatting {
  padding: 72px 0 0;
}
.ai-first-hero.is-chatting .ai-first-shell {
  width: min(980px, calc(100% - 360px));
  height: calc(100svh - 72px);
  min-height: 0;
  max-height: none;
  align-content: stretch;
  grid-template-rows: minmax(0, 1fr);
}
.ai-first-hero.is-chatting .ai-first-workspace {
  width: 100%;
  max-width: 100%;
  min-height: 0;
  height: 100%;
  margin: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}
.ai-first-hero.is-chatting .business-ai-head {
  display: none;
}
.ai-first-hero.is-chatting .business-ai-messages {
  min-height: 0;
  max-height: none;
  padding: 18px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
  scroll-padding-block: 28px;
}
.ai-first-hero.is-chatting .ai-message {
  width: fit-content;
  max-width: min(760px, 82%);
  margin: 0;
  line-height: 2;
}
.ai-first-hero.is-chatting .ai-message.user {
  align-self: flex-end;
  margin-right: clamp(8px, 6vw, 90px);
  padding: 12px 22px;
  color: #12302d;
  background: #e9e5fb;
  border-radius: 20px 20px 7px 20px;
  box-shadow: none;
}
html[data-theme="dark"] .ai-first-hero.is-chatting .ai-message.user {
  color: #f5f8ff;
  background: #263a46;
}
.ai-first-hero.is-chatting .ai-message.assistant,
.ai-first-hero.is-chatting .ai-message.assistant.rich-response {
  align-self: flex-start;
  margin-left: clamp(8px, 6vw, 90px);
  background: transparent;
  border: 0;
  box-shadow: none;
}
.ai-first-hero.is-chatting .ai-message.assistant.rich-response {
  width: min(760px, 82%);
  max-width: min(760px, 82%);
  background: transparent;
  border-radius: 0;
}
.ai-first-hero.is-chatting .rich-response .ai-response-head {
  min-height: 0;
  padding: 0 0 6px;
  background: transparent;
  border: 0;
}
.ai-first-hero.is-chatting .rich-response .ai-response-head > span {
  display: none;
}
.ai-first-hero.is-chatting .rich-response .ai-response-head > strong {
  font-size: 15px;
}
.ai-first-hero.is-chatting .ai-response-message {
  padding: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 2.15;
}
.ai-first-hero.is-chatting .ai-item-list,
.ai-first-hero.is-chatting .ai-step-list,
.ai-first-hero.is-chatting .ai-metric-grid,
.ai-first-hero.is-chatting .rich-response .ai-action-row {
  width: 100%;
  padding: 14px 0 0;
}
.ai-first-hero.is-chatting .ai-item,
.ai-first-hero.is-chatting .ai-metric {
  background: color-mix(in srgb, var(--surface) 84%, transparent);
}
.ai-first-hero.is-chatting .guest-login-nudge {
  width: min(760px, 82%);
  max-width: min(760px, 82%);
  padding: 16px 18px;
  background: #f9fbfa;
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(25, 40, 45, .06);
}
.ai-first-hero.is-chatting .business-ai-form {
  width: min(760px, 100%);
  min-height: 88px;
  margin: 0 auto 14px;
  padding: 14px 18px;
  grid-row: 2;
  border-radius: 28px;
  box-shadow: 0 18px 48px rgba(25, 40, 45, .13);
}
.ai-first-hero.is-chatting .business-ai-actions {
  width: min(760px, 100%);
  min-height: 32px;
  margin: 0 auto;
  padding: 0 2px 10px;
  grid-row: 3;
  color: var(--muted);
  background: transparent;
  border: 0;
}
.ai-first-hero.is-chatting .business-ai-actions > span {
  display: flex;
}
.ai-first-hero.is-chatting .business-ai-actions > div {
  margin-right: auto;
}

@media (max-width: 1100px) {
  .ai-first-hero.is-chatting .ai-first-shell {
    width: min(980px, calc(100% - 32px));
    margin-inline: auto;
  }
}

@media (max-width: 720px) {
  .ai-first-hero.is-chatting {
    padding-top: 64px;
  }
  .ai-first-hero.is-chatting .ai-first-shell {
    width: 100%;
    height: calc(100svh - 64px);
    padding-inline: 10px;
  }
  .ai-first-hero.is-chatting .business-ai-messages {
    padding: 12px 0 16px;
    gap: 14px;
  }
  .ai-first-hero.is-chatting .ai-message,
  .ai-first-hero.is-chatting .ai-message.assistant.rich-response,
  .ai-first-hero.is-chatting .guest-login-nudge {
    max-width: 92%;
    width: fit-content;
  }
  .ai-first-hero.is-chatting .ai-message.user {
    margin-right: 4px;
    padding: 10px 16px;
  }
  .ai-first-hero.is-chatting .ai-message.assistant,
  .ai-first-hero.is-chatting .ai-message.assistant.rich-response {
    margin-left: 4px;
  }
  .ai-first-hero.is-chatting .ai-message.assistant.rich-response,
  .ai-first-hero.is-chatting .guest-login-nudge {
    width: 92%;
  }
  .ai-first-hero.is-chatting .ai-response-message {
    font-size: 14px;
    line-height: 2;
  }
  .ai-first-hero.is-chatting .business-ai-form {
    width: calc(100% - 8px);
    min-height: 74px;
    margin-bottom: 8px;
  }
  .ai-first-hero.is-chatting .business-ai-actions {
    width: calc(100% - 8px);
    padding-bottom: 6px;
  }
  .ai-first-hero.is-chatting .business-ai-actions > span {
    display: none;
  }
}

/* The homepage is now the AI chat product itself, not a scrolling landing page. */
body.site-body {
  height: 100svh;
  overflow: hidden;
}
#main-content {
  height: 100svh;
  overflow: hidden;
}
#main-content > section:not(.ai-first-hero),
.site-footer {
  display: none !important;
}
.hero-section.ai-first-hero {
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
}
.ai-first-shell {
  max-height: calc(100svh - 72px);
  overflow: hidden;
}
.ai-first-hero.is-chatting .ai-first-shell {
  max-height: calc(100svh - 64px);
}
.ai-first-hero.is-chatting .business-ai-messages {
  overflow-y: auto;
  overscroll-behavior: contain;
}

@media (max-width: 720px) {
  .hero-section.ai-first-hero {
    height: 100svh;
    overflow: hidden;
  }
  .ai-first-shell {
    max-height: calc(100svh - 70px);
  }
  .ai-first-hero.is-chatting .ai-first-shell {
    max-height: calc(100svh - 70px);
  }
}

/* Chat-app homepage mode */
.site-header {
  display: none;
}
.hero-section.ai-first-hero {
  padding: 72px 0 38px 0;
  background: #fbfcfb;
}
html[data-theme="dark"] .hero-section.ai-first-hero {
  background: #081113;
}
.hero-section.ai-first-hero::after {
  display: none;
}
.ai-app-sidebar {
  position: fixed;
  z-index: 120;
  inset: 0 0 0 auto;
  width: 304px;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #f2f3f4;
  border-left: 1px solid #e1e5e7;
}
html[data-theme="dark"] .ai-app-sidebar {
  background: #10191d;
  border-left-color: #26383e;
}
.ai-side-brand {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-inline: 6px;
}
.ai-side-brand strong {
  font-size: 18px;
  font-weight: 900;
}
.ai-side-new-chat,
.ai-top-new-chat {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #dfe4e7;
  border-radius: 13px;
  font-weight: 900;
}
html[data-theme="dark"] .ai-side-new-chat,
html[data-theme="dark"] .ai-top-new-chat {
  background: #142126;
  border-color: #31464d;
}
.ai-side-nav {
  display: grid;
  gap: 3px;
}
.ai-side-nav a {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--ink-soft);
  font-weight: 800;
}
.ai-side-nav a.active,
.ai-side-nav a:hover {
  color: var(--ink);
  background: #e6e8ea;
}
html[data-theme="dark"] .ai-side-nav a.active,
html[data-theme="dark"] .ai-side-nav a:hover {
  background: #1b2a30;
}
.ai-side-capabilities {
  padding-top: 12px;
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
}
.ai-side-capabilities span {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
}
.ai-side-capabilities b {
  color: var(--primary);
  font-size: 11px;
}
.ai-side-bottom {
  margin-top: auto;
  display: grid;
  gap: 9px;
}
.ai-side-bottom small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}
.ai-chat-topbar {
  position: fixed;
  z-index: 110;
  top: 8px;
  right: 324px;
  left: 18px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.ai-chat-topbar > * {
  pointer-events: auto;
}
.ai-chat-topbar .icon-button {
  display: none;
}
.ai-model-pill {
  min-height: 48px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: #fff;
  border: 1px solid #dfe4e7;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(25, 40, 45, .05);
  font-weight: 900;
}
html[data-theme="dark"] .ai-model-pill {
  background: #142126;
  border-color: #31464d;
}
.ai-first-shell {
  width: min(980px, calc(100% - 360px));
  min-height: calc(100svh - 110px);
  margin-right: calc(304px + max(24px, (100vw - 304px - 980px) / 2));
  margin-left: max(24px, (100vw - 304px - 980px) / 2);
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-content: center;
}
.ai-first-orb {
  width: 84px;
  height: 84px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--line);
  box-shadow: 0 12px 35px rgba(20, 49, 43, .14);
}
html[data-theme="dark"] .ai-first-orb {
  background: #142126;
}
.ai-first-orb i {
  display: none;
}
.ai-first-status {
  display: none;
}
.ai-first-intro h1 {
  margin: 10px 0 7px;
  font-size: clamp(42px, 4.3vw, 62px);
  line-height: 1.22;
  letter-spacing: 0;
}
.ai-first-intro p {
  font-size: 16px;
}
.ai-service-bar {
  margin: 28px auto 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ai-service-bar span {
  min-height: 44px;
  padding: 9px 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #132229;
  background: #f8f8fb;
  border: 1px solid #e4e5ea;
  border-radius: 999px;
  font-weight: 900;
  box-shadow: 0 8px 24px rgba(25, 40, 45, .04);
}
html[data-theme="dark"] .ai-service-bar span {
  color: var(--ink);
  background: #142126;
  border-color: #31464d;
}
.ai-service-bar svg {
  color: var(--primary);
}
.ai-first-workspace.business-ai-hero,
.ai-first-workspace:not(.is-chatting) {
  width: min(760px, 100%);
  max-width: 760px;
  margin-top: 84px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}
.ai-first-workspace:not(.is-chatting) .business-ai-head,
.ai-first-workspace:not(.is-chatting) .business-ai-messages {
  display: none;
}
.ai-first-workspace:not(.is-chatting) .business-ai-form,
.ai-first-workspace .business-ai-form {
  min-height: 86px;
  margin: 0;
  padding: 14px 18px;
  align-items: center;
  background: #fff;
  border: 1px solid #dfe4e7;
  border-radius: 26px;
  box-shadow: 0 18px 45px rgba(25, 40, 45, .12);
}
html[data-theme="dark"] .ai-first-workspace:not(.is-chatting) .business-ai-form,
html[data-theme="dark"] .ai-first-workspace .business-ai-form {
  background: #142126;
  border-color: #31464d;
}
.ai-first-workspace:not(.is-chatting) .business-ai-form textarea,
.ai-first-workspace .business-ai-form textarea {
  min-height: 54px;
  padding: 8px 4px;
  font-size: 17px;
}
.ai-first-workspace:not(.is-chatting) .business-ai-form button,
.ai-first-workspace .business-ai-form button {
  width: 54px;
  min-width: 54px;
  height: 54px;
  padding: 0;
  border-radius: 50%;
}
.ai-first-workspace:not(.is-chatting) .business-ai-form button span,
.ai-first-workspace .business-ai-form button span {
  display: none;
}
.ai-first-workspace:not(.is-chatting) .business-ai-chips {
  padding: 18px 0 0;
  justify-content: center;
}
.ai-first-workspace:not(.is-chatting) .business-ai-actions {
  display: none;
}
.ai-first-hero.is-chatting {
  padding-top: 64px;
}
.ai-first-hero.is-chatting .ai-first-shell {
  align-content: stretch;
  grid-template-rows: 1fr auto;
}
.ai-first-hero.is-chatting .ai-first-intro,
.ai-first-hero.is-chatting .ai-service-bar {
  display: none;
}
.ai-first-hero.is-chatting .ai-first-workspace {
  width: min(920px, 100%);
  max-width: 920px;
  min-height: calc(100svh - 110px);
  margin-top: 0;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 20px 58px rgba(25, 40, 45, .10);
  overflow: hidden;
}
.ai-first-hero.is-chatting .business-ai-messages {
  min-height: 0;
  max-height: none;
  padding: 24px;
}
.ai-first-hero.is-chatting .business-ai-form {
  margin: 0 18px 16px;
  min-height: 76px;
}
.ai-first-hero.is-chatting .business-ai-actions {
  min-height: 44px;
}
.guest-login-nudge {
  width: min(92%, 760px);
  max-width: 760px;
  padding: 14px 16px;
  background: color-mix(in srgb, var(--primary-light) 70%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--line));
  border-radius: 16px;
}
.guest-login-nudge strong,
.guest-login-nudge span {
  display: block;
}
.guest-login-nudge strong {
  color: var(--ink);
  margin-bottom: 4px;
}
.guest-login-nudge span {
  color: var(--muted);
}
.guest-login-nudge a {
  margin-top: 10px;
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 7px 12px;
  color: #fff;
  background: var(--primary);
  border-radius: 10px;
  font-weight: 900;
}

@media (max-width: 1100px) {
  .ai-app-sidebar {
    display: none;
  }
  .ai-chat-topbar {
    right: 16px;
    left: 16px;
  }
  .ai-chat-topbar .icon-button {
    display: inline-grid;
  }
  .ai-top-new-chat {
    display: none;
  }
  .ai-first-shell {
    width: min(960px, calc(100% - 32px));
    margin-inline: auto;
  }
}

@media (max-width: 720px) {
  .hero-section.ai-first-hero {
    padding-top: 70px;
    min-height: 100svh;
  }
  .ai-chat-topbar {
    top: 10px;
    gap: 7px;
    justify-content: flex-start;
  }
  .ai-chat-topbar .ai-model-pill {
    margin-right: auto;
  }
  .ai-model-pill {
    min-height: 42px;
    padding: 8px 13px;
    font-size: 13px;
  }
  .ai-first-shell {
    min-height: calc(100svh - 86px);
    padding-inline: 16px;
    align-content: center;
  }
  .ai-first-orb {
    width: 66px;
    height: 66px;
  }
  .ai-first-intro h1 {
    font-size: clamp(31px, 8vw, 38px);
    line-height: 1.36;
  }
  .ai-first-intro p {
    font-size: 13px;
  }
  .ai-service-bar {
    margin: 20px 0 18px;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 3px;
  }
  .ai-service-bar span {
    flex: 0 0 auto;
    max-width: 82vw;
    min-height: 40px;
    padding: 8px 13px;
    font-size: 12px;
    white-space: nowrap;
  }
  .ai-first-workspace.business-ai-hero,
  .ai-first-workspace:not(.is-chatting) {
    margin-top: 48px;
  }
  .ai-first-workspace:not(.is-chatting) .business-ai-form,
  .ai-first-workspace .business-ai-form {
    min-height: 74px;
    padding: 10px 12px;
    border-radius: 23px;
  }
  .ai-first-workspace:not(.is-chatting) .business-ai-form textarea,
  .ai-first-workspace .business-ai-form textarea {
    min-height: 48px;
    font-size: 14px;
  }
  .ai-first-workspace:not(.is-chatting) .business-ai-form button,
  .ai-first-workspace .business-ai-form button {
    width: 46px;
    min-width: 46px;
    height: 46px;
  }
  .ai-first-hero.is-chatting .ai-first-shell {
    align-content: stretch;
  }
  .ai-first-hero.is-chatting .ai-first-workspace {
    min-height: calc(100svh - 92px);
    border-radius: 20px;
  }
  .ai-first-hero.is-chatting .business-ai-messages {
    padding: 15px 12px;
  }
  .ai-first-hero.is-chatting .business-ai-form {
    margin: 0 10px 10px;
  }
  .guest-login-nudge {
    width: 98%;
    padding: 12px;
  }
}

/* Final homepage chat layout: one suggestion area and a stable conversation viewport. */
.ai-chat-home {
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
}

.ai-chat-home .site-header,
.ai-chat-home .site-footer,
.ai-chat-home #main-content > :not(.ai-first-hero) {
  display: none !important;
}

.ai-chat-home #main-content,
.ai-chat-home .hero-section.ai-first-hero {
  height: 100svh;
  min-height: 100svh;
}

.ai-first-hero .business-ai-chips {
  display: none !important;
}

.hero-section.ai-first-hero {
  padding-top: 64px;
}

.ai-first-shell {
  height: calc(100svh - 64px);
  min-height: 0;
  max-height: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow: hidden;
}

.ai-first-intro {
  flex: 0 0 auto;
}

.ai-service-bar {
  flex: 0 0 auto;
  margin: 24px auto 22px;
}

.ai-first-workspace.business-ai-hero,
.ai-first-workspace:not(.is-chatting) {
  flex: 0 0 auto;
  width: min(760px, 100%);
  margin-top: 22px;
}

.ai-first-hero.is-chatting {
  padding-top: 64px;
}

.ai-first-hero.is-chatting .ai-first-shell {
  height: calc(100svh - 64px);
  min-height: 0;
  max-height: none;
  display: flex;
  align-items: center;
  justify-content: stretch;
  overflow: hidden;
}

.ai-first-hero.is-chatting .ai-first-intro,
.ai-first-hero.is-chatting .ai-service-bar {
  display: none;
}

.ai-first-hero.is-chatting .ai-first-workspace {
  flex: 1 1 auto;
  width: min(940px, 100%);
  max-width: 940px;
  height: 100%;
  min-height: 0;
  margin: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.ai-first-hero.is-chatting .business-ai-head,
.ai-first-hero.is-chatting .business-ai-actions {
  display: none;
}

.ai-first-hero.is-chatting .business-ai-messages {
  width: 100%;
  min-height: 0;
  max-height: none;
  padding: 26px max(20px, 7%);
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: auto;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
}

.ai-first-hero.is-chatting .ai-message {
  flex: 0 0 auto;
  max-width: min(78%, 720px);
  margin: 0;
}

.ai-first-hero.is-chatting .ai-message.user {
  width: fit-content;
  align-self: flex-end;
}

.ai-first-hero.is-chatting .ai-message.assistant,
.ai-first-hero.is-chatting .ai-message.assistant.rich-response {
  width: min(100%, 760px);
  max-width: 760px;
  align-self: flex-start;
}

.ai-first-hero.is-chatting .business-ai-form {
  flex: 0 0 auto;
  width: min(760px, calc(100% - 36px));
  min-height: 76px;
  margin: 10px auto 16px;
  padding: 11px 14px;
}

.ai-first-hero.is-chatting .business-ai-form textarea {
  min-height: 50px;
  max-height: 140px;
}

@media (max-width: 1100px) {
  .ai-first-shell,
  .ai-first-hero.is-chatting .ai-first-shell {
    width: min(960px, calc(100% - 28px));
    margin-inline: auto;
  }
}

@media (max-width: 720px) {
  .hero-section.ai-first-hero,
  .ai-first-hero.is-chatting {
    padding-top: 62px;
  }

  .ai-first-shell,
  .ai-first-hero.is-chatting .ai-first-shell {
    width: 100%;
    height: calc(100svh - 62px);
    min-height: 0;
    max-height: none;
    padding-inline: 12px;
  }

  .ai-first-intro h1 {
    font-size: clamp(29px, 8vw, 36px);
  }

  .ai-service-bar {
    margin-block: 18px 14px;
  }

  .ai-first-workspace.business-ai-hero,
  .ai-first-workspace:not(.is-chatting) {
    margin-top: 18px;
  }

  .ai-first-hero.is-chatting .ai-first-workspace {
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  .ai-first-hero.is-chatting .business-ai-messages {
    padding: 16px 4px 10px;
    gap: 16px;
    scrollbar-gutter: auto;
  }

  .ai-first-hero.is-chatting .ai-message {
    max-width: 90%;
  }

  .ai-first-hero.is-chatting .ai-message.assistant,
  .ai-first-hero.is-chatting .ai-message.assistant.rich-response {
    width: 96%;
    max-width: 96%;
  }

  .ai-first-hero.is-chatting .business-ai-form {
    width: 100%;
    min-height: 70px;
    margin: 8px auto max(8px, env(safe-area-inset-bottom));
  }
}

/* Professional AI workspace: history, multimodal tools and model picker. */
.ai-history-panel {
  min-height: 120px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ai-history-head {
  min-height: 44px;
  padding: 8px 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

.ai-history-head button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
}

.ai-history-head button:hover {
  color: var(--ink);
  background: var(--surface);
}

.ai-history-list {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.ai-history-empty {
  padding: 18px 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.9;
  text-align: center;
}

.ai-history-item {
  min-height: 52px;
  display: flex;
  align-items: center;
  border-radius: 11px;
}

.ai-history-item:hover,
.ai-history-item.active {
  background: color-mix(in srgb, var(--surface) 86%, var(--primary-light));
}

.ai-history-open {
  min-width: 0;
  flex: 1 1 auto;
  padding: 8px 9px;
  display: grid;
  gap: 2px;
  text-align: right;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.ai-history-open strong,
.ai-history-open small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-history-open strong {
  font-size: 12px;
}

.ai-history-open small {
  color: var(--muted);
  font-size: 10px;
}

.ai-history-actions {
  flex: 0 0 auto;
  padding-left: 5px;
  display: flex;
  opacity: 0;
  transition: opacity .16s ease;
}

.ai-history-item:hover .ai-history-actions,
.ai-history-item.active .ai-history-actions {
  opacity: 1;
}

.ai-history-actions button {
  width: 26px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.ai-history-actions button:hover {
  color: var(--ink);
  background: var(--surface-soft);
}

.ai-side-nav {
  flex: 0 0 auto;
}

.ai-side-capabilities {
  flex: 0 0 auto;
}

.drawer-chat-history {
  margin: 10px 0;
  padding-block: 4px;
  border-block: 1px solid var(--line);
}

.drawer-chat-history .ai-history-list {
  max-height: 32svh;
}

.ai-first-workspace {
  position: relative;
}

.ai-first-hero.is-chatting .ai-first-workspace {
  overflow: visible;
}

.ai-first-workspace .business-ai-form,
.ai-first-workspace:not(.is-chatting) .business-ai-form,
.ai-first-hero.is-chatting .business-ai-form {
  min-height: 0;
  padding: 8px 10px 7px;
  display: block;
}

.business-ai-compose-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.ai-first-workspace .business-ai-compose-row textarea {
  min-width: 0;
  flex: 1 1 auto;
  min-height: 46px;
  padding: 9px 5px;
}

.ai-first-workspace .business-ai-compose-row > button {
  width: 48px;
  min-width: 48px;
  height: 48px;
  min-height: 48px;
  flex: 0 0 48px;
  padding: 0;
  color: #fff;
  background: var(--primary);
  border: 0;
  border-radius: 50%;
}

.business-ai-compose-tools {
  min-height: 40px;
  padding-top: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
}

.business-ai-compose-tools > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ai-first-workspace .business-ai-compose-tools button {
  width: auto;
  min-width: 0;
  min-height: 34px;
  height: 34px;
  padding: 5px 9px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.ai-first-workspace .business-ai-compose-tools button:hover,
.ai-first-workspace .business-ai-compose-tools button[aria-expanded="true"] {
  color: var(--ink);
  background: var(--surface-soft);
}

.ai-first-workspace .business-ai-compose-tools button svg {
  width: 16px;
  height: 16px;
}

.ai-first-workspace .business-ai-compose-tools button svg:last-child {
  width: 12px;
  height: 12px;
  transform: rotate(-90deg);
}

.ai-first-workspace .business-ai-compose-tools .ai-compose-model {
  max-width: 320px;
  justify-content: space-between;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.ai-compose-model > span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.ai-compose-model i {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 12%, transparent);
}

.ai-compose-model b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
}

.business-ai-attachments {
  padding: 3px 1px 7px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
}

.business-ai-attachments[hidden] {
  display: none;
}

.ai-attachment-chip {
  max-width: 230px;
  min-height: 35px;
  flex: 0 0 auto;
  padding: 5px 7px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.ai-attachment-chip i {
  color: var(--primary);
  font-size: 8px;
  font-style: normal;
}

.ai-attachment-chip b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
}

.ai-attachment-chip button {
  width: 22px !important;
  min-width: 22px !important;
  height: 22px !important;
  min-height: 22px !important;
  padding: 0 !important;
  color: var(--muted) !important;
  background: transparent !important;
  border-radius: 7px !important;
}

.ai-popover {
  position: absolute;
  z-index: 180;
  right: 50%;
  bottom: 112px;
  width: min(680px, calc(100vw - 36px));
  max-height: min(660px, 72svh);
  transform: translateX(50%);
  color: var(--ink);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 28px 85px rgba(18, 38, 35, .22);
  backdrop-filter: blur(22px);
  overflow: hidden;
}

.ai-popover[hidden] {
  display: none;
}

.ai-tool-popover {
  width: min(560px, calc(100vw - 36px));
}

.ai-popover-head {
  min-height: 65px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.ai-popover-head > div {
  display: grid;
  gap: 2px;
}

.ai-popover-head small {
  color: var(--muted);
  font-size: 10px;
}

.ai-popover-head > button {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  color: var(--muted);
  background: var(--surface-soft);
  border: 0;
  border-radius: 10px;
}

.ai-popover-head > button svg {
  width: 16px;
  height: 16px;
}

.ai-tool-grid {
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ai-first-workspace .ai-tool-grid > button {
  min-width: 0;
  min-height: 74px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  text-align: right;
  color: var(--ink);
  background: var(--surface-soft);
  border: 1px solid transparent;
  border-radius: 14px;
}

.ai-first-workspace .ai-tool-grid > button:hover,
.ai-first-workspace .ai-tool-grid > button.active {
  background: var(--primary-light);
  border-color: color-mix(in srgb, var(--primary) 25%, var(--line));
}

.ai-tool-grid > button > svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  color: var(--primary);
}

.ai-tool-grid > button span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.ai-tool-grid > button b {
  color: var(--ink);
  font-size: 12px;
}

.ai-tool-grid > button small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.ai-model-tabs {
  padding: 10px 12px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}

.ai-model-library-link {
  min-height: 58px;
  margin: 10px 12px 0;
  padding: 9px 11px;
  display: grid;
  grid-template-columns: 28px minmax(0,1fr) 18px;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  background: var(--primary-light);
  border: 1px solid color-mix(in srgb,var(--primary) 22%,var(--line));
  border-radius: 13px;
}

.ai-model-library-link > svg { width: 19px; height: 19px; color: var(--primary); }
.ai-model-library-link > svg:last-child { width: 14px; height: 14px; transform: rotate(180deg); }
.ai-model-library-link span { min-width: 0; display: grid; gap: 1px; }
.ai-model-library-link b { color: var(--ink); font-size: 11px; }
.ai-model-library-link small { color: var(--muted); font-size: 9px; }

.ai-first-workspace .ai-model-tabs button {
  width: auto;
  min-width: max-content;
  min-height: 34px;
  padding: 6px 11px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-size: 10px;
}

.ai-first-workspace .ai-model-tabs button.active {
  color: var(--primary-dark);
  background: var(--primary-light);
  border-color: color-mix(in srgb, var(--primary) 30%, var(--line));
}

.ai-model-list {
  max-height: min(480px, 54svh);
  padding: 9px;
  display: grid;
  gap: 6px;
  overflow-y: auto;
}

.ai-model-loading {
  padding: 30px;
  color: var(--muted);
  text-align: center;
}

.ai-first-workspace .ai-model-option {
  width: 100%;
  min-width: 0;
  min-height: 70px;
  padding: 10px 11px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  text-align: right;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 14px;
}

.ai-first-workspace .ai-model-option:hover,
.ai-first-workspace .ai-model-option.selected {
  background: var(--surface-soft);
  border-color: var(--line);
}

.ai-model-option.selected {
  box-shadow: inset -3px 0 0 var(--primary);
}

.ai-model-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--primary-dark);
  background: var(--primary-light);
  border-radius: 12px;
  font-size: 10px;
  font-weight: 900;
}

.ai-model-option > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.ai-model-option strong {
  overflow: hidden;
  text-overflow: ellipsis;
  direction: ltr;
  text-align: left;
  white-space: nowrap;
  font-size: 12px;
}

.ai-model-option small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
}

.ai-model-option em {
  color: var(--muted);
  font-size: 8px;
  font-style: normal;
}

.ai-model-option > b {
  padding: 4px 7px;
  color: var(--primary-dark);
  background: var(--primary-light);
  border-radius: 999px;
  font-size: 8px;
}

.ai-message-attachments {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.ai-message-attachments img,
.ai-message-attachments video {
  width: min(100%, 620px);
  max-height: 520px;
  display: block;
  object-fit: contain;
  background: #0b1113;
  border-radius: 16px;
}

.ai-message-attachments audio {
  width: min(100%, 520px);
}

.ai-message-attachments a {
  width: fit-content;
  padding: 8px 12px;
  color: var(--primary-dark);
  background: var(--primary-light);
  border-radius: 10px;
  font-weight: 800;
}

@media (max-height: 760px) and (min-width: 1101px) {
  .ai-side-capabilities {
    display: none;
  }
}

@media (max-width: 720px) {
  .business-ai-compose-tools {
    gap: 4px;
  }

  .ai-first-workspace .business-ai-compose-tools button span {
    display: inline-flex;
    min-width: 0;
  }

  .ai-first-workspace .business-ai-compose-tools button {
    padding-inline: 7px;
    gap: 4px;
  }

  .ai-first-workspace .business-ai-compose-tools .ai-compose-model {
    min-width: 118px;
    max-width: 48%;
  }

  .ai-compose-model b {
    max-width: 108px;
  }

  .ai-popover,
  .ai-tool-popover {
    position: fixed;
    z-index: 260;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 80svh;
    transform: none;
    border-radius: 24px 24px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .ai-tool-grid {
    grid-template-columns: 1fr;
    max-height: 64svh;
    overflow-y: auto;
  }

  .ai-first-workspace .ai-tool-grid > button {
    min-height: 62px;
  }

  .ai-model-list {
    max-height: 60svh;
  }

  .ai-first-workspace .ai-model-option {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .ai-model-option > b {
    display: none;
  }

  .ai-history-actions {
    opacity: 1;
  }
}
