/*
 * Intent-Garden — Main Landing (Russian)
 * Deterministic reflexes. Composition in personality.
 */

:root {
    /* Primary Colors */
    --color-gold: #D4AF37;
    --color-gold-light: #F4C430;
    --color-green: #7CB342;
    --color-green-muted: rgba(124,179,66,0.1);
    --color-green-border: rgba(124,179,66,0.2);
    --color-green-border-strong: rgba(124,179,66,0.3);
    --color-green-glow: rgba(124,179,66,0.4);
    
    /* Secondary Colors */
    --color-orange: #E67E22;
    --color-orange-muted: rgba(230,126,34,0.1);
    --color-orange-border: rgba(230,126,34,0.2);
    --color-orange-border-strong: rgba(230,126,34,0.3);
    --color-orange-glow: rgba(230,126,34,0.4);
    
    /* Accent Colors */
    --color-blue: #00d9ff;
    --color-blue-muted: rgba(0,217,255,0.05);
    --color-blue-border: rgba(0,217,255,0.2);
    --color-blue-border-strong: rgba(0,217,255,0.3);
    
    /* Neutral Colors */
    --color-bg-dark: #0a0a0f;
    --color-bg-darker: #1a1a2e;
    --color-bg-card: rgba(26,15,10,0.5);
    --color-bg-card-alt: rgba(26,15,10,0.6);
    --color-bg-card-dark: rgba(0,0,0,0.4);
    --color-bg-card-darker: rgba(0,0,0,0.6);
    --color-text: #e0e0e0;
    --color-text-muted: #B8A592;
    --color-text-dim: #888;
    --color-text-dark: #666;
    --color-text-warm: #A89888;
    --color-text-cool: #8B7355;
    
    /* Graphite (tiles) */
    --color-graphite: #505050;
    --color-graphite-light: #808080;
    --color-graphite-border: rgba(100,100,100,0.4);
    
    /* Gradients */
    --gradient-bg: linear-gradient(135deg, var(--color-bg-dark) 0%, var(--color-bg-darker) 100%);
    --gradient-gold: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
    --gradient-gold-flat: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, monospace;
    background: var(--gradient-bg);
    min-height: 100vh;
    color: var(--color-text);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

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

/* Top Lang Switcher */
.top-lang {
    position: fixed;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    z-index: 1000;
}
.top-lang a {
    color: var(--color-text-dim);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: color 0.3s;
    cursor: pointer;
}
.top-lang a:hover, .top-lang a.active { color: var(--color-blue); }
.top-lang span { color: var(--color-text-dim); }

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 1rem;
    position: relative;
    overflow: hidden;
}

/* 3D Background Placeholder */
.hero-3d-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(80,80,80,0.3) 0%, transparent 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Tile Grid Animation */
.tile-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(16, 1fr);
    grid-template-rows: repeat(8, 1fr);
    gap: 2px;
    padding: 2rem;
    opacity: 0.4;
}

/* Mobile: taller grid */
@media (max-width: 768px) {
    .tile-grid {
        grid-template-columns: repeat(8, 1fr);
        grid-template-rows: repeat(16, 1fr);
        padding: 1rem;
    }
}

.tile {
    background: rgba(80,80,80,0.3);
    border: 1px solid rgba(100,100,100,0.4);
    border-radius: 2px;
    position: relative;
    transition: all 0.3s;
}

.tile.active {
    background: rgba(124,179,66,0.4);
    border-color: rgba(124,179,66,0.6);
    box-shadow: 0 0 10px rgba(124,179,66,0.4);
}

.tile.locked {
    background: rgba(212,175,55,0.4);
    border-color: rgba(212,175,55,0.6);
    box-shadow: 0 0 10px rgba(212,175,55,0.4);
}

.tile::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: rgba(120,120,120,0.6);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.tile.active::after {
    background: rgba(124,179,66,0.9);
}

.tile.locked::after {
    background: rgba(212,175,55,0.9);
}

/* Relay animation */
.relay-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #505050;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(80,80,80,0.8);
    animation: relay-flow 2s linear infinite;
}

@keyframes relay-flow {
    0% { opacity: 0; transform: translateX(0) translateY(0); }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; transform: translateX(200px) translateY(50px); }
}

.hero-3d-label {
    position: absolute;
    bottom: 2rem;
    color: rgba(184,165,146,0.5);
    font-size: 0.75rem;
    text-align: center;
}

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

.comparison-panel {
    background: rgba(26,15,10,0.5);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.comparison-panel.before {
    border: 1px solid rgba(230,126,34,0.3);
}

.comparison-panel.after {
    border: 1px solid rgba(124,179,66,0.3);
}

.comparison-label {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-align: center;
}

.before .comparison-label {
    color: #E67E22;
}

.after .comparison-label {
    color: #7CB342;
}

.robot-svg {
    width: 100%;
    height: 200px;
    display: block;
    margin: 1rem 0;
}

.robot-body {
    fill: rgba(230,126,34,0.2);
    stroke: #E67E22;
    stroke-width: 2;
}

.robot-body.stable {
    fill: rgba(124,179,66,0.2);
    stroke: #7CB342;
}

.robot-joint {
    fill: #E67E22;
}

.robot-joint.stable {
    fill: #7CB342;
}

.chaos-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #D4AF37;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(212,175,55,0.8);
    animation: chaos-float 3s ease-in-out infinite;
}

@keyframes chaos-float {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0.5);
    }
    10% { opacity: 1; }
    20% { transform: translate(40px, -50px) scale(1.2); }
    30% { transform: translate(-30px, 20px) scale(0.8); }
    40% { transform: translate(25px, -35px) scale(1.1); }
    50% { transform: translate(-45px, 40px) scale(0.9); }
    60% { transform: translate(35px, -25px) scale(1.0); }
    70% { transform: translate(-20px, 30px) scale(1.15); }
    80% { transform: translate(50px, -45px) scale(0.85); }
    90% { opacity: 1; }
    100% {
        opacity: 0;
        transform: translate(0, 0) scale(0.5);
    }
}

.order-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, #7CB342, transparent);
    animation: order-flow 2s linear infinite;
}

@keyframes order-flow {
    0% { transform: translateX(-100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(100%); opacity: 0; }
}

.log-terminal {
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(124,179,66,0.3);
    border-radius: 8px;
    padding: 1rem;
    font-family: monospace;
    font-size: 0.75rem;
    color: #7CB342;
    margin-top: 1rem;
    max-height: 150px;
    overflow: hidden;
}

.log-line {
    margin-bottom: 0.25rem;
    opacity: 0;
    animation: log-fade-in 0.3s ease-out forwards;
}

@keyframes log-fade-in {
    to { opacity: 1; }
}

.comparison-note {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    margin-top: 1.5rem;
    font-style: italic;
}

/* Value Flow Visualization */
.value-flow-container {
    position: relative;
    padding: 2rem 1rem;
    margin: 2rem 0;
}

.value-flow {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.flow-node {
    background: rgba(26,15,10,0.8);
    border: 2px solid rgba(212,175,55,0.4);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    min-width: 140px;
    text-align: center;
    position: relative;
    transition: all 0.3s;
}

.flow-node:hover {
    transform: translateY(-5px);
    border-color: rgba(212,175,55,0.7);
    box-shadow: 0 10px 30px rgba(212,175,55,0.2);
}

.flow-node.baker {
    border-color: rgba(230,126,34,0.5);
}

.flow-node.baker .flow-icon {
    background: rgba(230,126,34,0.2);
}

.flow-node.architect {
    border-color: rgba(0,217,255,0.5);
}

.flow-node.architect .flow-icon {
    background: rgba(0,217,255,0.2);
}

.flow-node.user {
    border-color: rgba(0,255,136,0.5);
}

.flow-node.user .flow-icon {
    background: rgba(0,255,136,0.2);
}

.flow-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
}

.flow-node h4 {
    color: var(--color-gold);
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.flow-node p {
    color: var(--color-text-dim);
    font-size: 0.8rem;
}

.flow-node:hover {
    transform: translateY(-5px);
    border-color: var(--color-gold);
    box-shadow: 0 10px 30px var(--color-gold);
}

.flow-node.baker {
    border-color: rgba(230,126,34,0.6);
}

.flow-node.baker .flow-icon {
    background: rgba(230,126,34,0.2);
}

.flow-node.architect {
    border-color: rgba(0,217,255,0.6);
}

.flow-node.architect .flow-icon {
    background: rgba(0,217,255,0.2);
}

.flow-node.user {
    border-color: rgba(124,179,66,0.6);
}

.flow-node.user .flow-icon {
    background: rgba(124,179,66,0.2);
}

.flow-arrow {
    color: var(--color-gold);
    font-size: 1.5rem;
    opacity: 0.6;
    animation: arrow-pulse 2s ease-in-out infinite;
}

@keyframes arrow-pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.flow-arrow.down {
    display: block;
    text-align: center;
    margin: 1rem 0;
}

#flowSubstrate {
    border-color: var(--color-orange-border-strong);
    background: var(--color-orange-muted);
}

#flowSubstrate .flow-icon {
    background: rgba(230,126,34,0.3);
}

.flow-package {
    position: relative;
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
    color: var(--color-bg-dark);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: bold;
    font-family: monospace;
    box-shadow: 0 0 15px var(--color-gold);
    z-index: 10;
}

#packageResult {
    background: linear-gradient(135deg, var(--color-green), #00ff88);
    box-shadow: 0 0 15px var(--color-green);
}

.result-box {
    background: rgba(124,179,66,0.1);
    border: 1px solid rgba(124,179,66,0.3);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

.result-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(124,179,66,0.1), transparent);
    animation: result-shine 3s linear infinite;
}

@keyframes result-shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.result-title {
    color: #7CB342;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.result-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.result-item {
    background: rgba(26,15,10,0.5);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: #B8A592;
    border: 1px solid rgba(124,179,66,0.2);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.logo { font-size: 5rem; margin-bottom: 0.5rem; }

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #D4AF37;
    -webkit-text-fill-color: #D4AF37;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--color-green);
    margin-bottom: 1.5rem;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
    align-items: center;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.hero-feature-icon {
    color: var(--color-gold);
    width: 20px;
    text-align: center;
}

.hero-description {
    font-size: 1.1rem;
    color: #B8A592;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-tagline {
    font-size: 0.95rem;
    color: #A89888;
    font-style: italic;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #D4AF37;
    color: #0a0a0f;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    margin-bottom: 1.5rem;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212,175,55,0.3);
    background: #F4C430;
}

.cta-button-secondary {
    background: var(--color-blue-muted);
    border: 1px solid var(--color-blue-border);
    color: var(--color-blue);
}

.cta-button-secondary:hover {
    background: var(--color-blue-border);
    box-shadow: 0 10px 30px rgba(0,217,255,0.3);
}

.cta-button-success {
    background: var(--color-green-muted);
    border: 1px solid var(--color-green-border);
    color: var(--color-green);
}

.cta-button-success:hover {
    background: var(--color-green-border);
    box-shadow: 0 10px 30px rgba(124,179,66,0.3);
}

.cta-button-warning {
    background: var(--color-orange-muted);
    border: 1px solid var(--color-orange-border);
    color: var(--color-orange);
}

.cta-button-warning:hover {
    background: var(--color-orange-border);
    box-shadow: 0 10px 30px rgba(230,126,34,0.3);
}

.hero-footer {
    font-size: 0.9rem;
    color: #A89888;
}

/* Sections */
.section {
    padding: 4rem 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    color: #D4AF37;
    margin-bottom: 2rem;
    text-align: center;
}

/* Feature Cards */
.features-grid {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-card {
    background: rgba(26,15,10,0.5);
    border: 1px solid rgba(212,175,55,0.2);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: rgba(212,175,55,0.4);
    transform: translateY(-2px);
}

.feature-card h3 {
    color: #7CB342;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.feature-card p, .feature-card li {
    color: #B8A592;
    font-size: 0.95rem;
}

.feature-card ul {
    list-style: none;
    padding-left: 0;
}

.feature-card li {
    margin-bottom: 0.5rem;
    padding-left: 1.25rem;
    position: relative;
}

.feature-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #7CB342;
    font-size: 0.8rem;
}

/* 3D Placeholder in sections */
.visual-placeholder {
    background: rgba(0,217,255,0.05);
    border: 1px dashed rgba(0,217,255,0.3);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
    color: rgba(0,217,255,0.4);
    font-size: 0.9rem;
}

/* Ecosystem Flow */
.ecosystem-flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.ecosystem-card {
    background: rgba(26,15,10,0.5);
    border: 1px solid rgba(0,217,255,0.2);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: left;
}

.ecosystem-card h3 {
    color: #7CB342;
    margin-bottom: 0.75rem;
}

.ecosystem-card p {
    color: #B8A592;
    font-size: 0.9rem;
}

/* Architecture Levels */
.architecture-levels {
    position: relative;
    margin: 2rem 0;
}

.arch-card {
    background: rgba(26,15,10,0.5);
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.arch-card::after {
    content: '▼';
    display: block;
    text-align: center;
    color: #D4AF37;
    margin-top: 1rem;
    font-size: 1.2rem;
}

.arch-card:last-child::after {
    display: none;
}

.arch-card h3 {
    color: #D4AF37;
    margin-bottom: 0.75rem;
}

.arch-card ul {
    list-style: none;
    color: #B8A592;
}

.arch-card li {
    margin-bottom: 0.5rem;
    padding-left: 1.25rem;
    position: relative;
}

.arch-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #D4AF37;
}

/* Why Grid */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.why-item {
    background: rgba(124,179,66,0.08);
    border-left: 3px solid #7CB342;
    padding: 1rem;
    border-radius: 0 8px 8px 0;
}

.why-item h4 {
    color: #7CB342;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.why-item p {
    color: #B8A592;
    font-size: 0.9rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(212,175,55,0.2);
}

.modal-header h3 {
    color: #D4AF37;
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    color: #888;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: #fff;
}

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

.role-card {
    background: rgba(26,15,10,0.5);
    border: 1px solid rgba(212,175,55,0.2);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.role-card:hover {
    border-color: rgba(212,175,55,0.5);
    transform: translateY(-3px);
    background: rgba(212,175,55,0.1);
}

.role-card .icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.role-card h4 {
    color: #D4AF37;
    margin-bottom: 0.75rem;
}

.role-card ul {
    list-style: none;
    text-align: left;
}

.role-card li {
    color: #B8A592;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.role-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #D4AF37;
}

.modal-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(212,175,55,0.2);
}

.modal-note {
    color: #666;
    font-size: 0.85rem;
    font-style: italic;
    margin-top: 1rem;
}

.get-ticket-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: rgba(212,175,55,0.2);
    border: 1px solid rgba(212,175,55,0.4);
    color: #D4AF37;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.get-ticket-btn:hover {
    background: rgba(212,175,55,0.3);
}

/* Form styles */
.form-group label {
    display: block;
    color: #D4AF37;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 0.75rem;
    background: rgba(26,15,10,0.5);
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus {
    outline: none;
    border-color: rgba(212,175,55,0.6);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-group label {
    color: #B8A592;
    font-size: 0.9rem;
    cursor: pointer;
}

.btn {
    width: 100%;
    padding: 1rem;
    background: #D4AF37;
    color: #0a0a0f;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn:hover {
    background: #F4C430;
    transform: translateY(-2px);
}

.btn:disabled {
    background: #8B7355;
    cursor: not-allowed;
    transform: none;
}

.status-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
}

.status-message.success {
    background: rgba(124,179,66,0.1);
    border: 1px solid rgba(124,179,66,0.3);
    color: #7CB342;
}

.status-message.error {
    background: rgba(230,126,34,0.1);
    border: 1px solid rgba(230,126,34,0.3);
    color: #E67E22;
}

/* Footer */
.footer {
    background: rgba(26,15,10,0.5);
    border-top: 1px solid rgba(212,175,55,0.2);
    padding: 3rem 1rem;
    margin-top: 4rem;
}

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

.footer-section h4 {
    color: #D4AF37;
    margin-bottom: 1rem;
}

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

.footer-section .footer-links li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.footer-section .footer-links li i {
    color: #D4AF37;
    width: 16px;
    margin-top: 0.25rem;
}

.footer-section a {
    color: #7CB342;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #D4AF37;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(212,175,55,0.1);
    color: #666;
    font-size: 0.85rem;
}

.footer-logo {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.footer-title {
    text-align: center;
    font-size: 1.5rem;
    color: #D4AF37;
    margin-bottom: 0.25rem;
}

.footer-subtitle {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

/* Personality Builder */
.personality-builder {
    background: rgba(26,15,10,0.5);
    border: 1px solid rgba(212,175,55,0.2);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.reflex-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
}

.reflex-card {
    background: rgba(26,15,10,0.6);
    border: 1px solid rgba(212,175,55,0.2);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.reflex-card:hover {
    border-color: rgba(212,175,55,0.5);
    transform: translateY(-2px);
}

.reflex-card.selected {
    border-color: #7CB342;
    background: rgba(124,179,66,0.1);
    box-shadow: 0 0 15px rgba(124,179,66,0.2);
}

.context-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.context-btn {
    padding: 0.5rem 1rem;
    background: rgba(26,15,10,0.6);
    border: 1px solid rgba(0,217,255,0.2);
    border-radius: 6px;
    color: #B8A592;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.context-btn:hover {
    border-color: rgba(0,217,255,0.5);
}

.context-btn.active {
    background: rgba(124,179,66,0.2);
    border-color: #7CB342;
    color: #7CB342;
}

.run-btn {
    padding: 0.75rem 2rem;
    background: #D4AF37;
    color: #0a0a0f;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.run-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212,175,55,0.3);
    background: #F4C430;
}

.run-btn:disabled {
    background: #444;
    color: #888;
    cursor: not-allowed;
}

.orchestrator-result {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(124,179,66,0.2);
}

.pattern-display {
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(124,179,66,0.3);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    margin-bottom: 1rem;
}

.orchestrator-log {
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(124,179,66,0.2);
    border-radius: 8px;
    padding: 1rem;
    font-family: monospace;
    font-size: 0.8rem;
    color: #7CB342;
    max-height: 150px;
    overflow-y: auto;
}

/* Migration Visualization */
.migration-viz {
    background: rgba(26,15,10,0.5);
    border: 1px solid rgba(212,175,55,0.2);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.substrate-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.substrate-node {
    flex: 1;
    min-width: 120px;
    background: rgba(26,15,10,0.6);
    border: 2px solid rgba(212,175,55,0.3);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s;
    position: relative;
}

.substrate-node:hover {
    border-color: rgba(212,175,55,0.6);
    transform: translateY(-3px);
}

.substrate-node.active {
    border-color: #7CB342;
    box-shadow: 0 0 20px rgba(124,179,66,0.3);
}

.substrate-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.substrate-name {
    color: #D4AF37;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.substrate-type {
    color: #888;
    font-size: 0.8rem;
}

.migration-arrow {
    color: #D4AF37;
    font-size: 1.5rem;
    opacity: 0.5;
    animation: arrow-pulse 2s ease-in-out infinite;
}

.d8p-package {
    position: absolute;
    top: 50%;
    left: 60px;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #D4AF37, #F4C430);
    color: #0a0a0f;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(212,175,55,0.5);
    z-index: 10;
    animation: d8p-fly 4s ease-in-out infinite;
}

.d8p-hash {
    font-size: 0.7rem;
    color: #0a0a0f;
    opacity: 0.8;
    margin-top: 0.25rem;
}

@keyframes d8p-fly {
    0% {
        left: 60px;
        opacity: 0;
        transform: translateY(-50%) scale(0.8);
    }
    10% { opacity: 1; }
    20% {
        left: calc(25% - 40px);
        transform: translateY(-50%) scale(1);
    }
    30% { opacity: 1; }
    40% { opacity: 0; }
    50% {
        left: calc(50% - 40px);
        opacity: 1;
    }
    60% { opacity: 1; }
    70% { opacity: 0; }
    80% {
        left: calc(75% - 40px);
        opacity: 1;
    }
    90% { opacity: 1; }
    100% {
        left: calc(100% - 100px);
        opacity: 0;
        transform: translateY(-50%) scale(0.8);
    }
}

.migration-text {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px dashed rgba(212,175,55,0.2);
}

.migration-quote {
    color: #D4AF37;
    font-size: 1.1rem;
    font-style: italic;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .substrate-row {
        flex-direction: column;
    }

    .migration-arrow {
        transform: rotate(90deg);
    }

    .d8p-package {
        animation: d8p-fly-mobile 5s ease-in-out infinite;
    }

    @keyframes d8p-fly-mobile {
        0% {
            top: 50px;
            left: 50%;
            transform: translateX(-50%) scale(0.8);
            opacity: 0;
        }
        10% { opacity: 1; }
        20% {
            top: calc(25% - 20px);
            transform: translateX(-50%) scale(1);
        }
        30% { opacity: 1; }
        40% { opacity: 0; }
        50% {
            top: calc(50% - 20px);
            opacity: 1;
        }
        60% { opacity: 1; }
        70% { opacity: 0; }
        80% {
            top: calc(75% - 20px);
            opacity: 1;
        }
        90% { opacity: 1; }
        100% {
            top: calc(100% - 70px);
            opacity: 0;
            transform: translateX(-50%) scale(0.8);
        }
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1.2rem; }
    .section-title { font-size: 1.5rem; }
    .roles-grid { grid-template-columns: 1fr; }
    .modal-content { padding: 1rem; }
}

/* Bottom Lang Switcher */
.bottom-lang-select {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 2rem 1rem;
    background: rgba(26,15,10,0.5);
    border-top: 1px solid rgba(212,175,55,0.2);
    position: relative;
    z-index: 10;
}
.bottom-lang-select .lang-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--color-blue);
    background: rgba(0,217,255,0.1);
    color: var(--color-blue);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}
.bottom-lang-select .lang-btn:hover {
    background: var(--color-blue);
    color: var(--color-bg-dark);
    transform: translateY(-2px);
}
