:root {
    --accent: #687d5c;
    --accent-rgb: 157, 193, 138;
    --accent-2: #6f9f62;
    --accent-2-rgb: 111, 159, 98;

    --bg: color-mix(in srgb, var(--accent) 3%, black);
    --bg-2: color-mix(in srgb, var(--accent) 8%, black);
    --card: rgba(255, 255, 255, 0.04);
    --card-2: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.09);
    --text: #eef4e8;
    --text-rgb: 238, 244, 232;

    --header: 0, 0, 0;
    --muted: rgba(224, 231, 255, 0.72);
    --shadow: 0 18px 48px rgba(0, 0, 0, .35);
    --radius: 1.5rem;
    --radius-sm: 1rem;
    --depth: 10;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: hidden;
}

#canvas {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.8;
    /* -webkit-mask-image: linear-gradient(to bottom, black 0%, black 10%, transparent 90%);
    mask-image: linear-gradient(to bottom, black 0%, black 10%, transparent 90%); */
}

body::before {
    content: "";
    position: fixed;
    inset: -50px;
    z-index: -2;
    background:
        radial-gradient(circle at top right, rgba(var(--accent-rgb), 0.1), transparent 24%),
        radial-gradient(circle at bottom left, rgba(var(--accent-2-rgb), 0.1), transparent 28%),
        linear-gradient(180deg, var(--bg-2), var(--bg));
    transform: translate(var(--px, 0), var(--py, 0));
    will-change: transform;
}

body::after {
    content: "";
    position: fixed;
    top: -10%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.15) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button,
input {
    font: inherit;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--border);
}

.header .glassmorphism {
    background: rgba(var(--header), 0.7);
    border-left: none;
    border-right: none;
    border-top: none;
}

/* GLASSMORPHISM */
.glassmorphism {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200%;

    background: rgba(255, 255, 255, 0.01);

    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);

    border: 1px solid rgba(255, 255, 255, 0.2);
    border-right-color: rgba(255, 255, 255, 0.1);
    border-bottom-color: rgba(255, 255, 255, 0.1);

    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    overflow: hidden;
    z-index: -2;
    clip-path: inset(0 0 50% 0);
    will-change: backdrop-filter;
}

.glassmorphism::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.01;
    /* background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E"); */
    pointer-events: none;
}

.glassmorphism::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0) 40%,
            rgba(255, 255, 255, 0) 60%,
            rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.125rem;
    padding: 1rem 0;
}

.brand {
    max-height: 2rem;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    font-weight: 800;
    padding: 0.5rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
}

.brand-mark {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.875rem;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg,
            rgba(var(--accent-rgb), 0.35),
            rgba(var(--accent-2-rgb), 0.20));
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.brand img {
    max-height: 3rem;
}

.nav {
    display: flex;
    gap: 0.625rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav a {
    padding: 0.625rem 0.875rem;
    border-radius: 999px;
    border: 1px solid transparent;
    color: var(--muted);
    transition: 180ms ease;
}

.nav a:hover {
    color: var(--text);
    border-color: var(--border);
    background: var(--card);
}

main {
    padding: 2rem 0 2rem;
}

.card {
    background: linear-gradient(180deg, var(--card), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

.hero {
    display: flex;
    gap: 1.5rem;
    align-items: stretch;
    margin-bottom: 7.5rem;
}

.hero-main {
    flex: 2.5;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.side {
    flex: 1;
    display: flex;
}

.side .card.mini {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.stats {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.375rem;
    flex-grow: 1;
}

.eyebrow {
    position: relative;
    margin: 0 0 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.75rem;
    color: var(--accent);
}

h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 0.98;
    letter-spacing: 0em;
    max-width: 20ch;
}

.lead {
    margin: 1.125rem 0 0;
    color: var(--muted);
    line-height: 1.75;
    max-width: 70ch;
    font-size: 1rem;
}

.section-title {
    margin: 0 0 0.875rem;
}

.section-title h2 {
    margin: 0;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent);
}

.stats {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.375rem;
}

.stat {
    padding: 0.875rem 1rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    transition: all 0.2s ease;

}

.stat:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(var(--accent-rgb), 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.stat-label {
    display: block;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.74rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.375rem;
}

.stat-desc {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.section {
    margin-top: 5rem;
    padding: 2.5rem;
    position: relative;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-head h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent);
}

.section-head .note {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.no-results {
    margin: 0.375rem 0 1.125rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.models {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.125rem;
}

.model-card {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 20px;
}

.preview {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 0.875rem;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.11), rgba(0, 0, 0, 0.20));
}

.preview svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-slider {
    width: 100%;
    height: 100%;
    display: grid;
    align-items: center;
    align-content: center;
    justify-content: center;
}

.preview-slider img {
    grid-area: 1/1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.preview-slider img.active {
    opacity: 1;
}

/* Arrow Navigation */
.preview-nav {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    pointer-events: none;
    z-index: 10;
}

.nav-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    user-select: none;
}

.nav-arrow:hover {
    animation: none;
    background: rgba(var(--accent-rgb), 0.2);
    color: var(--accent);
    box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.4),
        inset 0 0 15px rgba(var(--accent-rgb), 0.3);
    border-color: var(--accent);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transform: scale(1.05);
}

.dots-navigation {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 10px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid var(--border);
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--accent);
    transform: scale(1.3);
    box-shadow: 0 0 10px var(--accent);
}

.model-card h3 {
    margin: 0 0 0.625rem;
    font-size: 1.12rem;
}

.model-card p {
    margin: 0 0 0.875rem;
    color: var(--muted);
    line-height: 1.7;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625;
    align-items: center;
}


@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.35);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(var(--accent-rgb), 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0);
    }
}

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;

    padding: 0.75rem 1.2rem;
    border-radius: 999px;

    border: 1px solid rgba(var(--accent-rgb), 0.25);
    background: linear-gradient(135deg,
            rgba(var(--accent-rgb), 0.20),
            rgba(var(--accent-2-rgb), 0.15));

    color: var(--text);
    font-weight: 500;
    letter-spacing: 0.02em;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.25),
        inset 0 0 12px rgba(var(--accent-rgb), 0.08);

    transition:
        transform 180ms ease,
        box-shadow 220ms ease,
        border-color 180ms ease,
        background 220ms ease,
        color 180ms ease;

    cursor: pointer;
    overflow: hidden;
}

.btn::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;

    background: radial-gradient(circle at 50% 50%,
            rgba(var(--accent-rgb), 0.35),
            transparent 70%);

    opacity: 0;
    transition: opacity 250ms ease;
}

.btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;

    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.25),
            transparent);

    transform: skewX(-20deg);
    transition: left 500ms ease;
}

.btn>* {
    position: relative;
    z-index: 2;
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);

    border-color: rgba(var(--accent-rgb), 0.55);

    box-shadow:
        0 0 16px rgba(var(--accent-rgb), 0.25),
        0 10px 28px rgba(0, 0, 0, 0.35),
        inset 0 0 14px rgba(var(--accent-rgb), 0.12);
}

.btn:hover::before {
    opacity: 1;
}

.btn:hover::after {
    left: 140%;
}

.btn:active {
    transform: scale(0.97);

    box-shadow:
        0 0 8px rgba(var(--accent-rgb), 0.2),
        inset 0 0 18px rgba(var(--accent-rgb), 0.25);
}

.btn:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 2px rgba(var(--accent-rgb), 0.6),
        0 0 20px rgba(var(--accent-rgb), 0.35);
}

.btn.open-asset-store {
    animation: pulse 2.2s infinite;
}

.btn.open-asset-store:hover {
    animation: none;

    transform: translateY(-2px) scale(1.04);

    border-color: rgba(var(--accent-rgb), 0.8);

    box-shadow:
        0 0 22px rgba(var(--accent-rgb), 0.45),
        0 12px 32px rgba(0, 0, 0, 0.4),
        inset 0 0 18px rgba(var(--accent-rgb), 0.18);
}

.contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.email-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.2s ease;
    color: var(--text);

    max-width: 100%;
    box-sizing: border-box;
}

.email-pill:hover {
    background: rgba(var(--accent-rgb), 0.15);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.email-icon {
    display: flex;
    color: var(--accent);
    flex-shrink: 0;
}

.email-address {
    font-weight: 500;
    letter-spacing: 0.01em;
    font-size: 1rem;

    min-width: 0;
    overflow-wrap: anywhere;
}

@media (max-width: 45rem) {
    .email-pill {
        width: 100%;
        justify-content: center;
    }
}

.footer {
    text-align: center;
    color: var(--muted);
    font-size: 0.88rem;
    padding: 1.5rem 0 0.5rem;
}

@media (max-width: 60rem) {
    .hero {
        flex-direction: column;
    }

    .hero-main,
    .side {
        flex: none;
        width: 100%;
    }

    .models {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 45rem) {
    .header-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .brand,
    .nav {
        justify-content: space-between;
    }

    .hero-main,
    .section,
    .mini {
        padding: 1.25rem;
    }

    h1 {
        max-width: none;
    }
}

.search-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.search-wrapper {
    position: relative;
    display: inline-flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
}

#asset-search {
    --search-expanded-width: min(380px, 42vw);
    --search-collapsed-width: 42px;

    width: var(--search-collapsed-width);
    min-width: var(--search-collapsed-width);
    height: 42px;
    padding: 0.75rem 0.75rem 0.75rem 1.875rem;
    color: var(--text);
    background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='rgba(238, 244, 232, 1)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E") no-repeat 11px center / 18px 18px;
    border: 1px solid var(--border);
    border-radius: 999px;
    outline: none;
    cursor: pointer;

    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        width 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        padding-left 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 1.2s ease;
}

#asset-search:hover,
#asset-search:focus {
    border-color: var(--accent);
    background: var(--card-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='rgba(157, 193, 138, 1)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E") no-repeat 11px center / 18px 18px;
    box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.4), inset 0 0 15px rgba(var(--accent-rgb), 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

#asset-search:focus {
    width: var(--search-expanded-width);
    padding-left: 2.375rem;
    cursor: text;
}

.search-wrapper:hover::before,
.search-wrapper:focus-within::before {
    background-color: var(--accent);
}

@media (max-width: 45rem) {
    .section-head {
        flex-direction: column;
        align-items: start;
    }

    .search-container {
        width: 100%;
        margin-top: 1rem;
    }

    #asset-search {
        --search-expanded-width: 100%;
    }
}
