/* 벤토: 그라데이션 메시 배경 + 반투명 유리 타일 + 떠 있는 알약 메뉴 */
:root {
    --primary: #6d5dfc; --primary-dark: #5646e8;
    --blob-1: #c7d2fe; --blob-2: #fbcfe8; --blob-3: #bae6fd;
    --bg: #f7f7fb; --surface: rgba(255, 255, 255, .62); --surface-2: rgba(255, 255, 255, .55); --input-bg: rgba(255, 255, 255, .7);
    --line: rgba(15, 23, 42, .08); --text: #0f172a; --muted: #64748b;
    --radius: 18px; --radius-lg: 28px; --glass: blur(20px) saturate(160%);
    --container: 1160px;
}
:root[data-mode="dark"] { --bg: #0b0b14; --surface: rgba(30, 30, 46, .55); --surface-2: rgba(255, 255, 255, .06); --input-bg: rgba(255, 255, 255, .06); --line: rgba(255, 255, 255, .08); --text: #eef0ff; --muted: #a1a8c3; }
@media (prefers-color-scheme: dark) { :root[data-mode="auto"] { --bg: #0b0b14; --surface: rgba(30, 30, 46, .55); --surface-2: rgba(255, 255, 255, .06); --input-bg: rgba(255, 255, 255, .06); --line: rgba(255, 255, 255, .08); --text: #eef0ff; --muted: #a1a8c3; } }

.bt-mesh { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); }
.bt-mesh i { position: absolute; width: 55vmax; height: 55vmax; border-radius: 50%; filter: blur(80px); opacity: .7; animation: bt-float 24s ease-in-out infinite alternate; }
.bt-mesh i:nth-child(1) { background: var(--blob-1); top: -20vmax; left: -10vmax; }
.bt-mesh i:nth-child(2) { background: var(--blob-2); top: 10vmax; right: -20vmax; animation-delay: -8s; }
.bt-mesh i:nth-child(3) { background: var(--blob-3); bottom: -25vmax; left: 20vmax; animation-delay: -16s; }
:root[data-mode="dark"] .bt-mesh i { opacity: .25; }
@keyframes bt-float { to { transform: translate(6vmax, 4vmax) scale(1.1); } }

.bt-header { position: sticky; top: 14px; z-index: 30; padding: 0 20px; margin-top: 14px; }
.bt-pill { max-width: var(--container); margin: 0 auto; display: flex; align-items: center; gap: 20px; height: 60px; padding: 0 12px 0 22px; border-radius: 999px;
    background: var(--surface); backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass); border: 1px solid rgba(255, 255, 255, .5); box-shadow: 0 8px 32px rgba(15, 23, 42, .08); }
:root[data-mode="dark"] .bt-pill { border-color: var(--line); }
.bt-pill .gnb { flex: 1; }
.bt-pill .user-nav { padding-right: 10px; }

.layout-bento .card, .layout-bento .site-sidebar .widget, .layout-bento .home-widgets .widget, .layout-bento .bd-table, .layout-bento .tile, .layout-bento .widget {
    background: var(--surface); backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass); border: 1px solid rgba(255, 255, 255, .5); box-shadow: 0 8px 32px rgba(15, 23, 42, .06); }
:root[data-mode="dark"] .layout-bento .card, :root[data-mode="dark"] .layout-bento .tile { border-color: var(--line); }
.layout-bento .btn { border-radius: 999px; }
.layout-bento .gnb .submenu { background: var(--bg); }

.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(150px, auto); gap: 16px; }
.tile { border-radius: var(--radius-lg); padding: 26px; display: flex; flex-direction: column; overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
a.tile:hover, .tile:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(15, 23, 42, .1); color: inherit; }
.bt-label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

.tile-hero { grid-column: span 2; grid-row: span 2; justify-content: flex-end; background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 90%, #000), color-mix(in srgb, var(--primary) 60%, var(--blob-2))) !important; color: #fff; border: 0 !important; }
.tile-hero h1 { font-size: clamp(32px, 4.4vw, 56px); font-weight: 800; line-height: 1.1; letter-spacing: -0.045em; margin: 0 0 14px; }
.tile-hero p { margin: 0 0 22px; opacity: .85; font-size: 16px; }
.bt-cta { align-self: flex-start; height: 48px; padding: 0 24px; background: #fff !important; color: var(--primary) !important; font-size: 15px; }

.tile-feature { grid-column: span 2; grid-row: span 1; justify-content: flex-end; min-height: 220px; background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, .7)), var(--cover, linear-gradient(135deg, var(--blob-3), var(--blob-1))) center / cover !important; color: #fff; border: 0 !important; }
.tile-feature .bt-label { color: rgba(255, 255, 255, .8); }
.tile-feature h2 { font-size: 24px; margin: 6px 0; line-height: 1.3; }
.tile-feature:hover { color: #fff; }
.bt-meta { font-size: 13px; opacity: .8; }

.tile-stat { justify-content: space-between; }
.tile-stat strong { font-size: clamp(40px, 5vw, 64px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; background: linear-gradient(135deg, var(--primary), #ec4899); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.tile-stat-2 strong { background-image: linear-gradient(135deg, #0ea5e9, var(--primary)); }

.tile-latest { grid-column: span 2; grid-row: span 2; }
.tile-latest ul, .tile-board ul { list-style: none; margin: 12px 0 0; padding: 0; }
.tile-latest li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; font-weight: 600; }
.tile-latest li + li, .tile-board li + li { border-top: 1px solid var(--line); }
.tile-latest li a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-latest time { color: var(--muted); font-size: 13px; font-weight: 500; flex-shrink: 0; }

.tile-tags { grid-column: span 2; }
.tile-tags div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tile-tags a { padding: 7px 14px; border-radius: 999px; background: var(--surface-2); font-weight: 600; font-size: 14px; border: 1px solid var(--line); }
.tile-tags a:hover { background: var(--primary); color: var(--on-primary, #fff); }

.tile-board { grid-column: span 1; }
.bt-board-head { display: grid; grid-template-columns: 1fr auto; align-items: start; }
.bt-board-head h3 { grid-column: 1; margin: 4px 0 0; font-size: 20px; }
.bt-arrow { grid-row: 1 / 3; grid-column: 2; width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); display: flex; align-items: center; justify-content: center; transition: transform .2s; }
.tile-board:hover .bt-arrow { transform: rotate(45deg); background: var(--primary); color: var(--on-primary, #fff); }
.tile-board li { padding: 8px 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bento-widgets { margin-top: 16px; grid-auto-rows: auto; }
.bento-widgets .widget { border-radius: var(--radius-lg); padding: 24px; }

.bt-footer { padding-top: 24px; padding-bottom: 40px; color: var(--muted); font-size: 13px; }
.bt-footer .footer-widgets { border-color: var(--line); }

@media (max-width: 1000px) { .bento { grid-template-columns: repeat(2, 1fr); } .tile-board { grid-column: span 1; } }
@media (max-width: 640px) {
    .bento { grid-template-columns: 1fr; }
    .tile-hero, .tile-feature, .tile-latest, .tile-tags, .tile-board { grid-column: auto; grid-row: auto; }
    .tile-hero { min-height: 320px; }
    .bt-pill { border-radius: 24px; flex-wrap: wrap; height: auto; padding: 10px 16px; gap: 8px; }
    .bt-pill .gnb { order: 3; flex-basis: 100%; overflow-x: auto; }
}
