:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: #101010;
  --panel-2: #171717;
  --line: #2b2b2b;
  --text: #f5f5f5;
  --muted: #a6a6a6;
  --soft: #d4d4d4;
  --accent: #ffffff;
  --ink: #050505;
  --radius: 18px;
  --max: 1240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", "Noto Sans JP", sans-serif; font-feature-settings: "palt" 1; letter-spacing: .01em; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
.site-header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; height: 72px; padding: 0 max(24px, calc((100vw - var(--max)) / 2)); background: rgba(5,5,5,.84); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(255,255,255,.08); }
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand-mark { font-size: 23px; font-weight: 760; letter-spacing: -.04em; }
.brand-sub { color: var(--muted); font-size: 13px; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.text-link { color: var(--soft); font-size: 13px; }
.text-link:hover { color: #fff; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; font-weight: 700; font-size: 13px; cursor: pointer; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-1px); border-color: #666; }
.button.primary { background: #f5f5f5; color: #080808; border-color: #f5f5f5; }
.button.primary:hover { background: #fff; }
.button.ghost { background: rgba(255,255,255,.04); }
.hero { position: relative; max-width: var(--max); margin: 0 auto; min-height: 690px; padding: 150px 24px 90px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 50px 0 auto 52%; width: 680px; height: 680px; border-radius: 50%; background: radial-gradient(circle at 45% 42%, rgba(255,255,255,.24), rgba(255,255,255,.055) 33%, rgba(255,255,255,0) 67%); filter: blur(8px); pointer-events: none; }
.hero::after { content: "AI"; position: absolute; right: 40px; top: 100px; color: rgba(255,255,255,.035); font-size: clamp(260px, 34vw, 500px); font-weight: 900; line-height: .8; letter-spacing: -.12em; pointer-events: none; }
.eyebrow { display: inline-block; color: #b9b9b9; font-size: 11px; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px; }
.hero h1 { position: relative; z-index: 1; max-width: 860px; margin: 0; font-size: clamp(54px, 8.2vw, 116px); line-height: .98; letter-spacing: -.065em; font-weight: 620; }
.hero h1 span { color: #8c8c8c; }
.hero > p { position: relative; z-index: 1; max-width: 620px; margin: 30px 0 0; color: #b8b8b8; font-size: clamp(16px, 2vw, 20px); line-height: 1.8; }
.hero-actions { position: relative; z-index: 1; display: flex; gap: 12px; margin-top: 34px; }
.stats { position: relative; z-index: 1; display: flex; gap: 48px; margin-top: 72px; }
.stats div { display: flex; align-items: baseline; gap: 9px; }
.stats strong { font-size: 28px; letter-spacing: -.04em; }
.stats span { color: var(--muted); font-size: 12px; }
.section { max-width: var(--max); margin: 0 auto; padding: 86px 24px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.section-heading h2 { margin: 0; font-size: clamp(32px, 5vw, 56px); letter-spacing: -.045em; font-weight: 590; }
.carousel-actions { display: flex; gap: 8px; }
.icon-button { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: #111; cursor: pointer; transition: border-color .18s ease, background .18s ease; }
.icon-button:hover { border-color: #666; background: #1b1b1b; }
.featured-section { border-top: 1px solid var(--line); }
.featured-grid { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(320px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.featured-grid::-webkit-scrollbar { display: none; }
.featured-card { position: relative; min-height: 370px; padding: 26px; border: 1px solid var(--line); border-radius: 24px; background: radial-gradient(circle at 80% 12%, var(--bot-glow), transparent 48%), linear-gradient(155deg,#171717,#090909); overflow: hidden; scroll-snap-align: start; cursor: pointer; }
.featured-card::after { content:""; position:absolute; width:220px; height:220px; right:-70px; bottom:-95px; border:1px solid rgba(255,255,255,.1); border-radius:50%; box-shadow:0 0 0 30px rgba(255,255,255,.018),0 0 0 60px rgba(255,255,255,.012); }
.featured-card h3 { max-width: 86%; margin: 68px 0 8px; font-size: 32px; line-height: 1.16; letter-spacing: -.04em; }
.featured-card .summary { max-width: 88%; color: #bdbdbd; line-height: 1.75; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bot-avatar { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(145deg, var(--bot-a), var(--bot-b)); color:#fff; font-size:20px; font-weight:850; box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }
.bot-avatar.large { width: 74px; height: 74px; border-radius: 20px; font-size: 28px; flex: none; }
.creator { color: var(--muted); font-size: 12px; }
.catalog-section { border-top: 1px solid var(--line); padding-bottom: 120px; }
.catalog-title { margin-bottom: 24px; }
.result-count { color: var(--muted); font-size: 13px; }
.search-panel { position: sticky; top: 72px; z-index: 30; padding: 15px 0; background: rgba(5,5,5,.9); backdrop-filter: blur(18px); }
.search-box { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 16px; border: 1px solid var(--line); border-radius: 14px; background: #0d0d0d; }
.search-box > span { color:#aaa; font-size:28px; transform: rotate(-20deg); }
.search-box input { flex:1; min-width:0; color:#fff; background:transparent; border:0; outline:0; font-size:16px; }
.search-box input::placeholder { color:#6f6f6f; }
.search-box button { width:32px; height:32px; border:0; border-radius:50%; background:#292929; cursor:pointer; }
.category-tabs { display:flex; gap:8px; margin-top:12px; overflow-x:auto; scrollbar-width:none; padding-bottom:2px; }
.category-tabs::-webkit-scrollbar { display:none; }
.category-tab { flex:none; min-height:38px; padding:0 14px; border:1px solid var(--line); border-radius:999px; background:#0a0a0a; color:#b7b7b7; cursor:pointer; white-space:nowrap; }
.category-tab[aria-selected="true"] { color:#050505; background:#f3f3f3; border-color:#f3f3f3; font-weight:750; }
.bot-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-top:28px; }
.bot-card { position:relative; display:flex; flex-direction:column; min-height:268px; padding:20px; border:1px solid var(--line); border-radius:var(--radius); background:var(--panel); transition: transform .18s ease, border-color .18s ease, background .18s ease; cursor:pointer; }
.bot-card:hover { transform:translateY(-3px); border-color:#575757; background:var(--panel-2); }
.bot-card h3 { margin:24px 0 5px; font-size:20px; line-height:1.35; letter-spacing:-.025em; }
.original-name { margin:0; color:#777; font-size:11px; }
.bot-card .summary { margin:13px 0 18px; color:#b7b7b7; line-height:1.7; font-size:13px; display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; overflow:hidden; }
.bot-card .card-bottom { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:auto; }
.category-badge { display:inline-flex; max-width:65%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#aaa; font-size:11px; }
.card-add { min-height:36px; padding:0 14px; }
.empty-state { padding:70px 20px; text-align:center; border:1px dashed #333; border-radius:18px; margin-top:28px; }
.empty-icon { color:#777; font-size:44px; transform:rotate(-20deg); }
.empty-state h3 { font-size:22px; margin:12px 0 6px; }
.empty-state p { color:var(--muted); }
footer { display:flex; justify-content:space-between; gap:30px; padding:48px max(24px,calc((100vw - var(--max))/2)); border-top:1px solid var(--line); background:#090909; }
footer p { max-width:600px; color:var(--muted); font-size:12px; line-height:1.7; }
.footer-links { display:flex; flex-wrap:wrap; gap:20px; color:#bbb; font-size:12px; }
.modal { position:fixed; inset:0; z-index:100; }
.modal[hidden] { display:none; }
.modal-backdrop { position:absolute; inset:0; width:100%; height:100%; border:0; background:rgba(0,0,0,.76); backdrop-filter:blur(8px); }
.modal-panel { position:absolute; top:0; right:0; width:min(760px,100%); height:100%; overflow-y:auto; background:#0b0b0b; border-left:1px solid var(--line); box-shadow:-30px 0 90px rgba(0,0,0,.5); animation:slide-in .24s ease-out; }
@keyframes slide-in { from { transform:translateX(24px); opacity:.5; } }
.modal-topbar { position:sticky; top:0; z-index:3; display:grid; grid-template-columns:44px 1fr auto; align-items:center; gap:12px; height:70px; padding:0 22px; background:rgba(11,11,11,.9); backdrop-filter:blur(16px); border-bottom:1px solid var(--line); }
.detail-hero { display:flex; align-items:center; gap:18px; padding:38px 34px 20px; }
.detail-hero > div:nth-child(2) { min-width:0; flex:1; }
.detail-hero h2 { margin:0 0 5px; font-size:30px; line-height:1.25; letter-spacing:-.04em; }
.detail-summary { margin:0; padding:0 34px 24px; color:#c4c4c4; font-size:16px; line-height:1.85; }
.detail-guide { display:flex; flex-direction:column; gap:4px; margin:0 34px 24px; padding:14px 16px; border:1px solid #343434; border-radius:12px; background:#131313; }
.detail-guide strong { font-size:13px; }
.detail-guide span { color:var(--muted); font-size:12px; line-height:1.6; }
.detail-content { padding:8px 34px 80px; }
.detail-content h3 { margin:30px 0 8px; padding-top:18px; border-top:1px solid var(--line); font-size:19px; }
.detail-content .subheading { color:#fff; font-size:13px; font-weight:750; margin:15px 0 5px; }
.detail-content p { color:#b8b8b8; line-height:1.9; margin:9px 0; font-size:13px; white-space:pre-wrap; overflow-wrap:anywhere; }
.toast { position:fixed; z-index:150; left:50%; bottom:26px; transform:translateX(-50%); max-width:min(520px,calc(100% - 32px)); padding:12px 18px; border-radius:999px; color:#080808; background:#f3f3f3; box-shadow:0 10px 40px rgba(0,0,0,.45); font-size:13px; font-weight:700; text-align:center; }
body.modal-open { overflow:hidden; }
@media (max-width: 900px) {
  .bot-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .hero { min-height:620px; padding-top:110px; }
  .hero::after { right:-40px; top:170px; }
}
@media (max-width: 620px) {
  .site-header { height:62px; padding:0 16px; }
  .brand-sub, .header-actions .text-link { display:none; }
  .header-actions { gap:8px; }
  .button { min-height:40px; padding:0 15px; }
  .hero { min-height:590px; padding:92px 18px 66px; }
  .hero::before { left:28%; top:80px; width:500px; height:500px; }
  .hero::after { top:240px; right:-20px; font-size:220px; }
  .hero h1 { font-size:clamp(48px,15vw,72px); }
  .hero > p { font-size:15px; line-height:1.8; }
  .hero-actions { flex-wrap:wrap; }
  .stats { gap:20px; margin-top:46px; }
  .stats div { display:block; }
  .stats strong,.stats span { display:block; }
  .section { padding:64px 16px; }
  .section-heading h2 { font-size:36px; }
  .featured-grid { grid-auto-columns:86%; }
  .featured-card { min-height:350px; padding:22px; }
  .featured-card h3 { font-size:27px; }
  .search-panel { top:62px; }
  .bot-grid { grid-template-columns:1fr; }
  .bot-card { min-height:240px; }
  footer { flex-direction:column; padding:38px 18px; }
  .modal-panel { width:100%; border-left:0; }
  .detail-hero { align-items:flex-start; flex-wrap:wrap; padding:28px 20px 16px; }
  .detail-hero .add-button { width:100%; }
  .detail-summary,.detail-content { padding-left:20px; padding-right:20px; }
  .detail-guide { margin-left:20px; margin-right:20px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior:auto !important; animation:none !important; transition:none !important; }
}
