:root{
    --bg:#0b0b0d;
    --card:#121216cc;
    --card2:#101014;
    --text:#f5f5f7;
    --muted:#a1a1aa;
    --line:#2a2a33;
    --accent:#7dd3fc;
    --radius:22px;
    --shadow: 0 18px 50px rgba(0,0,0,.45);
    --glass: blur(18px) saturate(140%);
}
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
    margin:0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
    color:var(--text);
    background:
            radial-gradient(1200px 700px at 20% 0%, rgba(125,211,252,.18), transparent 55%),
            radial-gradient(900px 600px at 90% 10%, rgba(167,139,250,.16), transparent 60%),
            radial-gradient(900px 600px at 50% 120%, rgba(34,197,94,.10), transparent 55%),
            var(--bg);
    overflow-x:hidden;
}

/* Top nav */
.topbar{
    position:sticky; top:0; z-index:40;
    backdrop-filter: var(--glass);
    -webkit-backdrop-filter: var(--glass);
    background: rgba(10,10,14,.55);
    border-bottom:1px solid rgba(255,255,255,.06);
}
.topbar-inner{
    max-width:1100px;
    margin:0 auto;
    padding:12px 18px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
}
.brand{
    display:flex; align-items:center; gap:10px;
    min-width:220px;
}
.dot{
    width:10px; height:10px; border-radius:999px;
    background:linear-gradient(135deg, #60a5fa, #a78bfa);
    box-shadow: 0 0 22px rgba(96,165,250,.5);
}
.brand h1{
    margin:0;
    font-size:14px;
    font-weight:600;
    letter-spacing:.2px;
    color:rgba(245,245,247,.95);
    white-space:nowrap;
}

.model-select{
    display:flex; gap:8px;
    overflow:auto;
    scrollbar-width:none;
    -ms-overflow-style:none;
}
.model-select::-webkit-scrollbar{ display:none; }

.chip{
    border:1px solid rgba(255,255,255,.10);
    background: rgba(18,18,22,.55);
    color: rgba(245,245,247,.9);
    padding:9px 12px;
    border-radius:999px;
    font-size:12.5px;
    cursor:pointer;
    user-select:none;
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
    white-space:nowrap;
}
.chip:hover{ transform: translateY(-1px); border-color: rgba(255,255,255,.18); }
.chip.active{
    background: rgba(125,211,252,.18);
    border-color: rgba(125,211,252,.55);
    box-shadow: 0 10px 30px rgba(125,211,252,.10);
}

.actions{
    display:flex; align-items:center; gap:10px;
    min-width:220px; justify-content:flex-end;
}
.search{
    width:180px; max-width:32vw;
    padding:9px 12px;
    border-radius:999px;
    border:1px solid rgba(255,255,255,.10);
    background: rgba(16,16,20,.65);
    color: var(--text);
    outline:none;
    font-size:12.5px;
}
.search::placeholder{ color: rgba(161,161,170,.8); }

/* Hero */
.wrap{ max-width:1100px; margin:0 auto; padding:28px 18px 60px; }
.hero{
    display:grid;
    grid-template-columns: 1.2fr .8fr;
    gap:18px;
    align-items:end;
    margin-top:18px;
}
@media (max-width: 900px){
    .hero{ grid-template-columns:1fr; }
    .brand{ min-width:auto; }
    .actions{ min-width:auto; }
    .search{ width:100%; max-width:none; }
}
.hero h2{
    margin:0;
    font-size:44px;
    letter-spacing:-.02em;
    line-height:1.02;
}
.hero p{
    margin:12px 0 0;
    color: rgba(161,161,170,.95);
    font-size:15.5px;
    line-height:1.45;
    max-width:60ch;
}
.hero-right{
    display:flex;
    justify-content:flex-end;
    gap:10px;
    flex-wrap:wrap;
}
.pill{
    border:1px solid rgba(255,255,255,.10);
    background: rgba(18,18,22,.35);
    padding:10px 12px;
    border-radius:999px;
    font-size:12.5px;
    color: rgba(245,245,247,.85);
}

/* Section headers */
.section-head{
    margin-top:34px;
    display:flex; justify-content:space-between; align-items:flex-end; gap:12px;
}
.section-head h3{
    margin:0;
    font-size:18px;
    letter-spacing:.1px;
}
.section-head .hint{
    color: rgba(161,161,170,.9);
    font-size:12.5px;
}

/* Carousel (single card) */
.carousel{
    margin-top:14px;
    position:relative;
    display:flex;
    align-items:center;
    gap:10px;
}
.viewport{
    width:100%;
    overflow:hidden;
    border-radius: var(--radius);
}
.track{
    display:flex;
    transition: transform .28s ease;
    will-change: transform;
    touch-action: pan-y;
}
.slide{
    flex:0 0 100%;
    display:flex;
    justify-content:center;
    padding: 0 2px 18px;
}
.navbtn{
    flex:0 0 auto;
    width:40px;
    height:40px;
    border-radius:999px;
    border:1px solid rgba(255,255,255,.14);
    background: rgba(18,18,22,.55);
    color: rgba(245,245,247,.92);
    cursor:pointer;
    user-select:none;
    display:grid;
    place-items:center;
    transition: transform .15s ease, border-color .15s ease, opacity .15s ease;
    box-shadow: 0 14px 40px rgba(0,0,0,.35);
}
.navbtn:hover{ transform: translateY(-1px); border-color: rgba(125,211,252,.45); }
.navbtn:disabled{ opacity:.35; cursor:not-allowed; transform:none; }

.dots{
    display:flex;
    justify-content:center;
    gap:8px;
    padding: 0 0 6px;
    margin-top: 4px;
}
.dotx{
    width:7px;
    height:7px;
    border-radius:999px;
    background: rgba(255,255,255,.16);
    border:1px solid rgba(255,255,255,.10);
    cursor:pointer;
}
.dotx.active{
    background: rgba(125,211,252,.85);
    border-color: rgba(125,211,252,.55);
    box-shadow: 0 0 18px rgba(125,211,252,.22);
}

.card{
    width: min(520px, 92vw);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(18,18,22,.78), rgba(12,12,16,.78));
    border:1px solid rgba(255,255,255,.10);
    box-shadow: var(--shadow);
    overflow:hidden;
    position:relative;
    transform: translateZ(0);
}
.card::before{
    content:"";
    position:absolute; inset:-2px;
    background: radial-gradient(500px 240px at 20% 0%, rgba(125,211,252,.14), transparent 65%),
    radial-gradient(500px 240px at 90% 15%, rgba(167,139,250,.12), transparent 70%);
    pointer-events:none;
}

.media{
    height: 170px;
    background: rgba(16,16,20,.55);
    border-bottom: 1px solid rgba(255,255,255,.06);
    display:flex; align-items:center; justify-content:center;
    position:relative;
}
.media .ph{
    width: calc(100% - 26px);
    height: calc(100% - 26px);
    border-radius: 16px;
    border: 1px dashed rgba(255,255,255,.20);
    background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
    display:flex; align-items:center; justify-content:center;
    color: rgba(161,161,170,.9);
    font-size:12.5px;
    padding:12px;
    text-align:center;
}

.content{
    padding:16px 16px 14px;
    position:relative;
}
.kicker{
    color: rgba(125,211,252,.9);
    font-size:12px;
    letter-spacing:.16em;
    text-transform:uppercase;
    margin-bottom:8px;
}
.title{
    margin:0;
    font-size:17px;
    line-height:1.2;
    letter-spacing:-.01em;
}
.desc{
    margin:10px 0 0;
    color: rgba(161,161,170,.95);
    font-size:13.5px;
    line-height:1.5;
}
.bullets{
    margin:12px 0 0;
    padding-left:18px;
    color: rgba(245,245,247,.9);
    font-size:13.5px;
    line-height:1.55;
}
.bullets li{ margin:6px 0; color: rgba(220,220,230,.92); }
.foot{
    display:flex; align-items:center; justify-content:space-between;
    gap:10px;
    padding:12px 16px 16px;
    color: rgba(161,161,170,.9);
    font-size:12px;
}
.tag{
    border:1px solid rgba(255,255,255,.10);
    background: rgba(16,16,20,.55);
    padding:6px 10px;
    border-radius:999px;
    white-space:nowrap;
}
.btn{
    border:1px solid rgba(255,255,255,.14);
    background: rgba(18,18,22,.55);
    color: rgba(245,245,247,.9);
    padding:7px 10px;
    border-radius:10px;
    cursor:pointer;
    font-size:12px;
    transition: transform .15s ease, border-color .15s ease;
    user-select:none;
}
.btn:hover{ transform: translateY(-1px); border-color: rgba(125,211,252,.45); }

/* Modal */
dialog{
    width:min(720px, 92vw);
    border:1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    background: rgba(12,12,16,.88);
    color: var(--text);
    backdrop-filter: var(--glass);
    -webkit-backdrop-filter: var(--glass);
    box-shadow: var(--shadow);
    padding:0;
}
dialog::backdrop{
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(8px);
}
.modal{
    padding:16px;
}
.modal h4{ margin:0 0 6px; font-size:16px; }
.modal p{ margin:0 0 10px; color: rgba(161,161,170,.95); line-height:1.5; font-size:13.5px; }
.close{
    display:flex; justify-content:flex-end;
    padding:12px 16px;
    border-top:1px solid rgba(255,255,255,.08);
}

/* Small footer */
.page-foot{
    margin-top:34px;
    border-top:1px solid rgba(255,255,255,.08);
    padding-top:16px;
    color: rgba(161,161,170,.9);
    font-size:12.5px;
    display:flex; flex-wrap:wrap; gap:8px; align-items:center; justify-content:space-between;
}
.link{
    color: rgba(125,211,252,.95);
    text-decoration:none;
    border-bottom:1px solid rgba(125,211,252,.30);
}
