:root {
  --ink: #102044;
  --muted: #4f6080;
  --line: #dce5f6;
  --blue: #1756d9;
  --paper: #f3f7ff;
  font: 16px/1.55 Inter, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
header { background: white; border-bottom: 1px solid var(--line); }
.nav, main, footer { width: min(1160px, calc(100% - 36px)); margin-inline: auto; }
.nav, nav, footer, .tabs, .card-foot, .row, .filters, .pagination {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
}
.nav, footer, .card-foot, .row { justify-content: space-between; }
.nav { min-height: 74px; padding-block: 10px; }
.brand { font-weight: 800; color: var(--ink); font-size: 1.23rem; }
.brand span { color: var(--blue); }
a { color: #174cb3; text-decoration: none; }
a:hover { text-decoration: underline; }
nav a, .quiet { font-size: .92rem; font-weight: 650; }
main { min-height: 72vh; padding-block: 26px 56px; }
footer { border-top: 1px solid var(--line); padding-block: 24px; color: var(--muted); }
h1, h2, h3, p { margin-top: 0; overflow-wrap: anywhere; }
h1, h2, h3 { line-height: 1.13; letter-spacing: -.035em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: 1.55rem; }
.hero {
  position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: center;
  grid-template-columns: 3fr 2fr; border-radius: 28px; min-height: 375px;
  background: linear-gradient(125deg, #071b43, #133d90 70%, #2257c2);
  color: white; padding: clamp(26px, 6vw, 68px); margin-bottom: 40px;
}
.hero h1 { font-size: clamp(2.2rem, 5.4vw, 4.1rem); margin-bottom: 16px; }
.hero p { max-width: 420px; color: #d7e5ff; }
.hero a { background: #fff; color: #143f9e; }
.eyebrow, .category { font-size: .79rem; text-transform: uppercase; letter-spacing: .10em; font-weight: 750; }
.eyebrow { color: var(--blue); }
.art { position: absolute; z-index: -1; width: 52%; height: 105%; right: 0; top: 0; }
.art i {
  position: absolute; width: 48%; aspect-ratio: 1; border: 1px solid #b9d5ff70; border-radius: 22%;
  transform: rotate(22deg) skew(-10deg); box-shadow: 0 20px 50px #06143555;
  background: linear-gradient(140deg, #6ba8ff65, #0e2d7080);
}
.art i:nth-child(1) { top: 25%; left: 5%; }
.art i:nth-child(2) { top: 12%; left: 25%; }
.art i:nth-child(3) { top: 1%; left: 45%; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 242px), 1fr)); }
.card, .panel, .row {
  background: white; border: 1px solid var(--line); border-radius: 16px; padding: 20px;
}
.card { display: flex; flex-direction: column; }
.card h3 { margin: 12px 0 8px; font-size: 1.18rem; }
.card h3 a { color: var(--ink); }
.card p, .row span, .card-foot span, .reference { color: var(--muted); }
.card-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.category { color: #2853a6; }
.panel, .row { margin-block: 10px; }
.narrow { max-width: 450px; margin-inline: auto; }
.detail { max-width: 760px; }
.tabs { margin-bottom: 24px; }
.filters { margin-bottom: 16px; }
.filters input { flex: 1 1 210px; width: auto; }
.filters select { width: auto; max-width: 100%; }
.pagination { margin-top: 20px; }
.split { display: grid; grid-template-columns: 1fr 1.45fr; gap: 20px; align-items: start; }
label { display: block; font-weight: 650; margin-bottom: 12px; }
input, select, textarea {
  display: block; width: 100%; padding: 10px 12px; font: inherit; color: var(--ink); background: white;
  border: 1px solid #a7b7d5; border-radius: 8px;
}
label input, label textarea { margin-top: 5px; }
textarea { min-height: 95px; resize: vertical; }
.checkbox { display: flex; gap: 8px; align-items: center; }
.checkbox input { display: inline; width: auto; margin: 0; }
button, .button {
  display: inline-block; font: inherit; font-weight: 750; padding: 9px 16px; cursor: pointer;
  border-radius: 8px; border: 1px solid transparent; background: var(--blue); color: white;
}
button:hover, .button:hover { text-decoration: underline; }
.quiet { background: transparent; color: #174cb3; padding: 0; }
.panel form + form { margin-top: 20px; }
.notice, .demo { background: #e1edff; border: 1px solid #bad2fc; padding: 10px 16px; border-radius: 8px; }
.preserve, pre { white-space: pre-wrap; overflow-wrap: anywhere; }
pre { background: #edf4ff; padding: 15px; }
:focus-visible { outline: 3px solid #648cf0; outline-offset: 3px; }
@media (max-width: 650px) {
  .split, .hero { grid-template-columns: 1fr; }
  .art { opacity: .35; width: 80%; right: -28%; }
  .nav { gap: 8px; }
  nav { gap: 12px; }
}

/* AIGuru storefront */
.market-banner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  overflow: hidden;
  border-radius: 28px;
  background: radial-gradient(ellipse at 87% 25%, #225edc 0%, transparent 52%), #081d4d;
  color: #fff;
  min-height: 420px;
  padding: clamp(24px, 5vw, 64px);
}
.market-intro { position: relative; z-index: 1; }
.market-intro .eyebrow { color: #b9ceff; }
.market-intro h1 { font-size: clamp(2.65rem, 6.7vw, 5.8rem); max-width: 7em; margin-bottom: .22em; }
.market-intro > p:not(.eyebrow) { color: #e1eaff; max-width: 34em; }
.market-search {
  display: flex;
  gap: 8px;
  max-width: 440px;
  background: #fff;
  border-radius: 12px;
  padding: 5px;
  margin-block: 24px 17px;
}
.market-search input { border: 0; min-width: 0; }
.market-link { color: #fff; font-weight: 700; }
.market-art { position: relative; display: grid; place-items: center; min-height: 280px; }
.market-orbit {
  position: absolute;
  width: 74%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid #b6d4ff55;
  box-shadow: 0 0 0 20px #8ab3ff14, 0 0 0 44px #8ab3ff0c;
}
.market-core {
  display: grid;
  place-items: center;
  width: 48%;
  max-width: 180px;
  aspect-ratio: 1;
  transform: rotate(-12deg);
  background: linear-gradient(135deg, #b9d7ff, #3164de 65%, #122d74);
  border: 1px solid #adcaff;
  border-radius: 30%;
  color: #fff;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  box-shadow: 0 22px 64px #020f3e99, inset 0 1px 12px #dbe9ff99;
}
.market-chip {
  position: absolute;
  border: 1px solid #98bcfa70;
  background: #102d67;
  color: #e1eeff;
  border-radius: 10px;
  box-shadow: 0 8px 20px #07173966;
  padding: 8px 13px;
  font-weight: 700;
}
.chip-create { left: 8%; top: 18%; }
.chip-build { right: 3%; top: 42%; }
.chip-work { left: 14%; bottom: 11%; }
.home-section, .support-banner { margin-top: clamp(30px, 5vw, 60px); }
.category-tiles { display: flex; flex-wrap: wrap; gap: 10px; }
.category-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 10px 15px;
  font-weight: 700;
}
.category-tile span { color: var(--blue); }
.support-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid #b7d1fb;
  background: linear-gradient(100deg, #e4edff, #cfe3ff);
  border-radius: 20px;
}
.support-banner h2 { margin-bottom: 9px; }
.support-banner p { max-width: 49ch; margin-bottom: 0; }
.support-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; font-weight: 700; }
.home-faq details { border-top: 1px solid #aabddd; padding: 14px 0; }
.home-faq summary { cursor: pointer; font-weight: 700; }
.home-faq details p { margin: 8px 0 0; }
@media (max-width: 700px) {
  .market-banner { grid-template-columns: 1fr; }
  .market-art { min-height: 190px; width: min(100%, 330px); margin: 22px auto 0; }
  .market-orbit { width: 49%; }
  .market-core { width: 35%; }
}
