:root{
    --bg:#070b14;
    --bg2:#0a1020;
    --card:#0f1724;
    --card2:#111c2f;
    --border:#1b2a44;
    --text:#e5e7eb;
    --muted:#9ca3af;
    --accent:#4f8cff;
    --accent2:#a855f7;
    --success:#22c55e;
    --shadow:0 20px 70px rgba(0,0,0,.35);
    --header-h:82px;
}

*{box-sizing:border-box;margin:0;padding:0}

html{
    scroll-behavior:smooth;
    overflow-x:hidden;
}

body{
    min-height:100vh;
    max-width:100%;
    overflow-x:hidden;
    padding-top:var(--header-h);
    background:
        radial-gradient(circle at top left,#4f8cff22,transparent 35%),
        radial-gradient(circle at top right,#a855f722,transparent 35%),
        linear-gradient(180deg,var(--bg),var(--bg2));
    color:var(--text);
    font-family:Inter,Segoe UI,Roboto,Arial,sans-serif;
    line-height:1.6;
}

body.menu-open{overflow:hidden}
a{color:inherit;text-decoration:none}
ul{padding-left:20px}
img{max-width:100%;height:auto;display:block}

.container{
    width:min(1160px,calc(100% - 32px));
    margin:0 auto;
}

.section{
    padding:100px 0;
    scroll-margin-top:calc(var(--header-h) + 18px);
}

.site-header{
    position:fixed;
    top:0;
    left:0;
    right:0;
    z-index:9999;
    height:var(--header-h);
    background:rgba(7,11,20,.96);
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
    border-bottom:1px solid rgba(255,255,255,.08);
}

.header-inner{
    height:var(--header-h);
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
}

.brand{
    display:flex;
    align-items:center;
    gap:16px;
    min-width:0;
    max-width:520px;
    overflow:hidden;
}

.brand-boy{
    width:72px;
    height:72px;
    object-fit:contain;
    flex:0 0 auto;
}

.brand-logo{
    width:115px;
    max-width:34vw;
    height:auto;
    object-fit:contain;
    flex:0 1 auto;
}

.main-nav{
    display:flex;
    align-items:center;
    gap:6px;
    flex:0 0 auto;
}

.nav-link{
    padding:10px 14px;
    border-radius:999px;
    color:var(--muted);
    font-weight:600;
    font-size:14px;
    transition:.25s;
    white-space:nowrap;
}

.nav-link:hover,.nav-link.active{
    color:#fff;
    background:rgba(79,140,255,.16);
}

.menu-toggle{
    display:none;
    background:none;
    border:0;
    width:44px;
    height:44px;
    cursor:pointer;
    flex:0 0 auto;
}

.menu-toggle span{
    display:block;
    width:24px;
    height:2px;
    background:#fff;
    margin:5px auto;
    border-radius:9px;
    transition:.25s;
}

.hero{
    min-height:calc(100vh - var(--header-h));
    display:flex;
    align-items:center;
    padding-top:70px;
}

.hero-grid{
    display:grid;
    grid-template-columns:1.08fr .92fr;
    gap:56px;
    align-items:center;
}

.eyebrow{
    color:var(--accent);
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.14em;
    font-size:12px;
    margin-bottom:14px;
}

h1{
    font-size:clamp(44px,8vw,86px);
    line-height:.95;
    letter-spacing:-.06em;
    margin-bottom:18px;
}

h2{
    font-size:clamp(34px,5vw,56px);
    line-height:1;
    letter-spacing:-.04em;
    margin-bottom:16px;
}

h3{font-size:23px;line-height:1.2;margin-bottom:12px}
h4{font-size:18px;margin-bottom:10px}

.hero-subtitle{
    font-size:clamp(20px,3vw,31px);
    color:#fff;
    font-weight:700;
    margin-bottom:18px;
}

.hero-text,.section-head p,.feature-card p,.tab-panel p,.homelab-block p,.solutions-grid li,.role-box li{
    color:var(--muted);
}

.hero-text{
    font-size:18px;
    max-width:760px;
}

.hero-actions{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    margin-top:32px;
}

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:13px 20px;
    border-radius:999px;
    font-weight:800;
    border:1px solid var(--border);
    transition:.25s;
}

.btn.primary{
    background:linear-gradient(135deg,var(--accent),var(--accent2));
    border-color:transparent;
    color:#fff;
    box-shadow:0 14px 45px #4f8cff44;
}

.btn.ghost{
    background:rgba(255,255,255,.04);
    color:#fff;
}

.btn:hover{transform:translateY(-2px)}

.hero-card,.feature-card,.homelab-block,.architecture,.tabs,.solutions-grid article,.stat-card{
    background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.025));
    border:1px solid rgba(255,255,255,.09);
    border-radius:28px;
    box-shadow:var(--shadow);
}

.hero-card{
    padding:30px;
    min-height:430px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:18px;
}

.node{
    padding:18px;
    border:1px solid rgba(79,140,255,.32);
    border-radius:20px;
    text-align:center;
    font-weight:900;
    background:rgba(79,140,255,.12);
}

.node span{
    display:block;
    color:var(--muted);
    font-weight:600;
    font-size:13px;
    margin-top:3px;
}

.node-row{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
}

.node-wide{
    background:rgba(168,85,247,.14);
    border-color:rgba(168,85,247,.36);
}

.line{
    width:2px;
    height:34px;
    background:linear-gradient(var(--accent),var(--accent2));
    margin:0 auto;
    border-radius:10px;
}

.section-head{
    max-width:820px;
    margin-bottom:38px;
}

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

.feature-card{
    padding:26px;
    transition:.25s;
}

.feature-card:hover{
    transform:translateY(-5px);
    border-color:rgba(79,140,255,.38);
}

.icon{
    width:44px;
    height:44px;
    border-radius:15px;
    display:grid;
    place-items:center;
    margin-bottom:18px;
    background:rgba(79,140,255,.13);
    color:#fff;
    font-size:24px;
}

.projects-section{
    background:linear-gradient(180deg,transparent,rgba(255,255,255,.025),transparent);
}

.homelab-block{
    display:grid;
    grid-template-columns:1.15fr .85fr;
    gap:28px;
    padding:30px;
    margin-bottom:20px;
}

.role-box{
    background:rgba(0,0,0,.16);
    border:1px solid rgba(255,255,255,.08);
    border-radius:22px;
    padding:22px;
}

.architecture{
    padding:30px;
    margin-bottom:20px;
}

.architecture-map{
    display:grid;
    gap:10px;
    justify-items:center;
    margin-top:22px;
}

.map-item{
    width:min(560px,100%);
    padding:14px 18px;
    text-align:center;
    border-radius:18px;
    background:rgba(79,140,255,.12);
    border:1px solid rgba(79,140,255,.25);
    font-weight:900;
}

.map-item.accent{
    background:rgba(168,85,247,.15);
    border-color:rgba(168,85,247,.35);
}

.map-arrow{
    color:var(--accent);
    font-size:24px;
    font-weight:900;
    line-height:1;
}

.service-row{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:10px;
    margin-top:10px;
    width:100%;
}

.service-row span,.stack-cloud span{
    padding:9px 13px;
    border-radius:999px;
    background:rgba(255,255,255,.07);
    border:1px solid rgba(255,255,255,.09);
    color:#dbeafe;
    font-weight:700;
    font-size:14px;
}

.tabs{
    padding:22px;
    margin-bottom:20px;
}

.tab-buttons{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-bottom:18px;
}

.tab-btn{
    border:1px solid rgba(255,255,255,.1);
    background:rgba(255,255,255,.05);
    color:var(--muted);
    padding:10px 14px;
    border-radius:999px;
    font-weight:800;
    cursor:pointer;
    transition:.25s;
}

.tab-btn.active,.tab-btn:hover{
    background:linear-gradient(135deg,var(--accent),var(--accent2));
    color:#fff;
    border-color:transparent;
}

.tab-panel{
    display:none;
    padding:20px;
    border-radius:22px;
    background:rgba(0,0,0,.14);
    border:1px solid rgba(255,255,255,.08);
}

.tab-panel.active{
    display:block;
    animation:fade .25s ease;
}

.tab-panel ul{
    margin-top:12px;
    color:var(--muted);
}

.solutions-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
    margin-bottom:20px;
}

.solutions-grid article{padding:26px}

.stats-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:16px;
}

.stat-card{
    padding:26px;
    text-align:center;
}

.stat-card strong{
    display:block;
    font-size:44px;
    line-height:1;
    color:#fff;
    letter-spacing:-.04em;
}

.stat-card span{
    display:block;
    color:var(--muted);
    margin-top:8px;
    font-weight:700;
}

.stack-cloud{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
}

.site-footer{
    border-top:1px solid rgba(255,255,255,.08);
    padding:28px 0;
    color:var(--muted);
    text-align:center;
}

.to-top{
    position:fixed;
    right:20px;
    bottom:20px;
    width:46px;
    height:46px;
    border-radius:999px;
    border:1px solid rgba(255,255,255,.14);
    background:rgba(15,23,36,.88);
    color:#fff;
    font-size:20px;
    cursor:pointer;
    opacity:0;
    pointer-events:none;
    transition:.25s;
    z-index:40;
}

.to-top.visible{
    opacity:1;
    pointer-events:auto;
}

.reveal{
    opacity:0;
    transform:translateY(20px);
    transition:opacity .7s ease,transform .7s ease;
}

.reveal.visible{
    opacity:1;
    transform:translateY(0);
}

.delay-1{transition-delay:.12s}

@keyframes fade{
    from{opacity:0;transform:translateY(8px)}
    to{opacity:1;transform:translateY(0)}
}

@media(max-width:980px){
    .hero-grid,.homelab-block,.solutions-grid{
        grid-template-columns:1fr;
    }

    .features-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .stats-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .hero-card{
        min-height:auto;
    }

    .brand-logo{
        width:220px;
        max-width:30vw;
    }

    .brand-boy{
        width:54px;
        height:54px;
    }
}

@media(max-width:760px){
    :root{
        --header-h:66px;
    }

    .container{
        width:calc(100% - 28px);
    }

    .section{
        padding:72px 0;
    }

    .site-header{
        background:rgba(7,11,20,.97);
    }

    .header-inner{
        gap:10px;
    }

    .brand{
        gap:7px;
        max-width:calc(100% - 58px);
    }

    .brand-boy{
        width:42px;
        height:42px;
    }

    .brand-logo{
        width:168px;
        max-width:calc(100vw - 116px);
    }

    .menu-toggle{
        display:block;
    }

    .main-nav{
        position:fixed;
        left:14px;
        right:14px;
        top:calc(var(--header-h) + 10px);
        display:none;
        flex-direction:column;
        align-items:stretch;
        padding:14px;
        border-radius:22px;
        background:rgba(15,23,36,.98);
        border:1px solid rgba(255,255,255,.1);
        box-shadow:var(--shadow);
    }

    body.menu-open .main-nav{
        display:flex;
    }

    .nav-link{
        text-align:center;
        padding:13px;
    }

    body.menu-open .menu-toggle span:nth-child(1){
        transform:translateY(7px) rotate(45deg);
    }

    body.menu-open .menu-toggle span:nth-child(2){
        opacity:0;
    }

    body.menu-open .menu-toggle span:nth-child(3){
        transform:translateY(-7px) rotate(-45deg);
    }

    .hero{
        padding-top:42px;
        min-height:auto;
    }

    .hero-grid{
        gap:28px;
    }

    h1{
        font-size:clamp(38px,12vw,56px);
        letter-spacing:-.045em;
    }

    h2{
        font-size:clamp(32px,10vw,44px);
    }

    h3{
        font-size:21px;
    }

    .hero-text{
        font-size:16px;
    }

    .hero-actions{
        flex-direction:column;
        margin-top:24px;
    }

    .btn{
        width:100%;
    }

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

    .hero-card,.feature-card,.homelab-block,.architecture,.tabs,.solutions-grid article,.stat-card{
        border-radius:22px;
    }

    .hero-card,.homelab-block,.architecture,.tabs{
        padding:22px;
    }

    .node-row{
        grid-template-columns:1fr;
    }

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

    .tab-buttons{
        display:grid;
        grid-template-columns:1fr 1fr;
        gap:9px;
    }

    .tab-btn{
        width:100%;
        padding:11px 10px;
        border-radius:16px;
        font-size:13px;
    }

    .service-row{
        display:grid;
        grid-template-columns:1fr 1fr;
    }

    .service-row span,.stack-cloud span{
        text-align:center;
    }
}

@media(max-width:480px){
    .container{
        width:calc(100% - 22px);
    }

    .section{
        padding:64px 0;
    }

    .brand-boy{
        width:38px;
        height:38px;
    }

    .brand-logo{
        width:150px;
        max-width:calc(100vw - 108px);
    }

    .hero{
        padding-top:34px;
    }

    .eyebrow{
        font-size:10px;
        letter-spacing:.11em;
        line-height:1.4;
    }

    h1{
        font-size:40px;
        overflow-wrap:anywhere;
    }

    .hero-subtitle{
        font-size:19px;
    }

    .hero-card,.homelab-block,.architecture,.tabs{
        padding:18px;
    }

    .feature-card,.solutions-grid article,.stat-card{
        padding:20px;
    }

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

    .stat-card strong{
        font-size:38px;
    }

    .tab-buttons{
        grid-template-columns:1fr;
    }

    .tab-panel{
        padding:16px;
    }

    .service-row{
        grid-template-columns:1fr;
    }

    .stack-cloud{
        gap:9px;
    }

    .stack-cloud span{
        width:100%;
        text-align:center;
    }

    .to-top{
        right:14px;
        bottom:14px;
        width:42px;
        height:42px;
    }
}

@media(max-width:360px){
    :root{
        --header-h:62px;
    }

    .container{
        width:calc(100% - 18px);
    }

    .brand{
        gap:5px;
        max-width:calc(100% - 50px);
    }

    .brand-boy{
        width:34px;
        height:34px;
    }

    .brand-logo{
        width:132px;
        max-width:calc(100vw - 96px);
    }

    .menu-toggle{
        width:40px;
        height:40px;
    }

    .main-nav{
        left:9px;
        right:9px;
    }

    .section{
        padding:56px 0;
    }

    h1{
        font-size:34px;
    }

    h2{
        font-size:30px;
    }

    h3{
        font-size:19px;
    }

    .hero-subtitle{
        font-size:17px;
    }

    .hero-text,.section-head p,.feature-card p,.tab-panel p,.homelab-block p{
        font-size:15px;
    }

    .hero-card,.homelab-block,.architecture,.tabs{
        padding:15px;
    }

    .node{
        padding:14px;
        border-radius:16px;
    }

    .btn{
        padding:12px 14px;
    }
}
