/* assets/css/pages/desi-tool.css */

:root {
    --desi-primary: #0B1D45;
    --desi-accent: #3B82F6;
    --desi-bg: #F8FAFC;
    --desi-text: #1E293B;
    --desi-muted: #64748B;
    --desi-card-bg: rgba(255, 255, 255, 0.9);
    --desi-border: #E2E8F0;
}

body {
    background-color: var(--desi-bg);
}

.desi-hero {
    background: radial-gradient(circle at top, #eff6ff 0%, var(--desi-bg) 70%);
    padding: 150px 0 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.desi-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%233b82f6' fill-opacity='0.03' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
    z-index: 1;
}

.desi-hero .container {
    position: relative;
    z-index: 2;
}

.desi-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--desi-primary);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.desi-hero p {
    font-size: 1.15rem;
    color: var(--desi-text);
}

.badge-soft-primary {
    background-color: #eff6ff;
    color: var(--desi-accent);
    border: 1px solid #bfdbfe;
    font-weight: 600;
}

/* CARD */
.desi-card-wrapper {
    margin-top: -60px;
    position: relative;
    z-index: 10;
    padding: 0 15px;
    max-width: 1000px;
    margin-inline: auto;
}

.desi-card {
    background: var(--desi-card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    border: 1px solid var(--desi-border);
    display: flex;
    overflow: hidden;
}

/* INPUT SECTION */
.desi-form {
    flex: 1.2;
    padding: 40px;
}

.input-label {
    font-weight: 700;
    color: var(--desi-text);
    margin-bottom: 8px;
    display: block;
    font-size: 0.9rem;
}

.desi-input {
    width: 100%;
    height: 54px;
    padding: 10px 16px;
    font-size: 1.1rem;
    font-weight: 600;
    border: 1px solid var(--desi-border);
    border-radius: 12px;
    background: #fff;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.desi-input:focus {
    outline: none;
    border-color: var(--desi-accent);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* VISUAL SECTION */
.desi-visual {
    flex: 0.8;
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    border-left: 1px solid var(--desi-border);
}

.result-badge {
    background: #fff;
    padding: 24px 32px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--desi-border);
    min-width: 220px;
    margin-top: 20px;
}

.result-val {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--desi-primary);
    display: block;
    line-height: 1;
    margin: 8px 0;
}

.result-label {
    font-size: 0.85rem;
    color: var(--desi-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* BOX SCENE */
.box-scene {
    width: 150px;
    height: 150px;
    perspective: 800px;
    margin-bottom: 20px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.box {
    width: 100px;
    height: 100px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(-20deg) rotateY(45deg);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin: 25px auto;
}

.box__face {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.9);
}

.box__face--front {
    background: linear-gradient(to bottom right, #3B82F6, #2563EB);
    transform: rotateY(0deg) translateZ(50px);
    width: 100px;
    height: 100px;
}

.box__face--back {
    background: linear-gradient(to bottom right, #2563EB, #1D4ED8);
    transform: rotateY(180deg) translateZ(50px);
    width: 100px;
    height: 100px;
}

.box__face--right {
    background: linear-gradient(to bottom right, #60A5FA, #3B82F6);
    transform: rotateY(90deg) translateZ(50px);
    width: 100px;
    height: 100px;
}

.box__face--left {
    background: linear-gradient(to bottom right, #2563EB, #1E40AF);
    transform: rotateY(-90deg) translateZ(50px);
    width: 100px;
    height: 100px;
}

.box__face--top {
    background: linear-gradient(to bottom right, #93C5FD, #60A5FA);
    transform: rotateX(90deg) translateZ(50px);
    width: 100px;
    height: 100px;
}

.box__face--bottom {
    background: linear-gradient(to bottom right, #1E40AF, #1E3A8A);
    transform: rotateX(-90deg) translateZ(50px);
    width: 100px;
    height: 100px;
}

/* PROMO BANNER */
.promo-banner {
    background: linear-gradient(135deg, var(--desi-primary) 0%, #172554 100%);
    border-radius: 24px;
    padding: 48px;
    color: #fff;
    margin: 60px auto;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 20px 40px -10px rgba(11, 29, 69, 0.2);
    max-width: 1000px;
}

.promo-banner::after {
    content: '';
    position: absolute;
    right: -50px;
    top: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.promo-content {
    max-width: 60%;
    position: relative;
    z-index: 2;
}

.promo-content h3 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.promo-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.promo-btn {
    background: #fff;
    color: var(--desi-primary);
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    color: var(--desi-accent);
}

/* SEO CONTENT */
.seo-section {
    padding: 60px 0;
    background: #fff;
    border-top: 1px solid var(--desi-border);
}

.content-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    border: 1px solid var(--desi-border);
    margin-bottom: 30px;
}

.content-card h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--desi-primary);
    margin-bottom: 20px;
}

.content-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--desi-text);
    margin: 30px 0 15px;
}

.content-card p {
    color: var(--desi-muted);
    line-height: 1.8;
    margin-bottom: 15px;
}

.content-card ul {
    color: var(--desi-muted);
    line-height: 1.8;
    margin-bottom: 15px;
    padding-left: 20px;
}

.content-card ul li {
    margin-bottom: 8px;
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .desi-card {
        flex-direction: column-reverse;
    }

    .desi-visual {
        padding: 40px 20px;
        border-left: none;
        border-bottom: 1px solid var(--desi-border);
    }

    .promo-banner {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
        margin: 40px 15px;
    }

    .promo-content {
        max-width: 100%;
        margin-bottom: 24px;
    }

    .promo-content h3 {
        font-size: 1.7rem;
    }

    .desi-hero {
        padding: 120px 0 60px 0;
    }

    .desi-hero h1 {
        font-size: 2.25rem;
    }
}

@media (max-width: 576px) {
    .desi-form {
        padding: 24px 16px;
    }

    .content-card {
        padding: 24px 16px;
    }

    .promo-banner {
        padding: 30px 15px;
        margin: 30px 10px;
    }

    .promo-content h3 {
        font-size: 1.5rem;
    }

    .promo-content p {
        font-size: 0.95rem;
    }

    .promo-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }
}