/* ============================================================
   HOSTMAFIYA - HOMEPAGE ONLY
   Everything is scoped to #hm-home to avoid header/footer conflicts.
   ============================================================ */

#hm-home{overflow:hidden}
#hm-home .home-container{width:min(1400px,calc(100% - 72px));margin:auto}
#hm-home .section-white{background:#fff}
#hm-home .section-light{background:#fafafa}

#hm-home .home-hero{
    position:relative;
    color:#fff;
    background:linear-gradient(120deg,#a90000,#e50000 55%,#b90000);
    overflow:hidden;
}
#hm-home .hero-glow{
    position:absolute;
    width:700px;height:700px;
    right:-130px;top:-300px;
    background:radial-gradient(circle,rgba(255,255,255,.15),transparent 65%);
}
#hm-home .hero-grid{
    position:absolute;inset:0;
    opacity:.16;
    background-image:radial-gradient(rgba(255,255,255,.5) 1px,transparent 1px);
    background-size:18px 18px;
    mask-image:linear-gradient(90deg,transparent,#000 55%,transparent);
}
#hm-home .hero-inner{
    min-height:480px;
    display:grid;
    grid-template-columns:1.05fr .95fr;
    align-items:center;
    position:relative;
    z-index:1;
}
#hm-home .hero-copy{padding:50px 0}
#hm-home .eyebrow{font-size:20px;font-weight:600}
#hm-home .hero-copy h1{
    font-size:48px;line-height:1.05;
    margin:7px 0 10px;
    letter-spacing:-1.7px;
}
#hm-home .hero-subtitle{
    font-size:14px;
    font-weight:500;
    line-height:1.55;
    margin:0 0 18px;
}
#hm-home .domain-box{
    width:min(610px,100%);
    background:#fff;
    color:#111;
    border-radius:15px;
    padding:14px 14px 10px;
    box-shadow:0 15px 30px rgba(0,0,0,.17);
}
#hm-home .domain-box label{
    display:block;font-size:12px;font-weight:700;margin:0 0 8px 4px
}
#hm-home .domain-input{
    display:flex;
    border:1px solid #eee;
    border-radius:9px;
    overflow:hidden;
}
#hm-home .domain-input input{
    min-width:0;flex:1;border:0;outline:0;padding:12px 13px;font-size:12px
}
#hm-home .domain-input button{
    border:0;background:#d90000;color:#fff;
    padding:0 18px;font-weight:700;font-size:12px;cursor:pointer;
}
#hm-home .domain-prices{
    display:grid;grid-template-columns:repeat(6,1fr);
    margin-top:8px;text-align:center;
}
#hm-home .domain-prices span{display:flex;flex-direction:column;gap:2px}
#hm-home .domain-prices b{font-size:12px}
#hm-home .domain-prices small{font-size:10px;color:#777}
#hm-home .hero-art{
    align-self:end;
    display:flex;justify-content:center;align-items:end;
    height:100%;
}
#hm-home .hero-art img{
    width:min(620px,100%);
    max-height:455px;
    object-fit:contain;
    object-position:center bottom;
    filter:drop-shadow(0 25px 30px rgba(0,0,0,.2));
}
#hm-home .hero-trust{
    position:relative;z-index:2;
    display:flex;gap:34px;
    padding:0 0 17px;
    font-size:11px;font-weight:600;
}
#hm-home .hero-trust span{display:flex;align-items:center;gap:7px}
#hm-home .hero-trust i{font-size:14px}

#hm-home .category-section{padding:18px 0}
#hm-home .category-grid{
    display:grid;grid-template-columns:repeat(8,1fr);gap:12px;
}
#hm-home .category-card{
    min-height:112px;
    padding:13px 8px;
    border:1px solid #eee;
    border-radius:12px;
    background:#fff;
    box-shadow:0 5px 18px rgba(0,0,0,.06);
    display:flex;flex-direction:column;align-items:center;text-align:center;
    transition:.2s;
}
#hm-home .category-card:hover{transform:translateY(-3px);box-shadow:0 10px 24px rgba(0,0,0,.1)}
#hm-home .category-icon{
    width:48px;height:48px;
    display:grid;place-items:center;
    color:#d90000;
    font-size:24px;
}
#hm-home .category-card strong{font-size:10px;margin-top:7px}
#hm-home .category-card small{font-size:8px;color:#777;margin-top:4px}

#hm-home .why-section,#hm-home .pricing-section,#hm-home .performance-section,#hm-home .testimonials-section,#hm-home .faq-section{
    padding:38px 0;
}
#hm-home .section-heading{text-align:center;margin-bottom:25px}
#hm-home .section-heading h2{
    font-size:22px;margin:0;font-weight:800;letter-spacing:-.5px
}
#hm-home .section-heading h2 span{color:#d90000}
#hm-home .heading-line{
    width:42px;height:3px;background:#e00000;margin:8px auto 0;border-radius:3px
}

#hm-home .why-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:10px}
#hm-home .why-card{
    min-height:118px;
    background:#fff;border:1px solid #eee;border-radius:12px;
    padding:13px 8px;
    display:flex;flex-direction:column;align-items:center;text-align:center;
    box-shadow:0 4px 14px rgba(0,0,0,.04)
}
#hm-home .why-card>span{
    width:42px;height:42px;border-radius:50%;
    display:grid;place-items:center;
    background:#fff0f0;color:#e00000;font-size:17px
}
#hm-home .why-card strong{font-size:9px;margin-top:8px}
#hm-home .why-card small{font-size:7px;line-height:1.4;color:#777;margin-top:5px}

#hm-home .billing-tabs{
    display:flex;justify-content:center;
    border:1px solid #eee;border-radius:12px;
    width:max-content;max-width:100%;margin:0 auto 16px;
    overflow:hidden;
}
#hm-home .billing-tab{
    border:0;background:#fff;padding:11px 18px;
    font-size:9px;font-weight:700;color:#333;cursor:pointer;
    border-right:1px solid #eee;
}
#hm-home .billing-tab:last-child{border-right:0}
#hm-home .billing-tab small{display:block;color:#777;font-weight:500;margin-top:3px}
#hm-home .billing-tab.active{background:#d90000;color:#fff}
#hm-home .billing-tab.active small{color:#fff}

#hm-home .plans-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
#hm-home .plan-card{
    position:relative;
    border:1px solid #e7e7e7;border-radius:15px;
    padding:22px 18px 17px;
    text-align:center;background:#fff;
    box-shadow:0 4px 15px rgba(0,0,0,.04)
}
#hm-home .plan-card.popular{border:2px solid #e00000;box-shadow:0 10px 30px rgba(220,0,0,.09)}
#hm-home .popular-badge{
    position:absolute;top:-12px;left:50%;transform:translateX(-50%);
    background:#d90000;color:#fff;padding:5px 12px;border-radius:10px;
    font-size:8px;font-weight:800;white-space:nowrap;
}
#hm-home .plan-card h3{font-size:17px;color:#d90000;margin:0 0 7px}
#hm-home .plan-card>p{font-size:9px;color:#777;min-height:27px;margin:0}
#hm-home .price{margin:10px 0 3px}
#hm-home .price del{font-size:9px;color:#999}
#hm-home .price strong{font-size:29px;color:#c80000}
#hm-home .price span{font-size:10px}
#hm-home .save-badge{
    display:inline-block;color:#d90000;font-size:8px;background:#fff0f0;padding:4px 7px;border-radius:6px
}
#hm-home .plan-card ul{list-style:none;text-align:left;padding:12px 0 5px;margin:0}
#hm-home .plan-card li{font-size:8px;padding:5px 0;display:flex;gap:7px;line-height:1.25}
#hm-home .plan-card li i{color:#d90000}
#hm-home .plan-button{
    display:flex;justify-content:center;align-items:center;gap:8px;
    border:1px solid #d90000;color:#d90000;
    border-radius:20px;padding:9px 10px;
    font-size:9px;font-weight:800;
}
#hm-home .plan-card.popular .plan-button{background:#d90000;color:#fff}

#hm-home .performance-grid{
    display:grid;
    grid-template-columns:1.1fr .8fr 1.25fr;
    gap:25px;align-items:center;
}
#hm-home .performance-copy h2{font-size:22px;line-height:1.05;margin:0 0 10px}
#hm-home .performance-copy p{font-size:11px;color:#777;line-height:1.6}
#hm-home .performance-copy ul{list-style:none;padding:0;margin:13px 0 0}
#hm-home .performance-copy li{font-size:10px;margin:7px 0}
#hm-home .performance-copy li i{color:#d90000;margin-right:7px}
#hm-home .speed-meter{text-align:center}
#hm-home .speed-gauge{
    width:220px;height:110px;
    margin:auto;
    border-radius:220px 220px 0 0;
    border:16px solid #eee;
    border-bottom:0;
    position:relative;
    overflow:hidden;
}
#hm-home .speed-gauge:before{
    content:"";position:absolute;left:50%;bottom:-4px;
    width:3px;height:100px;background:#d90000;
    transform-origin:bottom center;transform:rotate(40deg);
}
#hm-home .speed-meter strong{display:block;font-size:24px;color:#111;margin-top:-4px}
#hm-home .speed-meter small{font-size:8px;font-weight:700;color:#777}
#hm-home .tech-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}
#hm-home .tech-card{
    min-height:95px;border:1px solid #eee;border-radius:12px;background:#fff;
    display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;
}
#hm-home .tech-card i{color:#d90000;font-size:20px;margin-bottom:7px}
#hm-home .tech-card strong{font-size:10px}
#hm-home .tech-card span{font-size:9px;color:#777}

#hm-home .migration-section{
    margin:0;
    background:linear-gradient(100deg,#aa0000,#ef0000,#a90000);
    color:#fff;
}
#hm-home .migration-inner{
    min-height:105px;
    display:grid;grid-template-columns:110px 1fr auto;
    gap:25px;align-items:center;
}
#hm-home .migration-art{
    width:90px;height:90px;border-radius:50%;
    display:grid;place-items:center;
    font-size:40px;background:rgba(255,255,255,.12)
}
#hm-home .migration-inner h2{font-size:18px;line-height:1.1;margin:0 0 6px}
#hm-home .migration-inner p{font-size:10px;margin:0;opacity:.9}
#hm-home .migration-action{text-align:right}
#hm-home .migration-action a{
    display:inline-flex;align-items:center;gap:10px;
    background:#fff;color:#d00000;padding:12px 19px;
    border-radius:24px;font-size:10px;font-weight:800
}
#hm-home .migration-action small{display:block;margin-top:5px;font-size:8px}

#hm-home .testimonial-grid{display:grid;grid-template-columns:180px repeat(3,1fr);gap:14px}
#hm-home .google-rating,.testimonial-card{
    border:1px solid #eee;border-radius:14px;padding:18px;background:#fff;
    box-shadow:0 5px 16px rgba(0,0,0,.04)
}
#hm-home .google-g{font-size:30px;font-weight:800;color:#4285f4}
#hm-home .google-rating strong{display:block;font-size:11px;margin:6px 0}
#hm-home .google-rating .stars{color:#ff9d00;letter-spacing:2px;font-size:13px}
#hm-home .google-rating>b{font-size:12px}
#hm-home .google-rating small{display:block;color:#777;font-size:8px;margin-top:6px}
#hm-home .testimonial-card{position:relative}
#hm-home .testimonial-card>i{color:#d90000;font-size:18px}
#hm-home .testimonial-card p{font-size:10px;line-height:1.6;min-height:55px;color:#444}
#hm-home .testimonial-user{display:flex;align-items:center;gap:8px}
#hm-home .avatar{
    width:30px;height:30px;border-radius:50%;
    display:grid;place-items:center;background:#eee;color:#d90000;font-size:11px;font-weight:800
}
#hm-home .testimonial-user strong{font-size:9px;display:block}
#hm-home .testimonial-user small{font-size:8px;color:#777;display:block}
#hm-home .rating-stars{margin-left:auto;color:#ff9d00;font-size:10px}

#hm-home .faq-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px 18px}
#hm-home .faq-item{
    background:#fff;border:1px solid #eee;border-radius:9px;
    padding:0 14px;
}
#hm-home .faq-item summary{
    list-style:none;cursor:pointer;
    display:flex;justify-content:space-between;align-items:center;
    padding:11px 0;font-size:10px;font-weight:600
}
#hm-home .faq-item summary::-webkit-details-marker{display:none}
#hm-home .faq-item summary span{font-size:17px;font-weight:400;color:#555}
#hm-home .faq-answer{padding:0 0 12px;color:#777;font-size:9px;line-height:1.5}

#hm-home .final-cta{
    background:linear-gradient(100deg,#b00000,#e00000,#a70000);
    color:#fff;
}
#hm-home .final-cta-inner{
    min-height:95px;display:grid;grid-template-columns:90px 1fr auto;align-items:center;gap:20px
}
#hm-home .cta-rocket{
    width:70px;height:70px;border-radius:50%;
    background:rgba(255,255,255,.12);
    display:grid;place-items:center;font-size:30px
}
#hm-home .final-cta h2{font-size:18px;margin:0 0 5px}
#hm-home .final-cta p{font-size:10px;margin:0;opacity:.9}
#hm-home .final-cta a{
    background:#fff;color:#d00000;padding:12px 19px;border-radius:22px;
    font-size:10px;font-weight:800;white-space:nowrap
}

@media (max-width:1100px){
    #hm-home .home-container{width:min(100% - 40px,1000px)}
    #hm-home .category-grid,#hm-home .why-grid{grid-template-columns:repeat(4,1fr)}
    #hm-home .plans-grid{grid-template-columns:repeat(2,1fr)}
    #hm-home .performance-grid{grid-template-columns:1fr 1fr}
    #hm-home .tech-grid{grid-column:1/-1}
    #hm-home .testimonial-grid{grid-template-columns:1fr 1fr}
    #hm-home .google-rating{grid-column:1/-1}
}
@media (max-width:800px){
    #hm-home .home-container{width:calc(100% - 30px)}
    #hm-home .hero-inner{grid-template-columns:1fr;min-height:auto}
    #hm-home .hero-copy{padding:42px 0 10px}
    #hm-home .hero-copy h1{font-size:38px}
    #hm-home .hero-art{height:310px}
    #hm-home .hero-art img{max-height:320px}
    #hm-home .hero-trust{flex-wrap:wrap;gap:12px;padding-bottom:15px}
    #hm-home .domain-prices{grid-template-columns:repeat(3,1fr);gap:7px}
    #hm-home .billing-tabs{width:100%;overflow:auto;justify-content:flex-start}
    #hm-home .billing-tab{min-width:135px}
    #hm-home .performance-grid{grid-template-columns:1fr}
    #hm-home .speed-meter{order:-1}
    #hm-home .testimonial-grid{grid-template-columns:1fr}
    #hm-home .google-rating{grid-column:auto}
    #hm-home .faq-grid{grid-template-columns:1fr}
    #hm-home .migration-inner,#hm-home .final-cta-inner{grid-template-columns:70px 1fr}
    #hm-home .migration-action,#hm-home .final-cta a{grid-column:1/-1;text-align:left;margin-bottom:15px}
}
@media (max-width:520px){
    #hm-home .category-grid,#hm-home .why-grid{grid-template-columns:repeat(2,1fr)}
    #hm-home .plans-grid{grid-template-columns:1fr}
    #hm-home .hero-copy h1{font-size:31px}
    #hm-home .eyebrow{font-size:14px}
    #hm-home .domain-input{flex-direction:column}
    #hm-home .domain-input button{padding:11px}
    #hm-home .migration-inner{grid-template-columns:1fr}
    #hm-home .migration-art{display:none}
    #hm-home .final-cta-inner{grid-template-columns:1fr}
    #hm-home .cta-rocket{display:none}
}
