*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:
        "Segoe UI",
        Arial,
        sans-serif;

    background:#f8fafc;
    color:#172033;
    line-height:1.6;
}

button,
input,
select{
    font-family:inherit;
}

button{
    cursor:pointer;
}

.hidden{
    display:none!important;
}

.container{
    width:min(1180px,92%);
    margin:auto;
}


/* HEADER */

header{
    position:sticky;
    top:0;
    z-index:1000;

    background:rgba(255,255,255,.96);
    backdrop-filter:blur(15px);

    border-bottom:1px solid #e5e7eb;
}

.navbar{
    height:72px;

    display:flex;
    align-items:center;
    justify-content:space-between;
}

.logo{
    font-size:27px;
    font-weight:900;

    text-decoration:none;

    color:#e11d48;
}

.logo span{
    color:#2563eb;
}

.nav-links{
    display:flex;
    gap:25px;
    list-style:none;
}

.nav-links a{
    color:#374151;
    text-decoration:none;
    font-weight:600;
    cursor:pointer;
}

.nav-links a:hover{
    color:#e11d48;
}

.nav-buttons{
    display:flex;
    gap:8px;
}

.mobile-menu{
    display:none;
    border:0;
    background:none;
    font-size:28px;
}


/* BUTTONS */

.btn{
    border:0;
    border-radius:9px;

    padding:12px 20px;

    font-size:15px;
    font-weight:700;

    transition:.2s;
}

.btn-primary{
    background:#e11d48;
    color:#fff;
}

.btn-primary:hover{
    background:#be123c;
    transform:translateY(-1px);
}

.btn-secondary{
    background:#2563eb;
    color:white;
}

.btn-secondary:hover{
    background:#1d4ed8;
}

.btn-light{
    background:#f1f5f9;
    color:#334155;
}

.btn-light:hover{
    background:#e2e8f0;
}


/* HERO */

.hero{
    padding:100px 0 90px;

    background:
        radial-gradient(
            circle at 10% 20%,
            rgba(244,63,94,.13),
            transparent 30%
        ),
        radial-gradient(
            circle at 90% 20%,
            rgba(37,99,235,.13),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #fff1f2,
            #eff6ff
        );
}

.hero-grid{
    display:grid;
    grid-template-columns:1.1fr .9fr;

    gap:60px;

    align-items:center;
}

.badge{
    display:inline-block;

    padding:7px 13px;

    background:#fff;

    border-radius:30px;

    color:#e11d48;

    font-size:13px;

    font-weight:800;

    margin-bottom:18px;
}

.hero h1{
    font-size:clamp(42px,6vw,70px);

    line-height:1.05;

    margin-bottom:22px;
}

.hero h1 span{
    color:#e11d48;
}

.hero p{
    color:#64748b;

    font-size:19px;

    max-width:650px;

    margin-bottom:30px;
}

.hero-buttons{
    display:flex;
    gap:12px;

    flex-wrap:wrap;
}


/* STORAGE PREVIEW */

.storage-preview{
    background:white;

    padding:30px;

    border-radius:25px;

    box-shadow:
        0 25px 60px
        rgba(15,23,42,.12);
}

.preview-header{
    display:flex;

    align-items:center;

    gap:15px;

    margin-bottom:25px;
}

.cloud-icon{
    width:60px;
    height:60px;

    display:flex;
    align-items:center;
    justify-content:center;

    background:#eff6ff;

    border-radius:15px;

    font-size:30px;
}

.preview-header p{
    margin:0;

    font-size:13px;
}

.storage-number{
    font-size:32px;

    font-weight:900;

    margin-bottom:12px;
}

.storage-number span{
    font-size:15px;

    color:#64748b;

    font-weight:500;
}

.storage-bar{
    height:11px;

    background:#e2e8f0;

    border-radius:20px;

    overflow:hidden;
}

.storage-bar div{
    height:100%;

    background:
        linear-gradient(
            90deg,
            #e11d48,
            #2563eb
        );

    border-radius:20px;
}

.storage-info{
    display:flex;

    justify-content:space-between;

    margin-top:8px;

    color:#64748b;

    font-size:13px;
}

.preview-files{
    display:grid;

    gap:12px;

    margin-top:25px;
}

.preview-files div{
    display:flex;

    gap:10px;

    align-items:center;

    padding:10px;

    background:#f8fafc;

    border-radius:9px;
}

.preview-files span{
    flex:1;
}

.preview-files strong{
    font-size:13px;
}


/* SECTIONS */

section{
    padding:80px 0;
}

.section-header{
    max-width:700px;

    text-align:center;

    margin:0 auto 45px;
}

.section-header h2{
    font-size:40px;

    line-height:1.15;

    margin-bottom:12px;
}

.section-header p{
    color:#64748b;
}


/* FEATURES */

.feature-grid{
    display:grid;

    grid-template-columns:
        repeat(3,1fr);

    gap:20px;
}

.feature-card{
    background:white;

    border:1px solid #e5e7eb;

    border-radius:16px;

    padding:25px;

    transition:.25s;
}

.feature-card:hover{
    transform:translateY(-5px);

    box-shadow:
        0 15px 35px
        rgba(15,23,42,.08);
}

.feature-icon{
    width:52px;
    height:52px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:14px;

    background:#fff1f2;

    font-size:25px;

    margin-bottom:15px;
}

.feature-card h3{
    margin-bottom:8px;
}

.feature-card p{
    color:#64748b;
}


/* FILE SECTION */

.page-section{
    min-height:700px;

    background:#f8fafc;
}

.upload-box{
    background:white;

    border:2px dashed #cbd5e1;

    border-radius:20px;

    padding:50px;

    text-align:center;

    transition:.2s;
}

.upload-box.dragover{
    border-color:#e11d48;

    background:#fff1f2;
}

.upload-icon{
    font-size:50px;

    margin-bottom:10px;
}

.upload-box h3{
    font-size:24px;
}

.upload-box p{
    color:#64748b;

    margin-bottom:18px;
}

#fileInput{
    display:none;
}

.upload-progress{
    width:100%;

    max-width:600px;

    margin:25px auto 0;

    height:9px;

    background:#e2e8f0;

    border-radius:20px;

    overflow:hidden;
}

#uploadProgressBar{
    height:100%;

    width:0%;

    background:#e11d48;

    transition:.2s;
}

.upload-status{
    margin-top:10px;

    font-weight:700;
}


/* TOOLBAR */

.file-toolbar{
    margin:25px 0;

    display:flex;

    justify-content:space-between;

    gap:15px;
}

.file-toolbar input,
.file-toolbar select{
    padding:12px 14px;

    border:1px solid #cbd5e1;

    border-radius:9px;

    background:white;

    outline:none;
}

.file-toolbar input{
    width:350px;
}


/* FILE GRID */

.file-grid{
    display:grid;

    grid-template-columns:
        repeat(3,1fr);

    gap:18px;
}

.file-card{
    background:white;

    border:1px solid #e5e7eb;

    border-radius:16px;

    padding:20px;

    transition:.2s;
}

.file-card:hover{
    transform:translateY(-4px);

    box-shadow:
        0 12px 25px
        rgba(15,23,42,.08);
}

.file-icon{
    font-size:38px;

    margin-bottom:10px;
}

.file-name{
    font-weight:800;

    overflow:hidden;

    text-overflow:ellipsis;

    white-space:nowrap;
}

.file-meta{
    color:#64748b;

    font-size:13px;

    margin:5px 0 15px;
}

.file-actions{
    display:flex;

    gap:7px;
}

.file-actions a,
.file-actions button{
    flex:1;
}


/* EMPTY */

.empty-state{
    grid-column:1/-1;

    text-align:center;

    padding:70px;

    color:#64748b;
}

.empty-state:first-line{
    font-size:40px;
}


/* DASHBOARD */

.dashboard-section{
    background:white;
}

.dashboard-grid{
    display:grid;

    grid-template-columns:230px 1fr;

    gap:25px;
}

.sidebar{
    background:#0f172a;

    color:white;

    border-radius:18px;

    padding:20px;

    height:max-content;
}

.sidebar h3{
    margin-bottom:20px;
}

.sidebar button{
    width:100%;

    text-align:left;

    padding:12px;

    margin-bottom:6px;

    background:transparent;

    color:#cbd5e1;

    border:0;

    border-radius:8px;
}

.sidebar button:hover,
.sidebar button.active{
    background:#1e293b;

    color:white;
}

.dashboard-content{
    min-width:0;
}

.dashboard-header{
    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:15px;

    margin-bottom:25px;
}

.dashboard-header h2{
    font-size:30px;
}

.stats-grid{
    display:grid;

    grid-template-columns:
        repeat(4,1fr);

    gap:15px;

    margin-bottom:25px;
}

.stat-card{
    background:white;

    border:1px solid #e5e7eb;

    border-radius:15px;

    padding:20px;
}

.stat-card small{
    color:#64748b;
}

.stat-card strong{
    display:block;

    font-size:30px;

    color:#e11d48;

    margin-top:5px;
}

.dashboard-card{
    background:#f8fafc;

    border:1px solid #e2e8f0;

    border-radius:18px;

    padding:25px;
}

.large-storage{
    margin-top:20px;
}

.account-card{
    margin-top:20px;

    padding:25px;

    background:#f8fafc;

    border:1px solid #e2e8f0;

    border-radius:15px;
}


/* FOOTER */

footer{
    background:#0f172a;

    color:#cbd5e1;

    padding:50px 0 25px;
}

.footer-grid{
    display:grid;

    grid-template-columns:
        2fr 1fr 1fr;

    gap:40px;
}

.footer-logo{
    font-size:25px;

    font-weight:900;

    color:white;

    margin-bottom:12px;
}

footer h4{
    color:white;

    margin-bottom:12px;
}

footer a{
    display:block;

    color:#94a3b8;

    text-decoration:none;

    margin:7px 0;

    cursor:pointer;
}

footer a:hover{
    color:white;
}

.copyright{
    border-top:1px solid #1e293b;

    margin-top:35px;

    padding-top:20px;

    text-align:center;

    color:#64748b;
}


/* TOAST */

.toast{
    position:fixed;

    right:20px;

    bottom:20px;

    z-index:5000;

    background:#0f172a;

    color:white;

    padding:14px 18px;

    border-radius:10px;

    transform:translateY(100px);

    opacity:0;

    transition:.3s;
}

.toast.show{
    transform:translateY(0);

    opacity:1;
}


/* RESPONSIVE */

@media(max-width:1000px){

    .hero-grid{
        grid-template-columns:1fr;
    }

    .feature-grid{
        grid-template-columns:
            repeat(2,1fr);
    }

    .file-grid{
        grid-template-columns:
            repeat(2,1fr);
    }

    .stats-grid{
        grid-template-columns:
            repeat(2,1fr);
    }

}

@media(max-width:800px){

    .nav-links,
    .nav-buttons{
        display:none;
    }

    .mobile-menu{
        display:block;
    }

    .dashboard-grid{
        grid-template-columns:1fr;
    }

    .footer-grid{
        grid-template-columns:1fr;
    }

}

@media(max-width:600px){

    .feature-grid,
    .file-grid{
        grid-template-columns:1fr;
    }

    .stats-grid{
        grid-template-columns:1fr;
    }

    .file-toolbar{
        flex-direction:column;
    }

    .file-toolbar input{
        width:100%;
    }

    .hero{
        padding:60px 0;
    }

    section{
        padding:55px 0;
    }

    .upload-box{
        padding:35px 20px;
    }

}