/* Compan Template - Mobile-First Card Design with Glassmorphism */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary: #3b82f6;
    --secondary: #06b6d4;
    --accent: #8b5cf6;
    --text: #0f172a;
    --text-light: #64748b;
    --bg: #f1f5f9;
    --card-bg: rgba(255, 255, 255, 0.9);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

body { 
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.7; 
    padding: 16px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: var(--text);
    min-height: 100vh;
    position: relative;
}

/* Animated background blobs */
body::before,
body::after {
    content: "";
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
    animation: float 20s ease-in-out infinite;
}

body::before {
    width: 300px;
    height: 300px;
    background: var(--primary);
    top: -100px;
    right: -100px;
}

body::after {
    width: 250px;
    height: 250px;
    background: var(--secondary);
    bottom: -80px;
    left: -80px;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.container { 
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Glassmorphism card */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

h1 { 
    color: var(--text); 
    font-size: 1.875rem;
    margin-bottom: 16px; 
    line-height: 1.2;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}





article { 
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
}

article p {
    margin-bottom: 16px;
}

article strong {
    color: var(--primary);
    font-weight: 600;
}

article ul, article ol {
    margin: 16px 0;
    padding-left: 24px;
}

article li {
    margin-bottom: 10px;
    position: relative;
}

article li::marker {
    color: var(--primary);
}

/* Related questions with progressive disclosure */
.related-questions {
    margin-top: 24px;
}

.related-questions h2 {
    color: var(--text);
    font-size: 1.25rem;
    margin-bottom: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.related-questions h2::before {
    content: "💡";
    font-size: 1.5rem;
}

.related-questions ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-questions li {
    margin: 0;
}

/* Touch-optimized cards */
.related-questions a {
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(59, 130, 246, 0.1);
    font-weight: 500;
    font-size: 0.9375rem;
    min-height: 60px;
    position: relative;
    overflow: hidden;
}

.related-questions a::before {
    content: "→";
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 700;
    transition: transform 0.3s;
}

.related-questions a::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    transform: scaleY(0);
    transition: transform 0.3s;
}

.related-questions a:active {
    transform: scale(0.97);
}

.related-questions a:hover::after {
    transform: scaleY(1);
}

.related-questions a:hover::before {
    transform: translateX(4px);
}

.related-questions a:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
}

footer {
    margin-top: 32px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    font-size: 0.875rem;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

footer p {
    margin-bottom: 8px;
    line-height: 1.6;
}

footer strong {
    color: var(--text);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Desktop enhancements (progressive enhancement) */
@media (min-width: 768px) {
    body {
        padding: 40px 20px;
    }
    
    .card {
        padding: 40px;
        border-radius: 32px;
        margin-bottom: 24px;
    }
    
    h1 {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }
    
    article {
        font-size: 1.125rem;
    }
    
    .related-questions h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .related-questions ul {
        gap: 16px;
    }
    
    .back:hover {
        transform: translateY(-2px);
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --text: #f1f5f9;
        --text-light: #cbd5e0;
        --bg: #0f172a;
        --card-bg: rgba(30, 41, 59, 0.9);
    }
    
    body {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* CTA Block Styles - Compan Glassmorphism */
.cta-block {
    margin: 32px 0;
    padding: 28px;
    border-radius: 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow);
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.cta-style-primary {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(6, 182, 212, 0.9));
    backdrop-filter: blur(20px);
    color: white;
}

.cta-style-secondary {
    background: rgba(59, 130, 246, 0.08);
    border: 2px solid var(--primary);
    color: var(--text);
}

.cta-style-accent {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(236, 72, 153, 0.9));
    backdrop-filter: blur(20px);
    color: white;
}

.cta-style-minimal {
    background: rgba(255, 255, 255, 0.5);
    border-top: 2px solid rgba(59, 130, 246, 0.2);
    color: var(--text);
}

.cta-title {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-text {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 20px;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-style-primary .cta-button {
    background: white;
    color: var(--primary);
}

.cta-style-primary .cta-button:active {
    transform: scale(0.97);
}

.cta-style-primary .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.5);
}

.cta-style-secondary .cta-button {
    background: var(--primary);
    color: white;
}

.cta-style-secondary .cta-button:hover {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.cta-style-accent .cta-button {
    background: white;
    color: var(--accent);
}

.cta-style-accent .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.5);
}

.cta-style-minimal .cta-button {
    background: var(--primary);
    color: white;
}

.cta-style-minimal .cta-button:hover {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

@media (min-width: 768px) {
    .cta-block {
        padding: 40px;
        border-radius: 28px;
    }
    
    .cta-title {
        font-size: 1.75rem;
        margin-bottom: 16px;
    }
    
    .cta-text {
        font-size: 1.0625rem;
    }
    
    .cta-button {
        padding: 16px 40px;
        font-size: 1.0625rem;
    }
}
