/* ===== RESET & VARIABLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Dark Mode (Default) - Modern Apple-Style */
    --primary-color: #8b5cf6;
    --primary-glow: rgba(139, 92, 246, 0.5);
    --bg-primary: #0a0a0c;
    --bg-secondary: #16161a;
    --text-primary: #f5f5f7;
    --text-secondary: #86868b;
    --border-subtle: rgba(139, 92, 246, 0.1);
    --card-bg: rgba(139, 92, 246, 0.03);
    --glass-bg: rgba(10, 10, 12, 0.7);
}

[data-theme="light"] {
    /* Light Mode - Much softer and readable */
    --primary-color: #6d28d9;
    --primary-glow: rgba(109, 40, 217, 0.25);
    --bg-primary: #fafafa;
    --bg-secondary: #f0f0f0;
    --text-primary: #1a1a1a;
    --text-secondary: #737373;
    --border-subtle: rgba(109, 40, 217, 0.15);
    --card-bg: rgba(255, 255, 255, 0.9);
    --glass-bg: rgba(255, 255, 255, 0.75);
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Helvetica Neue', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.47059;
    letter-spacing: -0.003em;
    overflow-x: hidden;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
    touch-action: manipulation;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
    box-shadow: 0 1px 20px rgba(139, 92, 246, 0.05);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 0;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .nav-content {
        gap: 0;
        padding: 0;
        width: 100%;
        justify-content: space-between;
    }
}

.logo {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-image {
    height: 32px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    color: var(--primary-color);
}

.logo:hover .logo-image {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

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

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
}

.theme-toggle {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-size: 1.125rem;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border-radius: 8px;
    flex-shrink: 0;
}

.theme-toggle:hover {
    border-color: var(--primary-color);
    background: var(--card-bg);
}

.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 0.5rem;
    z-index: 1001;
    background: transparent;
    border: none;
    position: relative;
}

@media (min-width: 769px) {
    .hamburger {
        display: none !important;
    }
}

.hamburger span {
    width: 26px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 3px;
    display: block;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Backdrop */
.menu-backdrop {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-backdrop.active {
    display: block;
    opacity: 1;
}

/* Mobile Menu - Hidden by default on desktop */
@media (min-width: 769px) {
    .hamburger {
        display: none !important;
    }
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    z-index: 0;
    filter: brightness(1.3) contrast(1.2) saturate(1.4);
    mix-blend-mode: screen;
}

[data-theme="light"] .hero-video {
    opacity: 0.2;
    filter: brightness(1.5) contrast(0.9);
    mix-blend-mode: multiply;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at top, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, 
            rgba(10, 10, 12, 0.7) 0%, 
            rgba(10, 10, 12, 0.95) 100%
        );
    z-index: 0;
    backdrop-filter: blur(2px);
}

[data-theme="light"] .hero-overlay {
    background: 
        radial-gradient(ellipse at top, rgba(109, 40, 217, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, 
            rgba(250, 250, 250, 0.85) 0%, 
            rgba(250, 250, 250, 0.95) 100%
        );
}

.hero .container {
    max-width: 900px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    margin-bottom: 4rem;
}

.hero-logo {
    height: 120px;
    width: auto;
    margin: 0 auto 1.5rem;
    display: block;
    filter: drop-shadow(0 0 30px var(--primary-glow));
    animation: heroLogoFloat 6s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

@keyframes heroLogoFloat {
    0%, 100% { 
        transform: translateY(0px);
        filter: drop-shadow(0 0 30px var(--primary-glow));
    }
    50% { 
        transform: translateY(-3px);
        filter: drop-shadow(0 0 32px var(--primary-glow));
    }
}

.hero-title {
    font-size: 4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.025em;
    line-height: 1.05;
    text-shadow: 0 0 20px var(--primary-glow);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: -0.015em;
}

.hero-description {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    line-height: 1.47059;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 980px;
    font-size: 0.875rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #7c3aed 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.25);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.macropad-showcase {
    display: flex;
    gap: 0.75rem;
}

.module {
    width: 100px;
    height: 120px;
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.module:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
}

.module-keys {
    border-color: var(--primary-color);
}

/* ===== SECTION STYLES ===== */
section {
    padding: 6rem 2rem;
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-secondary);
    opacity: 0.5;
    z-index: -1;
}

section:nth-child(even)::before {
    opacity: 0;
}

section:nth-child(odd)::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary-color) 50%, 
        transparent 100%
    );
    opacity: 0.2;
    z-index: -1;
}

.section-header {
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.section-header.centered {
    text-align: center;
}

.section-tag {
    display: inline-block;
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.015em;
    line-height: 1.1;
}

/* ===== PROBLEM SECTION ===== */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.problem-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    transition: border-color 0.2s;
}

.problem-card:hover {
    border-color: var(--primary-color);
}

.problem-icon {
    display: none;
}

.problem-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.problem-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.47059;
}

/* ===== SOLUTION SECTION ===== */
.solution-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.5;
    letter-spacing: -0.01em;
}

.solution-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.solution-list li {
    display: flex;
    gap: 1rem;
}

.check-icon {
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.solution-list strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-weight: 600;
    font-size: 1.125rem;
    letter-spacing: -0.01em;
}

.solution-list p {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    line-height: 1.5;
}

/* Solution Visual - Connection Demo */
.connection-demo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    position: relative;
}

.base-module,
.add-module {
    width: 120px;
    height: 150px;
    background: var(--dark-bg-light);
    border: 3px solid var(--primary-color);
    border-radius: 12px;
    position: relative;
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.3);
}

.magnetic-points {
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 60px;
    background: linear-gradient(180deg, var(--accent-color), var(--primary-color));
    border-radius: 10px;
    animation: pulse 2s ease-in-out infinite;
}

.add-module .magnetic-points {
    left: -10px;
    right: auto;
}

.connector-animation {
    width: 40px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
    animation: pulse 2s ease-in-out infinite;
}

/* ===== FEATURES SECTION ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--card-bg);
    padding: 2rem 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.feature-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 40px var(--primary-glow);
    background: rgba(139, 92, 246, 0.03);
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-icon {
    display: none;
}

.feature-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.47059;
}

/* ===== MODULES SECTION ===== */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.module-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    backdrop-filter: blur(10px);
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, var(--primary-glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

.module-card:hover:not(.module-coming-soon) {
    transform: translateY(-6px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 16px 48px rgba(139, 92, 246, 0.2);
}

.module-card:hover:not(.module-coming-soon)::before {
    opacity: 0.12;
}

.module-card.module-coming-soon {
    opacity: 0.4;
    cursor: not-allowed;
}

.module-image {
    height: 200px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.module-img-arche {
    background: url('../assets/images/ArcheRender.png') center center / contain no-repeat;
}

.module-img-kyma {
    background: url('../assets/images/KymaRender.png') center center / contain no-repeat;
}

.module-img-versa {
    background: url('../assets/images/VersaRender.png') center center / contain no-repeat;
}

.module-info {
    padding: 1.5rem;
}

.module-info h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.module-info p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9375rem;
    line-height: 1.47059;
}

.module-specs {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: transparent;
    color: var(--primary-color);
    border-radius: 980px;
    font-size: 0.75rem;
    font-weight: 400;
    border: 1px solid var(--border-subtle);
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: var(--bg-primary);
    padding: 6rem 2rem;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.015em;
}

.cta-content p {
    font-size: 1.0625rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    background: var(--bg-secondary);
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-primary);
    padding: 3rem 2rem 1.5rem;
    border-top: 1px solid var(--border-subtle);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary-color) 50%, 
        transparent 100%
    );
    opacity: 0.5;
}

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

.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-section p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul a:hover {
    color: var(--primary-color);
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.footer-bottom p {
    margin: 0.5rem 0;
}

.footer-link a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-link a:hover {
    color: #7c3aed;
    text-decoration: underline;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE DESIGN - CLEAN MOBILE ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 0.75rem;
        max-width: 100%;
        width: 100%;
    }
    
    /* Compact Navigation */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .nav-content {
        gap: 0;
        padding: 0;
        width: 100%;
        justify-content: space-between;
    }
    
    .nav-menu {
        display: none;
    }
    
    .logo {
        font-size: 0.9rem;
        gap: 0.25rem;
        flex-shrink: 0;
    }
    
    .logo-image {
        height: 18px;
    }
    
    .theme-toggle {
        padding: 0.35rem 0.5rem;
        font-size: 0.9rem;
        flex-shrink: 0;
    }
    
    .hamburger {
        padding: 0.35rem;
        flex-shrink: 0;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background: var(--bg-secondary);
        backdrop-filter: blur(40px);
        -webkit-backdrop-filter: blur(40px);
        width: 100%;
        height: calc(100vh - 60px);
        text-align: center;
        transition: left 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        padding: 2rem 1rem;
        gap: 0.5rem;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
        z-index: 999;
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background: var(--card-bg);
    }

    .hamburger {
        display: flex !important;
    }

    /* Compact Hero Section */
    .hero {
        min-height: 70vh;
        padding: 6rem 0 3rem;
    }
    
    .hero-logo {
        height: 80px;
        margin-bottom: 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    /* Compact Sections */
    section {
        padding: 3rem 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-tag {
        font-size: 0.8rem;
        padding: 0.375rem 0.875rem;
        margin-bottom: 0.5rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .section-header p {
        font-size: 0.95rem;
    }

    /* Single Column Grids - Compact */
    .problem-grid,
    .features-grid,
    .modules-grid,
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Compact Cards */
    .problem-card,
    .feature-card {
        padding: 1.25rem;
        border-radius: 10px;
    }
    
    .problem-card h3,
    .feature-card h3 {
        font-size: 1.125rem;
        margin-bottom: 0.5rem;
    }
    
    .problem-card p,
    .feature-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* Compact Module Cards */
    .module-card {
        border-radius: 10px;
    }
    
    .module-image {
        height: 160px;
    }
    
    .module-info {
        padding: 1rem;
    }
    
    .module-info h3 {
        font-size: 1.125rem;
        margin-bottom: 0.375rem;
    }
    
    .module-info p {
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
    }
    
    .module-specs {
        gap: 0.75rem;
        font-size: 0.8rem;
    }
    
    /* Compact Team Cards */
    .team-card {
        padding: 1.5rem 1rem;
        border-radius: 12px;
    }
    
    .team-avatar {
        width: 80px;
        height: 80px;
        margin-bottom: 1rem;
    }
    
    .avatar-placeholder {
        font-size: 1.5rem;
    }
    
    .team-card h3 {
        font-size: 1.125rem;
        margin-bottom: 0.25rem;
    }
    
    .team-card p {
        font-size: 0.875rem;
    }
    
    /* Compact Partner Cards */
    .partner-card {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .partner-logo {
        width: 120px;
        height: 120px;
        margin-bottom: 1rem;
    }
    
    .partner-card h3 {
        font-size: 1.125rem;
        margin-bottom: 0.25rem;
    }
    
    .partner-card p {
        font-size: 0.875rem;
    }
    
    /* Compact Footer */
    footer {
        padding: 2rem 0;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 5rem 0 2.5rem;
    }
    
    .hero-logo {
        height: 70px;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.875rem;
    }

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    section {
        padding: 2.5rem 0;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .problem-card,
    .feature-card {
        padding: 1rem;
    }
    
    .team-avatar {
        width: 70px;
        height: 70px;
    }
    
    .partner-logo {
        width: 100px;
        height: 100px;
    }
}

/* ===== 3D VIEWER SECTION ===== */
.viewer-section {
    padding: 6rem 0;
    background: var(--bg-secondary);
    overflow: hidden;
}

.viewer-wrapper {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

#viewer-canvas {
    width: 100%;
    height: 600px;
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

#viewer-canvas:hover {
    border-color: var(--primary-color);
}

.viewer-info {
    padding: 2rem;
}

.viewer-info h3 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.viewer-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
}

.detail-item span {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.detail-item strong {
    color: var(--text-primary);
    font-weight: 500;
}

.viewer-controls-ui {
    display: flex;
    gap: 0.75rem;
}

.control-btn-ui {
    flex: 1;
    padding: 0.875rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.control-btn-ui:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* ===== TEAM SECTION ===== */
.team-section {
    /* Background handled by section::before */
    padding: 6rem 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.team-card {
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
}

.team-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 16px 48px var(--primary-glow);
    background: rgba(139, 92, 246, 0.03);
}

.team-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.team-card:hover .team-avatar {
    transform: scale(1.08);
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.5);
}

.avatar-placeholder {
    font-size: 2rem;
    font-weight: 600;
    color: white;
}

.team-avatar-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.team-card h3 {
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

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

/* ===== PARTNERS SECTION ===== */
.partners-section {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
    margin-top: 3rem;
}

.partner-card {
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    display: block;
    backdrop-filter: blur(10px);
}

.partner-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 16px 48px var(--primary-glow);
}

.partner-logo {
    width: 180px;
    height: 180px;
    margin: 0 auto 2rem;
    border-radius: 16px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.partner-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-placeholder {
    font-size: 3rem;
    font-weight: 700;
    color: white;
}

.partner-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.partner-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Responsive Viewer & Team */
@media (max-width: 1024px) {
    .viewer-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    #viewer-canvas {
        height: 400px;
    }
}

@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modules-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .problem-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .partners-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .team-grid,
    .features-grid,
    .modules-grid {
        grid-template-columns: 1fr;
    }
    
    .partners-grid {
        grid-template-columns: 1fr;
    }
    
    #viewer-canvas {
        height: 300px;
    }
    
    .viewer-info h3 {
        font-size: 2rem;
    }
}

/* ===== LIGHT MODE IMPROVEMENTS ===== */
[data-theme="light"] .hero-title {
    color: #1a1a1a;
    text-shadow: 0 2px 8px rgba(109, 40, 217, 0.15);
}

[data-theme="light"] .hero-subtitle {
    color: #525252;
}

[data-theme="light"] .hero-description {
    color: #525252;
}

[data-theme="light"] .feature-card,
[data-theme="light"] .module-card,
[data-theme="light"] .problem-card,
[data-theme="light"] .team-card,
[data-theme="light"] .partner-card {
    background: white;
    border-color: rgba(109, 40, 217, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .feature-card:hover,
[data-theme="light"] .module-card:hover,
[data-theme="light"] .team-card:hover,
[data-theme="light"] .partner-card:hover {
    box-shadow: 0 8px 24px rgba(109, 40, 217, 0.2);
    background: white;
}

[data-theme="light"] h2 {
    color: #1a1a1a;
}

[data-theme="light"] h3 {
    color: #1a1a1a;
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .btn-primary {
    box-shadow: 0 4px 12px rgba(109, 40, 217, 0.25);
}

[data-theme="light"] .btn-primary:hover {
    box-shadow: 0 6px 20px rgba(109, 40, 217, 0.35);
}
