/* =========================
GLOBAL
========================= */

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

body{
    font-family:'Inter',sans-serif;
    background:#f5f7ff;
    color:#111827;
    overflow-x:hidden;
}

a{
    text-decoration:none;
}

.container{
    width:92%;
    max-width:1450px;
    margin:auto;
}

.header{
    padding:22px 0;
}

.navbar{
    background:rgba(255,255,255,0.8);
    backdrop-filter:blur(12px);
    border-radius:28px;
    padding:18px 28px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    box-shadow:0 10px 40px rgba(91,92,240,0.08);
}

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

.logo-icon{
    width:44px;
    height:44px;
    border-radius:14px;
    background:linear-gradient(135deg,#5B5CF0,#7B61FF);
}

.nav-menu{
    display:flex;
    gap:50px;
}

.nav-menu a{
    color:#4b5563;
    font-weight:600;
}

.nav-menu a.active{
    color:#5B5CF0;
}

.nav-right{
    display:flex;
    align-items:center;
    gap:15px;
}

.account-btn{
    background:linear-gradient(135deg,#5B5CF0,#7B61FF);
    color:#fff;
    border:none;
    padding:15px 26px;
    border-radius:14px;
    cursor:pointer;
}

/* =========================
HERO SECTION
========================= */

.hero{
    padding:40px 0 30px;
}

.hero-wrapper{
    display:grid;
    grid-template-columns:1.2fr .8fr;
    gap:40px;
    align-items:center;
}

.hero-left h1{
    font-size:72px;
    line-height:1.1;
    font-weight:800;
    color:#17153b;
    margin-bottom:25px;
}

.hero-left h1 span{
    background:linear-gradient(135deg,#5B5CF0,#7B61FF);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

.hero-left p{
    font-size:22px;
    line-height:1.8;
    color:#6b7280;
    max-width:760px;
    margin-bottom:35px;
}

.feature-badges{
    display:flex;
    gap:20px;
    flex-wrap:wrap;
}

.badge{
    background:#fff;
    border-radius:50px;
    padding:16px 24px;
    border:1px solid #ececff;
    box-shadow:0 10px 30px rgba(91,92,240,0.06);
    font-weight:600;
    color:#374151;
}

/* =========================
USAGE CARD
========================= */

.hero-card{
    background:rgba(255,255,255,0.8);
    backdrop-filter:blur(14px);
    border-radius:30px;
    padding:35px;
    border:1px solid rgba(255,255,255,0.7);
    box-shadow:0 10px 40px rgba(91,92,240,0.08);
}

.hero-card h3{
    font-size:28px;
    margin-bottom:30px;
}

.progress-item{
    margin-bottom:30px;
}

.progress-title{
    display:flex;
    justify-content:space-between;
    margin-bottom:12px;
    font-weight:600;
}

.progress-bar{
    width:100%;
    height:10px;
    background:#ececff;
    border-radius:20px;
    overflow:hidden;
}

.progress-fill{
    height:100%;
    background:linear-gradient(135deg,#5B5CF0,#7B61FF);
    border-radius:20px;
}

.upgrade-btn{
    width:100%;
    height:60px;
    border:none;
    border-radius:18px;
    background:linear-gradient(135deg,#5B5CF0,#7B61FF);
    color:#fff;
    font-size:18px;
    font-weight:700;
    cursor:pointer;
    margin-top:10px;
}

/* =========================
TOOL SECTION
========================= */

.tool-section{
    padding:30px 0 60px;
}

.tool-wrapper{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:40px;
    align-items:start;
}

.card{
    background:rgba(255,255,255,0.8);
    backdrop-filter:blur(14px);
    border-radius:35px;
    padding:35px;
    box-shadow:0 10px 40px rgba(91,92,240,0.08);
    border:1px solid rgba(255,255,255,0.7);
}

.section-title{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:25px;
}

.section-title h3{
    font-size:28px;
}

/* =========================
TEXTAREA
========================= */

textarea{
    width:100%;
    height:260px;
    border-radius:24px;
    border:2px solid #ececff;
    background:#fff;
    resize:none;
    padding:25px;
    font-size:16px;
    outline:none;
    font-family:'Inter',sans-serif;
    color:#374151;
}

textarea:focus{
    border-color:#7B61FF;
}

.text-footer{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-top:16px;
}

.word-count{
    color:#6b7280;
    font-weight:500;
}

.clear-btn{
    border:none;
    background:#fff;
    border:1px solid #ececff;
    padding:12px 20px;
    border-radius:14px;
    font-weight:600;
    cursor:pointer;
}

/* =========================
TONE SECTION
========================= */

.tone-section{
    margin-top:30px;
}

.tone-section h4{
    margin-bottom:18px;
    font-size:18px;
}

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

.tone-card{
    background:#fff;
    border:2px solid #ececff;
    border-radius:22px;
    height:115px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:12px;
    cursor:pointer;
    transition:0.3s;
    font-weight:600;
}

.tone-card:hover{
    transform:translateY(-5px);
}

.tone-card.active{
    border-color:#5B5CF0;
    box-shadow:0 10px 30px rgba(91,92,240,0.15);
}

/* =========================
BUTTON
========================= */

.humanize-btn{
    width:100%;
    height:68px;
    border:none;
    border-radius:20px;
    background:linear-gradient(135deg,#5B5CF0,#7B61FF);
    color:#fff;
    font-size:20px;
    font-weight:700;
    margin-top:25px;
    cursor:pointer;
    box-shadow:0 15px 40px rgba(91,92,240,0.3);
}

/* =========================
CENTER ACTION
========================= */

.center-action{
    display:flex;
    align-items:center;
    justify-content:center;
}

.action-circle{
    width:110px;
    height:110px;
    border-radius:50%;
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:42px;
    color:#5B5CF0;
    border:10px solid rgba(91,92,240,0.12);
    box-shadow:0 0 50px rgba(91,92,240,0.2);
}

/* =========================
RESULT BOX
========================= */

.quality-badge{
    background:#eafff1;
    color:#16a34a;
    padding:12px 18px;
    border-radius:40px;
    font-size:14px;
    font-weight:700;
}

.result-box{
    border:2px dashed #cfc9ff;
    border-radius:30px;
    height:420px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    background:rgba(123,97,255,0.03);
    padding:30px;
}

.result-box img{
    width:100px;
    margin-bottom:25px;
}

.result-box h4{
    font-size:26px;
    margin-bottom:14px;
}

.result-box p{
    color:#6b7280;
    line-height:1.8;
    max-width:450px;
}

.result-actions{
    display:flex;
    justify-content:space-between;
    margin-top:25px;
}

.result-btn{
    height:56px;
    padding:0 24px;
    border-radius:16px;
    border:1px solid #ececff;
    background:#fff;
    font-weight:600;
    cursor:pointer;
}
.result-box #humanizedResultText {
    width: 100%; 
    height: 100%;      
    white-space: inherit; 
    font-size: 16px; 
    color: #374151; 
    font-family: 'Inter', sans-serif;
    padding: 0px;
    display:none;
}
.result-box #humanizedResultText textarea {
    width: 100%;
    height: inherit;
    overflow-y: auto;
}

.result-box #humanizedResultBox{
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    text-align: center; 
    height: 100%; 
    width: 100%;
}
.footer{
    margin-top:80px;
    padding:60px 0 30px;
    background:#fff;
    border-top:1px solid #ececff;
}

.footer-top{
    display:flex;
    justify-content:space-between;
    gap:50px;
}

.footer-brand{
    max-width:400px;
}

.footer-brand p{
    margin-top:20px;
    line-height:1.8;
    color:#6b7280;
}

.footer-links{
    display:flex;
    gap:80px;
}

.footer-column{
    display:flex;
    flex-direction:column;
}

.footer-column h4{
    margin-bottom:20px;
}

.footer-column a{
    margin-bottom:12px;
    color:#6b7280;
}

.footer-bottom{
    margin-top:50px;
    padding-top:25px;
    border-top:1px solid #ececff;
    text-align:center;
    color:#6b7280;
}

/* =========================
RESPONSIVE
========================= */

@media(max-width:1200px){

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

    .tool-wrapper{
        grid-template-columns:1fr;
    }

    .center-action{
        display:none;
    }

}

@media(max-width:768px){

    .hero-left h1{
        font-size:44px;
    }

    .hero-left p{
        font-size:18px;
    }

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

    .section-title{
        flex-direction:column;
        align-items:flex-start;
        gap:15px;
    }

}

/* GUEST CARD */

.guest-card{
    text-align:center;
}

.guest-lock{
    width:80px;
    height:80px;
    border-radius:50%;
    background:#f5f3ff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:34px;
    margin:auto auto 25px;
}

.guest-card p{
    color:#6b7280;
    line-height:1.8;
    margin:20px 0;
}

.guest-note{
    margin-top:18px;
    color:#6b7280;
}

/* LOGIN BUTTON */

.login-btn{
    height:52px;
    padding:0 24px;
    border-radius:16px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg,#5B5CF0,#7B61FF);
    color:#fff;
    font-weight:600;
}

/* WORD LIMIT */

.word-limit{
    color:#6b7280;
    font-weight:600;
}

.word-limit span{
    color:#5B5CF0;
    font-weight:700;
}

.limit-note{
    margin-top:15px;
    color:#6b7280;
    font-size:14px;
}

/* LOGIN REQUIRED */

.login-required-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
}
/* =========================
    HERO
========================= */

.pricing-section{
    padding:80px 0 100px;
}

.pricing-top-badge{
    width:max-content;
    margin:auto;
    background:#f3e8ff;
    color:#7c3aed;
    padding:12px 24px;
    border-radius:50px;
    font-weight:600;
    margin-bottom:30px;
}

.main-heading{
    font-size:78px;
    line-height:1.1;
    text-align:center;
    font-weight:800;
    margin-bottom:25px;
}

.main-heading span{
    color:#8b5cf6;
}

.sub-heading{
    max-width:760px;
    margin:auto;
    text-align:center;
    color:#6b7280;
    font-size:22px;
    line-height:1.7;
}

/* Toggle */

.pricing-toggle{
    margin:50px auto 70px;
    width:max-content;
    display:flex;
    align-items:center;
    gap:20px;
    background:#fff;
    border:1px solid #ececec;
    padding:18px 28px;
    border-radius:100px;
    box-shadow:0 10px 30px rgba(0,0,0,.05);
}

.switch{
    position:relative;
    width:70px;
    height:36px;
}

.switch input{
    display:none;
}

.slider{
    position:absolute;
    inset:0;
    background:#e1dfe3;
    border-radius:50px;
    cursor:pointer;
}

.slider::before{
    content:"";
    position:absolute;
    width:28px;
    height:28px;
    left:4px;
    top:4px;
    border-radius:50%;
    background:#7c3aed;
    transition:.3s;
}

input:checked + .slider::before{
    transform:translateX(34px);
}
input:checked + .slider { background-color: #e9d5ff; }

.yearly small{
    background:#ede9fe;
    color:#7c3aed;
    padding:4px 10px;
    border-radius:20px;
    margin-left:10px;
}

/* =========================
    PRICING GRID
========================= */

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

.pricing-card{
    background:#fff;
    border:1px solid #ededed;
    border-radius:30px;
    padding:40px 35px;
    position:relative;
    transition:.3s;
    box-shadow:0 10px 40px rgba(0,0,0,.04);
}

.pricing-card:hover{
    transform:translateY(-10px);
}

.featured{
    border:2px solid #8b5cf6;
    box-shadow:0 20px 60px rgba(139,92,246,.2);
}

.popular-badge{
    position:absolute;
    top:-18px;
    left:50%;
    transform:translateX(-50%);
    background:linear-gradient(135deg,#7c3aed,#9333ea);
    color:#fff;
    padding:10px 20px;
    border-radius:50px;
    font-size:14px;
    font-weight:600;
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}
.plan-icon{
    width:70px;
    height:70px;
    background:#f3e8ff;
    border-radius:20px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:32px;
    margin-bottom:30px;
}
.save-badge {
    background: #f5f3ff;
    color: #8b5cf6;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    visibility: hidden;
}
.yearly-on .save-badge { visibility: visible; }

.pricing-card h3{
    font-size:38px;
    margin-bottom:20px;
}

.price{
    font-size:56px;
    font-weight:800;
    margin-bottom:25px;
}

/* .price span {
    font-size:18px;
    color:#777;
    font-weight:500;
} */

.plan-desc{
    color:#6b7280;
    line-height:1.8;
    margin-bottom:30px;
}

.price-symbol { font-size: 2.5rem; font-weight: 700; margin-top: -10px; }
.price-val { font-size: 2.5rem; font-weight: 800; font-family: 'Outfit', sans-serif; }

.price-meta {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
}

.features{
    list-style:none;
    margin-bottom:40px;
}

.features li{
    margin-bottom:18px;
    color:#374151;
}

.card-btn{
    width:100%;
    display:inline-block;
    text-align:center;
    background:linear-gradient(135deg,#7c3aed,#9333ea);
    color:#fff;
    padding:18px;
    border-radius:16px;
    text-decoration:none;
    font-weight:600;
    box-shadow:0 10px 25px rgba(124,58,237,.2);
}

.outline-btn{
    background:#fff;
    border:2px solid #8b5cf6;
    color:#7c3aed;
    box-shadow:none;
}

/* =========================
    TRUST SECTION
========================= */

.trust-section{
    margin-top:80px;
    background:#fff;
    border:1px solid #eee;
    border-radius:30px;
    padding:40px;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
    box-shadow:0 10px 40px rgba(0,0,0,.04);
}

.trust-card{
    text-align:center;
}

.trust-icon{
    width:70px;
    height:70px;
    margin:auto;
    margin-bottom:20px;
    border-radius:50%;
    background:#f3e8ff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:30px;
}

.trust-card h4{
    font-size:24px;
    margin-bottom:14px;
}

.trust-card p{
    color:#6b7280;
    line-height:1.7;
}

.bottom-note{
    text-align:center;
    margin-top:35px;
    color:#777;
    font-size:16px;
}

/* =========================
    RESPONSIVE
========================= */

@media(max-width:1200px){

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

    .main-heading{
        font-size:60px;
    }

}

@media(max-width:768px){

    .nav-menu{
        display:none;
    }

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

    .trust-section{
        grid-template-columns:1fr;
    }

    .main-heading{
        font-size:44px;
    }

    .sub-heading{
        font-size:18px;
    }

}