:root {
  color-scheme: dark;
  --bg: #0a0812;
  --panel: #11101b;
  --panel-raised: #171522;
  --line: rgba(206, 195, 255, .12);
  --line-bright: rgba(206, 195, 255, .23);
  --text: #f6f3ff;
  --muted: #a9a4b9;
  --quiet: #777187;
  --purple: #a879ff;
  --pink: #ff69d4;
  --cyan: #57e8ff;
  --lime: #c5ff73;
  --radius: 20px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--text); background: radial-gradient(ellipse at 84% -14%, rgba(116, 52, 194, .19), transparent 38%), var(--bg); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
.shell { min-height: 100vh; }
.topbar { height: 76px; display: flex; align-items: center; gap: 32px; padding: 0 clamp(20px, 5vw, 76px); border-bottom: 1px solid var(--line); background: rgba(10, 8, 18, .76); backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 20; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; font-size: 17px; font-weight: 800; letter-spacing: -.055em; }
.brand-mark { width: 34px; height: 34px; display: block; flex: 0 0 auto; border-radius: 11px; filter: drop-shadow(0 0 12px rgba(168, 121, 255, .36)); }
.brand span:last-child { color: #c9c3d8; font-size: 11px; font-weight: 600; letter-spacing: .13em; margin-left: 1px; }
.topnav { display: flex; align-items: center; gap: 28px; margin-left: 28px; color: var(--muted); font-size: 13px; }
.topnav a:hover, .topnav a:focus-visible { color: var(--text); }
.top-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.soft-link { color: var(--muted); font-size: 12px; padding: 9px 12px; }
.soft-link:hover { color: var(--text); }
.button { min-height: 42px; border: 1px solid var(--line-bright); border-radius: 12px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; font-weight: 800; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-2px); border-color: rgba(202, 165, 255, .6); box-shadow: 0 8px 24px rgba(155, 93, 255, .14); }
.button-primary { border-color: transparent; color: #100a1b; background: linear-gradient(105deg, var(--cyan), #aca0ff 54%, var(--pink)); box-shadow: 0 0 28px rgba(168, 121, 255, .2); }
.button-quiet { background: rgba(255,255,255,.035); }
.button-small { min-height: 35px; padding: 0 12px; font-size: 11px; }
.icon-button { display: inline-grid; place-items: center; width: 40px; height: 40px; color: var(--muted); border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.035); cursor: pointer; }
.icon-button:hover { color: var(--text); border-color: var(--line-bright); }

.main { width: min(1280px, calc(100% - 48px)); margin: 0 auto; padding: 49px 0 70px; }
.hero { min-height: 321px; overflow: hidden; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: center; gap: 22px; border: 1px solid rgba(198, 167, 255, .17); border-radius: 25px; padding: 42px clamp(26px, 5.2vw, 70px); background: radial-gradient(ellipse at 87% 56%, rgba(153, 75, 224, .2), transparent 38%), linear-gradient(125deg, #161321, #12101b 55%, #171021); box-shadow: 0 28px 90px rgba(0,0,0,.24); }
.hero:before { content: ''; position: absolute; width: 520px; height: 520px; right: -85px; top: -145px; border: 1px solid rgba(183, 143, 255, .11); border-radius: 42%; transform: rotate(34deg); box-shadow: 0 0 0 28px rgba(182, 129, 255, .025), 0 0 0 58px rgba(182, 129, 255, .02); pointer-events: none; }
.hero-copy { position: relative; z-index: 1; max-width: 650px; }
.eyebrow, .mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; text-transform: uppercase; letter-spacing: .13em; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #d9caff; font-size: 10px; font-weight: 500; }
.eyebrow:before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 13px rgba(197,255,115,.8); }
.hero h1 { max-width: 650px; margin: 18px 0 12px; font-size: clamp(36px, 5vw, 59px); line-height: 1.02; letter-spacing: -.07em; font-weight: 800; }
.gradient-text { color: transparent; background: linear-gradient(96deg, #76edff, #bb94ff 45%, #ff80d7 90%); background-clip: text; -webkit-background-clip: text; }
.hero p { margin: 0; color: #b7b1c7; max-width: 560px; font-size: 14px; line-height: 1.8; }
.hero-actions { display: flex; gap: 11px; align-items: center; margin-top: 25px; flex-wrap: wrap; }
.hero-art { position: relative; width: 100%; height: 228px; }
.art-orbit { position: absolute; inset: 12px 20px 0; border: 1px solid rgba(196, 151, 255, .24); border-radius: 50%; transform: rotate(-22deg) scaleY(.72); }
.art-orbit:after { content: ''; position: absolute; inset: 22px; border: 1px dashed rgba(90, 229, 255, .28); border-radius: 50%; }
.art-core { position: absolute; width: 144px; height: 144px; left: calc(50% - 72px); top: 35px; border: 1px solid rgba(255,255,255,.25); border-radius: 41px; transform: rotate(-11deg); background: linear-gradient(145deg, rgba(153, 113, 255, .25), rgba(23, 16, 38, .8)); box-shadow: 0 0 70px rgba(179, 95, 255, .25), inset 0 0 35px rgba(93, 224, 255, .08); display: grid; place-items: center; }
.art-core img { width: 100px; height: 100px; transform: rotate(11deg); filter: drop-shadow(0 0 20px rgba(168, 121, 255, .55)); }
.art-chip { position: absolute; border: 1px solid rgba(223, 206, 255, .25); border-radius: 12px; background: rgba(20, 15, 31, .8); box-shadow: 0 10px 35px rgba(0,0,0,.24); display: flex; align-items: center; gap: 9px; padding: 10px 12px; font-size: 10px; color: #e8e1f8; backdrop-filter: blur(10px); }
.art-chip b { font-size: 14px; }
.art-chip-one { left: 0; top: 28px; transform: rotate(-7deg); }
.art-chip-two { right: -4px; top: 72px; transform: rotate(6deg); }
.art-chip-three { left: 29px; bottom: 7px; transform: rotate(3deg); }
.glow-dot { display: inline-block; width: 7px; height: 7px; border-radius: 99px; background: var(--pink); box-shadow: 0 0 11px var(--pink); }

.quick-strip { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 22px 4px 26px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.quick-stats { display: flex; align-items: center; gap: 20px; }
.quick-stats strong { color: var(--text); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; font-weight: 500; }
.quick-sep { width: 1px; height: 17px; background: var(--line-bright); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 44px 0 19px; }
.section-title { margin: 0; font-size: 23px; font-weight: 800; letter-spacing: -.05em; }
.section-subtitle { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.all-count { color: var(--quiet); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; letter-spacing: .12em; }
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.search-wrap { position: relative; flex: 1; min-width: 170px; }
.search-icon { position: absolute; left: 15px; top: 50%; width: 15px; height: 15px; transform: translateY(-50%); color: #827a96; }
.search-input { width: 100%; height: 47px; color: var(--text); border: 1px solid var(--line); border-radius: 13px; outline: none; padding: 0 16px 0 43px; background: rgba(255,255,255,.035); font-size: 12px; transition: border-color .2s ease, box-shadow .2s ease; }
.search-input::placeholder { color: #777187; }
.search-input:focus { border-color: rgba(168,121,255,.65); box-shadow: 0 0 0 3px rgba(168,121,255,.12); }
.filter-row { display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-chip { border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; background: transparent; color: var(--muted); white-space: nowrap; font-size: 11px; cursor: pointer; transition: .18s ease; }
.filter-chip:hover { color: var(--text); border-color: var(--line-bright); }
.filter-chip.active { color: #eadcff; border-color: rgba(168,121,255,.45); background: rgba(168,121,255,.12); box-shadow: 0 0 20px rgba(168,121,255,.06); }
.tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tool-card { min-height: 193px; position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; padding: 18px; background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.018)); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.tool-card:after { content: ''; position: absolute; width: 120px; height: 120px; top: -64px; right: -62px; border-radius: 50%; background: var(--card-glow, rgba(168,121,255,.28)); filter: blur(40px); opacity: .3; pointer-events: none; }
.tool-card:hover { transform: translateY(-4px); border-color: rgba(195,163,255,.34); box-shadow: 0 18px 44px rgba(0,0,0,.24), 0 0 28px rgba(168,121,255,.06); }
.tool-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; position: relative; z-index: 1; }
.tool-glyph { width: 45px; height: 45px; display: grid; place-items: center; flex-shrink: 0; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; color: var(--glyph-color, #d7bbff); background: linear-gradient(145deg, var(--glyph-bg, rgba(168,121,255,.23)), rgba(255,255,255,.035)); box-shadow: inset 0 1px rgba(255,255,255,.1), 0 0 24px var(--glyph-glow, rgba(168,121,255,.12)); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; font-weight: 500; letter-spacing: -.04em; }
.ready-badge { display: inline-flex; align-items: center; gap: 6px; color: #b1f4cf; border: 1px solid rgba(111,255,184,.17); border-radius: 99px; background: rgba(65,217,143,.055); padding: 5px 8px; font-family: 'DM Mono', monospace; font-size: 8px; letter-spacing: .05em; }
.ready-badge:before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #75f3b2; box-shadow: 0 0 8px #75f3b2; }
.tool-card h3 { position: relative; z-index: 1; margin: 17px 0 4px; font-size: 15px; letter-spacing: -.035em; }
.tool-card p { position: relative; z-index: 1; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.tool-card-bottom { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 19px; }
.tool-category { color: #928aa4; font-size: 9px; letter-spacing: .04em; }
.card-arrow { width: 27px; height: 27px; display: grid; place-items: center; color: #d9ccf4; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.04); }
.empty-state { grid-column: 1/-1; border: 1px dashed var(--line-bright); border-radius: 16px; padding: 42px 20px; text-align: center; color: var(--muted); font-size: 12px; }

.value-section { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 48px; }
.value-card { border: 1px solid var(--line); border-radius: 18px; padding: 22px; background: rgba(255,255,255,.025); }
.value-card h3 { margin: 0 0 8px; font-size: 14px; letter-spacing: -.025em; }
.value-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.value-index { color: var(--cyan); font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: .12em; }
.notice { margin-top: 27px; padding: 16px 18px; border-left: 2px solid rgba(168,121,255,.65); color: #aaa3b8; background: rgba(168,121,255,.045); font-size: 10px; line-height: 1.8; }
.notice a { color: #d9c2ff; text-decoration: underline; text-underline-offset: 3px; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); margin-top: 43px; padding-top: 20px; color: var(--quiet); font-size: 10px; }
.footer-links { display: flex; gap: 18px; }
.footer-links a:hover { color: var(--text); }

.workspace-page { width: 100%; min-height: 100vh; display: flex; flex-direction: column; background: #080710; }
.workspace-bar { height: 60px; display: flex; align-items: center; gap: 16px; flex-shrink: 0; border-bottom: 1px solid var(--line); padding: 0 18px; background: #0e0c16; }
.workspace-bar .brand { font-size: 14px; }
.workspace-title { color: #ded8eb; font-size: 12px; font-weight: 700; }
.workspace-tag { color: #8e849f; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 9px; letter-spacing: .1em; }
.workspace-spacer { flex: 1; }
.workspace-frame-wrap { flex: 1; min-height: calc(100vh - 60px); position: relative; }
.workspace-frame { width: 100%; height: calc(100vh - 60px); display: block; border: 0; background: #0d0b14; }
.workspace-brand-cover { position: absolute; z-index: 5; top: 4px; left: 7px; width: 25px; height: 25px; padding: 1px; border: 1px solid rgba(209,192,255,.24); border-radius: 6px; background: #100d19; box-shadow: 0 0 14px rgba(151,108,255,.28); pointer-events: none; }
.workspace-brand-cover img { display: block; width: 100%; height: 100%; object-fit: contain; }
.workspace-loading { position: absolute; z-index: 8; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 12px; pointer-events: none; background: rgba(8,7,16,.42); backdrop-filter: blur(2px); opacity: 1; visibility: visible; transition: opacity .35s ease, visibility .35s ease; }
.workspace-loading.is-hidden { opacity: 0; visibility: hidden; }
.loading-card { width: min(360px, calc(100vw - 40px)); padding: 18px 19px 16px; border: 1px solid rgba(183,147,255,.24); border-radius: 14px; background: rgba(17,14,27,.96); box-shadow: 0 18px 70px rgba(0,0,0,.45), 0 0 28px rgba(133,80,255,.13); }
.loading-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; color: #e7dff4; font-size: 12px; font-weight: 650; }
.loading-heading strong { color: #c7a9ff; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }
.loading-track { height: 5px; margin-top: 14px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.09); }
.loading-track i { display: block; width: 22%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #9363ff, #55e7ff); box-shadow: 0 0 15px rgba(146,104,255,.7); transition: width .25s ease; }
.workspace-loading:not(.has-progress) .loading-track i { width: 34%; animation: loading-sweep 1.35s ease-in-out infinite alternate; }
.loading-detail { margin-top: 10px; color: #948ba4; font-size: 10px; letter-spacing: .015em; }
@keyframes loading-sweep { from { transform: translateX(0); } to { transform: translateX(190%); } }
.spinner { width: 13px; height: 13px; border: 2px solid rgba(194,166,255,.25); border-top-color: var(--cyan); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.workspace-footnote { position: fixed; right: 14px; bottom: 13px; z-index: 4; border: 1px solid rgba(255,255,255,.09); border-radius: 8px; padding: 7px 9px; background: rgba(12,10,18,.8); color: #8d849c; font-size: 9px; backdrop-filter: blur(9px); pointer-events: none; }
.workspace-footnote strong { color: #c7b3ee; font-weight: 700; }

@media (max-width: 1000px) {
  .tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero { grid-template-columns: minmax(0, 1fr) 260px; }
  .hero-art { transform: scale(.88); transform-origin: center right; }
}
@media (max-width: 760px) {
  .topbar { height: 64px; gap: 12px; padding: 0 17px; }
  .topnav { display: none; }
  .soft-link { display: none; }
  .main { width: min(100% - 30px, 620px); padding-top: 24px; }
  .hero { min-height: 0; grid-template-columns: 1fr; padding: 30px 25px 22px; }
  .hero h1 { font-size: clamp(35px, 9vw, 50px); }
  .hero p { font-size: 12px; }
  .hero-art { height: 158px; max-width: 320px; justify-self: center; transform: scale(.78); transform-origin: center; margin-top: -4px; margin-bottom: -22px; }
  .quick-strip { align-items: flex-start; flex-direction: column; padding: 17px 2px 19px; }
  .quick-stats { gap: 11px; flex-wrap: wrap; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .filter-row { padding-bottom: 3px; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tool-card { min-height: 181px; padding: 14px; }
  .tool-card h3 { font-size: 13px; }
  .tool-card p { font-size: 10px; }
  .ready-badge { font-size: 7px; }
  .value-section { grid-template-columns: 1fr; margin-top: 37px; }
  .footer { align-items: flex-start; flex-direction: column; }
  .workspace-bar { height: 55px; gap: 9px; padding: 0 10px; }
  .workspace-bar .brand { font-size: 12px; }
  .workspace-bar .brand-mark { width: 29px; height: 29px; }
  .workspace-tag { display: none; }
  .workspace-frame-wrap { min-height: calc(100vh - 55px); }
  .workspace-frame { height: calc(100vh - 55px); }
}
@media (max-width: 390px) {
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card { min-height: 165px; }
  .top-actions .button { min-height: 37px; padding: 0 11px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
