/* ============================================
   HELIX SHOWCASE - STYLES
   Matching aethyrion.org aesthetic
   ============================================ */

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

/* ROOT VARIABLES */
:root {
    /* Colors - Match aethyrion.org */
    --bg-dark: #0f172a;
    --bg-darker: #1e293b;
    --bg-card: rgba(30, 41, 59, 0.6);
    
    --blue: #3b82f6;
    --purple: #8b5cf6;
    --cyan: #06b6d4;
    --green: #10b981;
    --gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --gradient-cyan: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    
    --border-glass: rgba(255, 255, 255, 0.1);
    --shadow-glow: rgba(59, 130, 246, 0.3);
    
    /* Spacing */
    --container-width: 1200px;
    --section-padding: 6rem 2rem;
    
    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* GLOBAL STYLES */
body {
    font-family: var(--font-family);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* SECTION STYLES */
section {
    padding: var(--section-padding);
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* HERO SECTION */
.hero {
    text-align: center;
    padding: 8rem 2rem 6rem;
    background: radial-gradient(ellipse at top, rgba(59, 130, 246, 0.15), transparent 50%);
    position: relative;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 30px;
    color: var(--blue);
    font-weight: 600;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.highlight {
    color: var(--blue);
    font-weight: 600;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hero-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    align-items: center;
}

.hero-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.hero-links a:hover {
    color: var(--blue);
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-cyan);
    color: white;
    box-shadow: 0 4px 12px var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-glass);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: var(--blue);
    background: rgba(59, 130, 246, 0.1);
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

/* GLASSMORPHISM CARD */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

/* PRESET COMPARISON SECTION */
.preset-comparison {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(139, 92, 246, 0.05));
    position: relative;
}

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

.preset-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.preset-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(59, 130, 246, 0.2);
}

.preset-card.featured {
    border: 2px solid var(--blue);
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.3);
    background: rgba(30, 41, 59, 0.8);
}

.preset-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.preset-header h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.badge {
    padding: 0.375rem 0.875rem;
    background: rgba(59, 130, 246, 0.2);
    color: var(--blue);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-highlight {
    background: rgba(139, 92, 246, 0.2);
    color: var(--purple);
}

.preset-image {
    width: 100%;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.preset-info .prompt {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.feature-list {
    list-style: none;
    margin-top: 1rem;
}

.feature-list li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 0.375rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* AI ERROR FIXING SECTION */
.error-fixing {
    background: var(--bg-darker);
}

.error-demo-grid {
    display: grid;
    gap: 3rem;
}

.error-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 1rem;
    padding: 2rem;
}

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

.error-steps {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.error-step {
    text-align: center;
}

.step-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.step-badge.error {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.step-badge.success {
    background: rgba(16, 185, 129, 0.2);
    color: var(--green);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.error-step img {
    width: 100%;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.error-msg {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 0.75rem;
    border-radius: 0.5rem;
    color: #ef4444;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.success-msg {
    color: var(--green);
    font-weight: 600;
    margin-top: 0.5rem;
}

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

/* COMPONENT GALLERY */
.gallery {
    background: var(--bg-dark);
}

.component-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
}

.component-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.component-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(59, 130, 246, 0.2);
}

.component-card.highlight-error-fix {
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.component-card.highlight-error-fix:hover {
    box-shadow: 0 12px 48px rgba(16, 185, 129, 0.2);
}

.component-image {
    position: relative;
    overflow: hidden;
    background: var(--bg-darker);
}

.component-image img {
    width: 100%;
    display: block;
}

.component-info {
    padding: 1.5rem;
}

.error-fix-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: rgba(16, 185, 129, 0.2);
    color: var(--green);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.component-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.component-prompt {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.component-meta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* PROVIDER BADGE */
.provider-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(139, 92, 246, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.provider-name {
    color: var(--purple);
    font-weight: 600;
}

.provider-badge .model {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* TAGS */
.tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: rgba(59, 130, 246, 0.2);
    color: var(--blue);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* PROVIDER SHOWCASE */
.providers {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(6, 182, 212, 0.05));
}

.provider-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.provider-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 1rem;
    padding: 1.75rem;
    text-align: center;
    transition: all 0.3s ease;
}

.provider-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.2);
}

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

.provider-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.provider-stat {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.provider-free {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: rgba(16, 185, 129, 0.2);
    color: var(--green);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.provider-desc {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

.provider-cta {
    text-align: center;
    margin-top: 3rem;
    padding: 1.5rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 1rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

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

/* FOOTER CTA */
.footer-cta {
    text-align: center;
    padding: 5rem 2rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: 1.5rem;
    margin: 0 2rem 4rem;
}

.footer-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

.cta-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.platform-info {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.footer-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

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

.footer-links a:hover {
    color: var(--blue);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 1rem;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .component-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .component-grid {
        grid-template-columns: 1fr;
    }
    
    .provider-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .error-steps {
        grid-template-columns: 1fr;
    }
    
    .arrow {
        transform: rotate(90deg);
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 3rem 1rem;
    }
    
    .hero {
        padding: 4rem 1rem 3rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .preset-card,
    .error-card,
    .component-card {
        padding: 1.25rem;
    }
    
    .provider-grid {
        grid-template-columns: 1fr;
    }
}