/* ============================================================
   uley — маркетплейс ИИ-агентов
   Design tokens + base + components
   Light / clean (Apple·Notion) with honey-amber accent + hive motif
   ============================================================ */

/* ---- Theme tokens (accent switchable via [data-accent]) ---- */
:root {
  /* warm near-white canvas */
  --bg:           oklch(0.985 0.006 85);
  --bg-sunk:      oklch(0.965 0.008 85);
  --surface:      #ffffff;
  --surface-2:    oklch(0.978 0.006 85);
  --border:       oklch(0.915 0.008 85);
  --border-strong:oklch(0.86 0.01 85);

  --ink:          oklch(0.24 0.012 80);
  --ink-2:        oklch(0.44 0.012 80);
  --ink-3:        oklch(0.60 0.010 80);
  --ink-4:        oklch(0.72 0.008 80);

  /* honey accent (default) */
  --accent:       oklch(0.74 0.145 72);
  --accent-press: oklch(0.66 0.150 64);
  --accent-ink:   oklch(0.40 0.10 58);
  --accent-soft:  oklch(0.955 0.04 82);
  --accent-soft-bd:oklch(0.90 0.06 80);
  --on-accent:    oklch(0.28 0.06 60);

  --good:         oklch(0.66 0.13 152);
  --good-soft:    oklch(0.95 0.04 152);
  --warn:         oklch(0.72 0.14 70);
  --info:         oklch(0.62 0.12 245);

  --star:         oklch(0.78 0.14 78);

  --radius:       14px;
  --radius-sm:    10px;
  --radius-lg:    20px;
  --radius-xl:    26px;

  --shadow-sm: 0 1px 2px oklch(0.5 0.02 80 / 0.06), 0 1px 1px oklch(0.5 0.02 80 / 0.04);
  --shadow:    0 4px 14px oklch(0.45 0.03 80 / 0.07), 0 1px 3px oklch(0.45 0.03 80 / 0.05);
  --shadow-lg: 0 18px 50px oklch(0.40 0.03 80 / 0.13), 0 4px 14px oklch(0.40 0.03 80 / 0.07);
  --shadow-accent: 0 8px 24px oklch(0.74 0.145 72 / 0.30);

  --font-display: "Schibsted Grotesk", system-ui, sans-serif;
  --font-text:    "Hanken Grotesk", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1240px;
}

/* accent variants */
[data-accent="blue"] {
  --accent: oklch(0.62 0.15 250); --accent-press: oklch(0.55 0.15 250);
  --accent-ink: oklch(0.42 0.12 250); --accent-soft: oklch(0.96 0.03 250);
  --accent-soft-bd: oklch(0.90 0.05 250); --on-accent: #ffffff; --shadow-accent: 0 8px 24px oklch(0.62 0.15 250 / 0.30);
}
[data-accent="violet"] {
  --accent: oklch(0.60 0.17 300); --accent-press: oklch(0.53 0.17 300);
  --accent-ink: oklch(0.44 0.14 300); --accent-soft: oklch(0.96 0.03 300);
  --accent-soft-bd: oklch(0.90 0.05 300); --on-accent: #ffffff; --shadow-accent: 0 8px 24px oklch(0.60 0.17 300 / 0.30);
}
[data-accent="green"] {
  --accent: oklch(0.64 0.15 152); --accent-press: oklch(0.56 0.15 152);
  --accent-ink: oklch(0.42 0.12 152); --accent-soft: oklch(0.96 0.04 152);
  --accent-soft-bd: oklch(0.90 0.06 152); --on-accent: #ffffff; --shadow-accent: 0 8px 24px oklch(0.64 0.15 152 / 0.30);
}

/* density */
[data-density="compact"] { --pad-card: 16px; --grid-min: 220px; --grid-gap: 14px; }
[data-density="cozy"]    { --pad-card: 22px; --grid-min: 280px; --grid-gap: 22px; }
:root                    { --pad-card: 19px; --grid-min: 248px; --grid-gap: 18px; }

/* ---- reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent-soft); }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
.mono { font-family: var(--font-mono); font-feature-settings: "tnum"; }

/* scrollbars */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-4); }

/* ---- app shell ---- */
#root { min-height: 100vh; }
.app { min-height: 100vh; display: flex; flex-direction: column; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ============================================================
   Header / nav
   ============================================================ */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: oklch(0.985 0.006 85 / 0.82);
  backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid var(--border);
}
.hdr-in { display: flex; align-items: center; gap: 22px; height: 64px; }
.brand { display: flex; align-items: center; gap: 11px; cursor: pointer; flex-shrink: 0; }
.brand-mark { width: 30px; height: 30px; flex-shrink: 0; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -0.03em; color: var(--ink); }
.brand-name b { color: var(--accent-ink); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a, .nav button {
  padding: 8px 13px; border-radius: 9px; font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  transition: background .15s, color .15s;
}
.nav a:hover, .nav button:hover { background: var(--surface-2); color: var(--ink); }
.nav .on { color: var(--ink); background: var(--surface-2); }

.search {
  flex: 1; max-width: 420px; display: flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 11px;
  padding: 8px 13px; color: var(--ink-3); transition: border-color .15s, box-shadow .15s;
}
.search:focus-within { border-color: var(--accent-soft-bd); box-shadow: 0 0 0 3px var(--accent-soft); }
.search input { border: none; outline: none; background: none; flex: 1; font-size: 14.5px; color: var(--ink); }
.search input::placeholder { color: var(--ink-4); }
.search .kbd { font-size: 11px; font-family: var(--font-mono); color: var(--ink-4); border: 1px solid var(--border); border-radius: 5px; padding: 1px 5px; }
.search-clear {
  display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; flex-shrink: 0;
  border: none; background: var(--surface-2); color: var(--ink-3); font-size: 11px; cursor: pointer; transition: all .15s;
}
.search-clear:hover { background: var(--border); color: var(--ink); }

/* prominent catalog search (ChatGPT-store feel) */
.cat-search {
  display: flex; align-items: center; gap: 12px; margin: 0 0 20px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 13px 16px; color: var(--ink-3); box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s;
}
.cat-search:focus-within { border-color: var(--accent-soft-bd); box-shadow: 0 0 0 3px var(--accent-soft); color: var(--accent-ink); }
.cat-search input {
  border: none; outline: none; background: none; flex: 1; min-width: 0;
  font-family: var(--font-text); font-size: 16px; font-weight: 500; color: var(--ink);
}
.cat-search input::placeholder { color: var(--ink-4); font-weight: 400; }
.cat-search-clear {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
  border: none; background: var(--surface-2); color: var(--ink-3); font-size: 13px; cursor: pointer; transition: all .15s;
}
.cat-search-clear:hover { background: var(--border); color: var(--ink); }

.cat-count { font-size: 14px; color: var(--ink-3); margin-bottom: 18px; }
.cat-count b { color: var(--ink); font-weight: 700; }

/* empty / no-results state */
.empty {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 56px 24px 64px; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg);
  background: var(--surface-2);
}
.empty-mark {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border); color: var(--ink-4); margin-bottom: 18px; box-shadow: var(--shadow-sm);
}
.empty h3 { font-family: var(--font-display); font-size: 20px; margin-bottom: 8px; }
.empty p { font-size: 14.5px; color: var(--ink-3); line-height: 1.5; max-width: 440px; margin: 0 0 20px; }

.hdr-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.icon-btn {
  position: relative; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  color: var(--ink-2); transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.cart-badge {
  position: absolute; top: 3px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--accent); color: var(--on-accent); border-radius: 99px; font-size: 11px; font-weight: 700;
  display: grid; place-items: center; font-family: var(--font-mono); box-shadow: 0 0 0 2px var(--bg);
}
.avatar-btn { width: 34px; height: 34px; border-radius: 50%; margin-left: 4px; overflow: hidden; border: 1px solid var(--border); }
.avatar-btn img, .avatar-btn div { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-text); font-weight: 600; font-size: 14.5px; line-height: 1;
  padding: 11px 18px; border-radius: 11px; transition: transform .12s, background .15s, box-shadow .15s, border-color .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-accent); }
.btn-primary:hover { background: var(--accent-press); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--border-strong); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--ink-4); }
.btn-soft { background: var(--accent-soft); color: var(--accent-ink); border: 1px solid var(--accent-soft-bd); }
.btn-soft:hover { background: var(--accent-soft); filter: brightness(0.98); }
.btn-quiet { color: var(--ink-2); }
.btn-quiet:hover { background: var(--surface-2); color: var(--ink); }
.btn-lg { padding: 14px 24px; font-size: 16px; border-radius: 13px; }
.btn-sm { padding: 8px 13px; font-size: 13.5px; border-radius: 9px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; pointer-events: none; }

/* ============================================================
   Hex avatar (hive cell)
   ============================================================ */
.hex {
  position: relative; aspect-ratio: 1 / 1; flex-shrink: 0;
  clip-path: polygon(25% 2%, 75% 2%, 100% 50%, 75% 98%, 25% 98%, 0% 50%);
  display: grid; place-items: center; color: #fff; overflow: hidden;
}
.hex--round { clip-path: none; border-radius: 22%; }
[data-hex="round"] .hex { clip-path: none; border-radius: 24%; }
.hex-mono { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.hex-grain { position: absolute; inset: 0; opacity: 0.5; mix-blend-mode: soft-light;
  background:
    radial-gradient(120% 90% at 20% 12%, rgba(255,255,255,0.55), transparent 55%),
    radial-gradient(100% 80% at 85% 95%, rgba(0,0,0,0.32), transparent 60%);
}

/* ============================================================
   Tags / chips / badges
   ============================================================ */
.tag {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 7px;
  font-size: 12.5px; font-weight: 500; color: var(--ink-2); background: var(--surface-2);
  border: 1px solid var(--border); white-space: nowrap;
}
.tag-dot { width: 7px; height: 7px; border-radius: 50%; }
.rating { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; font-size: 13.5px; color: var(--ink); }
.rating svg { color: var(--star); }
.badge-new { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent-soft-bd); font-weight: 700; }
.badge-good { background: var(--good-soft); color: oklch(0.42 0.12 152); border: 1px solid oklch(0.88 0.06 152); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 99px;
  font-size: 14px; font-weight: 500; color: var(--ink-2); background: var(--surface);
  border: 1px solid var(--border); cursor: pointer; transition: all .15s; white-space: nowrap;
}
.chip:hover { border-color: var(--ink-4); color: var(--ink); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .chip-dot { width: 8px; height: 8px; border-radius: 50%; }

/* ============================================================
   Agent card (storefront tile)
   ============================================================ */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--grid-min), 1fr)); gap: var(--grid-gap); }

.card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--pad-card); cursor: pointer; transition: transform .16s cubic-bezier(.2,.7,.3,1), box-shadow .16s, border-color .16s;
  display: flex; flex-direction: column; gap: 13px;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.card-top { display: flex; align-items: flex-start; gap: 13px; }
.card .hex { width: 52px; }
.card-id { min-width: 0; flex: 1; }
.card-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.02em; color: var(--ink); display: flex; align-items: center; gap: 7px; }
.card-role { font-size: 13.5px; color: var(--ink-3); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-tagline { font-size: 13.5px; color: var(--ink-2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 13px; border-top: 1px solid var(--border); }
.price { font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.price b { font-size: 18px; }
.price span { font-size: 12.5px; color: var(--ink-3); font-weight: 500; font-family: var(--font-text); }
.card-add {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--border); transition: all .15s;
}
.card:hover .card-add { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent-soft-bd); }
.card-add:hover { background: var(--accent) !important; color: var(--on-accent) !important; border-color: var(--accent) !important; }
.card-add.in { background: var(--good-soft); color: oklch(0.45 0.12 152); border-color: oklch(0.88 0.06 152); }

.card-ribbon {
  position: absolute; top: 13px; right: 13px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px;
  background: var(--accent-soft); color: var(--accent-ink); border: 1px solid var(--accent-soft-bd); letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ============================================================
   Section headers
   ============================================================ */
.sec { margin-top: 52px; }
.sec-hd { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; gap: 16px; }
.sec-hd > :first-child { flex: 1; min-width: 0; }
.sec-hd h2 { font-size: 24px; }
.sec-hd .sub { font-size: 14px; color: var(--ink-3); }
.eyebrow { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink); }
.link-more { font-size: 14px; font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; flex-shrink: 0; }
.link-more:hover { color: var(--accent-ink); }

/* ============================================================
   Hero / featured
   ============================================================ */
.hero {
  position: relative; overflow: hidden; border-radius: var(--radius-xl); margin-top: 28px;
  background:
    radial-gradient(140% 120% at 88% -10%, var(--accent-soft), transparent 55%),
    linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.hero-honey {
  position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='56' height='100' viewBox='0 0 56 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23e6b15a' stroke-width='1' stroke-opacity='0.4'%3E%3Cpath d='M28 0L52 14V42L28 56L4 42V14Z'/%3E%3Cpath d='M28 50L52 64V92L28 106L4 92V64Z'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(115deg, transparent 35%, #000 100%);
          mask-image: linear-gradient(115deg, transparent 35%, #000 100%);
}
.hero-in { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 32px; padding: 44px 48px; align-items: center; }
.hero-copy { max-width: 540px; }
.hero h1 { font-size: 44px; line-height: 1.04; letter-spacing: -0.035em; margin-bottom: 16px; }
.hero h1 em { font-style: normal; color: var(--accent-ink); }
.hero p { font-size: 17px; color: var(--ink-2); line-height: 1.5; margin: 0 0 26px; }
.hero-cta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 28px; margin-top: 30px; }
.hero-stat b { font-family: var(--font-display); font-size: 24px; display: block; letter-spacing: -0.02em; }
.hero-stat span { font-size: 13px; color: var(--ink-3); }

.hero-feat { position: relative; }
.feat-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 22px; display: flex; flex-direction: column; gap: 16px;
}
.feat-card .hex { width: 64px; }
.feat-head { display: flex; align-items: center; gap: 14px; }
.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.feat-mini { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 11px 13px; }
.feat-mini span { font-size: 12px; color: var(--ink-3); display: block; }
.feat-mini b { font-size: 14px; font-family: var(--font-display); }

/* ============================================================
   Detail page
   ============================================================ */
.detail { padding-bottom: 80px; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-3); padding: 22px 0; }
.crumbs a:hover { color: var(--accent-ink); }
.crumbs .sep { color: var(--ink-4); }

.detail-hero { display: grid; grid-template-columns: 1fr 360px; gap: 36px; align-items: start; }
.dh-main { min-width: 0; }
.dh-head { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 24px; }
.dh-head .hex { width: 88px; }
.dh-title h1 { font-size: 38px; letter-spacing: -0.03em; line-height: 1.05; }
.dh-title .role { font-size: 17px; color: var(--ink-2); margin-top: 6px; }
.dh-meta { display: flex; align-items: center; gap: 16px; margin-top: 14px; flex-wrap: wrap; font-size: 14px; color: var(--ink-3); }
.dh-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-4); }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 8px 0 30px; }
.shot {
  aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  position: relative; display: grid; place-items: center;
  background-image: repeating-linear-gradient(135deg, var(--surface-2) 0 11px, var(--surface) 11px 22px);
}
.shot--wide { grid-column: span 2; aspect-ratio: 16 / 8; }
.shot-label { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-4); background: var(--surface); border: 1px solid var(--border); padding: 4px 9px; border-radius: 7px; }

/* tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 26px; }
.tab { padding: 12px 16px; font-size: 15px; font-weight: 600; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .15s, border-color .15s; }
.tab:hover { color: var(--ink); }
.tab.on { color: var(--ink); border-color: var(--accent); }

.prose { font-size: 15.5px; line-height: 1.65; color: var(--ink-2); max-width: 64ch; }
.prose h3 { font-size: 19px; margin: 28px 0 12px; color: var(--ink); }
.prose p { margin: 0 0 14px; }

.cap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cap {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px;
  display: flex; gap: 14px; align-items: flex-start;
}
.cap-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; flex-shrink: 0; }
.cap h4 { font-family: var(--font-display); font-size: 15.5px; margin-bottom: 4px; }
.cap p { font-size: 13.5px; color: var(--ink-3); line-height: 1.45; margin: 0; }

/* integrations */
.integ { display: flex; gap: 10px; flex-wrap: wrap; }
.integ-pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); font-size: 14px; font-weight: 500; }
.integ-pill .dot { width: 9px; height: 9px; border-radius: 3px; }

/* reviews */
.rev { padding: 20px 0; border-bottom: 1px solid var(--border); display: flex; gap: 14px; }
.rev:last-child { border-bottom: none; }
.rev-av { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; color: #fff; font-weight: 700; font-family: var(--font-display); }
.rev-top { display: flex; align-items: center; gap: 10px; margin-bottom: 5px; }
.rev-top b { font-size: 14.5px; font-family: var(--font-display); }
.rev-top span { font-size: 12.5px; color: var(--ink-4); }
.rev p { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; margin: 0; }

/* right rail */
.rail { position: sticky; top: 88px; }
.buy {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden;
}
.buy-hd { padding: 20px 22px; background: linear-gradient(180deg, var(--accent-soft), transparent); border-bottom: 1px solid var(--border); }
.buy-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.buy-price b { font-family: var(--font-display); font-size: 34px; letter-spacing: -0.03em; white-space: nowrap; }
.buy-price span { color: var(--ink-3); font-size: 15px; white-space: nowrap; }
.buy-price .old { text-decoration: line-through; color: var(--ink-4); font-size: 16px; }
.buy-trial { font-size: 13.5px; color: var(--accent-ink); font-weight: 600; margin-top: 6px; }
.buy-body { padding: 18px 22px; display: flex; flex-direction: column; gap: 12px; }
.buy-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }
.buy-row span { color: var(--ink-3); flex: 1; min-width: 0; }
.buy-row b { font-weight: 600; font-family: var(--font-display); flex-shrink: 0; white-space: nowrap; }
.spec-list { display: flex; flex-direction: column; gap: 0; }
.spec { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-top: 1px solid var(--border); font-size: 13.5px; }
.spec svg { color: var(--good); flex-shrink: 0; }
.spec .k { color: var(--ink-3); }

.req {
  margin-top: 18px; background: var(--bg-sunk); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px;
}
.req h4 { font-family: var(--font-display); font-size: 14px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.req-row { display: grid; grid-template-columns: 96px 1fr; gap: 12px; font-size: 13px; padding: 5px 0; }
.req-row .k { color: var(--ink-3); }
.req-row .v { color: var(--ink); }

/* ============================================================
   Cart
   ============================================================ */
.page-hd { padding: 34px 0 24px; }
.page-hd h1 { font-size: 32px; letter-spacing: -0.03em; }
.page-hd p { color: var(--ink-3); margin: 8px 0 0; font-size: 15px; }

.cart-grid { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; padding-bottom: 80px; }
.cart-list { display: flex; flex-direction: column; gap: 12px; }
.cart-item {
  display: flex; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px; transition: border-color .15s;
}
.cart-item:hover { border-color: var(--border-strong); }
.cart-item .hex { width: 50px; }
.ci-id { flex: 1; min-width: 0; }
.ci-id .nm { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.ci-id .rl { font-size: 13px; color: var(--ink-3); }
.ci-plan { display: flex; gap: 6px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; padding: 3px; }
.ci-plan button { padding: 6px 12px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.ci-plan button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.ci-price { font-family: var(--font-display); font-weight: 700; font-size: 17px; min-width: 104px; text-align: right; white-space: nowrap; flex-shrink: 0; }
.ci-price span { font-size: 11.5px; color: var(--ink-3); display: block; font-weight: 500; font-family: var(--font-text); }
.ci-del { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: var(--ink-4); transition: all .15s; }
.ci-del:hover { background: oklch(0.95 0.05 25); color: oklch(0.55 0.18 25); }

.summary { position: sticky; top: 88px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 22px; }
.summary h3 { font-size: 18px; margin-bottom: 16px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; padding: 8px 0; color: var(--ink-2); }
.sum-row span:first-child { flex: 1; min-width: 0; }
.sum-row b { color: var(--ink); font-family: var(--font-display); flex-shrink: 0; white-space: nowrap; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 0 4px; margin-top: 6px; border-top: 1px solid var(--border); }
.sum-total .l { font-size: 16px; font-weight: 600; flex: 1; min-width: 0; }
.sum-total .v { font-family: var(--font-display); font-size: 28px; font-weight: 700; letter-spacing: -0.03em; flex-shrink: 0; white-space: nowrap; }
.sum-total .v span { font-size: 14px; color: var(--ink-3); font-weight: 500; }
.promo { display: flex; gap: 8px; margin: 14px 0; }
.promo input { flex: 1; border: 1px solid var(--border); border-radius: 10px; padding: 10px 13px; font-size: 14px; outline: none; background: var(--surface-2); }
.promo input:focus { border-color: var(--accent-soft-bd); box-shadow: 0 0 0 3px var(--accent-soft); }

.empty { text-align: center; padding: 80px 20px; }
.empty .hex { width: 80px; margin: 0 auto 22px; opacity: 0.5; }
.empty h2 { font-size: 24px; margin-bottom: 8px; }
.empty p { color: var(--ink-3); margin: 0 0 22px; }

/* ============================================================
   Library
   ============================================================ */
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; padding-bottom: 80px; }
.lib-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 14px; transition: box-shadow .15s, border-color .15s; }
.lib-card:hover { box-shadow: var(--shadow); border-color: var(--border-strong); }
.lib-top { display: flex; align-items: center; gap: 14px; }
.lib-top .hex { width: 50px; }
.lib-stat { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; }
.lib-stat .pulse { width: 8px; height: 8px; border-radius: 50%; position: relative; }
.lib-stat .pulse::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid currentColor; opacity: 0.4; animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { to { transform: scale(1.9); opacity: 0; } }
.lib-bar { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.lib-bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .4s; }
.lib-foot { display: flex; gap: 8px; }
.lib-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--ink-3); }
.lib-meta span:first-child { flex: 1; min-width: 0; }
.lib-meta span:last-child { flex-shrink: 0; white-space: nowrap; }

.lib-tabs { display: flex; gap: 6px; padding: 4px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; width: fit-content; }
.lib-tabs button { padding: 8px 16px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.lib-tabs button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

/* ============================================================
   Install — uley Agent desktop client
   ============================================================ */
.desk {
  min-height: calc(100vh - 64px); padding: 38px 24px 60px;
  background:
    radial-gradient(120% 90% at 50% -20%, var(--accent-soft), transparent 60%),
    linear-gradient(180deg, var(--bg-sunk), var(--bg));
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.desk-hint { font-size: 13.5px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.win {
  width: 100%; max-width: 920px; background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.win-bar { display: flex; align-items: center; gap: 12px; padding: 13px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.lights { display: flex; gap: 8px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.win-title { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin: 0 auto; white-space: nowrap; }
.win-title .brand-mark { width: 17px; height: 17px; }
.win-ver { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-4); }
.win-body { display: grid; grid-template-columns: 232px 1fr; min-height: 460px; }
.win-side { border-right: 1px solid var(--border); background: var(--bg-sunk); padding: 16px 12px; }
.side-h { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-4); padding: 6px 10px 10px; }
.q-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; cursor: default; }
.q-item.on { background: var(--surface); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.q-item .hex { width: 34px; }
.q-item .nm { font-size: 13.5px; font-weight: 600; font-family: var(--font-display); }
.q-item .st { font-size: 11.5px; color: var(--ink-3); }
.q-item .st.done { color: oklch(0.5 0.12 152); }
.q-mini-bar { height: 4px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-top: 4px; }
.q-mini-bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .3s; }

.win-main { padding: 28px 30px; display: flex; flex-direction: column; }
.inst-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.inst-head .hex { width: 56px; }
.inst-head .htxt { min-width: 0; flex: 1; }
.inst-head h2 { font-size: 22px; line-height: 1.15; }
.inst-head .sub { font-size: 13.5px; color: var(--ink-3); margin-top: 2px; }

.inst-prog { margin-bottom: 8px; }
.inst-prog-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 9px; }
.inst-prog-top .lbl { font-size: 14px; font-weight: 600; flex: 1; min-width: 0; }
.inst-prog-top .pct { flex-shrink: 0; }
.inst-prog-top .pct { font-family: var(--font-mono); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.inst-prog-top .pct span { font-size: 13px; color: var(--ink-3); }
.bar-lg { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--border); }
.bar-lg i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-press)); transition: width .25s ease-out; position: relative; }
.bar-lg i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent); animation: shine 1.4s linear infinite; }
@keyframes shine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.inst-speed { display: flex; gap: 16px; margin-top: 9px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }

.steps { display: flex; flex-direction: column; gap: 2px; margin: 22px 0; }
.step { display: flex; align-items: center; gap: 12px; padding: 9px 2px; font-size: 14px; }
.step-ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; border: 2px solid var(--border-strong); color: var(--ink-4); background: var(--surface); }
.step.done .step-ic { background: var(--good); border-color: var(--good); color: #fff; }
.step.active .step-ic { border-color: var(--accent); color: var(--accent); }
.step.active .step-ic .spin { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.step .tx { color: var(--ink-3); flex: 1; min-width: 0; }
.step.done .tx { color: var(--ink); }
.step.active .tx { color: var(--ink); font-weight: 600; }
.step .when { margin-left: auto; font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-4); }

.log {
  margin-top: auto; background: oklch(0.22 0.012 80); border-radius: 12px; padding: 14px 16px;
  font-family: var(--font-mono); font-size: 12px; line-height: 1.7; color: oklch(0.82 0.02 80);
  height: 132px; overflow: hidden; position: relative;
}
.log-line { white-space: nowrap; }
.log-line .t { color: oklch(0.6 0.02 80); }
.log-line .ok { color: oklch(0.75 0.14 152); }
.log-line .ac { color: oklch(0.8 0.13 75); }
.log::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 24px; background: linear-gradient(180deg, oklch(0.22 0.012 80), transparent); }

.inst-done { text-align: center; padding: 12px 0; animation: fadeUp .4s; }
.inst-done .big-hex { width: 86px; margin: 0 auto 18px; position: relative; }
.inst-done .big-hex .ok-pop { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.inst-done h2 { font-size: 26px; margin-bottom: 8px; }
.inst-done p { color: var(--ink-3); margin: 0 auto 22px; max-width: 380px; }
.inst-done .row { display: flex; gap: 12px; justify-content: center; }

/* ============================================================
   Footer
   ============================================================ */
.ftr { border-top: 1px solid var(--border); background: var(--surface); margin-top: 60px; }
.ftr-in { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding: 48px 0 40px; }
.ftr-col h5 { font-family: var(--font-display); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); margin-bottom: 14px; font-weight: 700; }
.ftr-col a { display: block; font-size: 14px; color: var(--ink-2); padding: 5px 0; }
.ftr-col a:hover { color: var(--accent-ink); }
.ftr-brand p { font-size: 14px; color: var(--ink-3); max-width: 280px; line-height: 1.55; margin: 14px 0 0; }
.ftr-bottom { border-top: 1px solid var(--border); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--ink-4); }

/* ============================================================
   Toast
   ============================================================ */
.toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast {
  display: flex; align-items: center; gap: 11px; background: var(--ink); color: var(--bg);
  padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 500;
  animation: toastIn .3s cubic-bezier(.2,.8,.3,1);
}
.toast .tk { width: 22px; height: 22px; border-radius: 50%; background: var(--good); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.toast a { color: var(--accent); font-weight: 700; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px); } }

/* ============================================================
   Animations / entrances
   ============================================================ */
@keyframes fadeUp { from { transform: translateY(11px); } to { transform: none; } }
.view { animation: fadeUp .4s cubic-bezier(.2,.7,.3,1); }
.stagger > * { animation: fadeUp .5s cubic-bezier(.2,.7,.3,1) both; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-feat { display: none; }
  .detail-hero, .cart-grid { grid-template-columns: 1fr; }
  .rail, .summary { position: static; }
  .ftr-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 18px; }
  .search { display: none; }
  .nav { display: none; }
  .hero h1 { font-size: 34px; }
  .cap-grid, .gallery { grid-template-columns: 1fr; }
  .shot--wide { grid-column: span 1; }
}
