/* Showcase shell */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; background: #f0f2f8; color: var(--fg-default, #131F52); }

.sc-shell { display: flex; min-height: 100vh; }

.sc-nav {
    width: 200px; flex-shrink: 0;
    background: var(--seg-blue, #131F52);
    padding: 20px 0;
    display: flex; flex-direction: column; gap: 2px;
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sc-nav-logo {
    display: flex; flex-direction: column; gap: 2px;
    padding: 0 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,.12);
    margin-bottom: 10px;
}
.sc-nav-link {
    display: block; padding: 8px 16px;
    font-size: 13px; font-weight: 500; color: rgba(255,255,255,.7);
    text-decoration: none; border-radius: 0;
    transition: background .15s, color .15s;
}
.sc-nav-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.sc-nav-link.active { background: rgba(186,212,85,.15); color: var(--seg-green, #BAD455); font-weight: 700; }

.sc-content { flex: 1; padding: 40px; overflow-y: auto; }

/* Section and phone frame */
.sc-section { margin-bottom: 48px; }
.sc-section h2 { font-size: 20px; font-weight: 700; color: var(--seg-blue); margin: 0 0 6px; }
.sc-section p.desc { font-size: 13px; color: var(--fg-secondary); margin: 0 0 20px; }

.sc-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }

/* Phone frame wrapper */
.sc-phone {
    width: 390px;
    background: #fff;
    border-radius: 40px;
    box-shadow: 0 8px 40px rgba(19,31,82,.18);
    overflow: hidden;
    position: relative;
    border: 2px solid #dde0ec;
}
.sc-phone-label {
    font-size: 11px; font-weight: 700; color: var(--fg-muted);
    text-transform: uppercase; letter-spacing: .06em;
    margin-bottom: 8px;
}

/* Token swatch grid */
.sc-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.sc-swatch {
    width: 80px; text-align: center;
    font-size: 10px; color: var(--fg-secondary);
}
.sc-swatch-color {
    height: 44px; border-radius: 12px;
    border: 1px solid rgba(0,0,0,.06);
    margin-bottom: 4px;
}

/* Demo card wrapper for non-phone demos */
.sc-demo-card {
    background: #fff; border-radius: 18px;
    padding: 20px; box-shadow: 0 2px 12px rgba(19,31,82,.07);
}

/* Index grid */
.sc-index-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.sc-index-card {
    background: #fff; border-radius: 16px; padding: 20px;
    box-shadow: 0 2px 12px rgba(19,31,82,.07);
    text-decoration: none; color: inherit;
    display: flex; flex-direction: column; gap: 8px;
    transition: box-shadow .15s, transform .15s;
}
.sc-index-card:hover { box-shadow: 0 6px 24px rgba(19,31,82,.13); transform: translateY(-2px); }
.sc-index-card h3 { font-size: 15px; font-weight: 700; color: var(--seg-blue); margin: 0; }
.sc-index-card p { font-size: 12px; color: var(--fg-secondary); margin: 0; line-height: 1.4; }
.sc-index-badge {
    font-size: 10px; font-weight: 700; letter-spacing: .05em;
    padding: 2px 8px; border-radius: 6px;
    background: var(--seg-green-60); color: #549100;
    align-self: flex-start; text-transform: uppercase;
}

/* Modal overlay inside phone */
.sc-phone .sn-sheet-scrim {
    position: absolute; inset: 0; z-index: 20;
}
