:root {
  color-scheme: dark;
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: #fbecf7;
  background: #100b13;
  --subtle: #c3afc3;
  --pink: #f6c5e7;
  --line: #47324b;
  --panel: #1d1322;
  scroll-behavior: smooth;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; line-height: 1.55; }
a { color: inherit; text-underline-offset: .24em; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #ffb7e8; outline-offset: 4px; }
.shell { width: min(1120px, calc(100% - 56px)); margin-inline: auto; }
.topbar { border-bottom: 1px solid #2c2030; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 74px; }
.wordmark { display: inline-flex; align-items: center; gap: 11px; font-size: 1.35rem; font-weight: 750; text-decoration: none; }
.brand-symbol { width: 36px; height: 36px; border-radius: 11px; background: #2a1830 url('/assets/aggela.png') 50% 35% / 222% no-repeat; }
nav { display: flex; gap: clamp(12px, 3vw, 30px); align-items: center; flex-wrap: wrap; }
nav a { color: var(--subtle); font-size: .94rem; text-decoration: none; }
nav a:hover, nav a[aria-current] { color: var(--pink); }
nav .bot-link { border: 1px solid var(--line); padding: 7px 13px; border-radius: 8px; }
.hero { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; overflow: hidden; isolation: isolate; margin: 36px 0 56px; min-height: 330px; border: 1px solid var(--line); border-radius: 26px; background: radial-gradient(ellipse at 90% 95%, #57305c 0%, #251729 42%, #19101d 80%); }
.hero-copy { z-index: 1; padding: clamp(28px, 5vw, 60px); }
.hero h1 { margin: 0; font-size: clamp(3.25rem, 8vw, 6.5rem); font-weight: 760; line-height: .98; letter-spacing: -.065em; }
.hero h1 span { color: var(--pink); }
.hero p { margin: 25px 0 0; max-width: 360px; color: #e2cadf; font-size: 1.08rem; }
.hero-art { position: relative; aspect-ratio: 1.16; width: min(100%, 480px); justify-self: end; align-self: stretch; min-height: 260px; overflow: hidden; mask-image: radial-gradient(ellipse at 57% 46%, #000 25%, transparent 72%); }
.hero-art img { position: absolute; width: 122%; height: auto; inset: -14% auto auto -7%; mask-image: linear-gradient(#000 63%, transparent 70%); }
h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.05rem); letter-spacing: -.035em; line-height: 1.15; }
.section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-bottom: 17px; }
.section-title p { margin: 0; color: var(--subtle); font-size: .9rem; }
.search-wrap { position: relative; display: flex; align-items: center; }
.search-wrap input { border: 1px solid var(--line); background: #1b1320; border-radius: 12px; width: 100%; color: inherit; padding: 15px 54px 15px 46px; }
.search-wrap input::placeholder { color: var(--subtle); }
.search-icon { position: absolute; left: 18px; border: 1.6px solid #d1a8cb; border-radius: 50%; width: 14px; height: 14px; pointer-events: none; }
.search-icon::after { content: ''; width: 6px; height: 1.6px; position: absolute; top: 11px; left: 9px; background: #d1a8cb; transform: rotate(45deg); }
kbd { position: absolute; right: 14px; border: 1px solid var(--line); border-radius: 5px; color: var(--subtle); min-width: 23px; text-align: center; pointer-events: none; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 17px 0 11px; }
.filter { padding: 7px 15px; border-radius: 999px; background: transparent; border: 1px solid var(--line); color: var(--subtle); font-size: .92rem; }
.filter:hover { background: #291b2e; color: var(--pink); }
.filter[aria-pressed=true] { background: var(--pink); color: #281429; border-color: transparent; font-weight: 650; }
.results-status { margin: 0 0 12px; color: var(--subtle); font-size: .9rem; }
.command-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.command-item { display: flex; }
.command-card { display: flex; flex-direction: column; align-items: flex-start; text-align: left; width: 100%; border: 1px solid var(--line); background: var(--panel); border-radius: 14px; padding: 17px; gap: 6px; }
.command-card:hover { border-color: #a16f9d; background: #28192d; }
.command-card code, #detail-command { color: var(--pink); border-radius: 5px; background: #38243c; padding: 3px 7px; font-size: 1rem; overflow-wrap: anywhere; }
.command-card strong { margin-top: 3px; font-size: 1.08rem; }
.command-card .description, dialog p { color: var(--subtle); }
.setup { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin: 52px 0 48px; padding: clamp(20px, 4vw, 34px); background: var(--panel); border: 1px solid var(--line); border-radius: 19px; scroll-margin-top: 24px; }
.steps { margin: 15px 0 0; padding-left: 1.25em; color: var(--subtle); }
.steps li + li { margin-top: 5px; }
.steps li::marker { color: var(--pink); }
.guide-link { color: var(--pink); white-space: nowrap; }
.footer { display: flex; justify-content: space-between; border-top: 1px solid #332437; padding: 22px 0 26px; color: var(--subtle); }
.footer span { font-weight: 700; }
dialog { width: min(530px, calc(100% - 32px)); padding: 23px; border: 1px solid #604862; border-radius: 18px; background: #201526; color: inherit; }
dialog::backdrop { background: #09060bd4; }
.detail-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 13px; }
.close { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 9px; background: #281b2d; font-size: 1.45rem; line-height: 1; }
.usage { display: grid; gap: 5px; border: 1px solid var(--line); border-radius: 9px; padding: 12px; background: #150e19; }
.usage span { color: var(--subtle); font-size: .9rem; }
.usage code { overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.button { border-radius: 9px; border: 1px solid var(--line); background: #2b1d31; padding: 9px 13px; }
.primary { background: var(--pink); color: #261528; font-weight: 650; }
.button:hover { filter: brightness(1.12); }
dialog .toast { margin: 12px 0 0; color: var(--pink); }
@media (max-width: 850px) { .command-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 570px) {
  .shell { width: calc(100% - 32px); }
  .topbar-inner { min-height: 65px; }
  .wordmark { gap: 7px; font-size: 1.15rem; }
  .brand-symbol { width: 29px; height: 29px; }
  nav { gap: 10px; justify-content: flex-end; }
  nav a { font-size: .86rem; }
  .hero { margin: 21px 0 34px; min-height: 230px; grid-template-columns: 1fr; }
  .hero-copy { padding: 24px; }
  .hero h1 { font-size: clamp(2.7rem, 12vw, 4.3rem); }
  .hero p { max-width: 260px; margin-top: 16px; font-size: 1rem; }
  .hero-art { position: absolute; width: 48%; min-height: 0; right: -3%; top: 4%; opacity: .35; }
  .section-title, .setup { align-items: flex-start; flex-direction: column; }
  .command-grid { grid-template-columns: 1fr; }
  .setup { margin: 38px 0 32px; }
}
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } }
