:root{
    --navy:#031a42;
    --navy-deep:#001435;
    --blue:#0561e8;
    --blue-bright:#0a74ff;
    --cyan:#4fd0ff;
    --text:#111827;
    --muted:#64748b;
    --line:#dbe4f0;
    --panel:#ffffff;
    --page:#f7f9fc;
    --success:#079447;
    --danger:#ed3347;
    --radius:14px;
    --shadow:0 6px 18px rgba(15,42,78,.08);
    --max:1460px;
}

*{
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    margin:0;
    font-family:"Segoe UI",Arial,sans-serif;
    color:var(--text);
    background:var(--page);
    line-height:1.5;
}

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

button,
input,
textarea{
    font:inherit;
}

.site-header{
    position:relative;
    z-index:20;
    background:#fff;
    box-shadow:0 1px 0 rgba(15,23,42,.12);
}

.top-header{
    min-height:68px;
    padding:8px 42px;
    display:grid;
    grid-template-columns:310px minmax(340px,680px) 1fr;
    align-items:center;
    gap:28px;
    background:linear-gradient(90deg,#041735,#001c4b 55%,#00173c);
    color:#fff;
}

.brand{
    display:flex;
    align-items:center;
    gap:12px;
}

.brand-shield{
    width:46px;
    height:50px;
    display:grid;
    place-items:center;
    border-radius:13px 13px 17px 17px;
    color:#fff;
    font-size:20px;
    font-weight:800;
    background:linear-gradient(145deg,#39cbff,#0067e8);
    border:2px solid rgba(255,255,255,.55);
    box-shadow:0 0 20px rgba(16,136,255,.45);
}

.brand-copy{
    display:flex;
    flex-direction:column;
    font-size:18px;
    line-height:1.12;
}

.header-search{
    display:grid;
    grid-template-columns:36px 1fr 50px;
    height:44px;
    overflow:hidden;
    border-radius:8px;
    background:#fff;
}

.header-search .search-icon{
    display:grid;
    place-items:center;
    color:#53627a;
    font-size:22px;
}

.header-search input{
    min-width:0;
    border:0;
    outline:0;
    color:#263247;
}

.header-search button{
    border:0;
    color:#fff;
    cursor:pointer;
    font-size:23px;
    background:linear-gradient(180deg,#0873f9,#0055d8);
}

.utility-nav{
    justify-self:end;
    display:flex;
    gap:34px;
}

.utility-nav a{
    min-width:48px;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:2px;
    color:#fff;
}

.utility-nav a span{
    font-size:23px;
    line-height:1;
}

.utility-nav small{
    font-size:12px;
}

.primary-nav{
    min-height:48px;
    display:flex;
    justify-content:center;
    align-items:stretch;
    padding:0 28px;
    overflow-x:auto;
    background:#fff;
}

.primary-nav a{
    position:relative;
    padding:14px 20px 12px;
    display:flex;
    align-items:center;
    gap:8px;
    white-space:nowrap;
    font-size:13px;
    border-right:1px solid #edf1f7;
}

.primary-nav a:hover,
.primary-nav a.active{
    color:var(--blue);
}

.primary-nav a.active::after{
    content:"";
    position:absolute;
    left:12px;
    right:12px;
    bottom:0;
    height:3px;
    border-radius:4px;
    background:var(--blue);
}

.winlab-main{
    width:100%;
}

.home-hero{
    min-height:300px;
    position:relative;
    overflow:hidden;
    display:grid;
    grid-template-columns:minmax(460px,1fr) minmax(560px,1.25fr);
    align-items:center;
    padding:32px max(4vw,54px);
    color:#fff;
    background:
        radial-gradient(circle at 69% 45%,rgba(0,127,255,.42),transparent 26%),
        linear-gradient(90deg,#031940 0%,#00265e 48%,#00183f 100%);
}

.home-hero::before{
    content:"";
    position:absolute;
    inset:0;
    opacity:.25;
    background:
        linear-gradient(rgba(30,128,255,.16) 1px,transparent 1px),
        linear-gradient(90deg,rgba(30,128,255,.16) 1px,transparent 1px);
    background-size:42px 42px;
    mask-image:linear-gradient(90deg,transparent,#000 50%,#000);
}

.hero-content{
    position:relative;
    z-index:3;
    max-width:710px;
}

.hero-content h1{
    margin:0 0 4px;
    font-size:37px;
    line-height:1.16;
    letter-spacing:-.7px;
}

.hero-content h2{
    margin:0 0 8px;
    color:var(--cyan);
    font-size:24px;
    font-weight:500;
}

.hero-content p{
    max-width:650px;
    margin:0 0 18px;
    font-size:16px;
    color:#f4f8ff;
}

.hero-search{
    height:46px;
    max-width:690px;
    display:grid;
    grid-template-columns:42px 1fr 100px;
    overflow:hidden;
    border-radius:8px;
    background:#fff;
    box-shadow:0 8px 30px rgba(0,0,0,.18);
}

.hero-search span{
    display:grid;
    place-items:center;
    color:#42516a;
    font-size:22px;
}

.hero-search input{
    min-width:0;
    border:0;
    outline:0;
}

.hero-search button{
    border:0;
    color:#fff;
    cursor:pointer;
    font-weight:600;
    background:linear-gradient(180deg,#0b75fa,#0057da);
}

.popular-searches{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:8px;
    margin-top:12px;
    font-size:12px;
}

.popular-searches a{
    padding:6px 12px;
    border-radius:999px;
    background:rgba(255,255,255,.12);
    border:1px solid rgba(255,255,255,.1);
}

.hero-visual{
    position:absolute;
    inset:0 0 0 44%;
    overflow:hidden;
}

.digital-grid{
    position:absolute;
    inset:0;
    background:
        radial-gradient(circle at 54% 55%,rgba(0,135,255,.65),transparent 24%),
        linear-gradient(90deg,transparent,rgba(0,111,255,.2));
}

.computer-scene{
    position:absolute;
    right:5%;
    bottom:6px;
    width:610px;
    height:275px;
}

.monitor{
    position:absolute;
    left:45px;
    bottom:44px;
    width:360px;
    height:218px;
    transform:perspective(900px) rotateY(-7deg);
}

.monitor-screen{
    position:relative;
    height:190px;
    overflow:hidden;
    border:10px solid #051024;
    border-radius:8px;
    background:
        radial-gradient(circle at 55% 45%,#1f89ff,transparent 34%),
        linear-gradient(135deg,#04152e,#083979);
    box-shadow:0 0 35px rgba(0,135,255,.65);
}

.windows-mark{
    position:absolute;
    left:120px;
    top:50px;
    width:105px;
    height:82px;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:5px;
    transform:skewY(-5deg);
}

.windows-mark span{
    background:linear-gradient(145deg,#75d5ff,#086af2);
    box-shadow:0 0 18px rgba(40,169,255,.5);
}

.windows-wave{
    position:absolute;
    width:220px;
    height:220px;
    left:60px;
    top:-8px;
    border-radius:42% 58% 55% 45%;
    border:15px solid rgba(48,173,255,.4);
    transform:rotate(-22deg);
}

.monitor-neck{
    width:50px;
    height:45px;
    margin:auto;
    background:#101828;
}

.monitor-base{
    width:150px;
    height:12px;
    margin:auto;
    border-radius:100%;
    background:#0a1425;
}

.desktop-tower{
    position:absolute;
    right:10px;
    bottom:26px;
    width:160px;
    height:244px;
    border-radius:8px;
    background:linear-gradient(90deg,#091327,#172640 65%,#0b1528);
    border:2px solid #1a3965;
    box-shadow:0 0 35px rgba(0,122,255,.5);
}

.tower-panel{
    position:absolute;
    inset:22px 18px;
    border:1px solid #224679;
    background:rgba(1,9,24,.5);
}

.fan{
    position:absolute;
    right:18px;
    width:58px;
    height:58px;
    border-radius:50%;
    border:3px solid #076eff;
    box-shadow:inset 0 0 16px #006eff,0 0 16px #006eff;
}

.fan-one{top:24px}
.fan-two{top:91px}
.fan-three{top:158px}

.keyboard{
    position:absolute;
    left:42px;
    bottom:1px;
    width:360px;
    height:45px;
    transform:skewX(-18deg);
    border-radius:7px;
    background:
        repeating-linear-gradient(90deg,#1d3655 0 12px,#071322 12px 15px),
        #0b1829;
    border:3px solid #122743;
}

.homepage-layout{
    max-width:var(--max);
    margin:20px auto 42px;
    padding:0 24px;
    display:grid;
    grid-template-columns:minmax(0,2.7fr) minmax(330px,1fr);
    gap:20px;
    align-items:start;
}

.homepage-primary,
.homepage-sidebar{
    display:grid;
    gap:16px;
}

.panel{
    background:var(--panel);
    border:1px solid var(--line);
    border-radius:var(--radius);
    box-shadow:var(--shadow);
}

.categories-panel,
.problem-panel,
.trending-panel,
.recently-added,
.ai-panel,
.statistics-panel,
.recommendation-panel{
    padding:16px;
}

.section-heading{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
    margin-bottom:13px;
}

.section-heading h2,
.statistics-panel h2,
.recommendation-panel h2{
    margin:0;
    font-size:16px;
}

.section-heading a{
    color:var(--blue);
    font-size:12px;
}

.heading-icon{
    color:var(--blue);
    margin-right:6px;
}

.beta-badge{
    padding:3px 10px;
    color:var(--blue);
    font-size:11px;
    font-weight:700;
    border-radius:999px;
    background:#eaf2ff;
}

.category-grid{
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:12px;
}

.category-card{
    min-height:65px;
    display:flex;
    align-items:center;
    gap:13px;
    padding:12px;
    border:1px solid var(--line);
    border-radius:9px;
    background:#fff;
    transition:.18s ease;
}

.category-card:hover{
    transform:translateY(-2px);
    border-color:#9fc3ff;
    box-shadow:0 8px 18px rgba(4,97,232,.12);
}

.category-icon{
    min-width:30px;
    height:30px;
    display:grid;
    place-items:center;
    color:#fff;
    font-weight:700;
    border-radius:7px;
    background:linear-gradient(145deg,#0b79ff,#0456d8);
}

.cmd-icon{
    font-size:11px;
    background:#14213b;
}

.category-card strong,
.category-card small{
    display:block;
}

.category-card strong{
    font-size:13px;
}

.category-card small{
    margin-top:2px;
    color:var(--muted);
    font-size:11px;
}

.dual-panels{
    display:grid;
    grid-template-columns:1.25fr 1fr;
    gap:16px;
}

.ranked-columns{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
}

.ranked-list,
.trend-list{
    margin:0;
    padding:0;
    list-style:none;
    counter-reset:item;
}

.ranked-list[start="6"]{
    counter-reset:item 5;
}

.ranked-list li,
.trend-list li{
    min-height:34px;
    display:flex;
    align-items:center;
    gap:10px;
    border-bottom:1px solid #edf1f6;
    font-size:12px;
}

.ranked-list li{
    counter-increment:item;
}

.ranked-list li::before,
.trend-list li::before{
    content:counter(item);
    width:23px;
    height:23px;
    display:grid;
    place-items:center;
    color:var(--blue);
    font-size:11px;
    border-radius:6px;
    background:#edf4ff;
}

.trend-list{
    counter-reset:item;
}

.trend-list li{
    counter-increment:item;
}

.trend-list a{
    flex:1;
}

.trend-up{
    color:var(--danger);
}

.trend-down{
    color:var(--success);
}

.recent-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:12px;
}

.recent-grid a{
    display:flex;
    flex-direction:column;
    padding:13px;
    border:1px solid var(--line);
    border-radius:9px;
}

.recent-grid span{
    margin-top:3px;
    color:var(--muted);
    font-size:12px;
}

.ai-panel p,
.recommendation-panel p{
    color:#344155;
    font-size:13px;
}

.ai-panel textarea{
    width:100%;
    min-height:76px;
    resize:vertical;
    padding:12px;
    border:1px solid #cbd8e8;
    border-radius:7px;
    outline:0;
}

.ai-panel textarea:focus{
    border-color:#6da7ff;
    box-shadow:0 0 0 3px rgba(5,97,232,.1);
}

.ai-panel button{
    width:100%;
    margin-top:9px;
    padding:10px;
    color:#fff;
    cursor:pointer;
    border:0;
    border-radius:6px;
    font-weight:600;
    background:linear-gradient(180deg,#0b75fa,#0058db);
}

.benefit-list{
    list-style:none;
    margin:12px 0 0;
    padding:0;
    font-size:12px;
}

.benefit-list li{
    margin:5px 0;
}

.benefit-list li::before{
    content:"✓";
    margin-right:9px;
    color:var(--success);
    font-weight:700;
}

.statistics-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:8px;
    margin-top:14px;
}

.statistics-grid div{
    min-height:68px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    padding:7px;
    text-align:center;
    border:1px solid var(--line);
    border-radius:8px;
}

.statistics-grid strong{
    color:var(--blue);
    font-size:13px;
}

.statistics-grid span{
    margin-top:4px;
    color:#334155;
    font-size:9px;
    line-height:1.25;
}

.recommendation-panel{
    background:linear-gradient(135deg,#f4fff7,#f7fffb);
    border-color:#ccead6;
}

.recommendation-panel h2{
    color:#07813e;
    margin-bottom:12px;
}

.download-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    margin-top:5px;
    padding:10px 16px;
    color:#fff;
    font-size:12px;
    font-weight:700;
    border-radius:6px;
    background:linear-gradient(180deg,#12a04d,#07853b);
    box-shadow:0 6px 14px rgba(7,133,59,.18);
}

@media (max-width:1200px){
    .top-header{
        grid-template-columns:260px 1fr;
    }

    .utility-nav{
        display:none;
    }

    .home-hero{
        grid-template-columns:1fr;
    }

    .hero-visual{
        opacity:.43;
        inset:0 0 0 50%;
    }

    .category-grid{
        grid-template-columns:repeat(3,1fr);
    }
}

@media (max-width:900px){
    .top-header{
        padding:10px 18px;
        grid-template-columns:1fr;
    }

    .brand{
        justify-content:center;
    }

    .homepage-layout{
        grid-template-columns:1fr;
    }

    .home-hero{
        padding:34px 22px;
    }

    .hero-visual{
        display:none;
    }

    .dual-panels{
        grid-template-columns:1fr;
    }
}

@media (max-width:640px){
    .primary-nav{
        justify-content:flex-start;
    }

    .hero-content h1{
        font-size:30px;
    }

    .hero-content h2{
        font-size:20px;
    }

    .hero-search{
        grid-template-columns:38px 1fr 76px;
    }

    .category-grid,
    .recent-grid{
        grid-template-columns:1fr 1fr;
    }

    .ranked-columns{
        grid-template-columns:1fr;
    }

    .statistics-grid{
        grid-template-columns:1fr 1fr;
    }
}
