
/* HERO */

.hero{
    position:relative;
    text-align:center;
    padding:90px 20px 60px;
}

.hero-glow{
    position:absolute;
    width:420px;
    height:420px;
    background:#3b82f6;
    filter:blur(140px);
    opacity:.18;
    top:-120px;
    left:50%;
    transform:translateX(-50%);
    z-index:0;
}

.hero h1{
    position:relative;
    z-index:1;
    font-size:58px;
    font-weight:800;
    margin-bottom:18px;
    letter-spacing:-1px;
}

.hero h1 span{
    background:linear-gradient(135deg,#3b82f6,#8b5cf6);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

.hero p{
    position:relative;
    z-index:1;
    max-width:780px;
    margin:auto;
    color:black;
    font-size:18px;
    line-height:1.7;
}

/* CONTAINER */

.calculator-container{
    max-width:1100px;
    margin:auto;
    padding:20px;
}

.glass-card{
    background:rgba(255,255,255,0.08);
    backdrop-filter:blur(18px);
    border:1px solid rgba(255,255,255,0.12);
    box-shadow:0 8px 32px rgba(0,0,0,0.25);
    border-radius:28px;
}

.calculator-card{
    padding:32px;
}

/* TABS */

.top-tabs{
    display:flex;
    gap:14px;
    flex-wrap:wrap;
    margin-bottom:30px;
}

.tab-btn{
    border:none;
    padding:14px 22px;
    border-radius:14px;
    background:rgba(255,255,255,0.08);
    color:#cbd5e1;
    font-size:15px;
    font-weight:600;
    cursor:pointer;
}

.tab-btn.active{
    background:linear-gradient(135deg,#3b82f6,#6366f1);
    color:#fff;
    box-shadow:0 10px 24px rgba(59,130,246,.25);
}

/* GRID */

.input-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:22px;
    margin-bottom:28px;
}

.field label{
    display:block;
    margin-bottom:10px;
    font-size:14px;
    color: #5a5a5a;
}

.field input,
.field select{
    width:100%;
    height:56px;
    border-radius:16px;
    border:1px solid rgba(255,255,255,0.08);
    background:rgba(255,255,255,0.06);
    color: #5a5a5a;
    padding:0 18px;
    outline:none;
    font-size:15px;
}

.field input::placeholder{
    color:#94a3b8;
}

.field input:focus,
.field select:focus{
    border-color:#3b82f6;
    box-shadow:0 0 0 4px rgba(59,130,246,.15);
}

/* PERCENT */

.percent-wrap{
    display:flex;
    align-items:center;
    gap:12px;
}

.percent-wrap span{
    font-size:18px;
    font-weight:700;
    color:#cbd5e1;
}

/* ADJUSTMENT CARD */

.adjustment-card{
    margin-top:10px;
    padding:24px;
    border-radius:24px;
    background:rgba(255,255,255,0.05);
    border:1px solid rgba(255,255,255,0.08);
}

.adjustment-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    margin-bottom:24px;
}

.adjustment-top h3{
    font-size:22px;
}

/* TOGGLE */

.switch{
    position:relative;
    width:60px;
    height:32px;
}

.switch input{
    opacity:0;
    width:0;
    height:0;
}

.slider{
    position:absolute;
    cursor:pointer;
    top:0;
    left:0;
    right:0;
    bottom:0;
    background:#475569;
    transition:.3s;
    border-radius:50px;
}

.slider:before{
    position:absolute;
    content:"";
    height:24px;
    width:24px;
    left:4px;
    bottom:4px;
    background:white;
    transition:.3s;
    border-radius:50%;
}

.switch input:checked + .slider{
    background:#10b981;
}

.switch input:checked + .slider:before{
    transform:translateX(28px);
}

/* ADJUSTMENT GRID */

.adjustment-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:22px;
}

/* BUTTON */

.calculate-btn{
    width:100%;
    margin-top:28px;
    height:58px;
    border:none;
    border-radius:18px;
    background:linear-gradient(135deg,#3b82f6,#6366f1);
    color:#fff;
    font-size:17px;
    font-weight:700;
    cursor:pointer;
    transition:.25s ease;
    box-shadow:0 10px 24px rgba(59,130,246,.25);
}

.calculate-btn:hover{
    transform:translateY(-2px);
}

/* RESULT */

.result-box{
    margin-top:28px;
    padding:28px;
    border-radius:24px;
    background:rgba(255,255,255,0.05);
    border:1px solid rgba(255,255,255,0.08);
}

.result-main{
    font-size:34px;
    font-weight:800;
    margin-bottom:12px;
}

.result-sub{
    color: #5a5a5a;
    margin-bottom:10px;
    line-height:1.7;
}

.highlight{
    color:#60a5fa;
    font-weight:700;
}

/* MOBILE */

@media(max-width:768px){

    .hero h1{
        font-size:38px;
    }

    .input-grid,
    .adjustment-grid{
        grid-template-columns:1fr;
    }

    .calculator-card{
        padding:22px;
    }

    .result-main{
        font-size:28px;
    }

    .adjustment-top{
        flex-direction:column;
        align-items:flex-start;
    }
}