:root {
    --surface: #f7f9fb;
    --on-surface: #191c1e;
    --on-surface-variant: #424754;
    --slate-gray: #64748b;
    --surface-container: #eceef0;
    --border-subtle: #e2e8f0;
    --ink-black: #0f172a;
    --surface-container-lowest: #ffffff;
    --surface-container-low: #f2f4f6;
    --primary: #0058be;
    --secondary: #4941e2;
    --on-primary: #ffffff;
    --success-green: #10b981;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: var(--border-subtle);
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
}

body {
    margin: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
p {
    margin: 0;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

a {
    color: inherit;
    text-decoration: inherit;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
    background: transparent;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

input,
textarea {
    border-width: 1px;
    outline: none;
}

.scroll-smooth { scroll-behavior: smooth; }
.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.w-full { width: 100%; }
.w-6 { width: 1.5rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-24 { width: 6rem; }
.w-64 { width: 16rem; }
.h-6 { height: 1.5rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-64 { height: 16rem; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }
.min-w-\[100px\] { min-width: 100px; }
.min-w-\[340px\] { min-width: 340px; }
.max-w-\[240px\] { max-width: 240px; }
.max-w-2xl { max-width: 42rem; }
.max-w-container-max { max-width: 1280px; }
.max-w-xl { max-width: 36rem; }
.max-w-xs { max-width: 20rem; }
.flex-1 { flex: 1 1 0%; }
.flex-grow { flex-grow: 1; }
.shrink-0 { flex-shrink: 0; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.col-span-1 { grid-column: span 1 / span 1; }
.flex-col { flex-direction: column; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-5 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.25rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }
.snap-x { scroll-snap-type: x var(--tw-scroll-snap-strictness, proximity); }
.snap-mandatory { --tw-scroll-snap-strictness: mandatory; }
.snap-center { scroll-snap-align: center; }
.overflow-hidden { overflow: hidden; }
.overflow-x-hidden { overflow-x: hidden; }
.overflow-x-auto { overflow-x: auto; }
.resize-none { resize: none; }
.whitespace-nowrap { white-space: nowrap; }

.inset-0 { inset: 0; }
.top-0 { top: 0; }
.top-1\/2 { top: 50%; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.-bottom-6 { bottom: -1.5rem; }
.-left-6 { left: -1.5rem; }
.-mb-32 { margin-bottom: -8rem; }
.-ml-32 { margin-left: -8rem; }
.-mr-32 { margin-right: -8rem; }
.-mt-32 { margin-top: -8rem; }
.-translate-y-1\/2 { transform: translateY(-50%); }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.z-\[80\] { z-index: 80; }

.mx-auto { margin-left: auto; margin-right: auto; }
.mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: .75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.ml-2 { margin-left: .5rem; }
.mr-2 { margin-right: .5rem; }
.mt-16 { margin-top: 4rem; }
.mt-20 { margin-top: 5rem; }

.p-2 { padding: .5rem; }
.p-3 { padding: .75rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.p-12 { padding: 3rem; }
.px-3 { padding-left: .75rem; padding-right: .75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
.px-gutter { padding-left: 24px; padding-right: 24px; }
.py-1 { padding-top: .25rem; padding-bottom: .25rem; }
.py-2 { padding-top: .5rem; padding-bottom: .5rem; }
.py-3 { padding-top: .75rem; padding-bottom: .75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-7 { padding-top: 1.75rem; padding-bottom: 1.75rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.pt-2 { padding-top: .5rem; }
.pt-8 { padding-top: 2rem; }
.pt-40 { padding-top: 10rem; }
.pb-6 { padding-bottom: 1.5rem; }
.pb-10 { padding-bottom: 2.5rem; }
.pb-24 { padding-bottom: 6rem; }

.rounded-lg { border-radius: .5rem; }
.rounded-xl { border-radius: .75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.rounded-bl-xl { border-bottom-left-radius: .75rem; }
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-b { border-bottom-width: 1px; }
.border-t { border-top-width: 1px; }
.border-border-subtle { border-color: var(--border-subtle); }
.border-primary { border-color: var(--primary); }
.border-success-green\/20 { border-color: rgba(16, 185, 129, .2); }

.bg-surface { background-color: var(--surface); }
.bg-surface-container { background-color: var(--surface-container); }
.bg-surface-container-low { background-color: var(--surface-container-low); }
.bg-surface-container-lowest { background-color: var(--surface-container-lowest); }
.bg-white { background-color: #fff; }
.bg-white\/80 { background-color: rgba(255, 255, 255, .8); }
.bg-primary { background-color: var(--primary); }
.bg-primary\/10 { background-color: rgba(0, 88, 190, .1); }
.bg-primary\/5 { background-color: rgba(0, 88, 190, .05); }
.bg-secondary { background-color: var(--secondary); }
.bg-success-green\/10 { background-color: rgba(16, 185, 129, .1); }
.bg-ink-black\/40 { background-color: rgba(15, 23, 42, .4); }
.bg-red-50 { background-color: #fef2f2; }
.bg-orange-50 { background-color: #fff7ed; }
.bg-blue-50 { background-color: #eff6ff; }
.bg-purple-50 { background-color: #faf5ff; }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.bg-gradient-to-l { background-image: linear-gradient(to left, var(--tw-gradient-stops)); }
.from-surface { --tw-gradient-from: var(--surface); --tw-gradient-to: rgba(247, 249, 251, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-transparent { --tw-gradient-to: transparent; }

.font-body-lg,
.font-body-md,
.font-headline-lg,
.font-headline-md,
.font-headline-sm,
.font-headline-xl,
.font-label-md,
.font-label-sm {
    font-family: Inter, sans-serif;
}
.text-headline-xl { font-size: 48px; line-height: 56px; letter-spacing: 0; font-weight: 700; }
.text-headline-lg { font-size: 32px; line-height: 40px; letter-spacing: 0; font-weight: 600; }
.text-headline-md { font-size: 24px; line-height: 32px; font-weight: 600; }
.text-headline-sm { font-size: 20px; line-height: 28px; font-weight: 600; }
.text-body-lg { font-size: 18px; line-height: 28px; font-weight: 400; }
.text-body-md { font-size: 16px; line-height: 24px; font-weight: 400; }
.text-label-md { font-size: 14px; line-height: 20px; letter-spacing: .05em; font-weight: 500; }
.text-label-sm { font-size: 12px; line-height: 16px; font-weight: 500; }
.text-\[16px\] { font-size: 16px; }
.text-\[18px\] { font-size: 18px; }
.text-\[20px\] { font-size: 20px; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xs { font-size: .75rem; line-height: 1rem; }
.font-normal { font-weight: 400; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.tracking-tight { letter-spacing: 0; }
.leading-10 { line-height: 2.5rem; }
.leading-relaxed { line-height: 1.625; }
.text-center { text-align: center; }
.underline { text-decoration-line: underline; }

.text-on-surface { color: var(--on-surface); }
.text-on-surface-variant { color: var(--on-surface-variant); }
.text-on-primary { color: var(--on-primary); }
.text-slate-gray { color: var(--slate-gray); }
.text-ink-black { color: var(--ink-black); }
.text-primary { color: var(--primary); }
.text-success-green { color: var(--success-green); }
.text-red-500 { color: #ef4444; }
.text-orange-500 { color: #f97316; }
.text-blue-500 { color: #3b82f6; }
.text-purple-500 { color: #a855f7; }
.placeholder\:text-slate-gray\/70::placeholder { color: rgba(100, 116, 139, .7); }

.opacity-0 { opacity: 0; }
.opacity-10 { opacity: .1; }
.opacity-80 { opacity: .8; }
.opacity-90 { opacity: .9; }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25); }
.shadow-primary\/10 { box-shadow: 0 25px 50px -12px rgba(0, 88, 190, .1); }
.shadow-primary\/20 { box-shadow: 0 10px 15px -3px rgba(0, 88, 190, .2), 0 4px 6px -4px rgba(0, 88, 190, .2); }
.blur-3xl { filter: blur(64px); }
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.pointer-events-none { pointer-events: none; }

.transition-all { transition-property: all; transition-duration: .15s; transition-timing-function: cubic-bezier(.4, 0, .2, 1); }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-duration: .15s; transition-timing-function: cubic-bezier(.4, 0, .2, 1); }
.transition-opacity { transition-property: opacity; transition-duration: .15s; transition-timing-function: cubic-bezier(.4, 0, .2, 1); }
.transition-transform { transition-property: transform; transition-duration: .15s; transition-timing-function: cubic-bezier(.4, 0, .2, 1); }

.hover\:text-primary:hover { color: var(--primary); }
.hover\:bg-surface-container:hover { background-color: var(--surface-container); }
.hover\:bg-primary\/5:hover { background-color: rgba(0, 88, 190, .05); }
.hover\:bg-white:hover { background-color: #fff; }
.hover\:opacity-90:hover { opacity: .9; }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:shadow-primary\/30:hover { box-shadow: 0 10px 15px -3px rgba(0, 88, 190, .3), 0 4px 6px -4px rgba(0, 88, 190, .3); }
.active\:scale-95:active { transform: scale(.95); }
.focus\:border-primary:focus { border-color: var(--primary); }
.focus\:ring-4:focus { box-shadow: 0 0 0 4px var(--tw-ring-color, rgba(0, 88, 190, .1)); }
.focus\:ring-primary\/10:focus { --tw-ring-color: rgba(0, 88, 190, .1); }
.group\/carousel:hover .group-hover\/carousel\:opacity-100 { opacity: 1; }
.selection\:bg-primary\/20::selection { background-color: rgba(0, 88, 190, .2); }

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.glass-nav {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.hero-gradient {
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.05) 0%, rgba(247, 249, 251, 1) 100%);
}

.reveal {
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.bento-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.bento-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -12px rgba(0, 88, 190, 0.15);
    border-color: #0058be;
}

.logo-grayscale {
    filter: grayscale(0%);
    opacity: 1;
    transition: all 0.3s ease;
}

.logo-grayscale:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.model-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0.75rem;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.shimmer-btn {
    position: relative;
    overflow: hidden;
}

.shimmer-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom right, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 40%, rgba(255,255,255,.4) 50%, rgba(255,255,255,0) 60%, rgba(255,255,255,0) 100%);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-150%) rotate(45deg); }
    100% { transform: translateX(150%) rotate(45deg); }
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    animation: marquee 30s linear infinite;
}

.marquee-container:hover .animate-marquee {
    animation-play-state: paused;
}

@media (min-width: 640px) {
    .sm\:flex-row { flex-direction: row; }
}

@media (min-width: 768px) {
    .md\:flex { display: flex; }
    .md\:flex-row { flex-direction: row; }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:scale-105 { transform: scale(1.05); }
    .md\:text-headline-xl { font-size: 48px; line-height: 56px; letter-spacing: 0; font-weight: 700; }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .animate-marquee {
        animation: none !important;
        transform: none !important;
        flex-wrap: wrap;
        justify-content: center;
    }
}
