/* Reset et variables */
:root {
    --primary-color: #007AFF;
    --secondary-color: #5856D6;
    --success-color: #34C759;
    --warning-color: #FF9500;
    --error-color: #FF3B30;
    --text-primary: #1D1D1F;
    --text-secondary: #86868B;
    --background: #F2F2F7;
    --surface: #FFFFFF;
    --border: #D1D1D6;
    --shadow: rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --spacing: 16px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* App Container */
.app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-text p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.nav-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-tab {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-tab:hover {
    background: var(--background);
    border-color: var(--primary-color);
}

.nav-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Main Content */
.main-content {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing);
    width: 100%;
}

.section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.section.active {
    display: block;
}

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

/* Hero Section */
.hero {
    text-align: center;
    padding: 48px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius);
    color: white;
    margin-bottom: 32px;
}

.hero h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.hero p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.stat-card {
    background: var(--surface);
    padding: 32px 24px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 4px 20px var(--shadow);
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.stat-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Overview Cards */
.overview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.overview-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow);
    transition: transform 0.2s ease;
}

.overview-card:hover {
    transform: translateY(-4px);
}

.card-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid var(--border);
}

.card-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.card-content {
    padding: 24px;
}

.card-content ul {
    list-style: none;
}

.card-content li {
    padding: 8px 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 20px;
}

.card-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Defense Grid */
.defense-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.defense-card {
    background: var(--surface);
    padding: 32px 24px;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px var(--shadow);
    transition: transform 0.2s ease;
    position: relative;
}

.defense-card:hover {
    transform: translateY(-4px);
}

.defense-card.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.defense-card.primary .card-icon,
.defense-card.primary h3,
.defense-card.primary .number,
.defense-card.primary .label {
    color: white;
}

.card-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.defense-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.card-stats {
    margin-bottom: 20px;
}

.stat {
    text-align: center;
    padding: 12px;
    background: rgba(0, 122, 255, 0.1);
    border-radius: 8px;
}

.defense-card.primary .stat {
    background: rgba(255, 255, 255, 0.2);
}

.stat .number {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.stat .label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.defense-card ul {
    list-style: none;
}

.defense-card li {
    padding: 6px 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 20px;
}

.defense-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.defense-card.primary li {
    color: rgba(255, 255, 255, 0.9);
}

.defense-card.primary li::before {
    color: white;
}

/* Tech Showcase */
.tech-showcase {
    background: var(--surface);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px var(--shadow);
    text-align: center;
}

.tech-showcase h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.tech-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* Medical Hero */
.medical-hero {
    background: linear-gradient(135deg, var(--success-color), #30D158);
    border-radius: var(--radius);
    padding: 48px 32px;
    margin-bottom: 48px;
    color: white;
}

.hero-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    align-items: center;
}

.hero-text h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

.hero-text p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 24px;
}

.hero-stats {
    display: flex;
    gap: 32px;
}

.hero-stat {
    text-align: center;
}

.hero-stat .number {
    font-size: 32px;
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
}

.hero-stat .label {
    font-size: 14px;
    opacity: 0.9;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.electrode-demo {
    width: 200px;
    height: 200px;
    position: relative;
}

.brain-outline {
    width: 100%;
    height: 100%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.electrode-path {
    width: 2px;
    height: 80px;
    background: white;
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.electrode-tip {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 96px;
    left: 50%;
    transform: translateX(-50%);
}

/* Medical Features */
.medical-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.feature-card {
    background: var(--surface);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px var(--shadow);
    text-align: center;
    transition: transform 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.feature-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Clinical Results */
.clinical-results {
    background: var(--surface);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px var(--shadow);
    text-align: center;
}

.clinical-results h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 32px;
    color: var(--text-primary);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px;
}

.result-item {
    padding: 24px 16px;
    background: var(--background);
    border-radius: var(--radius);
}

.result-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--success-color);
    margin-bottom: 8px;
}

.result-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Aerospace Applications */
.aerospace-applications {
    margin-bottom: 48px;
}

.application-category {
    margin-bottom: 48px;
}

.application-category h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.application-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.app-card {
    background: var(--surface);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px var(--shadow);
    transition: transform 0.2s ease;
}

.app-card:hover {
    transform: translateY(-4px);
}

.app-icon {
    font-size: 32px;
    margin-bottom: 16px;
    display: block;
}

.app-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.app-card ul {
    list-style: none;
}

.app-card li {
    padding: 4px 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 16px;
}

.app-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Benefits Section */
.benefits-section {
    background: var(--surface);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px var(--shadow);
}

.benefits-section h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 32px;
    text-align: center;
    color: var(--text-primary);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.benefit-item {
    text-align: center;
    padding: 24px 16px;
}

.benefit-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.benefit-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.benefit-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Opportunities Grid */
.opportunities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.opportunity-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow);
    transition: transform 0.2s ease;
    position: relative;
}

.opportunity-card:hover {
    transform: translateY(-4px);
}

.opportunity-card.high-potential {
    border-left: 4px solid var(--success-color);
}

.opportunity-card.medium-potential {
    border-left: 4px solid var(--warning-color);
}

.opportunity-card.emerging-potential {
    border-left: 4px solid var(--primary-color);
}

.opportunity-card .card-header {
    padding: 24px 24px 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.opportunity-card .card-icon {
    font-size: 32px;
}

.potential-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.potential-badge.high {
    background: var(--success-color);
}

.potential-badge.medium {
    background: var(--warning-color);
}

.potential-badge.emerging {
    background: var(--primary-color);
}

.opportunity-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 16px 24px;
    color: var(--text-primary);
}

.market-size {
    margin: 0 24px 16px;
    font-size: 14px;
    color: var(--text-secondary);
    font-style: italic;
}

.opportunity-card ul {
    list-style: none;
    padding: 0 24px;
    margin-bottom: 20px;
}

.opportunity-card li {
    padding: 4px 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 16px;
}

.opportunity-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.investment-level {
    background: var(--background);
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
}

/* Strategy Section */
.strategy-section {
    background: var(--surface);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px var(--shadow);
}

.strategy-section h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 32px;
    text-align: center;
    color: var(--text-primary);
}

.strategy-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.step {
    text-align: center;
    padding: 24px 16px;
}

.step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 16px;
}

.step-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.step-content p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    margin-top: 48px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px var(--spacing);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.footer-section h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

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

.footer-section li {
    padding: 4px 0;
    color: var(--text-secondary);
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .nav-tabs {
        justify-content: center;
    }
    
    .hero h2 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
    }
    
    .stat-card {
        padding: 24px 16px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .overview-cards,
    .defense-grid,
    .medical-features,
    .application-grid,
    .benefits-grid,
    .opportunities-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .strategy-steps {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .main-content {
        padding: 12px;
    }
    
    .medical-hero,
    .tech-showcase,
    .benefits-section,
    .clinical-results,
    .strategy-section {
        padding: 24px 16px;
    }
}

@media (max-width: 480px) {
    .nav-tab {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .hero {
        padding: 32px 16px;
    }
    
    .hero h2 {
        font-size: 24px;
    }
    
    .section-header h2 {
        font-size: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }
    
    .electrode-demo {
        width: 150px;
        height: 150px;
    }
}