/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Airchitect brand colors from logo */
    --primary-orange: #E55A00;
    --primary-dark: #4A4A4A;
    --primary-gradient: linear-gradient(135deg, #E55A00 0%, #CC5500 100%);
    --secondary-gradient: linear-gradient(135deg, #4A4A4A 0%, #6A6A6A 100%);
    --accent-gradient: linear-gradient(135deg, #E55A00 0%, #D44800 100%);

    /* Base colors */
    --primary-color: #E55A00;
    --secondary-color: #4A4A4A;
    --accent-color: #CC5500;

    /* Neutral colors */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Semantic colors */
    --text-primary: #2d2d2d;
    --text-secondary: var(--gray-600);
    --text-light: var(--gray-500);
    --background-primary: #ffffff;
    --background-secondary: var(--gray-50);
    --card-background: #ffffff;
    --border-light: var(--gray-200);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--background-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-brand a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
}

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

.nav-brand h1 {
    font-size: 28px;
    font-weight: 800;
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.8px;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    position: relative;
}

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

.nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-orange);
    border-radius: 50%;
}

/* Dropdown Navigation */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 10px;
    margin-left: 8px;
    transition: transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    padding: 8px 0;
    margin-top: 16px;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.dropdown-item:hover {
    background-color: var(--gray-50);
    color: var(--text-primary);
    border-left-color: var(--primary-orange);
}

/* Integration Diagram */
.integration-diagram {
    padding: 60px 0;
}

.diagram-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
}

.central-hub {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 2;
}

.hub-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: var(--shadow-lg);
}

.hub-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

.central-hub h3 {
    font-size: 24px;
    font-weight: 300;
    color: var(--text-primary);
    margin: 0;
}

.integration-modules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 24px;
    width: 100%;
    max-width: 800px;
}

.module-node {
    background: var(--card-background);
    border: 2px solid var(--border-light);
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    position: relative;
}

.module-node:hover {
    border-color: var(--primary-orange);
    color: var(--text-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.module-node::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 30px;
    background: var(--border-light);
    transition: background-color 0.3s ease;
}

.module-node:hover::before {
    background: var(--primary-orange);
}

@media (max-width: 768px) {
    .integration-modules {
        grid-template-columns: repeat(2, 1fr);
    }

    .diagram-container {
        gap: 40px;
    }
}

.demo-btn {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 200;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: none;
}

.demo-btn:hover {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--primary-dark);
    margin: 3px 0;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    background-color: var(--gray-100);
    border-radius: 24px;
    padding: 4px;
    border: 1px solid var(--border-light);
}

.lang-btn {
    background: none;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 200;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.lang-btn.active {
    background: var(--text-primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.lang-btn:hover:not(.active) {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.8);
}

/* Language dropdown styles */
.language-switcher.nav-dropdown .lang-current {
    background: var(--gray-100);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 200;
    color: var(--text-primary);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-switcher.nav-dropdown .lang-current::after {
    content: '▼';
    font-size: 10px;
    transition: transform 0.3s ease;
}

.language-switcher.nav-dropdown:hover .lang-current::after {
    transform: rotate(180deg);
}

.language-switcher .lang-dropdown {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    min-width: 120px;
    padding: 8px 0;
}

.language-switcher .lang-dropdown .lang-btn {
    background: none;
    border: none;
    padding: 10px 16px;
    width: 100%;
    text-align: left;
    font-size: 14px;
    font-weight: 200;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-switcher .lang-dropdown .lang-btn:hover {
    background: var(--gray-50);
    color: var(--primary-orange);
}

/* Main Wrapper */
.main-wrapper {
    position: relative;
}

.main-wrapper::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 120px;
    bottom: 0;
    width: 2px;
    background: var(--gray-200);
    transform: translateX(-50%);
    z-index: 1;
}

/* Hero Section */
.hero-section {
    padding: 136px 0 68px 0;
    background: linear-gradient(135deg, #ffffff 0%, var(--gray-50) 100%);
    position: relative;
    z-index: 2;
}

.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
}

.hero-content {
    flex: 1;
    text-align: left;
    max-width: 600px;
}

.hero-title {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 200;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 32px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: clamp(18px, 2.5vw, 24px);
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.4;
    letter-spacing: -0.2px;
}

.hero-modules {
    flex-shrink: 0;
}

.modules-grid-hero {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 320px;
}

.module-icon-hero {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.module-icon-hero svg {
    width: 36px;
    height: 36px;
    color: var(--gray-400);
    stroke-width: 1;
    transition: all 0.3s ease;
}

.module-icon-hero:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.module-icon-hero:hover svg {
    color: var(--primary-orange);
    transform: scale(1.1);
}

.module-icon-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 16px;
}

.module-icon-hero:hover::before {
    opacity: 0.1;
}


/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 80px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 32px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 300;
}

/* Features Section */
.features-section {
    padding: 80px 0 120px 0;
    background-color: var(--background-primary);
    position: relative;
    z-index: 2;
}

.sequential-features {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.sequential-features::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gray-200);
    z-index: 1;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 100px;
    position: relative;
    z-index: 2;
}

.feature-item:last-child {
    margin-bottom: 0;
}

.feature-icon-container {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
    transition: all 0.3s ease;
}

.feature-icon-container:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 32px;
    height: 32px;
    color: var(--primary-orange);
    stroke-width: 1;
}

.feature-content {
    flex: 1;
    padding-top: 8px;
}

.feature-title {
    font-size: 24px;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.feature-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 300;
    max-width: 600px;
}



/* Module Pages Styles */
.module-hero-section {
    padding: 136px 0 68px 0;
    background: linear-gradient(135deg, #ffffff 0%, var(--gray-50) 100%);
    position: relative;
}

.module-hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
}

.module-hero-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 400px;
}

.module-hero-text {
    flex: 1;
    text-align: left;
    max-width: 600px;
}

.module-icon-large {
    width: 64px;
    height: 64px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    flex-shrink: 0;
}

.module-icon-large svg {
    width: 40px;
    height: 40px;
    color: var(--primary-orange);
    stroke-width: 1;
}

.module-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 200;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 0;
    letter-spacing: -1px;
}

.module-subtitle {
    font-size: clamp(20px, 3vw, 28px);
    color: var(--text-secondary);
    font-weight: 300;
    margin-bottom: 32px;
    line-height: 1.3;
}

.module-description-title {
    font-size: clamp(24px, 3.5vw, 32px);
    font-weight: 200;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.module-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.5;
    font-weight: 300;
    max-width: 600px;
    margin: 0;
}

.module-features-section {
    padding: 120px 0;
    background-color: var(--background-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 80px;
}

.feature-card {
    background: white;
    padding: 40px 32px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-card .feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gray-50);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
}

.feature-card .feature-icon svg {
    width: 40px;
    height: 40px;
    color: var(--primary-orange);
    stroke-width: 1;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.3;
}

.feature-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 300;
}

.cta-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-light);
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-secondary:hover {
    background-color: var(--gray-50);
    border-color: var(--primary-orange);
}

/* AI Modal */
.ai-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    backdrop-filter: blur(8px);
}

.ai-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--background-light);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.ai-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #2a2a2a 100%);
    color: white;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}

.ai-avatar-large {
    font-size: 32px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-header h3 {
    flex: 1;
    font-size: 20px;
    font-weight: 700;
}

.ai-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
}

.ai-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.ai-chat {
    padding: 24px;
    min-height: 200px;
    max-height: 300px;
    overflow-y: auto;
}

.ai-message {
    background-color: var(--light-grey);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.ai-input {
    padding: 24px;
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 12px;
}

.ai-input input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}

.ai-input input:focus {
    border-color: var(--primary-orange);
}

.ai-input button {
    background-color: var(--primary-orange);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.ai-input button:hover {
    background-color: #e55a00;
}

/* Responsive Design */
@media (max-width: 1024px) {
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 72px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 72px);
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 50px;
        transition: left 0.3s ease;
        z-index: 1000;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

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

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .nav-link {
        padding: 15px 20px;
        font-size: 18px;
        font-weight: 500;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--border-light);
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        background: var(--gray-50);
        width: 100%;
        margin-top: 0;
    }

    .dropdown-item {
        padding: 12px 20px;
        font-size: 16px;
    }

    .demo-btn {
        margin-top: 20px;
        padding: 12px 24px;
        font-size: 16px;
    }

    .language-switcher {
        margin-top: 20px;
        margin-bottom: 0;
        width: auto;
        order: 999;
    }

    .language-switcher.nav-dropdown .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        background: var(--gray-50);
        box-shadow: none;
        width: 100%;
        margin-top: 5px;
    }

    .language-switcher .lang-current {
        padding: 12px 20px;
        font-size: 16px;
        width: 100%;
        text-align: center;
    }

    .container {
        padding: 0 16px;
    }

    .main-wrapper::before {
        left: 20px;
        transform: none;
    }

    .hero-section {
        padding: 120px 0 60px 0;
    }

    .hero-wrapper {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
    }

    .hero-title {
        font-size: clamp(32px, 8vw, 48px);
    }

    .hero-subtitle {
        font-size: clamp(16px, 4vw, 20px);
        padding: 0 10px;
    }

    .modules-grid-hero {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
        max-width: 280px;
        margin: 0 auto;
    }

    .module-icon-hero {
        width: 50px;
        height: 50px;
    }

    .module-icon-hero svg {
        width: 24px;
        height: 24px;
    }

    .features-section {
        padding: 60px 0 80px 0;
    }

    .sequential-features::before {
        left: 20px;
    }

    .feature-item {
        gap: 24px;
        margin-bottom: 80px;
    }

    .feature-icon-container {
        width: 50px;
        height: 50px;
    }

    .feature-icon {
        width: 24px;
        height: 24px;
    }

    .feature-title {
        font-size: 22px;
    }

    .feature-description {
        font-size: 16px;
        max-width: 100%;
    }

    .section-title {
        font-size: clamp(28px, 6vw, 42px);
    }

    .section-subtitle {
        font-size: 18px;
        max-width: 100%;
        padding: 0 10px;
    }

}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 16px;
    }

    .nav-logo {
        height: 32px;
    }
    
    .intro-title {
        letter-spacing: -1px;
    }
    
    .section-title {
        letter-spacing: -0.5px;
    }
    
    .module-card,
    .concept-card {
        padding: 32px 24px;
    }
    
    .ai-modal-content {
        width: 95%;
        margin: 20px;
    }
}


/* Enhanced Mobile Optimization */
@media (max-width: 768px) {
    /* Hero section mobile optimization */
    .intro-section {
        padding: 80px 0 60px;
    }

    .intro-title {
        font-size: clamp(32px, 8vw, 48px);
        line-height: 1.1;
        margin-bottom: 16px;
    }

    .intro-subtitle {
        font-size: 18px;
        line-height: 1.4;
        margin-bottom: 32px;
    }

    /* Module icons grid mobile */
    .intro-modules {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
        margin-top: 40px;
    }

    .module-icon-hero {
        width: 48px;
        height: 48px;
    }

    /* Module pages mobile */
    .module-hero-section {
        padding: 80px 0 60px 0;
    }

    .module-hero-content {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .module-hero-text {
        max-width: none;
        text-align: center;
    }

    .module-hero-icon {
        order: -1;
        max-width: none;
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    /* Features section mobile */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .feature-card {
        padding: 24px;
        text-align: center;
    }

    /* Navigation dropdown mobile */
    .nav-dropdown .dropdown-menu {
        position: static;
        display: none;
        width: 100%;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        margin-top: 12px;
    }

    .nav-dropdown:hover .dropdown-menu,
    .nav-dropdown .dropdown-menu.show {
        display: block;
    }

    .dropdown-item {
        padding: 12px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    /* CTA section mobile */
    .cta-actions {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .demo-btn,
    .cta-secondary {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    .intro-modules {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .module-icon-hero {
        width: 60px;
        height: 60px;
    }

    .container {
        padding: 0 16px;
    }

    /* Typography adjustments */
    .intro-title {
        font-size: clamp(28px, 7vw, 40px);
    }

    .intro-subtitle {
        font-size: 16px;
    }

    .section-title {
        font-size: clamp(24px, 6vw, 32px);
    }

    /* Navigation mobile menu improvements */
    .nav-menu {
        padding-top: 40px;
    }

    .nav-link {
        font-size: 18px;
        padding: 16px 0;
    }

    .language-switcher {
        margin: 24px 0;
    }

    .demo-btn {
        margin-top: 20px;
        width: 200px;
    }
}

/* Touch optimizations */
@media (hover: none) and (pointer: coarse) {
    .module-icon-hero,
    .feature-card,
    .demo-btn {
        transform: none !important;
    }

    .module-icon-hero:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }

    .demo-btn:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

/* Focus states for accessibility */
.cta-primary:focus,
.cta-secondary:focus,
.demo-btn:focus,
.cta-ai:focus {
    outline: 2px solid var(--primary-orange);
    outline-offset: 2px;
}

