:root {

    --bg: #f7f8fc;

    --surface: #ffffff;

    --surface-soft: #f8faff;

    --text: #172033;

    --text-soft: #667085;

    --primary: #5b5ce2;

    --primary-dark: #4546bd;

    --purple: #7c5cff;

    --border: #e7eaf2;

    --shadow:
        0 20px 60px rgba(34, 40, 80, .08);

    --shadow-soft:
        0 10px 30px rgba(34, 40, 80, .06);

    --radius-xl: 28px;

    --radius-lg: 20px;

    --radius-md: 14px;

    --max-width: 1240px;

}


* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}


html {

    scroll-behavior: smooth;

}


body {

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: var(--bg);

    color: var(--text);

    min-height: 100vh;

}


a {

    color: inherit;

    text-decoration: none;

}


button {

    font: inherit;

}


/* =========================================================
   HEADER
========================================================= */

.site-header {

    position: sticky;

    top: 0;

    z-index: 100;

    background:
        rgba(255,255,255,.88);

    backdrop-filter:
        blur(18px);

    border-bottom:
        1px solid rgba(231,234,242,.8);

}


.header-inner {

    width: min(
        calc(100% - 40px),
        var(--max-width)
    );

    margin: auto;

    height: 76px;

    display: flex;

    align-items: center;

    justify-content: space-between;

}


.brand {

    display: flex;

    align-items: center;

    gap: 10px;

    font-weight: 800;

    font-size: 18px;

    letter-spacing: -.3px;

}


.brand-icon {

    width: 36px;

    height: 36px;

    display: grid;

    place-items: center;

    color: white;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--purple)
        );

    border-radius: 11px;

    box-shadow:
        0 8px 20px rgba(91,92,226,.22);

}


.desktop-nav {

    display: flex;

    gap: 34px;

}


.desktop-nav a {

    color: var(--text-soft);

    font-size: 14px;

    font-weight: 600;

    transition: .2s;

}


.desktop-nav a:hover {

    color: var(--primary);

}


.mobile-menu-button {

    display: none;

    width: 42px;

    height: 42px;

    border: 1px solid var(--border);

    background: white;

    border-radius: 12px;

    cursor: pointer;

}


.mobile-nav {

    display: none;

}


/* =========================================================
   HERO
========================================================= */

.hero-section {

    width: min(
        calc(100% - 40px),
        var(--max-width)
    );

    margin: auto;

    min-height: 570px;

    display: grid;

    grid-template-columns:
        1.05fr
        .95fr;

    align-items: center;

    gap: 50px;

    padding: 70px 0;

}


.hero-badge {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding: 8px 13px;

    border-radius: 999px;

    background: #ffffff;

    border: 1px solid var(--border);

    color: var(--primary);

    font-size: 12px;

    font-weight: 700;

    margin-bottom: 20px;

}


.pulse-dot {

    width: 7px;

    height: 7px;

    border-radius: 50%;

    background: #22c55e;

    box-shadow:
        0 0 0 5px rgba(34,197,94,.10);

}


.hero-content h1 {

    font-size:
        clamp(45px, 6vw, 76px);

    line-height: 1.03;

    letter-spacing: -4px;

    max-width: 720px;

}


.hero-content h1 span {

    display: block;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--purple)
        );

    -webkit-background-clip: text;

    background-clip: text;

    color: transparent;

}


.hero-content p {

    color: var(--text-soft);

    max-width: 600px;

    font-size: 17px;

    line-height: 1.75;

    margin-top: 25px;

}


.hero-actions {

    display: flex;

    gap: 12px;

    flex-wrap: wrap;

    margin-top: 32px;

}


.primary-button,
.secondary-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    min-height: 48px;

    padding: 0 21px;

    border-radius: 13px;

    font-weight: 700;

    font-size: 14px;

    transition: .25s;

}


.primary-button {

    color: white;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--purple)
        );

    box-shadow:
        0 12px 25px rgba(91,92,226,.22);

}


.primary-button:hover {

    transform: translateY(-2px);

}


.secondary-button {

    background: white;

    border: 1px solid var(--border);

    color: var(--text);

}


.secondary-button:hover {

    border-color: #cdd2e0;

    transform: translateY(-2px);

}


/* =========================================================
   HERO VISUAL
========================================================= */

.hero-visual {

    position: relative;

    min-height: 430px;

    display: grid;

    place-items: center;

}


.hero-card {

    width: min(390px, 85%);

    height: 390px;

    position: relative;

    z-index: 2;

    background:
        rgba(255,255,255,.78);

    backdrop-filter: blur(18px);

    border:
        1px solid rgba(255,255,255,.9);

    border-radius: 30px;

    box-shadow:
        0 35px 90px rgba(61,69,130,.14);

    overflow: hidden;

    transform:
        rotate(2deg);

}


.hero-card-top {

    height: 54px;

    display: flex;

    align-items: center;

    gap: 7px;

    padding: 0 18px;

    border-bottom:
        1px solid var(--border);

}


.mini-dot {

    width: 8px;

    height: 8px;

    border-radius: 50%;

    background: #d8dbea;

}


.hero-cube {

    width: 150px;

    height: 150px;

    position: absolute;

    top: 100px;

    left: 50%;

    transform:
        translateX(-50%)
        rotateX(-20deg)
        rotateY(35deg);

    transform-style: preserve-3d;

    animation:
        floatCube 5s ease-in-out infinite;

}


@keyframes floatCube {

    0%,
    100% {
        transform:
            translateX(-50%)
            rotateX(-20deg)
            rotateY(35deg)
            translateY(0);
    }

    50% {
        transform:
            translateX(-50%)
            rotateX(-20deg)
            rotateY(35deg)
            translateY(-14px);
    }

}


.cube-face {

    position: absolute;

    width: 150px;

    height: 150px;

    display: grid;

    place-items: center;

    border:
        1px solid rgba(91,92,226,.16);

    background:
        linear-gradient(
            135deg,
            rgba(91,92,226,.12),
            rgba(124,92,255,.06)
        );

    color: var(--primary);

    font-size: 25px;

    font-weight: 900;

    backface-visibility: hidden;

}


.cube-front {
    transform: translateZ(75px);
}

.cube-back {
    transform: rotateY(180deg) translateZ(75px);
}

.cube-left {
    transform: rotateY(-90deg) translateZ(75px);
}

.cube-right {
    transform: rotateY(90deg) translateZ(75px);
}

.cube-top {
    transform: rotateX(90deg) translateZ(75px);
}

.cube-bottom {
    transform: rotateX(-90deg) translateZ(75px);
}


.hero-card-footer {

    position: absolute;

    left: 25px;

    right: 25px;

    bottom: 25px;

    display: flex;

    flex-direction: column;

    gap: 6px;

}


.hero-card-footer strong {

    font-size: 15px;

}


.hero-card-footer span {

    color: var(--text-soft);

    font-size: 12px;

}


.hero-orb {

    position: absolute;

    border-radius: 50%;

    filter: blur(1px);

}


.orb-one {

    width: 190px;

    height: 190px;

    background:
        rgba(124,92,255,.12);

    top: 10px;

    right: 0;

}


.orb-two {

    width: 130px;

    height: 130px;

    background:
        rgba(91,92,226,.10);

    bottom: 15px;

    left: 30px;

}


/* =========================================================
   STATS
========================================================= */

.stats-section {

    width: min(
        calc(100% - 40px),
        920px
    );

    margin: -10px auto 70px;

}


.stats-card {

    background: white;

    border: 1px solid var(--border);

    box-shadow: var(--shadow-soft);

    border-radius: 22px;

    padding: 26px;

    display: grid;

    grid-template-columns:
        1fr auto 1fr auto 1fr;

    align-items: center;

}


.stat-item {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 6px;

    text-align: center;

}


.stat-item strong {

    font-size: 21px;

}


.stat-item span {

    color: var(--text-soft);

    font-size: 12px;

}


.stat-divider {

    width: 1px;

    height: 45px;

    background: var(--border);

}


/* =========================================================
   SECTIONS
========================================================= */

.models-section,
.about-section {

    width: min(
        calc(100% - 40px),
        var(--max-width)
    );

    margin: auto;

}


.section-heading {

    display: flex;

    align-items: end;

    justify-content: space-between;

    margin-bottom: 28px;

}


.eyebrow {

    color: var(--primary);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1.6px;

    margin-bottom: 8px;

}


.section-heading h2,
.about-card h2 {

    font-size:
        clamp(30px, 4vw, 43px);

    letter-spacing: -1.5px;

}


.model-count {

    padding: 9px 13px;

    background: white;

    border: 1px solid var(--border);

    border-radius: 999px;

    font-size: 13px;

    font-weight: 800;

}


.model-count span {

    color: var(--text-soft);

    font-weight: 500;

}


/* =========================================================
   MODEL GRID
========================================================= */

.model-grid {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 22px;

}


.model-card {

    background: white;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-lg);

    overflow: hidden;

    box-shadow: var(--shadow-soft);

    transition:
        transform .25s,
        box-shadow .25s,
        border-color .25s;

}


.model-card:hover {

    transform:
        translateY(-6px);

    box-shadow:
        0 25px 60px rgba(34,40,80,.11);

    border-color:
        #d7daf0;

}


.thumbnail-wrapper {

    position: relative;

    aspect-ratio: 4 / 3;

    background:
        linear-gradient(
            135deg,
            #f0f2ff,
            #f8f5ff
        );

    overflow: hidden;

}


.model-thumbnail {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

    transition:
        transform .5s ease;

}


.model-card:hover
.model-thumbnail {

    transform: scale(1.035);

}


.thumbnail-overlay {

    position: absolute;

    inset: 0;

    display: flex;

    align-items: flex-end;

    justify-content: flex-end;

    padding: 15px;

    background:
        linear-gradient(
            to top,
            rgba(25,29,55,.18),
            transparent 45%
        );

}


.view-icon {

    width: 38px;

    height: 38px;

    display: grid;

    place-items: center;

    color: white;

    background:
        rgba(23,32,51,.72);

    backdrop-filter:
        blur(10px);

    border-radius: 12px;

    font-size: 18px;

}


.model-card-content {

    padding: 20px;

}


.model-card-title-row {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

}


.model-card h3 {

    font-size: 17px;

    line-height: 1.35;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

}


.model-type {

    flex-shrink: 0;

    padding: 5px 8px;

    border-radius: 7px;

    background: #f0efff;

    color: var(--primary);

    font-size: 10px;

    font-weight: 900;

}


.model-card p {

    margin-top: 7px;

    color: var(--text-soft);

    font-size: 12px;

}


.view-model-button {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-top: 17px;

    min-height: 44px;

    padding: 0 14px;

    border-radius: 11px;

    background: #f7f7ff;

    color: var(--primary);

    font-size: 13px;

    font-weight: 800;

    transition: .2s;

}


.view-model-button:hover {

    background: var(--primary);

    color: white;

}


/* =========================================================
   EMPTY
========================================================= */

.empty-state {

    background: white;

    border: 1px solid var(--border);

    border-radius: 22px;

    padding: 70px 20px;

    text-align: center;

}


.empty-icon {

    width: 60px;

    height: 60px;

    display: grid;

    place-items: center;

    margin: auto;

    border-radius: 18px;

    color: white;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--purple)
        );

    font-size: 25px;

}


.empty-state h3 {

    margin-top: 18px;

}


.empty-state p {

    color: var(--text-soft);

    margin-top: 8px;

}


/* =========================================================
   ABOUT
========================================================= */

.about-section {

    padding:
        110px 0;

}


.about-card {

    background:
        linear-gradient(
            135deg,
            #ffffff,
            #f7f7ff
        );

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-xl);

    padding: 45px;

    display: grid;

    grid-template-columns: 80px 1fr;

    gap: 25px;

    box-shadow: var(--shadow-soft);

}


.about-icon {

    width: 65px;

    height: 65px;

    display: grid;

    place-items: center;

    color: white;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--purple)
        );

    border-radius: 19px;

    font-size: 25px;

}


.about-card p {

    max-width: 750px;

    color: var(--text-soft);

    line-height: 1.8;

    margin-top: 15px;

}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {

    margin-top: 30px;

    background: white;

    border-top:
        1px solid var(--border);

}


.footer-inner {

    width: min(
        calc(100% - 40px),
        var(--max-width)
    );

    min-height: 110px;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

}


.footer-inner strong {

    font-size: 14px;

}


.footer-inner p {

    color: var(--text-soft);

    font-size: 12px;

    margin-top: 5px;

}


.footer-right {

    color: var(--text-soft);

    font-size: 12px;

}


/* =========================================================
   VIEWER PAGE
========================================================= */

.viewer-page {

    background:
        linear-gradient(
            135deg,
            #f7f8fc,
            #f0f2ff
        );

}


.viewer-header {

    height: 70px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    width: min(
        calc(100% - 40px),
        1240px
    );

    margin: auto;

}


.viewer-back {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: var(--text-soft);

    font-size: 13px;

    font-weight: 700;

}


.viewer-back:hover {

    color: var(--primary);

}


.viewer-brand {

    font-weight: 800;

    font-size: 14px;

}


.viewer-main {

    width: min(
        calc(100% - 40px),
        1100px
    );

    margin: auto;

    padding:
        40px 0 70px;

}


.viewer-heading {

    margin-bottom: 22px;

}


.viewer-heading h1 {

    font-size:
        clamp(28px, 5vw, 45px);

    letter-spacing: -1.5px;

}


.viewer-card {

    position: relative;

    width: 100%;

    min-height: 680px;

    background: white;

    border:
        1px solid var(--border);

    border-radius: 28px;

    overflow: hidden;

    box-shadow:
        0 30px 80px rgba(34,40,80,.10);

}


.real-viewer {

    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    min-height: 680px;

    opacity: 0;

    visibility: hidden;

    transition:
        opacity .7s ease;

    background:
        radial-gradient(
            circle at center,
            #ffffff,
            #f2f4fa
        );

}


.real-viewer.loaded {

    opacity: 1;

    visibility: visible;

}


.viewer-preview {

    position: absolute;

    inset: 0;

    z-index: 1;

    background: #f5f6fb;

    transition:
        opacity .7s ease;

}


.viewer-preview.hidden {

    opacity: 0;

    pointer-events: none;

}


.viewer-preview img {

    width: 100%;

    height: 100%;

    object-fit: contain;

    opacity: .45;

    filter:
        blur(1px);

}


/* =========================================================
   LOADER
========================================================= */

.viewer-loader {

    position: absolute;

    inset: 0;

    z-index: 10;

    display: grid;

    place-items: center;

    background:
        rgba(255,255,255,.90);

    backdrop-filter:
        blur(16px);

    transition:
        opacity .6s ease,
        visibility .6s ease;

}


.viewer-loader.hidden {

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

}


.loader-content {

    width: min(
        420px,
        calc(100% - 40px)
    );

    text-align: center;

}


.progress-ring {

    width: 145px;

    height: 145px;

    position: relative;

    margin: auto;

}


.progress-ring svg {

    width: 100%;

    height: 100%;

    transform:
        rotate(-90deg);

}


.progress-track,
.progress-value {

    fill: none;

    stroke-width: 7;

}


.progress-track {

    stroke: #e8e9f2;

}


.progress-value {

    stroke:
        url(#gradient);

    stroke: var(--primary);

    stroke-linecap: round;

    stroke-dasharray:
        326.73;

    stroke-dashoffset:
        326.73;

    transition:
        stroke-dashoffset .25s ease;

}


.progress-number {

    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: center;

}


.progress-number strong {

    font-size: 32px;

    letter-spacing: -1px;

}


.progress-number span {

    font-size: 15px;

    font-weight: 800;

    color: var(--primary);

    margin-top: 8px;

}


.loader-content h2 {

    margin-top: 22px;

    font-size: 21px;

}


.loader-content p {

    color: var(--text-soft);

    font-size: 13px;

    margin-top: 7px;

}


.loading-bar {

    width: 100%;

    height: 7px;

    background: #eaebf3;

    border-radius: 999px;

    overflow: hidden;

    margin-top: 24px;

}


.loading-bar-fill {

    width: 0%;

    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--purple)
        );

    transition:
        width .25s ease;

}


.loading-note {

    display: block;

    margin-top: 12px;

    color: #98a0b3;

    font-size: 11px;

}


/* =========================================================
   VIEWER INFO
========================================================= */

.viewer-controls-info {

    position: absolute;

    z-index: 20;

    left: 20px;

    right: 20px;

    bottom: 18px;

    display: flex;

    justify-content: center;

    gap: 10px;

    flex-wrap: wrap;

    pointer-events: none;

}


.viewer-controls-info span {

    padding: 8px 11px;

    border-radius: 999px;

    color: #667085;

    background:
        rgba(255,255,255,.88);

    border:
        1px solid rgba(231,234,242,.9);

    backdrop-filter:
        blur(10px);

    font-size: 10px;

    font-weight: 700;

}


.viewer-footer-actions {

    display: flex;

    justify-content: center;

    margin-top: 24px;

}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 950px) {

    .hero-section {

        grid-template-columns: 1fr;

        text-align: center;

    }


    .hero-content {

        display: flex;

        flex-direction: column;

        align-items: center;

    }


    .hero-visual {

        min-height: 390px;

    }


    .model-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }

}


@media (max-width: 680px) {

    .header-inner {

        width:
            calc(100% - 28px);

    }


    .desktop-nav {

        display: none;

    }


    .mobile-menu-button {

        display: block;

    }


    .mobile-nav {

        padding:
            0 20px;

        background: white;

        border-bottom:
            1px solid var(--border);

    }


    .mobile-nav.open {

        display: flex;

        flex-direction: column;

        gap: 3px;

        padding-bottom: 14px;

    }


    .mobile-nav a {

        padding: 11px;

        border-radius: 9px;

        font-size: 14px;

        font-weight: 700;

        color: var(--text-soft);

    }


    .mobile-nav a:hover {

        background: var(--surface-soft);

        color: var(--primary);

    }


    .hero-section {

        width:
            calc(100% - 28px);

        padding:
            45px 0;

    }


    .hero-content h1 {

        font-size: 47px;

        letter-spacing: -2.8px;

    }


    .hero-content p {

        font-size: 15px;

    }


    .hero-card {

        height: 350px;

        width: 88%;

    }


    .hero-visual {

        min-height: 370px;

    }


    .stats-section {

        width:
            calc(100% - 28px);

        margin-bottom: 55px;

    }


    .stats-card {

        grid-template-columns: 1fr;

        gap: 18px;

    }


    .stat-divider {

        width: 70px;

        height: 1px;

        margin: auto;

    }


    .models-section,
    .about-section {

        width:
            calc(100% - 28px);

    }


    .section-heading {

        align-items: start;

        gap: 15px;

    }


    .model-grid {

        grid-template-columns: 1fr;

    }


    .about-card {

        padding: 28px;

        grid-template-columns: 1fr;

    }


    .footer-inner {

        width:
            calc(100% - 28px);

        padding:
            25px 0;

        flex-direction: column;

        align-items: flex-start;

    }


    .viewer-header {

        width:
            calc(100% - 28px);

    }


    .viewer-main {

        width:
            calc(100% - 28px);

        padding-top: 25px;

    }


    .viewer-card {

        min-height: 520px;

        border-radius: 20px;

    }


    .real-viewer {

        min-height: 520px;

    }


    .viewer-controls-info span {

        font-size: 9px;

    }

}


@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        animation-duration: .01ms !important;

        animation-iteration-count: 1 !important;

        scroll-behavior: auto !important;

        transition-duration: .01ms !important;

    }

}