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

:root {
    --primary-color: #4f46e5;
    --secondary-color: #7c3aed;
    --accent-color: #db2777;
    --dark-bg: #0f172a;
    --darker-bg: #020617;
    --light-bg: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --success: #059669;
    --warning: #d97706;
    --danger: #dc2626;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 40px rgba(79, 70, 229, 0.3);
}

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

#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(79, 70, 229, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.2rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

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

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

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.6rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.2s both;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.hero-description {
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-description p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.cta-button {
    display: inline-block;
    padding: 1.1rem 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.6s both;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    letter-spacing: 0.5px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.hero-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: float 20s infinite;
    opacity: 0.6;
}

.particle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { top: 60%; left: 80%; animation-delay: 2s; }
.particle:nth-child(3) { top: 40%; left: 30%; animation-delay: 4s; }
.particle:nth-child(4) { top: 80%; left: 60%; animation-delay: 6s; }
.particle:nth-child(5) { top: 30%; left: 90%; animation-delay: 8s; }

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-30px) translateX(30px); }
    50% { transform: translateY(-60px) translateX(-30px); }
    75% { transform: translateY(-30px) translateX(30px); }
}

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

.section {
    padding: 6rem 2rem;
    position: relative;
}

.dark-section {
    background: var(--dark-bg);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 3.2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-intro {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.systems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.system-card {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    padding: 2.5rem;
    border-radius: 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(79, 70, 229, 0.15);
    box-shadow: var(--shadow-md);
}

.system-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(79, 70, 229, 0.35);
    border-color: rgba(79, 70, 229, 0.4);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.system-card h3 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.architecture-container {
    display: grid;
    gap: 3rem;
    margin-top: 3rem;
}

.architecture-card {
    background: var(--light-bg);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.architecture-card h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.card-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.network-diagram {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.layer {
    background: rgba(99, 102, 241, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    flex: 1;
    min-width: 200px;
    border: 2px solid rgba(99, 102, 241, 0.3);
}

.layer h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.layer ul {
    list-style: none;
    color: var(--text-secondary);
}

.layer ul li {
    padding: 0.3rem 0;
}

.arrow {
    font-size: 2rem;
    color: var(--accent-color);
}

.small-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
}

.feature-box {
    background: rgba(16, 185, 129, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    margin-top: 2rem;
    border-left: 4px solid var(--success);
}

.feature-box.highlight {
    background: rgba(236, 72, 153, 0.1);
    border-left: 4px solid var(--accent-color);
}

.feature-box h4 {
    color: var(--success);
    margin-bottom: 1rem;
}

.feature-box.highlight h4 {
    color: var(--accent-color);
}

.feature-box ul {
    list-style: none;
    color: var(--text-secondary);
}

.feature-box ul li {
    padding: 0.3rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.feature-box ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--success);
}

.feature-box.highlight ul li::before {
    color: var(--accent-color);
}

.training-info {
    margin-top: 2rem;
}

.training-info h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.code-block {
    background: var(--darker-bg);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1rem 0;
    overflow-x: auto;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.code-block pre {
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.hyperparameters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.param {
    background: rgba(99, 102, 241, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.grid-info {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.info-card {
    background: var(--light-bg);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.info-card h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

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

.spec {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.spec-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.spec-value {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: bold;
}

.species-table {
    width: 100%;
    border-collapse: collapse;
}

.species-table th,
.species-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.species-table th {
    color: var(--primary-color);
    font-weight: 600;
}

.species-table td {
    color: var(--text-secondary);
}

.plant-row { border-left: 4px solid var(--success); }
.herbivore-row { border-left: 4px solid var(--warning); }
.predator-row { border-left: 4px solid var(--danger); }

.energy-flow {
    margin: 3rem 0;
}

.energy-flow h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.flow-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 20px;
}

.flow-node {
    background: rgba(99, 102, 241, 0.2);
    padding: 1.5rem 3rem;
    border-radius: 15px;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    border: 2px solid rgba(99, 102, 241, 0.4);
    min-width: 250px;
}

.flow-node.sun { background: rgba(251, 191, 36, 0.2); border-color: rgba(251, 191, 36, 0.4); }
.flow-node.plant { background: rgba(16, 185, 129, 0.2); border-color: rgba(16, 185, 129, 0.4); }
.flow-node.herbivore { background: rgba(245, 158, 11, 0.2); border-color: rgba(245, 158, 11, 0.4); }
.flow-node.predator { background: rgba(239, 68, 68, 0.2); border-color: rgba(239, 68, 68, 0.4); }
.flow-node.death { background: rgba(107, 114, 128, 0.2); border-color: rgba(107, 114, 128, 0.4); }

.flow-node .small {
    font-size: 1rem;
    font-weight: normal;
    color: var(--text-secondary);
}

.flow-arrow {
    font-size: 3rem;
    color: var(--accent-color);
}

.energy-calculations {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.calc-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.calc-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.scent-system {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.scent-info {
    background: var(--light-bg);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.scent-info h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.scent-properties {
    background: var(--light-bg);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.scent-properties h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.property {
    background: rgba(99, 102, 241, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
}

.property-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.property h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.property p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.env-systems {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.env-card {
    background: var(--light-bg);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.env-card h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.env-card > p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.env-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail {
    padding: 1rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 10px;
    color: var(--text-secondary);
}

.detail strong {
    color: var(--primary-color);
}

.param-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.param-detail {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 10px;
}

.param-detail .label {
    color: var(--text-secondary);
    font-weight: 600;
}

.param-detail .value {
    color: var(--primary-color);
}

.theory-grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.theory-card {
    background: var(--light-bg);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.theory-card h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.theory-card > p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.highlight-text {
    background: rgba(236, 72, 153, 0.1);
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
    margin-top: 1.5rem;
}

.advantages h4 {
    color: var(--primary-color);
    margin: 1.5rem 0 1rem 0;
}

.advantages ul {
    list-style: none;
    color: var(--text-secondary);
}

.advantages ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.advantages ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 1.5rem 0;
}

.comp-side {
    background: rgba(99, 102, 241, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
}

.comp-side h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.comp-side ul {
    list-style: none;
    color: var(--text-secondary);
}

.comp-side ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.comp-side ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.baldwin-effect {
    background: rgba(16, 185, 129, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1.5rem;
    border-left: 4px solid var(--success);
    color: var(--text-secondary);
}

.baldwin-effect strong {
    color: var(--success);
}

.future-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.future-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.future-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
}

.future-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.future-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

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

.conclusion-section {
    background: linear-gradient(135deg, var(--dark-bg), var(--darker-bg));
}

.takeaways {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.takeaway {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 15px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: transform 0.3s;
}

.takeaway:hover {
    transform: translateX(10px);
}

.takeaway-icon {
    font-size: 2.5rem;
}

.takeaway p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.final-message {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.final-message h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.final-message p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.cta-text {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 2rem;
}

footer {
    background: linear-gradient(180deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    padding: 3rem 2rem 2rem;
    border-top: 1px solid rgba(79, 70, 229, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(79, 70, 229, 0.1);
}

.footer-brand h3 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

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

.footer-info {
    text-align: right;
}

.footer-info p {
    color: var(--text-secondary);
    margin: 0.3rem 0;
    font-size: 0.95rem;
}

.footer-info strong {
    color: #667eea;
    font-weight: 600;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
}

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

.author-credit {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(79, 70, 229, 0.2);
}

.author-credit p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.author-credit strong {
    color: #667eea;
    font-weight: 600;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }
    
    .nav-container {
        padding: 1rem 1.5rem;
    }
    
    .network-diagram {
        flex-direction: column;
    }
    
    .arrow {
        transform: rotate(90deg);
    }
    
    .flow-node {
        min-width: 200px;
        font-size: 1.2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-info {
        text-align: center;
    }
    
    .system-card {
        padding: 2rem;
    }
}

html {
    scroll-behavior: smooth;
}
