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

.shape-hero {
    background:
        radial-gradient(
            circle at 86% 18%,
            rgba(124, 58, 237, 0.10),
            transparent 31%
        ),
        radial-gradient(
            circle at 12% 88%,
            rgba(37, 99, 235, 0.08),
            transparent 28%
        ),
        linear-gradient(
            180deg,
            #f8fbff,
            #ffffff
        );
}


.shape-hero-card {
    min-height: 420px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    padding: 38px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #7c3aed
        );

    border-radius:
        var(--radius-extra-large);

    box-shadow:
        var(--shadow-large);
}


.shape-hero-label {
    margin-bottom: 35px;

    color:
        rgba(255, 255, 255, 0.72);

    font-size: 0.72rem;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.09em;
}


.shape-hero-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 110px);

    align-items: center;
    justify-items: center;

    gap: 25px;

    margin-bottom: 30px;
}


.hero-circle {
    width: 82px;
    height: 82px;

    background: #ffffff;

    border-radius: 50%;
}


.hero-triangle {
    width: 0;
    height: 0;

    border-left: 46px solid transparent;
    border-right: 46px solid transparent;
    border-bottom: 82px solid #ffffff;
}


.hero-square {
    width: 82px;
    height: 82px;

    background: #ffffff;

    border-radius: 8px;
}


.hero-rectangle {
    width: 105px;
    height: 68px;

    background: #ffffff;

    border-radius: 8px;
}


.shape-hero-card p {
    margin-bottom: 0;

    color:
        rgba(255, 255, 255, 0.76);

    font-size: 0.82rem;
}



/* ======================================================
   INTRO
====================================================== */

.shape-intro-visual {
    min-height: 350px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    padding: 35px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #0f766e,
            #059669
        );

    text-align: center;
}


.clock-object {
    position: relative;

    width: 130px;
    height: 130px;

    margin-bottom: 22px;

    background:
        rgba(255, 255, 255, 0.08);

    border:
        8px solid #ffffff;

    border-radius: 50%;
}


.clock-object::after {
    content: "";

    position: absolute;

    left: 50%;
    top: 50%;

    width: 10px;
    height: 10px;

    background: #ffffff;

    border-radius: 50%;

    transform:
        translate(-50%, -50%);
}


.clock-hand-one {
    position: absolute;

    left: 50%;
    bottom: 50%;

    width: 4px;
    height: 38px;

    background: #ffffff;

    transform-origin:
        bottom center;

    transform:
        rotate(30deg);
}


.clock-hand-two {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 35px;
    height: 4px;

    background: #ffffff;

    transform-origin:
        left center;

    transform:
        rotate(20deg);
}


.shape-intro-visual strong {
    margin-bottom: 5px;

    font-size: 1.25rem;
}


.shape-intro-visual > span {
    max-width: 260px;

    color:
        rgba(255, 255, 255, 0.75);

    font-size: 0.76rem;
}



/* ======================================================
   CONCEPT
====================================================== */

.shape-concept-section {
    background:
        var(--color-background);
}


.shape-concept-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 20px;
}


.shape-concept-card {
    padding: 24px;

    background: #ffffff;

    border:
        1px solid
        var(--color-border);

    border-radius:
        var(--radius-large);

    box-shadow:
        var(--shadow-small);
}


.shape-number {
    display: block;

    margin-bottom: 20px;

    color:
        var(--color-primary);

    font-size: 0.68rem;
    font-weight: 850;
}


.shape-display {
    min-height: 155px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 24px;

    background:
        var(--color-primary-light);

    border-radius:
        var(--radius-medium);
}


.shape-circle,
.selector-circle,
.preview-circle,
.practice-circle {
    width: 78px;
    height: 78px;

    background:
        var(--color-primary);

    border-radius: 50%;
}


.shape-triangle,
.selector-triangle,
.preview-triangle,
.practice-triangle {
    width: 0;
    height: 0;

    border-left: 44px solid transparent;
    border-right: 44px solid transparent;
    border-bottom: 78px solid var(--color-primary);
}


.shape-square,
.selector-square,
.preview-square {
    width: 78px;
    height: 78px;

    background:
        var(--color-primary);

    border-radius: 7px;
}


.shape-rectangle,
.selector-rectangle,
.preview-rectangle,
.practice-rectangle {
    width: 105px;
    height: 68px;

    background:
        var(--color-primary);

    border-radius: 7px;
}


.shape-concept-card h3 {
    margin-bottom: 10px;

    font-size: 1.05rem;
}


.shape-concept-card p {
    margin-bottom: 0;

    color:
        var(--color-text-muted);

    font-size: 0.82rem;
}



/* ======================================================
   COMPARISON
====================================================== */

.shape-comparison-section {
    background:
        var(--color-background-soft);
}


.shape-comparison-wrapper {
    display: grid;

    grid-template-columns:
        minmax(0, 0.75fr)
        minmax(500px, 1.25fr);

    align-items: center;

    gap: 70px;
}


.shape-comparison-content h2 {
    margin-bottom: 18px;

    font-size:
        clamp(
            2.2rem,
            4vw,
            3.5rem
        );

    letter-spacing:
        -0.04em;
}


.shape-comparison-content p {
    color:
        var(--color-text-muted);
}


.shape-comparison-table {
    overflow: hidden;

    background: #ffffff;

    border:
        1px solid
        var(--color-border);

    border-radius:
        var(--radius-large);

    box-shadow:
        var(--shadow-small);
}


.comparison-row {
    display: grid;

    grid-template-columns:
        1.5fr 1fr 1fr;

    gap: 12px;

    padding: 17px 20px;

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

    font-size: 0.8rem;
}


.comparison-row:last-child {
    border-bottom: 0;
}


.comparison-heading {
    color: #ffffff;

    background:
        var(--color-primary);

    font-weight: 800;
}


.comparison-row strong {
    color:
        var(--color-text-secondary);
}


.comparison-row:not(.comparison-heading)
span {
    color:
        var(--color-text-muted);
}



/* ======================================================
   INTERACTIVE
====================================================== */

.shape-interactive-section {
    color: #ffffff;

    background:
        #0f172a;
}


.shape-interactive-section
.section-eyebrow {
    color: #93c5fd;
}


.shape-interactive-section
.section-header p {
    color: #94a3b8;
}


.shape-explorer {
    max-width: 950px;

    display: grid;

    grid-template-columns:
        300px 1fr;

    gap: 20px;

    margin-inline: auto;
}


.shape-selector {
    display: grid;

    gap: 10px;
}


.shape-select-button {
    min-height: 95px;

    display: grid;

    grid-template-columns:
        70px 1fr;

    align-items: center;

    gap: 15px;

    padding: 15px;

    color:
        var(--color-text-secondary);

    background: #ffffff;

    border:
        2px solid transparent;

    border-radius:
        var(--radius-medium);

    text-align: left;

    transition:
        transform var(--transition-fast),
        border-color var(--transition-fast);
}


.shape-select-button:hover {
    transform:
        translateX(4px);
}


.shape-select-button.active {
    border-color:
        #60a5fa;
}


.shape-select-button span {
    font-weight: 800;
}


.selector-circle {
    width: 45px;
    height: 45px;
}


.selector-triangle {
    border-left-width: 25px;
    border-right-width: 25px;
    border-bottom-width: 45px;
}


.selector-square {
    width: 45px;
    height: 45px;
}


.selector-rectangle {
    width: 58px;
    height: 38px;
}



/* EXPLORER DISPLAY */

.shape-explorer-display {
    min-height: 410px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    padding: 35px;

    color:
        var(--color-text);

    background: #ffffff;

    border-radius:
        var(--radius-extra-large);

    text-align: center;
}


.shape-explorer-label {
    margin-bottom: 25px;

    color:
        var(--color-text-muted);

    font-size: 0.68rem;
    font-weight: 850;

    text-transform: uppercase;
    letter-spacing: 0.08em;
}


.shape-large-preview {
    min-height: 130px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 22px;
}


.preview-circle {
    width: 105px;
    height: 105px;
}


.preview-triangle {
    border-left-width: 58px;
    border-right-width: 58px;
    border-bottom-width: 105px;
}


.preview-square {
    width: 105px;
    height: 105px;
}


.preview-rectangle {
    width: 145px;
    height: 92px;
}


.shape-explorer-display h3 {
    margin-bottom: 10px;

    font-size: 1.4rem;
}


.shape-explorer-display > p {
    max-width: 480px;

    margin-bottom: 25px;

    color:
        var(--color-text-muted);

    font-size: 0.84rem;
}


.shape-properties {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 10px;
}


.shape-properties > div {
    padding: 14px;

    background:
        var(--color-background-soft);

    border:
        1px solid
        var(--color-border);

    border-radius: 10px;
}


.shape-properties span,
.shape-properties strong {
    display: block;
}


.shape-properties span {
    margin-bottom: 4px;

    color:
        var(--color-text-muted);

    font-size: 0.62rem;
}


.shape-properties strong {
    font-size: 0.76rem;
}



/* ======================================================
   OBJECTS
====================================================== */

.shape-object-section {
    background:
        var(--color-background);
}


.shape-object-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 20px;
}


.shape-object-card {
    padding: 25px;

    background: #ffffff;

    border:
        1px solid
        var(--color-border);

    border-radius:
        var(--radius-large);

    box-shadow:
        var(--shadow-small);

    text-align: center;
}


.shape-object-card > div {
    min-height: 135px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 20px;
}


.object-clock {
    position: relative;

    width: 90px;
    height: 90px;

    margin-inline: auto;

    border:
        7px solid
        var(--color-primary);

    border-radius: 50%;
}


.object-clock span {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 32px;
    height: 4px;

    background:
        var(--color-primary);

    transform-origin:
        left center;

    transform:
        rotate(-45deg);
}


.object-roof {
    width: 0;
    height: 0;

    margin-inline: auto;

    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid var(--color-primary);
}


.object-tile {
    width: 95px;
    height: 95px;

    margin-inline: auto;

    background:
        var(--color-primary);

    border-radius: 6px;
}


.object-book {
    width: 120px;
    height: 82px;

    margin-inline: auto;

    background:
        var(--color-primary);

    border-radius: 5px;

    box-shadow:
        inset 8px 0
        rgba(255, 255, 255, 0.22);
}


.shape-object-card h3 {
    margin-bottom: 7px;

    font-size: 1rem;
}


.shape-object-card p {
    margin-bottom: 0;

    color:
        var(--color-text-muted);

    font-size: 0.8rem;
}



/* ======================================================
   PRACTICE SHAPES
====================================================== */

.practice-shape-display {
    min-height: 120px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 22px;

    background:
        var(--color-background-soft);

    border-radius:
        var(--radius-medium);
}


.practice-circle {
    width: 70px;
    height: 70px;
}


.practice-triangle {
    border-left-width: 40px;
    border-right-width: 40px;
    border-bottom-width: 70px;
}


.practice-rectangle {
    width: 105px;
    height: 65px;
}



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

@media (max-width: 1024px) {

    .shape-concept-grid,
    .shape-object-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .shape-comparison-wrapper {
        grid-template-columns: 1fr;

        gap: 45px;
    }

}



@media (max-width: 860px) {

    .shape-explorer {
        grid-template-columns: 1fr;
    }


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

}



@media (max-width: 600px) {

    .shape-hero-card {
        min-height: 360px;

        padding: 25px;
    }


    .shape-hero-grid {
        grid-template-columns:
            repeat(2, 90px);

        gap: 18px;
    }


    .shape-concept-grid,
    .shape-object-grid {
        grid-template-columns: 1fr;
    }


    .comparison-row {
        grid-template-columns:
            1.4fr 0.8fr 0.8fr;

        padding:
            14px 12px;

        font-size: 0.7rem;
    }


    .shape-selector {
        grid-template-columns: 1fr;
    }


    .shape-properties {
        grid-template-columns: 1fr;
    }


    .shape-explorer-display {
        padding:
            28px 20px;
    }

}