:root {
  color-scheme: dark;
  --background: #100e1b;
  --surface: #1b172b;
  --surface-raised: #24203a;
  --text: #f9f5ff;
  --muted: #c8bfd9;
  --accent: #dfc4ff;
  --edge: #443653;
  --page-width: 1180px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--background);
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 0; background: radial-gradient(ellipse at 12% 2%, #221733 0, transparent 40rem), var(--background); }
a { color: var(--accent); }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
p, li { line-height: 1.6; }
p { margin-block: .45em .9em; }
h1, h2, h3 { margin: 0; line-height: 1.08; }
strong { font-weight: 680; }
:focus-visible { outline: 3px solid #b8e5ff; outline-offset: 4px; }
.agent-wrap { width: min(calc(100% - 48px), var(--page-width)); margin-inline: auto; }
.agent-skip { position: absolute; z-index: 10; inset: .8rem auto auto .8rem; transform: translateY(-180%); background: var(--text); color: #16101f; padding: .7rem 1rem; border-radius: .5rem; }
.agent-skip:focus { transform: translateY(0); }
.agent-site-header { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding: 1.05rem max(24px, calc((100% - var(--page-width)) / 2)); background: #151120; border-bottom: 1px solid var(--edge); }
.agent-brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--text); text-decoration: none; white-space: nowrap; }
.agent-brand-mark { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 13px; overflow: hidden; border: 1px solid #ab80d0; background: #221734; }
.agent-brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.agent-brand strong { display: block; font-size: .94rem; letter-spacing: .15em; }
.agent-brand small { display: block; margin-top: .16rem; color: var(--muted); font-size: .69rem; }
.agent-main-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .25rem .9rem; }
.agent-main-nav a, .agent-account { display: inline-flex; align-items: center; gap: .4rem; min-height: 38px; text-decoration: none; white-space: nowrap; }
.agent-main-nav a { color: var(--muted); font-size: .84rem; }
.agent-main-nav a:hover, .agent-main-nav a[aria-current] { color: var(--text); }
.agent-main-nav a[aria-current] { text-decoration: underline; text-underline-offset: .35rem; text-decoration-color: #c69af5; }
.agent-account { padding: .45rem .8rem; border: 1px solid var(--edge); border-radius: .7rem; color: var(--text); font-size: .84rem; }
.agent-account:hover { background: var(--surface-raised); }

.agent-hero { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.7rem; align-items: center; margin-block: 32px; padding: clamp(26px, 6vw, 74px); border: 1px solid #5a4074; border-radius: 30px; background: radial-gradient(ellipse at 94% 5%, #4d3177 0, transparent 62%), linear-gradient(145deg, #201633 0, #171225 78%); }
.agent-hero::before { position: absolute; z-index: -1; right: -180px; top: -252px; width: 660px; height: 660px; border: 1px solid #9c72c85c; border-radius: 50%; box-shadow: 0 0 0 58px #9c72c817, 0 0 0 116px #9c72c815; content: ""; pointer-events: none; }
.agent-kicker { display: flex; align-items: center; gap: .5rem; margin: 0 0 .75rem; color: var(--accent); font-size: .71rem; font-weight: 730; letter-spacing: .16em; text-transform: uppercase; }
.agent-kicker span { width: 7px; height: 7px; border-radius: 50%; background: #cf9dff; box-shadow: 0 0 13px #bc7ff8; }
.agent-hero h1 { font-size: clamp(3.2rem, 7.5vw, 6.65rem); letter-spacing: -.073em; line-height: .94; }
.agent-hero h1 em { color: #e4c9ff; font-style: normal; }
.agent-hero-copy > p:not(.agent-kicker) { max-width: 32rem; margin: 1.3rem 0 1.65rem; color: var(--muted); font-size: clamp(1rem, 2vw, 1.17rem); }
.agent-hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.agent-button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .65rem .95rem; border: 1px solid transparent; border-radius: .65rem; font-size: .89rem; line-height: 1.2; font-weight: 680; text-align: center; text-decoration: none; transition: background-color .18s, border-color .18s, color .18s; }
.agent-primary { background: #e2c6ff; color: #200d32; }
.agent-primary:hover:not(:disabled) { background: #f0e0ff; }
.agent-secondary { border-color: #79638d; background: #231a34; color: var(--text); }
.agent-secondary:hover:not(:disabled) { border-color: #c39ded; background: #352447; }
.agent-button:disabled { color: #b2a5c2; border-color: #5b4a6b; background: #332740; }
.agent-hero-aside { padding: clamp(18px, 4vw, 31px); background: #1a122bb8; border: 1px solid #735797; border-radius: 20px; }
.agent-hero-index { color: #e4c9ff; font-size: .72rem; font-weight: 730; letter-spacing: .15em; }
.agent-hero-caption { margin: .85rem 0 1rem; font-size: 1.35rem; line-height: 1.18; font-weight: 700; }
.agent-hero-aside ol { padding: 0; margin: 0; list-style: none; }
.agent-hero-aside li { display: flex; gap: .65rem; align-items: baseline; padding-block: .65rem; border-top: 1px solid #59446e; color: var(--muted); font-size: .9rem; }
.agent-hero-aside li span { color: #e5c5ff; font: 700 .74rem ui-monospace, monospace; }

.agent-tabs { display: flex; gap: .4rem; flex-wrap: wrap; padding: .45rem; background: #1a1426; border: 1px solid var(--edge); border-radius: .85rem; }
.agent-tabs a { display: inline-flex; align-items: center; min-height: 42px; padding: .52rem 1.03rem; border: 1px solid transparent; border-radius: .56rem; color: var(--muted); text-decoration: none; font-size: .91rem; font-weight: 640; }
.agent-tabs a:hover, .agent-tabs a[aria-current] { background: #352447; color: #fff; border-color: #655079; }
.agent-section { margin-block: clamp(27px, 4vw, 52px) 55px; scroll-margin-top: 14px; }
.agent-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.1rem; margin-bottom: 1.45rem; }
.agent-section-heading p:not(.agent-kicker) { margin: 0; max-width: 23rem; color: var(--muted); }
.agent-section h2, .agent-callout h2 { font-size: clamp(1.75rem, 3.3vw, 2.75rem); letter-spacing: -.04em; }
.agent-section h3, .agent-callout h3 { font-size: 1.28rem; }
.agent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.agent-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--edge); border-radius: 20px; background: var(--surface); }
.agent-card-art { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; background: radial-gradient(ellipse at 55% 20%, #745498 0, #332446 48%, #1c172b 100%); }
.agent-card-art[data-edition="expert"] { background: radial-gradient(ellipse at 55% 16%, #6c548d 0, #32274e 52%, #1c172b 100%); }
.agent-card-art[data-edition="event"] { background: radial-gradient(ellipse at 55% 16%, #78516f 0, #482944 52%, #251824 100%); }
.agent-card-art img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: center 35%; }
.agent-portrait-fallback { font-size: 4rem; color: #e7ccff; text-shadow: 0 0 28px #ecb7ff; }
.agent-edition { position: absolute; top: 12px; left: 12px; max-width: calc(100% - 24px); padding: .39rem .62rem; color: #f9edff; border: 1px solid #cfacf6; background: #1d132be8; border-radius: 999px; font-size: .71rem; font-weight: 710; }
.agent-card-body { display: flex; flex: 1; flex-direction: column; gap: .5rem; padding: 17px; }
.agent-provider { margin: 0; color: var(--accent); font-size: .75rem; font-weight: 690; }
.agent-expertise { color: #f0d9ff; font-weight: 650; }
.agent-card-description, .agent-expertise { margin: 0; overflow-wrap: anywhere; }
.agent-card-description { color: var(--muted); }
.agent-stock { margin: 0; color: #bce5dd; font-size: .8rem; }
.agent-offers { display: grid; gap: .45rem; list-style: none; padding: 0; margin: auto 0 0; }
.agent-offers li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; padding: .65rem; border: 1px solid #504063; border-radius: .65rem; background: #21182e; }
.agent-offers strong, .agent-offers small { display: block; }
.agent-offers strong { font-size: 1.1rem; }
.agent-offers small, .agent-offer-label, .agent-offer-pending { color: var(--muted); font-size: .75rem; }
.agent-offer-label { display: block; }
.agent-offer-pending { padding-block: .4rem; }
.agent-note { margin-top: 1rem; color: var(--muted); font-size: .88rem; }
.agent-error { color: #ffd0d6; }

.agent-callout { padding: clamp(17px, 3vw, 27px); border: 1px solid var(--edge); border-radius: 16px; background: var(--surface); }
.agent-callout p, .agent-import-note p { color: var(--muted); }
.agent-callout .agent-error { color: #ffd0d6; }
.agent-return, .agent-login { margin-bottom: 1.25rem; }
.agent-return { border-color: #8766a6; }
.agent-login form { display: grid; grid-template-columns: 1fr 1fr auto; gap: .75rem; align-items: end; }
.agent-login label { display: grid; gap: .35rem; color: var(--muted); font-size: .88rem; }
.agent-login input:not([type="hidden"]) { width: 100%; min-width: 0; padding: .65rem .75rem; height: 44px; border: 1px solid #77608e; border-radius: .55rem; background: #141021; color: var(--text); }
.agent-import-note { margin-top: 1rem; padding: 1rem 1.15rem; border-left: 3px solid #bd97e7; background: #1b1428; }
.agent-import-note p { margin-bottom: 0; }
.agent-copilot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.agent-purchase-row { margin-top: .85rem; padding: 1rem; border: 1px solid #524061; border-radius: .75rem; overflow-wrap: anywhere; }
.agent-purchase-row h3 { font-size: 1.14rem; }

.agent-dialog { max-width: calc(100vw - 30px); width: 530px; max-height: calc(100dvh - 30px); padding: clamp(17px, 4vw, 29px); border: 1px solid #9972bc; border-radius: 17px; background: #221932; color: var(--text); }
.agent-dialog::backdrop { background: #090711d9; }
.agent-dialog-heading { display: flex; justify-content: space-between; align-items: start; gap: .8rem; }
.agent-dialog h2 { font-size: clamp(1.45rem, 4vw, 2rem); letter-spacing: -.035em; }
.agent-close { display: grid; place-items: center; min-width: 40px; height: 40px; color: var(--text); font-size: 1.45rem; border: 1px solid #79648c; border-radius: .65rem; background: #291d39; }
.agent-checkout-product { font-size: 1.15rem; margin-block: 1rem .2rem; }
.agent-checkout-price { color: #e6ccff; margin: 0; font-size: clamp(1.3rem, 5vw, 1.95rem); font-weight: 760; }
.agent-consent { display: flex; align-items: start; gap: .6rem; margin: 1rem 0 .6rem; padding: .8rem; border: 1px solid #79648c; border-radius: .7rem; line-height: 1.5; }
.agent-consent input { accent-color: #dcb4ff; flex: none; margin: .3rem 0 0; width: 17px; height: 17px; }
.agent-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .65rem; padding-block: 1.4rem 1.8rem; border-top: 1px solid var(--edge); color: var(--muted); font-size: .78rem; }
.agent-footer > a { font-size: .93rem; font-weight: 740; letter-spacing: .1em; color: var(--text); text-decoration: none; }
.agent-footer p { margin: 0; }
.agent-footer nav { display: flex; flex-wrap: wrap; gap: .65rem; }
.agent-footer nav a { color: var(--muted); }

@media (max-width: 1020px) {
  .agent-site-header { flex-wrap: wrap; }
  .agent-main-nav { order: 1; width: 100%; justify-content: start; }
  .agent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 690px) {
  .agent-wrap { width: calc(100% - 30px); }
  .agent-site-header { padding: .85rem 15px; gap: .6rem; }
  .agent-main-nav { gap: .05rem .7rem; }
  .agent-main-nav a { min-height: 32px; }
  .agent-brand-mark { width: 38px; height: 38px; }
  .agent-brand small { display: none; }
  .agent-account { min-height: 34px; }
  .agent-hero { margin-block: 16px; padding: 22px; grid-template-columns: minmax(0, 1fr); gap: 1.1rem; border-radius: 18px; }
  .agent-hero h1 { font-size: clamp(2.8rem, 13vw, 4rem); }
  .agent-hero-copy > p:not(.agent-kicker) { margin: .9rem 0 1rem; }
  .agent-hero-aside { padding: 13px; border-radius: 12px; }
  .agent-hero-caption { font-size: 1rem; margin: .4rem 0 .5rem; }
  .agent-hero-aside li { padding-block: .35rem; }
  .agent-section-heading { display: block; }
  .agent-section-heading p:not(.agent-kicker) { margin-top: .55rem; }
  .agent-grid, .agent-copilot-grid, .agent-login form { grid-template-columns: minmax(0, 1fr); }
  .agent-tabs a { padding-inline: .57rem; font-size: .82rem; }
}
@media (prefers-reduced-motion: reduce) {
  .agent-button { transition: none; }
}
