/* =========================
   GLOBAL
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Inter',sans-serif;
    background:#f5f7fb;
    color:#111827;
}

a{
    text-decoration:none;
}

img{
    max-width:100%;
    display:block;
}

/* =========================
   TOP BAR
========================= */

.topbar{
    width:100%;
    background:rgba(255,255,255,0.85);
    backdrop-filter:blur(16px);
    -webkit-backdrop-filter:blur(16px);
    border-bottom:1px solid rgba(0,0,0,0.06);
    position:sticky;
    top:0;
    z-index:999;
}

.topbar-container{
    max-width:1300px;
    margin:auto;
    padding:14px 20px;
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.logo-area{
    display:flex;
    align-items:center;
    gap:12px;
    color:#111827;
    font-weight:800;
    font-size:18px;
}

.top-links{
    display:flex;
    gap:22px;
}

.top-links a{
    color:#374151;
    font-weight:600;
    transition:0.2s;
}

.top-links a:hover{
    color:#0a84ff;
}

/* =========================
   CONTAINER
========================= */

.container{
    max-width:1300px;
    margin:auto;
    padding:30px 20px;
}

/* =========================
   HERO
========================= */

.hero{
    background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);
    border:1px solid rgba(0,0,0,0.06);
    border-radius:28px;
    padding:35px;

    display:flex;
    gap:35px;

    box-shadow:0 10px 30px rgba(0,0,0,0.06);
}

.app-icon{
    width:170px;
    height:170px;
    min-width:170px;
    border-radius:38px;
    overflow:hidden;
    box-shadow:0 12px 30px rgba(0,0,0,0.12);
}

.app-icon img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.hero-content{
    flex:1;
}

.app-title{
    font-size:40px;
    font-weight:800;
    margin-bottom:10px;
}

.app-subtitle{
    color:#6b7280;
    margin-bottom:25px;
}

/* INFO */

.info-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:16px;
    margin-bottom:25px;
}

.info-card{
    background:#fff;
    border:1px solid rgba(0,0,0,0.06);
    padding:16px;
    border-radius:16px;
}

.info-label{
    font-size:13px;
    color:#6b7280;
}

.info-value{
    font-weight:700;
}

/* BUTTONS */

.hero-buttons{
    display:flex;
    gap:14px;
    flex-wrap:wrap;
}

.btn{
    padding:12px 20px;
    border-radius:14px;
    font-weight:700;
    transition:0.2s;
}

.btn-primary{
    background:#0a84ff;
    color:#fff;
}

.btn-primary:hover{
    background:#2b95ff;
}

.btn-secondary{
    background:#fff;
    border:1px solid rgba(0,0,0,0.1);
    color:#111827;
}

/* =========================
   SCREENSHOTS
========================= */

.section{
    margin-top:50px;
}

.section-title{
    font-size:28px;
    font-weight:800;
    margin-bottom:20px;
}

/* toggle */

.toggle-wrapper{
    display:flex;
    justify-content:center;
    margin-bottom:25px;
}

.toggle{
    background:#e5e7eb;
    padding:6px;
    border-radius:999px;
    display:flex;
}

.toggle button{
    border:none;
    background:transparent;
    padding:10px 22px;
    border-radius:999px;
    cursor:pointer;
    font-weight:700;
}

.toggle button.active{
    background:#0a84ff;
    color:#fff;
}

/* screenshots */

.screenshot-group{
    display:none;
}

.screenshot-group.active{
    display:grid;
}

    /* Default (iPhone) layout */
.screenshot-grid{
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
}

/* iPad layout (WIDER CARDS) */
#ipad.screenshot-grid{
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:24px;
}

.screenshot-card{
    background:#fff;
    padding:10px;
    border-radius:18px;
    border:1px solid rgba(0,0,0,0.06);
    box-shadow:0 6px 18px rgba(0,0,0,0.04);
}

.screenshot-card img{
    border-radius:12px;
}

/* =========================
   DESCRIPTION
========================= */

.description-box{
    margin-top:50px;
    background:#fff;
    border-radius:24px;
    padding:30px;
    border:1px solid rgba(0,0,0,0.06);
}

.description-box p{
    margin-bottom:14px;
    color:#374151;
}

.center {
    display:flex;
    justify-content:center;
}
/* =========================
   FOOTER
========================= */

footer{
    margin-top:60px;
    padding:30px 20px;
    text-align:center;
    border-top:1px solid rgba(0,0,0,0.08);
    color:#6b7280;
}

.footer-links{
    margin-top:10px;
    display:flex;
    justify-content:center;
    gap:12px;
    flex-wrap:wrap;
}

.footer-links a{
    color:#374151;
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:900px){

    .hero{
        flex-direction:column;
        text-align:center;
        align-items:center;
    }

    .app-title{
        font-size:32px;
    }

    .info-grid{
        grid-template-columns:1fr;
    }

    .hero-buttons{
        justify-content:center;
    }
}

@media(max-width:600px){

    .top-links{
        gap:14px;
        font-size:14px;
    }

    .app-icon{
        width:140px;
        height:140px;
        min-width:140px;
    }
}