/* Demos Page Styling */

.demos-hero {
    text-align: center;
    padding: 160px 20px 100px;
    background: linear-gradient(135deg, #0F1923 0%, #2F4A68 100%);
    border-bottom: 3px solid #D4A855;
    color: white;
}

.demos-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.demos-hero p {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

.demos-grid-section {
    padding: 80px 20px;
}

.demos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    align-items: stretch; /* KEY FIX: All cards same height */
}

.demo-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column; /* KEY FIX: Column layout for alignment */
    height: 100%; /* KEY FIX: Full height */
}

.demo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}

.demo-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0F1923;
    border: 2px solid #D4A855;
    border-radius: 50%;
}

.demo-icon svg {
    width: 40px;
    height: 40px;
    stroke: #D4A855;
}

.demo-content {
    flex-grow: 1; /* KEY FIX: Content grows to fill available space */
    margin-bottom: 20px;
    text-align: center;
}

.demo-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2d3748;
}

.demo-content p {
    font-size: 1rem;
    color: #4a5568;
    margin-bottom: 15px;
    line-height: 1.6;
}

.demo-features {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.demo-features li {
    padding: 8px 0;
    color: #4a5568;
    text-align: center;
    width: 100%;
}

.demo-features li:before {
    content: "✓ ";
    color: #16283C;
    font-weight: bold;
}

.demo-actions {
    display: flex;
    gap: 10px;
    margin-top: auto; /* KEY FIX: Actions always at bottom */
}

.demo-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.demo-btn-primary {
    background: #D4A855;
    color: #0F1923;
}

.demo-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(22, 40, 60, 0.3);
}

.demos-cta {
    background: #f7fafc;
    padding: 80px 20px;
    text-align: center;
}

.demos-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #2d3748;
}

.demos-cta p {
    font-size: 1.25rem;
    color: #4a5568;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.demos-cta .cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .demos-hero h1 {
        font-size: 2rem;
    }

    .demos-hero p {
        font-size: 1.1rem;
    }

    .demos-grid {
        grid-template-columns: 1fr;
    }

    .demo-actions {
        flex-direction: column;
    }

    .demos-cta h2 {
        font-size: 2rem;
    }
}

/* --- Keyara contrast fixes --- */
.demos-hero p {
    color: #E8EDF2;
    opacity: 1;
}
/* glyphs are drawn with currentColor, so set `color` on the disc */
.demo-icon { color: #FFFFFF; }
.demo-icon svg { stroke: currentColor; }
