:root {
    --bg-color: #0f0f0f;
    --bg-surface: #18181b;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --primary-glow: rgba(255, 255, 255, 0.15);
    --accent-color: #ffffff;
    --glass-bg: rgba(15, 15, 15, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --card-bg: rgba(255, 255, 255, 0.02);
    --card-hover: rgba(255, 255, 255, 0.05);
    --font-main: 'Nunito', sans-serif;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --container-width: 1200px;
    --header-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* --- Aurora Background (Refined) --- */
.aurora-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: 
        radial-gradient(circle at 15% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(165, 180, 252, 0.05) 0%, transparent 25%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    filter: blur(60px);
    opacity: 0.6;
    animation: auroraPulse 10s ease-in-out infinite alternate;
}

@keyframes auroraPulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.1); opacity: 0.7; }
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Header (Glass Pill) --- */
.pill-header {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1000px;
    height: var(--header-height);
    background: rgba(15, 15, 15, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px; /* Inner padding for the pill */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-smooth);
}

/* Header Inner Layout */
.pill-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 24px;
}

.logo img {
    height: 42px;
    width: auto;
    display: block;
    opacity: 0.9;
    transition: opacity var(--transition-fast);
}

.logo img:hover {
    opacity: 1;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--text-primary);
    transition: width var(--transition-fast);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Language Dropdown */
.language-dropdown {
    position: relative;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-fast);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: #1a1a1a;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 8px;
    min-width: 140px;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: all var(--transition-fast);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.language-dropdown.active .lang-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.lang-option {
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    z-index: 101;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.mobile-menu-btn.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 20px 60px;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease-out forwards;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--text-secondary);
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    background: var(--text-primary);
    color: #000000;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 100px;
    transition: all var(--transition-fast);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
    background: #ffffff;
}

/* --- Products / Models Section --- */
.products-section {
    padding: 120px 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 80px;
    font-weight: 700;
    color: var(--text-primary);
}

.ai-model-list {
    max-width: 900px;
    margin: 0 auto;
}

.accordion-item {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    margin-bottom: 24px;
    overflow: hidden;
    transition: all var(--transition-smooth);
}

.accordion-item:hover {
    background: var(--card-hover);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.accordion-header {
    width: 100%;
    padding: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.accordion-header::after {
    content: '+';
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--text-secondary);
    transition: transform var(--transition-smooth);
}

.accordion-item.active .accordion-header::after {
    transform: rotate(45deg);
    color: var(--text-primary);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-smooth);
    background: rgba(0, 0, 0, 0.1);
}

.accordion-body {
    padding: 0 32px 32px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
}

.accordion-body ul {
    list-style: none;
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.accordion-body li {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.accordion-body li strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 4px;
}

/* --- About & Mission --- */
.about-section {
    padding: 120px 0;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin: 80px 0;
    text-align: left;
}

.value-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid var(--glass-border);
    padding: 40px 32px;
    border-radius: 24px;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.value-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.1);
    background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
}

.value-card h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.value-card p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Impact Quote */
.impact-quote {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.4;
    color: var(--text-primary);
    margin: 100px auto;
    max-width: 800px;
    position: relative;
    padding: 0 20px;
}

.impact-quote::before {
    content: '“';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 6rem;
    color: rgba(255, 255, 255, 0.05);
    font-family: serif;
}

/* Origin Section */
.origin-section {
    margin-top: 100px;
    padding: 60px 0;
    border-top: 1px solid var(--glass-border);
}

.origin-section h3 {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.origin-section p {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* --- Footer --- */
.main-footer {
    background: #050505;
    border-top: 1px solid var(--glass-border);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 60px;
    align-items: start;
    justify-items: center;
    text-align: center;
    margin-bottom: 60px;
}

.footer-iso {
    width: 60px;
    height: auto;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.footer-iso:hover {
    opacity: 1;
}

.footer-contact h4, .footer-social h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.contact-btn {
    display: inline-block;
    padding: 10px 24px;
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.contact-btn:hover {
    background: var(--text-primary);
    color: #000;
    border-color: var(--text-primary);
}

.social-icon {
    width: 28px;
    height: 28px;
    opacity: 0.6;
    transition: all var(--transition-fast);
}

.social-link:hover .social-icon {
    opacity: 1;
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid #111;
    color: #444;
    font-size: 0.85rem;
}

/* --- Animations --- */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .pill-header {
        padding: 0 16px;
        width: calc(100% - 32px);
    }

    .pill-header nav {
        padding: 0;
    }

    .nav-wrapper {
        position: fixed;
        top: calc(var(--header-height) + 16px);
        left: 50%;
        transform: translateX(-50%) translateY(-20px);
        width: calc(100% - 32px);
        background: rgba(20, 20, 20, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid var(--glass-border);
        border-radius: 24px;
        padding: 32px;
        flex-direction: column;
        align-items: center;
        gap: 32px;
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-smooth);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    }

    .nav-wrapper.active {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 24px;
    }
    
    .nav-links a {
        font-size: 1.1rem;
    }

    .language-dropdown {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .lang-menu {
        position: static;
        width: 100%;
        margin-top: 0;
        background: rgba(255, 255, 255, 0.03);
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        pointer-events: none;
        transform: none;
        padding: 0;
        border: none;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: block; /* Ensure it's not none */
        text-align: center;
    }

    .language-dropdown.active .lang-menu {
        max-height: 250px;
        opacity: 1;
        margin-top: 16px;
        padding: 8px;
        border: 1px solid var(--glass-border);
        pointer-events: auto;
    }

    .hero-section {
        padding-top: 140px;
    }
    
    .accordion-header {
        font-size: 1.2rem;
        padding: 24px;
    }
    
    .accordion-body {
        padding: 0 24px 24px;
    }
}
