/* ==========================================================
   CLASSMIRROR — TOOLS V370 PREMIUM
   ========================================================== */

.cmt370{
    --ink:#121322;
    --muted:#6d7487;
    --line:#e6e8f1;
    --soft:#f7f8fc;

    --violet:#7054ef;
    --violet-dark:#211747;
    --blue:#478cf4;
    --green:#20a978;
    --amber:#e7a529;

    color:var(--ink);
    background:#fff;
}

.cmt370 *{
    box-sizing:border-box;
}

.cmt370-container{
    width:min(1180px,calc(100% - 38px));
    margin:0 auto;
}


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

.cmt370-hero{
    position:relative;
    overflow:hidden;

    padding:92px 0 88px;

    color:#fff;

    background:
        radial-gradient(
            circle at 10% 0%,
            rgba(117,83,244,.34),
            transparent 31%
        ),
        radial-gradient(
            circle at 90% 5%,
            rgba(59,136,246,.27),
            transparent 27%
        ),
        linear-gradient(
            145deg,
            #0f0c1c,
            #18112e 52%,
            #24154f
        );
}

.cmt370-hero:before{
    content:"";

    position:absolute;
    inset:0;

    opacity:.24;

    background-image:
        linear-gradient(
            rgba(255,255,255,.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.035) 1px,
            transparent 1px
        );

    background-size:44px 44px;
}

.cmt370-hero-orb{
    position:absolute;

    width:480px;
    height:480px;

    right:-220px;
    bottom:-220px;

    border:1px solid rgba(255,255,255,.07);
    border-radius:50%;

    box-shadow:
        0 0 0 65px rgba(255,255,255,.017),
        0 0 0 130px rgba(255,255,255,.010);
}

.cmt370-hero-grid{
    position:relative;
    z-index:2;

    display:grid;
    grid-template-columns:minmax(0,1.06fr) minmax(390px,.94fr);

    gap:65px;
    align-items:center;
}

.cmt370-badge{
    display:inline-flex;
    align-items:center;
    gap:8px;

    padding:7px 11px;

    border:1px solid rgba(255,255,255,.12);
    border-radius:999px;

    color:#ddd5ff;
    background:rgba(255,255,255,.055);

    font-size:10px;
    font-weight:950;
    letter-spacing:.06em;
    text-transform:uppercase;
}

.cmt370-badge-dot{
    width:7px;
    height:7px;

    border-radius:50%;

    background:#7ff0c0;

    box-shadow:
        0 0 17px
        rgba(80,240,180,.6);
}

.cmt370-hero h1{
    max-width:820px;

    margin:20px 0;

    font-size:clamp(44px,5.7vw,74px);
    line-height:.99;
    letter-spacing:-.052em;
}

.cmt370-gradient{
    background:
        linear-gradient(
            90deg,
            #cabdff,
            #82b8ff
        );

    -webkit-background-clip:text;
    background-clip:text;

    -webkit-text-fill-color:transparent;
}

.cmt370-lead{
    max-width:760px;

    margin:0;

    color:rgba(255,255,255,.72);

    font-size:18px;
    line-height:1.78;
}

.cmt370-actions{
    display:flex;
    flex-wrap:wrap;
    gap:10px;

    margin-top:29px;
}

.cmt370-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;

    min-height:49px;

    padding:0 19px;

    border:1px solid var(--violet);
    border-radius:13px;

    color:#fff;
    background:
        linear-gradient(
            135deg,
            #775aed,
            #5b42cb
        );

    font-weight:850;
    text-decoration:none;

    transition:
        transform .18s ease,
        box-shadow .18s ease;
}

.cmt370-btn:hover{
    transform:translateY(-1px);

    box-shadow:
        0 14px 32px
        rgba(102,73,223,.30);
}

.cmt370-btn.ghost{
    color:#fff;

    border-color:rgba(255,255,255,.15);

    background:rgba(255,255,255,.06);

    box-shadow:none;
}

.cmt370-trust{
    display:flex;
    flex-wrap:wrap;
    gap:8px;

    margin-top:23px;
}

.cmt370-trust span{
    padding:7px 9px;

    border:1px solid rgba(255,255,255,.09);
    border-radius:999px;

    color:rgba(255,255,255,.68);
    background:rgba(255,255,255,.035);

    font-size:10px;
    font-weight:850;
}


/* ==========================================================
   SMART WORKSPACE
   ========================================================== */

.cmt370-workspace{
    padding:18px;

    border:1px solid rgba(255,255,255,.11);
    border-radius:28px;

    background:
        linear-gradient(
            155deg,
            rgba(255,255,255,.105),
            rgba(255,255,255,.035)
        );

    box-shadow:
        0 30px 78px
        rgba(0,0,0,.32);

    backdrop-filter:blur(18px);
}

.cmt370-workspace-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:15px;

    margin-bottom:15px;
}

.cmt370-workspace-top strong{
    font-size:14px;
}

.cmt370-smart{
    padding:5px 8px;

    border-radius:999px;

    color:#9ef1ca;
    background:rgba(46,195,139,.12);

    font-size:9px;
    font-weight:950;
    text-transform:uppercase;
}

.cmt370-task{
    padding:15px;

    border:1px solid rgba(255,255,255,.08);
    border-radius:15px;

    background:rgba(255,255,255,.05);
}

.cmt370-task small{
    display:block;

    color:#9991b0;

    font-size:8px;
    font-weight:950;
    text-transform:uppercase;
}

.cmt370-task strong{
    display:block;

    margin-top:5px;

    color:#fff;

    font-size:13px;
    line-height:1.5;
}

.cmt370-workspace-arrow{
    display:grid;

    height:31px;

    place-items:center;

    color:#9d94bc;
}

.cmt370-active-tools{
    display:grid;
    grid-template-columns:1fr 1fr;

    gap:8px;
}

.cmt370-active-tool{
    padding:13px;

    border:1px solid rgba(255,255,255,.08);
    border-radius:13px;

    background:rgba(255,255,255,.045);
}

.cmt370-active-tool span{
    display:block;

    margin-bottom:6px;

    font-size:19px;
}

.cmt370-active-tool small{
    display:block;

    color:#9e96b5;

    font-size:8px;
    font-weight:900;
    text-transform:uppercase;
}

.cmt370-active-tool strong{
    display:block;

    margin-top:3px;

    color:#fff;

    font-size:11px;
}

.cmt370-hidden-note{
    margin-top:10px;
    padding:11px;

    border:1px dashed rgba(255,255,255,.10);
    border-radius:12px;

    color:#938ba5;

    font-size:9px;
    line-height:1.55;
}


/* ==========================================================
   COMMON
   ========================================================== */

.cmt370-section{
    padding:88px 0;
}

.cmt370-section.soft{
    background:var(--soft);

    border-top:1px solid #ececf3;
    border-bottom:1px solid #ececf3;
}

.cmt370-heading{
    max-width:850px;

    margin:0 auto 40px;

    text-align:center;
}

.cmt370-kicker{
    display:inline-flex;

    padding:7px 10px;

    border-radius:999px;

    color:#5c42c9;
    background:#eeeaff;

    font-size:10px;
    font-weight:950;
    letter-spacing:.05em;
    text-transform:uppercase;
}

.cmt370-heading h2{
    margin:14px 0 11px;

    font-size:clamp(32px,4.2vw,50px);
    line-height:1.06;
    letter-spacing:-.038em;
}

.cmt370-heading p{
    margin:0;

    color:var(--muted);

    line-height:1.75;
}


/* ==========================================================
   PRINCIPLE
   ========================================================== */

.cmt370-principles{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:15px;
}

.cmt370-principle{
    padding:25px;

    border:1px solid var(--line);
    border-radius:21px;

    background:#fff;
}

.cmt370-principle-icon{
    display:grid;

    width:44px;
    height:44px;

    place-items:center;

    margin-bottom:16px;

    border-radius:14px;

    color:#5d43cf;
    background:#eeeaff;

    font-size:20px;
}

.cmt370-principle h3{
    margin:0 0 8px;

    font-size:17px;
}

.cmt370-principle p{
    margin:0;

    color:var(--muted);

    font-size:13px;
    line-height:1.7;
}


/* ==========================================================
   TOOL GRID
   ========================================================== */

.cmt370-tools{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:14px;
}

.cmt370-tool{
    position:relative;

    display:flex;
    flex-direction:column;

    min-height:265px;

    padding:23px;

    border:1px solid var(--line);
    border-radius:21px;

    color:inherit;
    background:#fff;

    text-decoration:none;

    box-shadow:
        0 8px 28px
        rgba(27,25,60,.032);

    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}

.cmt370-tool:hover{
    transform:translateY(-2px);

    border-color:#d8d2f6;

    box-shadow:
        0 18px 44px
        rgba(61,45,135,.09);
}

.cmt370-tool.featured{
    color:#fff;

    border-color:#2b1d5f;

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(116,86,243,.36),
            transparent 34%
        ),
        linear-gradient(
            145deg,
            #17112a,
            #2a1a58
        );
}

.cmt370-tool-head{
    display:flex;
    justify-content:space-between;
    align-items:center;

    margin-bottom:18px;
}

.cmt370-tool-icon{
    display:grid;

    width:45px;
    height:45px;

    place-items:center;

    border-radius:14px;

    color:#5c42cb;
    background:#eeeaff;

    font-size:20px;
}

.cmt370-tool.featured .cmt370-tool-icon{
    color:#fff;
    background:rgba(255,255,255,.09);
}

.cmt370-number{
    color:#a0a5b2;

    font-size:9px;
    font-weight:950;
}

.cmt370-tool.featured .cmt370-number{
    color:#9389ad;
}

.cmt370-tool h3{
    margin:0 0 9px;

    font-size:17px;
}

.cmt370-tool p{
    margin:0;

    color:var(--muted);

    font-size:12px;
    line-height:1.68;
}

.cmt370-tool.featured p{
    color:rgba(255,255,255,.70);
}

.cmt370-chip{
    align-self:flex-start;

    margin-top:auto;
    padding:6px 8px;

    border-radius:999px;

    color:#6046cf;
    background:#f0edff;

    font-size:9px;
    font-weight:900;
}

.cmt370-tool.featured .cmt370-chip{
    color:#ddd6ff;
    background:rgba(255,255,255,.09);
}


/* ==========================================================
   MATERIAL
   ========================================================== */

.cmt370-material{
    display:grid;
    grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
    gap:22px;

    align-items:center;
}

.cmt370-material-copy{
    padding-right:20px;
}

.cmt370-material-copy h2{
    margin:15px 0 12px;

    font-size:clamp(31px,4vw,46px);
    line-height:1.07;
    letter-spacing:-.035em;
}

.cmt370-material-copy p{
    margin:0;

    color:var(--muted);

    line-height:1.75;
}

.cmt370-material-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
}

.cmt370-material-card{
    min-height:145px;

    padding:20px;

    border:1px solid var(--line);
    border-radius:18px;

    background:#fff;
}

.cmt370-material-card span{
    display:grid;

    width:39px;
    height:39px;

    place-items:center;

    margin-bottom:12px;

    border-radius:12px;

    color:#5d43ce;
    background:#eeeaff;

    font-size:17px;
}

.cmt370-material-card h3{
    margin:0 0 6px;

    font-size:14px;
}

.cmt370-material-card p{
    margin:0;

    color:#7c8292;

    font-size:10px;
    line-height:1.55;
}


/* ==========================================================
   MATH / EXPRESSION
   ========================================================== */

.cmt370-duo{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:17px;
}

.cmt370-panel{
    min-height:350px;

    padding:29px;

    border:1px solid var(--line);
    border-radius:24px;

    background:#fff;
}

.cmt370-panel.dark{
    color:#fff;

    border-color:#27194f;

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(103,79,227,.34),
            transparent 34%
        ),
        linear-gradient(
            145deg,
            #161126,
            #281a51
        );
}

.cmt370-panel-icon{
    display:grid;

    width:48px;
    height:48px;

    place-items:center;

    margin-bottom:19px;

    border-radius:15px;

    color:#6045d0;
    background:#eeeaff;

    font-size:22px;
}

.cmt370-panel.dark .cmt370-panel-icon{
    color:#fff;
    background:rgba(255,255,255,.09);
}

.cmt370-panel h2{
    margin:0 0 11px;

    font-size:28px;
    letter-spacing:-.025em;
}

.cmt370-panel p{
    margin:0;

    color:var(--muted);

    line-height:1.72;
}

.cmt370-panel.dark p{
    color:rgba(255,255,255,.70);
}

.cmt370-demo{
    display:flex;
    flex-wrap:wrap;
    gap:8px;

    margin-top:24px;
}

.cmt370-demo span{
    padding:9px 11px;

    border:1px solid var(--line);
    border-radius:10px;

    color:#5a42c4;
    background:#faf9ff;

    font-size:11px;
    font-weight:900;
}

.cmt370-panel.dark .cmt370-demo span{
    color:#ddd6ff;

    border-color:rgba(255,255,255,.09);

    background:rgba(255,255,255,.06);
}


/* ==========================================================
   MIRROR INTELLIGENCE
   ========================================================== */

.cmt370-mirror{
    overflow:hidden;

    border:1px solid var(--line);
    border-radius:27px;

    background:#fff;

    box-shadow:
        0 22px 60px
        rgba(36,27,88,.07);
}

.cmt370-mirror-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;

    padding:21px 24px;

    border-bottom:1px solid var(--line);

    background:
        linear-gradient(
            90deg,
            #faf9ff,
            #f7faff
        );
}

.cmt370-mirror-head strong{
    font-size:17px;
}

.cmt370-mirror-head a{
    color:#5d43ca;

    font-size:10px;
    font-weight:900;
    text-decoration:none;
}

.cmt370-mirror-flow{
    display:grid;
    grid-template-columns:repeat(4,1fr);

    padding:25px;
}

.cmt370-mirror-item{
    position:relative;

    padding:14px 18px;

    text-align:center;
}

.cmt370-mirror-item:not(:last-child):after{
    content:"→";

    position:absolute;
    right:-5px;
    top:34px;

    color:#b5afca;

    font-size:18px;
}

.cmt370-mirror-icon{
    display:grid;

    width:49px;
    height:49px;

    place-items:center;

    margin:0 auto 12px;

    border-radius:15px;

    color:#5f44d0;
    background:#eeeaff;

    font-size:20px;
}

.cmt370-mirror-item strong{
    display:block;

    font-size:13px;
}

.cmt370-mirror-item small{
    display:block;

    margin-top:5px;

    color:#858b9c;

    font-size:10px;
    line-height:1.5;
}


/* ==========================================================
   SOLO / FAMILY
   ========================================================== */

.cmt370-audience{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
}

.cmt370-audience-card{
    padding:30px;

    border:1px solid var(--line);
    border-radius:23px;

    background:#fff;
}

.cmt370-audience-card.family{
    color:#fff;

    border-color:#291a59;

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(74,142,246,.30),
            transparent 31%
        ),
        linear-gradient(
            145deg,
            #171128,
            #302061
        );
}

.cmt370-audience-tag{
    display:inline-flex;

    padding:6px 9px;

    border-radius:999px;

    color:#5c43cd;
    background:#eeeaff;

    font-size:9px;
    font-weight:950;
    text-transform:uppercase;
}

.cmt370-audience-card.family .cmt370-audience-tag{
    color:#ddd5ff;
    background:rgba(255,255,255,.09);
}

.cmt370-audience h3{
    margin:17px 0 9px;

    font-size:23px;
}

.cmt370-audience p{
    margin:0;

    color:var(--muted);

    line-height:1.72;
}

.cmt370-audience-card.family p{
    color:rgba(255,255,255,.72);
}

.cmt370-audience a{
    display:inline-flex;

    margin-top:19px;

    color:#5b41ca;

    font-size:11px;
    font-weight:900;
    text-decoration:none;
}

.cmt370-audience-card.family a{
    color:#ddd6ff;
}


/* ==========================================================
   FINAL
   ========================================================== */

.cmt370-final{
    padding:92px 0;

    background:#fff;
}

.cmt370-final-card{
    display:grid;
    grid-template-columns:1fr auto;

    align-items:center;
    gap:30px;

    padding:42px;

    border-radius:29px;

    color:#fff;

    background:
        radial-gradient(
            circle at 92% 0%,
            rgba(72,145,255,.31),
            transparent 29%
        ),
        linear-gradient(
            135deg,
            #1c123c,
            #5033ad
        );

    box-shadow:
        0 28px 70px
        rgba(42,26,98,.21);
}

.cmt370-final h2{
    max-width:760px;

    margin:0 0 10px;

    font-size:clamp(30px,4vw,45px);
    line-height:1.06;
    letter-spacing:-.035em;
}

.cmt370-final p{
    max-width:720px;

    margin:0;

    color:rgba(255,255,255,.74);

    line-height:1.72;
}

.cmt370-final .cmt370-btn{
    color:#34216e;

    border-color:#fff;

    background:#fff;
}


/* ==========================================================
   RTL
   ========================================================== */

html[dir="rtl"] .cmt370{
    text-align:right;
}


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

@media(max-width:1020px){

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

    .cmt370-workspace{
        max-width:760px;
    }

    .cmt370-tools{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .cmt370-principles{
        grid-template-columns:1fr;
    }
}


@media(max-width:820px){

    .cmt370-material,
    .cmt370-duo,
    .cmt370-audience{
        grid-template-columns:1fr;
    }

    .cmt370-material-copy{
        padding-right:0;
    }

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

    .cmt370-mirror-item:nth-child(2):after{
        display:none;
    }

    .cmt370-final-card{
        grid-template-columns:1fr;
    }
}


@media(max-width:640px){

    .cmt370-container{
        width:min(100% - 24px,1180px);
    }

    .cmt370-hero{
        padding:64px 0 58px;
    }

    .cmt370-section{
        padding:64px 0;
    }

    .cmt370-hero h1{
        font-size:42px;
    }

    .cmt370-tools,
    .cmt370-material-grid,
    .cmt370-active-tools,
    .cmt370-mirror-flow{
        grid-template-columns:1fr;
    }

    .cmt370-mirror-item:not(:last-child):after{
        content:"↓";

        right:auto;
        top:auto;
        bottom:-10px;
        left:50%;
    }

    .cmt370-actions{
        flex-direction:column;
    }

    .cmt370-btn{
        width:100%;
    }

    .cmt370-final-card{
        padding:29px;
    }
}


@media(prefers-reduced-motion:reduce){

    .cmt370-btn,
    .cmt370-tool{
        transition:none;
    }

    .cmt370-btn:hover,
    .cmt370-tool:hover{
        transform:none;
    }
}
