:root {
    /* Color Palette - ChessMind (Brown/Gold) */
    /* Based on design-system-tokens.wxss */
    --color-primary-900: #3C2414;
    /* Deepest Brown - Headings */
    --color-primary-800: #5D4037;
    /* Deep Brown - Body Text */
    --color-primary-600: #8D6E63;
    /* Medium Brown - Muted Text */
    --color-primary-500: #A0522D;
    /* Brand Brown - Primary Elements */
    --color-primary-100: #F5F1E8;
    /* Lightest Brown - Backgrounds */
    --color-primary-50: #FEFCF7;
    /* Pure Background */

    --color-accent: #F59E0B;
    /* Gold - Accents/Buttons */
    --color-accent-glow: rgba(245, 158, 11, 0.4);

    --glass-bg: rgba(254, 252, 247, 0.85);
    --glass-border: rgba(60, 36, 20, 0.08);
    --shadow-soft: 0 10px 30px -10px rgba(60, 36, 20, 0.1);

    /* Typography */
    --font-serif: 'Noto Serif SC', 'Georgia', serif;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

    /* Spacing */
    --header-height: 80px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-primary-50);
    color: var(--color-primary-800);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-serif);
    color: var(--color-primary-900);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

p {
    color: var(--color-primary-600);
    font-size: 1.125rem;
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 8rem 0;
}

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-sans);
}

.btn-primary {
    background: var(--color-primary-900);
    color: #fff;
    box-shadow: 0 4px 15px rgba(60, 36, 20, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(60, 36, 20, 0.4);
    background: #2a180d;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary-900);
    color: var(--color-primary-900);
}

.btn-outline:hover {
    background: var(--color-primary-900);
    color: #fff;
}

.card {
    background: #fff;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(60, 36, 20, 0.15);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    background: rgba(254, 252, 247, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(60, 36, 20, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-family: var(--font-sans);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.logo-chess {
    color: #1a1a1a;
    /* Dark almost black */
}

.logo-mind {
    color: #0091FF;
    /* Bright Blue similar to the image */
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    color: var(--color-primary-800);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--color-primary-500);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 0.25rem;
    padding: 0.25rem;
    background: rgba(60, 36, 20, 0.05);
    border-radius: 100px;
    margin-right: 0.5rem;
}

.lang-btn {
    padding: 0.4rem 0.75rem;
    border: none;
    border-radius: 100px;
    background: transparent;
    color: var(--color-primary-600);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-sans);
}

.lang-btn:hover {
    color: var(--color-primary-900);
}

.lang-btn.active {
    background: var(--color-primary-900);
    color: #fff;
    box-shadow: 0 2px 8px rgba(60, 36, 20, 0.2);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--header-height);
    background: var(--color-primary-50);
    overflow: hidden;
    perspective: 1000px;
}

.hero-bg-mesh {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 15% 50%, rgba(245, 158, 11, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(60, 36, 20, 0.05) 0%, transparent 30%);
    z-index: 0;
    pointer-events: none;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    max-width: 650px;
    z-index: 10;
}

.hero-content h1 {
    font-size: 3.5rem;
    /* More refined size */
    margin-bottom: 1.5rem;
    line-height: 1.15;
}

.hero-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    color: var(--color-primary-600);
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 80vh;
    /* Give it space */
}

/* Phone Mockup */
.phone-mockup {
    position: relative;
    width: 320px;
    /* Mobile width */
    height: auto;
    z-index: 5;
}

.phone-frame {
    border: 12px solid #2d1b12;
    border-radius: 40px;
    overflow: hidden;
    background: #000;
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.1),
        inset 0 0 20px rgba(0, 0, 0, 0.5),
        0 30px 60px -15px rgba(60, 36, 20, 0.5);
    aspect-ratio: 9/19.5;
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.phone-mockup:hover .phone-frame {
    transform: rotateY(0) rotateX(0);
}

.phone-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease;
}

.phone-frame img.fade-out {
    opacity: 0.8;
    transform: scale(1.02);
}

/* Floating Badges */
.floating-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0.75rem 1.25rem;
    border-radius: 100px;
    box-shadow:
        0 10px 30px rgba(60, 36, 20, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.6);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: float 6s ease-in-out infinite;
    z-index: 10;
    transform-style: preserve-3d;
}

.badge-icon {
    font-size: 1.2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.badge-text {
    color: var(--color-primary-900);
    letter-spacing: 0.01em;
    transition: opacity 0.3s ease;
}

.badge-text.fade-out {
    opacity: 0;
}

.badge-1 {
    top: 15%;
    right: -40px;
    animation-delay: 0s;
}

.badge-2 {
    bottom: 20%;
    left: -40px;
    animation-delay: 3s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.hero-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(160, 82, 45, 0.1);
    color: var(--color-primary-500);
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Model Hub Section */
.features {
    background: #fff;
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Checkerboard Pattern */
    background-image:
        conic-gradient(rgba(60, 36, 20, 0.02) 90deg,
            transparent 90deg 180deg,
            rgba(60, 36, 20, 0.02) 180deg 270deg,
            transparent 270deg);
    background-size: 80px 80px;
    opacity: 0.6;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.model-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.model-card {
    background: #fff;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.model-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(60, 36, 20, 0.15);
    border-color: var(--color-primary-200);
}

.model-logo-wrapper {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    background: var(--color-primary-50);
    border-radius: 50%;
    padding: 1rem;
}

.model-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.model-card:hover .model-logo {
    transform: scale(1.1);
}

.model-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary-900);
}

.model-desc {
    font-size: 0.9rem;
    color: var(--color-primary-600);
    font-weight: 500;
}

/* Secondary Features Pills */
.secondary-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.feature-pill {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    font-weight: 600;
    color: var(--color-primary-800);
}

.feature-pill .icon {
    font-size: 1.25rem;
}

/* Methodology Section */
.methodology {
    background: var(--color-primary-900);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.methodology h2,
.methodology h3 {
    color: #fff;
}

.methodology p {
    color: rgba(255, 255, 255, 0.7);
}

.method-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 4rem;
    position: relative;
}

.method-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.step-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 30%;
    position: relative;
    z-index: 1;
}

.step-num {
    width: 80px;
    height: 80px;
    background: var(--color-primary-500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-serif);
    margin-bottom: 1.5rem;
    box-shadow: 0 0 20px rgba(160, 82, 45, 0.4);
}

/* CTA Section */
.cta {
    text-align: center;
    background: var(--color-primary-50);
}

.cta-box {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 5rem 2rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--glass-border);
}

/* Footer */
.footer {
    background: var(--color-primary-900);
    color: rgba(255, 255, 255, 0.4);
    padding: 3rem 0;
    text-align: center;
    font-size: 0.875rem;
}

/* Animations */
/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.animate-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Button Shine Effect */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transform: skewX(-25deg);
    transition: 0.5s;
}

.btn-primary:hover::after {
    left: 150%;
    transition: 0.7s ease-in-out;
}

/* Responsive */
@media (max-width: 968px) {
    .hero {
        height: auto;
        padding: 6rem 0;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .hero-content {
        padding-right: 0;
        max-width: 100%;
    }

    .hero-visual {
        height: auto;
        width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

    .phone-mockup {
        width: 280px;
    }

    .badge-1 {
        right: -10px;
    }

    .badge-2 {
        left: -10px;
    }

    .method-steps {
        flex-direction: column;
        gap: 2rem;
    }

    .step-card {
        width: 100%;
    }

    .method-steps::before {
        display: none;
    }

    .nav-links {
        display: none;
    }
}