/* AGI TOOLS website. Dark theme, system fonts, no external resources. */
:root {
  --bg: #0a0c11;
  --bg-raised: #0e1118;
  --surface: #121621;
  --surface-2: #171c29;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eaedf3;
  --muted: #a7afbd;
  --faint: #8b93a4;
  --accent: #93a8ff;
  --accent-2: #b39dff;
  --btn-a: #3f5ef0;
  --btn-b: #6a4fe0;
  --ready: #6fe3a9;
  --ready-bg: rgba(64, 196, 128, 0.12);
  --eval: #c2b5ff;
  --eval-bg: rgba(140, 116, 255, 0.14);
  --hold: #c8cdd8;
  --hold-bg: rgba(255, 255, 255, 0.07);
  --radius: 14px;
  --radius-sm: 10px;
  --wrap: 1160px;
  --gutter: 24px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #b9c6ff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
p, li, dd, h1, h2, h3, h4, figcaption { overflow-wrap: break-word; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--surface-2); color: var(--text);
  padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 12, 17, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none;
  font-weight: 700; letter-spacing: 0.06em; font-size: 0.95rem; white-space: nowrap; }
.brand:hover { color: var(--text); }
.brand img { width: 28px; height: 28px; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.92rem; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { color: var(--muted); text-decoration: none; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; }
.lang:hover { color: var(--text); border-color: var(--border-strong); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; color: var(--text); font-size: 0.9rem; font-weight: 600;
  padding: 7px 12px; border: 1px solid var(--border); border-radius: 8px; user-select: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { border-color: var(--border-strong); background: var(--surface); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; padding: 8px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); display: grid; }
.menu-panel a { color: var(--text); text-decoration: none; padding: 11px 12px; border-radius: 8px; font-size: 0.95rem; }
.menu-panel a:hover { background: rgba(255, 255, 255, 0.05); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none;
  font-weight: 600; border-radius: 11px; border: 1px solid transparent; line-height: 1.2;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-sm { font-size: 0.88rem; padding: 8px 14px; border-radius: 9px; }
.btn-lg { font-size: 1rem; padding: 14px 22px; min-height: 50px; }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--btn-a), var(--btn-b));
  box-shadow: 0 6px 20px rgba(79, 94, 240, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.14); }
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 26px rgba(79, 94, 240, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.btn-ghost { color: var(--text); background: rgba(255, 255, 255, 0.03); border-color: var(--border-strong); }
.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, 0.07); transform: translateY(-1px); }

/* Hero */
.hero { position: relative; padding: 88px 0 72px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto -10%; height: 760px; pointer-events: none;
  background:
    radial-gradient(520px 360px at 18% 20%, rgba(79, 110, 247, 0.16), transparent 70%),
    radial-gradient(560px 380px at 82% 30%, rgba(124, 92, 246, 0.13), transparent 70%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.85rem; font-weight: 600;
  padding: 6px 12px 6px 10px; border: 1px solid var(--border); border-radius: 999px; background: rgba(255, 255, 255, 0.025); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #f2b84b; box-shadow: 0 0 0 3px rgba(242, 184, 75, 0.15); flex: none; }
.hero h1 { margin-top: 22px; font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4rem); letter-spacing: -0.035em; line-height: 1.05; }
.grad { background: linear-gradient(120deg, #c3cdff 0%, #9fb1ff 40%, #b9a4ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: 22px; color: var(--muted); font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); max-width: 36em; }
.cta-row { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.fine { margin-top: 14px; color: var(--faint); font-size: 0.86rem; }
.shot { margin: 0; }
.frame { border-radius: var(--radius); border: 1px solid var(--border-strong); background: var(--surface); padding: 6px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.4); }
.frame img { border-radius: 9px; width: 100%; }
.shot figcaption { margin-top: 12px; color: var(--faint); font-size: 0.82rem; text-align: center; }

/* Sections */
.section { padding: 96px 0; border-top: 1px solid var(--border); }
.section.alt { background: var(--bg-raised); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.kicker { color: var(--accent); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.section-head h2 { margin-top: 10px; font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.5rem); }
.section-head p.sub { margin-top: 14px; color: var(--muted); font-size: 1.05rem; }
.as-of { margin-top: 8px; color: var(--faint); font-size: 0.86rem; }

/* Status pills */
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.02em;
  padding: 4px 10px; border-radius: 999px; white-space: nowrap; line-height: 1.4; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-ready { color: var(--ready); background: var(--ready-bg); }
.pill-evaluation { color: var(--eval); background: var(--eval-bg); }
.pill-onhold { color: var(--hold); background: var(--hold-bg); }

/* Featured */
.featured { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.featured h2 { font-size: 1.6rem; margin-top: 14px; }
.featured .headline { margin-top: 10px; color: var(--muted); font-size: 1.05rem; }
.checks { list-style: none; margin-top: 22px; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; color: var(--text); }
.checks li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 14px; height: 8px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.facts { margin-top: 24px; display: grid; gap: 8px; color: var(--muted); font-size: 0.92rem; }
.facts strong { color: var(--text); font-weight: 600; }
.featured .btn { margin-top: 26px; }
.thumbs { margin-top: 12px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; list-style: none; }
.thumbs a { display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.thumbs a:hover { border-color: var(--border-strong); }

/* Catalog */
.legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 36px; list-style: none; }
.legend li { padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.legend p { margin-top: 10px; color: var(--muted); font-size: 0.88rem; line-height: 1.55; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.chips a { color: var(--muted); text-decoration: none; font-size: 0.88rem; padding: 7px 14px; border: 1px solid var(--border);
  border-radius: 999px; background: rgba(255, 255, 255, 0.02); }
.chips a:hover { color: var(--text); border-color: var(--border-strong); }
.cat + .cat { margin-top: 52px; }
.cat-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.cat-head h3 { font-size: 1.25rem; }
.cat-head p { color: var(--faint); font-size: 0.92rem; }
.icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 11px;
  color: var(--accent); background: rgba(124, 140, 255, 0.1); border: 1px solid rgba(124, 140, 255, 0.18); }
.icon svg { width: 20px; height: 20px; }
.cards { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card { position: relative; height: 100%; display: flex; flex-direction: column; gap: 10px; padding: 20px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color 0.15s ease, transform 0.15s ease, background-color 0.15s ease; }
.card:hover { border-color: var(--border-strong); background: var(--surface-2); transform: translateY(-2px); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.card h4 { font-size: 1.05rem; letter-spacing: -0.01em; margin: 0; }
.card h4 a { color: var(--text); text-decoration: none; }
.card h4 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card p { color: var(--muted); font-size: 0.92rem; line-height: 1.55; }
.card .meta { margin-top: auto; padding-top: 6px; color: var(--faint); font-size: 0.8rem; }
.onhold { margin-top: 64px; padding: 28px; border: 1px dashed var(--border-strong); border-radius: var(--radius); }
.onhold-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.onhold-head h3 { font-size: 1.15rem; }
.onhold > p { margin-top: 8px; color: var(--muted); font-size: 0.92rem; max-width: 60em; }
.hold-list { list-style: none; margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; }
.hold-list li { padding-top: 14px; border-top: 1px solid var(--border); }
.hold-list strong { font-weight: 600; }
.hold-list span { color: var(--faint); font-size: 0.8rem; margin-left: 8px; }
.hold-list p { margin-top: 4px; color: var(--muted); font-size: 0.88rem; line-height: 1.5; }

/* How it works */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.steps li { padding: 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font: 700 0.85rem/1 var(--mono); color: var(--accent); margin-bottom: 18px; }
.steps h3 { font-size: 1.15rem; }
.steps p { margin-top: 10px; color: var(--muted); font-size: 0.95rem; }

/* Why */
.why { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.why li { padding: 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.why h3 { font-size: 1.12rem; }
.why p { margin-top: 10px; color: var(--muted); font-size: 0.95rem; }

/* FAQ */
.faq { max-width: 860px; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.faq details[open] { border-color: var(--border-strong); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { padding: 0 20px 20px; color: var(--muted); }

/* CTA band */
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 40px;
  border: 1px solid var(--border-strong); border-radius: 18px;
  background: linear-gradient(135deg, rgba(79, 110, 247, 0.12), rgba(124, 92, 246, 0.1)), var(--surface); }
.cta-band h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); }
.cta-band p { margin-top: 10px; color: var(--muted); }

/* Product page */
.crumbs { padding-top: 32px; color: var(--faint); font-size: 0.88rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--faint); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.product-head { padding-top: 28px; padding-bottom: 40px; display: grid; grid-template-columns: minmax(0, 1fr) 340px;
  grid-template-rows: auto 1fr; grid-template-areas: "main aside" "intro aside"; column-gap: 48px; align-items: start; }
.product-head .ph-main { grid-area: main; }
.product-head .aside { grid-area: aside; }
.product-head .intro { grid-area: intro; }
.product-title { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.product-title h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); letter-spacing: -0.03em; }
.product-head .headline { margin-top: 18px; font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); color: var(--text); font-weight: 500; }
.product-head .short { margin-top: 12px; color: var(--muted); font-size: 1.02rem; }
.aside { padding: 22px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); }
.aside h2 { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.aside .pill { margin-top: 12px; }
.aside .state { margin-top: 12px; color: var(--muted); font-size: 0.92rem; }
.aside .nosale { margin-top: 10px; font-weight: 600; font-size: 0.92rem; }
.aside dl { margin: 18px 0 0; display: grid; gap: 12px; }
.aside dt { color: var(--faint); font-size: 0.8rem; }
.aside dd { margin: 2px 0 0; font-size: 0.92rem; }
.aside .btn { margin-top: 20px; width: 100%; }
.product-head .intro { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--border); max-width: 68ch; }
.product-head .intro h2 { font-size: 1.15rem; margin-bottom: 10px; }
.product-head .intro p { color: var(--muted); }
.gallery { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 760px); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; overscroll-behavior-x: contain; }
.gallery li { scroll-snap-align: start; }
.gallery figure { margin: 0; }
.gallery a { display: block; border-radius: var(--radius); }
.gallery figcaption { margin-top: 10px; color: var(--muted); font-size: 0.88rem; }
.placeholder { display: flex; align-items: center; gap: 16px; padding: 28px; border: 1px dashed var(--border-strong);
  border-radius: var(--radius); color: var(--muted); background: rgba(255, 255, 255, 0.015); }
.prose { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 56px; }
.prose h2 { font-size: 1.25rem; margin-bottom: 12px; }
.prose p { color: var(--muted); }
.prose .wide { grid-column: 1 / -1; }
.prose .checks li { color: var(--muted); }
.related { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.page-section { padding: 56px 0; border-top: 1px solid var(--border); }
.page-section > .wrap > h2 { font-size: 1.35rem; margin-bottom: 22px; }

/* Simple pages */
.doc { max-width: 760px; padding: 56px 0 96px; }
.doc h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); }
.doc .updated { margin-top: 10px; color: var(--faint); font-size: 0.9rem; }
.doc h2 { margin-top: 40px; font-size: 1.25rem; }
.doc p { margin-top: 12px; color: var(--muted); }
.notfound { text-align: center; padding-top: 120px; padding-bottom: 120px; }
.notfound h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
.notfound p { margin-top: 14px; color: var(--muted); }
.notfound .cta-row { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 40px; color: var(--muted); font-size: 0.9rem; background: var(--bg-raised); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
.footer-grid h2 { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.footer-grid ul { list-style: none; display: grid; gap: 8px; }
.footer-grid a { color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--text); }
.footer-brand p { margin-top: 12px; }
.footer-note { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--faint); font-size: 0.82rem; display: grid; gap: 6px; }

/* Entrance motion, only for people who have not asked for reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .hero .shot { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.05s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.1s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.15s; }
  .hero .shot { animation-delay: 0.18s; }
  @keyframes rise { from { opacity: 0.35; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Responsive */
@media (max-width: 1020px) {
  .hero-grid, .featured, .product-head { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .product-head { grid-template-rows: auto; grid-template-areas: "main" "aside" "intro"; gap: 28px; }
  .product-head .intro { margin-top: 6px; }
  .cards, .related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .product-head .aside { max-width: 560px; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .menu { display: block; }
  .header-actions .btn { display: none; }
  .legend, .why, .prose, .hold-list, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .prose { gap: 32px; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 28px; }
  .section { padding: 72px 0; }
}
@media (max-width: 620px) {
  :root { --gutter: 16px; }
  .hero { padding: 56px 0 48px; }
  .cards, .related { grid-template-columns: minmax(0, 1fr); }
  .cta-row .btn { width: 100%; }
  .thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-auto-columns: 88%; }
  .onhold { padding: 20px; }
  .section { padding: 60px 0; }
  .header-inner { gap: 12px; }
}
@media (max-width: 359px) {
  .brand span { display: none; }
}
