/* An AI agency's team board: hero with the agents at work, a filterable catalogue of agents, how it works, a
   customization demo, contacts, a request dialog. Light and dark themes: theme.js sets data-theme on <html>.
   The brand gradient on the wordmark, one hero phrase, step numbers and the primary button. */
:root {
  --bg: #f7f7fc;
  --surface: #ffffff;
  --tint: #f1edfd;
  --band: #efecfa;
  --ink: #14121f;
  --muted: #5d5970;
  --line: #e4e0f2;
  --dot: rgb(90 70 180 / .16);
  --blue: #3b6ef6;
  --magenta: #d61cf0;
  --accent: #7c3aed;
  --good: #11865d;
  --bad: #c2410c;
  --brand: linear-gradient(100deg, var(--blue) 0%, #8f4cf5 52%, var(--magenta) 100%);
  --shadow: 0 1px 2px rgb(40 20 90 / .06), 0 14px 36px -14px rgb(60 30 140 / .2);
  --display: "Unbounded", "Manrope", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r: 22px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b0a13; --surface: #15131f; --tint: #211b31; --band: #110f1b; --ink: #f3f1fa; --muted: #a7a2bb;
  --line: #2a2440; --dot: rgb(176 140 255 / .14); --blue: #6b93ff; --magenta: #ea5cff; --accent: #b08cff;
  --good: #43c994; --bad: #ff9b6a;
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 18px 40px -16px rgb(0 0 0 / .75); color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 16px/1.6 var(--body); padding-block: env(safe-area-inset-top, 0px) env(safe-area-inset-bottom, 0px); }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 24px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 10px; }

.tone-blue { --c: #4f6df5; } .tone-amber { --c: #e08a1e; } .tone-green { --c: #2f9d74; }
.tone-rust { --c: #d4430c; } .tone-pink { --c: #e2569b; } .tone-violet { --c: #6d4ad8; }

.wordmark { font: 700 22px/1 var(--display); letter-spacing: -.02em; background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; text-decoration: none; }
.wordmark.small { font-size: 18px; }
.grad { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 24px; border-radius: 999px; font: 700 15px/1 var(--body); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -10px rgb(124 58 237 / .7); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -10px rgb(124 58 237 / .8); }
.btn-primary:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); }
.btn.wide { width: 100%; }

.eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--good); }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent); }

/* header */
header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
nav { display: flex; gap: 28px; font-weight: 600; font-size: 15px; color: var(--muted); }
nav a { text-decoration: none; }
nav a:hover { color: var(--ink); }
.bar-end { display: flex; align-items: center; gap: 10px; }
.bar .btn { padding: 11px 18px; font-size: 14px; }
.theme { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.theme:hover { border-color: var(--accent); }
.theme svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.theme .i-sun, [data-theme="dark"] .theme .i-moon { display: none; }
[data-theme="dark"] .theme .i-sun { display: block; }

/* hero */
.hero-bg { background: radial-gradient(640px 420px at 82% 30%, rgb(143 76 245 / .2), transparent 70%), radial-gradient(520px 380px at 8% 85%, rgb(59 110 246 / .14), transparent 70%); }
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding-block: 96px 88px; }
.hero h1 { font: 700 clamp(34px, 4.8vw, 58px)/1.08 var(--display); letter-spacing: -.03em; margin-block: 22px 24px; }
.hero .lead { font-size: 19px; color: var(--muted); max-width: 40ch; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.facts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 40px 0 0; font-size: 14px; color: var(--muted); }
.facts b { color: var(--ink); font-weight: 800; }

.scene { position: relative; height: 500px; }
.scene::before { content: ""; position: absolute; inset: 0; background: radial-gradient(var(--dot) 1.2px, transparent 1.6px) 0 0 / 22px 22px; -webkit-mask-image: radial-gradient(closest-side, #000 60%, transparent); mask-image: radial-gradient(closest-side, #000 60%, transparent); }
.ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--accent) 40%, transparent); translate: -50% -50%; }
.ring.r1 { width: 300px; height: 300px; }
.ring.r2 { width: 450px; height: 450px; border-style: solid; border-color: color-mix(in srgb, var(--accent) 18%, transparent); }
.core { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 230px; padding: 22px 20px 20px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; justify-items: center; gap: 6px; text-align: center; }
.core img { width: 132px; height: 132px; border-radius: 30px; margin-bottom: 6px; }
.core-name { font: 700 17px/1.2 var(--display); letter-spacing: -.02em; }
.typing { margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 7px 12px; border-radius: 999px; background: var(--tint); }
.typing span::after { content: "…"; }
.toast { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); max-width: 215px; }
.toast img { flex: none; width: 40px; height: 40px; border-radius: 12px; }
.toast p { font-size: 13px; line-height: 1.35; color: var(--muted); font-weight: 600; }
.toast b { display: block; color: var(--ink); font-weight: 800; }
.toast p::after { content: " ✓"; color: var(--good); font-weight: 800; }
.t1 { left: 0; top: 0; } .t2 { right: 0; top: 7%; } .t3 { left: 0; bottom: 7%; } .t4 { right: 0; bottom: 0; }
@media (prefers-reduced-motion: no-preference) {
  .toast { animation: float 6s ease-in-out infinite; }
  .t2 { animation-delay: -1.5s; } .t3 { animation-delay: -3s; } .t4 { animation-delay: -4.5s; }
  @keyframes float { 50% { transform: translateY(-8px); } }
  .ring.r1 { animation: spin 60s linear infinite; }
  @keyframes spin { to { rotate: 360deg; } }
}

/* sections */
section { padding-block: 104px; scroll-margin-top: 64px; }
.band { background: var(--band); border-block: 1px solid var(--line); }
.sec-head { display: grid; gap: 14px; margin-bottom: 40px; max-width: 780px; }
.sec-head h2, .make h2 { font: 700 clamp(28px, 3.6vw, 42px)/1.12 var(--display); letter-spacing: -.025em; }
.sec-head p, .make .sub { color: var(--muted); font-size: 18px; }

/* catalogue */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filters button { font: 700 14px/1 var(--body); padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }

.cv { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 28px; display: flex; flex-direction: column; gap: 20px; min-width: 0; transition: transform .2s ease, border-color .2s ease; }
.cv::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--c, var(--accent)); }
.cv:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c, var(--accent)) 45%, var(--line)); }
.cv-head { display: flex; gap: 16px; align-items: center; }
.ava { flex: none; width: 64px; height: 64px; border-radius: 18px; }
.who { min-width: 0; flex: 1; }
.who .name { font: 700 17px/1.25 var(--display); letter-spacing: -.02em; }
.who .role { color: var(--muted); font-size: 14px; font-weight: 600; margin-top: 3px; }
.model { display: inline-block; margin-top: 7px; font: 600 11px/1 var(--mono); padding: 4px 7px; border-radius: 6px; color: var(--c, var(--accent)); background: color-mix(in srgb, var(--c, var(--accent)) 12%, transparent); white-space: nowrap; }
.cv-sec { display: grid; gap: 10px; }
.cv-label { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.can { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; line-height: 1.45; }
.can li { position: relative; padding-left: 26px; }
.can li::before { content: ""; position: absolute; left: 0; top: 2px; width: 17px; height: 17px; border-radius: 50%; background: color-mix(in srgb, var(--c, var(--accent)) 16%, transparent); }
.can li::after { content: ""; position: absolute; left: 6px; top: 5.5px; width: 4px; height: 8px; border: solid var(--c, var(--accent)); border-width: 0 2px 2px 0; rotate: 45deg; }
.cv-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px dashed var(--line); }
.price { font-variant-numeric: tabular-nums; }
.price b { font: 700 20px/1 var(--display); letter-spacing: -.02em; }
.price span { color: var(--muted); font-size: 13px; }
.cv-foot .btn { padding: 11px 18px; font-size: 14px; }

.cv.byo { border-style: dashed; border-width: 2px; background: var(--tint); box-shadow: none; align-items: flex-start; justify-content: center; }
.cv.byo::before { background: var(--brand); }
.cv.byo .name { font: 700 19px/1.25 var(--display); letter-spacing: -.02em; }
.cv.byo p { color: var(--muted); font-size: 15px; }

/* how it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 30px; display: grid; gap: 12px; align-content: start; }
.num { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--brand); color: #fff; font: 700 20px/1 var(--display); margin-bottom: 8px; }
.steps h3 { font: 700 19px/1.25 var(--display); letter-spacing: -.02em; }
.steps p { color: var(--muted); font-size: 15.5px; }

/* customization */
.make { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.make h2 { margin-block: 14px; }
.perks { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 24px; }
.perks li { display: flex; gap: 16px; }
.perk-ic { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--tint); color: var(--accent); }
.perk-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.perks h3 { font-size: 17px; font-weight: 800; }
.perks p { color: var(--muted); font-size: 15px; margin-top: 2px; }
.demo { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); padding: 28px; display: grid; gap: 22px; }
.demo-controls { display: grid; gap: 16px; }
.tones { display: flex; flex-wrap: wrap; gap: 8px; }
.tones button { font: 700 14px/1 var(--body); padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); cursor: pointer; }
.tones button[aria-pressed="true"] { border-color: var(--accent); background: var(--tint); color: var(--ink); }
.chat { border-radius: 20px; background: var(--bg); border: 1px solid var(--line); padding: 18px; display: grid; gap: 12px; }
.chat-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.chat-head img { width: 44px; height: 44px; border-radius: 13px; }
.chat-name { font-weight: 800; overflow-wrap: anywhere; }
.bubble { max-width: 85%; padding: 11px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; }
.bubble.me { justify-self: end; background: var(--brand); color: #fff; border-bottom-right-radius: 5px; }
.bubble.bot { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 5px; }

/* closing */
.closing { border-radius: 32px; padding: 56px; background: radial-gradient(500px 300px at 90% 0%, rgb(143 76 245 / .45), transparent 70%), #14121f; color: #f3f1fa; display: grid; grid-template-columns: 1fr auto; gap: 28px 40px; align-items: center; }
.closing-avas { grid-column: 1 / -1; display: flex; }
.closing-avas img { width: 52px; height: 52px; border-radius: 16px; border: 3px solid #14121f; margin-right: -10px; }
.closing h2 { font: 700 clamp(24px, 3.2vw, 36px)/1.15 var(--display); letter-spacing: -.02em; }
.closing p { color: #c4bfd6; margin-top: 12px; }
.closing .mail { color: #fff; font-weight: 700; word-break: break-all; }
:root[data-theme="dark"] .closing { border: 1px solid var(--line); }
footer { padding-block: 40px 52px; color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* request dialog */
dialog { border: none; border-radius: 22px; padding: 0; width: min(560px, calc(100% - 32px)); max-height: calc(100% - 32px); background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px -20px rgb(20 10 50 / .45); }
dialog::backdrop { background: rgb(14 12 21 / .55); backdrop-filter: blur(2px); }
dialog form { padding: 26px; display: grid; gap: 16px; }
.dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dlg-head h2 { font: 700 22px/1.2 var(--display); letter-spacing: -.02em; }
.close { border: none; background: var(--tint); color: var(--ink); width: 36px; height: 36px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; }
.dlg-sub { color: var(--muted); font-size: 15px; margin-top: -6px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; min-width: 0; border: none; padding: 0; margin: 0; }
.field > span, .field > legend { font-size: 13px; font-weight: 700; color: var(--muted); padding: 0; }
.field em { font-style: normal; font-weight: 600; opacity: .8; }
.field input:not([type="radio"]), .field select, .field textarea { width: 100%; font: 500 15px/1.4 var(--body); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; }
.field textarea { resize: vertical; }
.field input:not([type="radio"]):focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.field input[aria-invalid="true"] { border-color: var(--bad); }
.reasons { display: flex; flex-wrap: wrap; gap: 8px; }
.reasons label { display: inline-flex; line-height: 1.3; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; background: var(--bg); }
.reasons label:has(input:checked) { border-color: var(--accent); background: var(--tint); }
.reasons input { flex: none; width: 16px; height: 16px; accent-color: var(--accent); margin: 0; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.status { font-size: 14px; font-weight: 600; min-height: 1.4em; }
.status.error { color: var(--bad); }
.status.ok { color: var(--good); }
.consent { font-size: 12.5px; color: var(--muted); margin-top: -6px; }

@media (max-width: 1040px) {
  nav { display: none; }
}
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-block: 64px 40px; gap: 32px; }
  .scene { height: 440px; max-width: 560px; width: 100%; margin-inline: auto; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .make { grid-template-columns: 1fr; gap: 40px; }
  section { padding-block: 80px; }
}
@media (max-width: 640px) {
  .wrap { padding-inline: 16px; }
  .grid, .row { grid-template-columns: 1fr; gap: 20px; }
  .scene { height: 380px; }
  .ring.r2 { width: 340px; height: 340px; }
  .ring.r1 { width: 240px; height: 240px; }
  .core { width: 180px; padding: 14px; }
  .core img { width: 96px; height: 96px; border-radius: 24px; }
  .toast { max-width: 180px; padding: 8px 10px 8px 8px; }
  .toast img { width: 32px; height: 32px; border-radius: 10px; }
  .toast p { font-size: 12px; }
  .t3, .t2 { display: none; }
  .t1 { top: 0; } .t4 { bottom: 0; }
  .closing { grid-template-columns: 1fr; padding: 32px 24px; }
  .demo { padding: 20px; }
  section { padding-block: 64px; }
  .bar .btn { display: none; }
}

/* 404 */
.notfound { display: grid; gap: 20px; justify-items: start; padding-block: 80px; }
.notfound h1 { font: 700 clamp(28px, 4vw, 44px)/1.1 var(--display); letter-spacing: -.03em; }
.notfound p { color: var(--muted); font-size: 18px; }
