/* Lock to light theme */
:root {
    color-scheme: light;

    /* Brand */
    --primary: #5A8EFF;
    --primary-ink: #ffffff;
    --accent: #EDF3FF;
    /* light tint of primary */

    /* UI */
    --bg: #ffffff;
    --panel: #ffffff;
    --text: #0b1520;
    --muted: #667085;
    --border: #E6EAF0;

    --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 12px rgba(16, 24, 40, .06);
}

/* Base */
* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: Poppins, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

/* Topbar */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: saturate(160%) blur(8px);
    border-bottom: 1px solid var(--border);
}

.topbar .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.brand {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.brand-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
}

.brand-name {
    font-weight: 700;
    letter-spacing: .2px;
}

/* Hero */
.hero {
    padding: 2.2rem 0 1rem;
}

.hero h1 {
    margin: 0 0 .4rem;
    font-size: clamp(1.4rem, 1.2rem + 1.2vw, 2rem);
}

.muted {
    color: var(--muted);
}

/* Cards & grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    padding: .6rem 0 2rem;
}

.card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 1rem 1.1rem;
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: center;
    gap: .9rem;
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.card h2 {
    margin: 0 0 .2rem;
    font-size: 1.05rem;
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: .95rem;
}

.card .icon {
    color: var(--primary);
    display: grid;
    place-items: center;
}

.card .chev {
    font-size: 28px;
    line-height: 1;
    color: var(--muted);
}

.card.action:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(16, 24, 40, .08), 0 8px 24px rgba(16, 24, 40, .08);
    border-color: #cfdafc;
    /* subtle mix toward primary */
}

/* CTA */
.cta .card {
    display: block;
    text-align: left;
    max-width: 560px;
    margin: 1rem 0 2rem;
}

.cta .card .btn {
    margin-top: .8rem;
}

/* Buttons & chips */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .55rem .9rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background .12s ease, border-color .12s ease, transform .06s ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn.primary {
    background: var(--primary);
    color: var(--primary-ink);
    border-color: transparent;
}

.btn.primary:hover {
    filter: brightness(1.05);
}

.btn.subtle {
    background: transparent;
}

.btn.subtle:hover {
    background: var(--accent);
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem .6rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    margin-right: .5rem;
    background: #fafcff;
    font-size: 12px;
}

.user-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #2ecc71;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    margin-top: 2rem;
    padding: 1rem 0;
    font-size: .9rem;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

    .card,
    .btn {
        transition: none !important;
    }
}

.topnav {
    display: flex;
}