/* ===== XSec Design System ===== */

:root {
    --xsec-primary: #0d6efd;
    --xsec-primary-dark: #0a4da6;
    --xsec-accent: #10b981;
    --xsec-dark: #0f172a;
    --xsec-dark-2: #1e293b;
    --xsec-light: #f8fafc;
    --xsec-text: #1e293b;
    --xsec-muted: #64748b;
    --xsec-radius: 0.75rem;
    --xsec-radius-lg: 1rem;
    --xsec-shadow: 0 2px 12px rgba(0,0,0,0.08);
    --xsec-shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --xsec-transition: all 0.3s ease;
    --xsec-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Global */
body {
    font-family: var(--xsec-font);
    color: var(--xsec-text);
    background-color: #ffffff;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

a {
    color: var(--xsec-primary);
    text-decoration: none;
    transition: var(--xsec-transition);
}

a:hover {
    color: var(--xsec-primary-dark);
}

/* Content sections */
.page-header {
    margin-left: 0;
    margin-right: 0;
    border-bottom: 2px solid var(--xsec-primary);
    padding: 3rem 15px 0.75rem;
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .page-header {
        padding: 3rem 50px 0.75rem;
    }
}

@media (min-width: 992px) {
    .page-header {
        padding: 3.5rem 100px 0.75rem;
    }
}

@media (min-width: 1200px) {
    .page-header {
        padding: 3.5rem 200px 0.75rem;
    }
}

.page-header h1 {
    color: var(--xsec-dark);
    font-size: 2rem;
}

.content-section {
    padding: 0 15px;
}

@media (min-width: 768px) {
    .content-section {
        padding: 0 50px;
    }
}

@media (min-width: 992px) {
    .content-section {
        padding: 0 100px;
    }
}

@media (min-width: 1200px) {
    .content-section {
        padding: 0 200px;
    }
}

/* Compound selector: page-header + content-section must use page-header's padding */
.page-header.content-section {
    padding: 3rem 15px 0.75rem;
}

@media (min-width: 768px) {
    .page-header.content-section {
        padding: 3rem 50px 0.75rem;
    }
}

@media (min-width: 992px) {
    .page-header.content-section {
        padding: 3.5rem 100px 0.75rem;
    }
}

@media (min-width: 1200px) {
    .page-header.content-section {
        padding: 3.5rem 200px 0.75rem;
    }
}

/* Content area minimum height */
.content-min-height {
    min-height: 600px;
    padding-top: 1.5rem;
    padding-bottom: 2rem;
}

/* Support page content */
.support-content {
    font-size: 1.05rem;
    line-height: 1.8;
    padding: 0 15px;
}

@media (min-width: 768px) {
    .support-content {
        padding: 0 50px;
    }
}

@media (min-width: 992px) {
    .support-content {
        padding: 0 100px;
    }
}

@media (min-width: 1200px) {
    .support-content {
        padding: 0 200px;
    }
}

.support-content p {
    margin-bottom: 1rem;
}

/* Tooltip */
.tooltip-inner {
    max-width: 300px;
}

/* Buttons enhancement */
.btn {
    border-radius: var(--xsec-radius);
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    transition: var(--xsec-transition);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--xsec-shadow);
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    border-radius: var(--xsec-radius-lg);
}

/* Card enhancement */
.card {
    border: none;
    border-radius: var(--xsec-radius-lg);
    box-shadow: var(--xsec-shadow);
    transition: var(--xsec-transition);
}

.card:hover {
    box-shadow: var(--xsec-shadow-lg);
}

/* Badge enhancement */
.badge {
    font-weight: 600;
    padding: 0.35em 0.65em;
    border-radius: 0.375rem;
}

/* Alert enhancement */
.alert {
    border-radius: var(--xsec-radius);
    border: none;
}

/* Footer */
.site-footer {
    background-color: var(--xsec-dark);
    color: #cbd5e1;
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

.site-footer h5 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.site-footer .footer-desc {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--xsec-transition);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.footer-divider {
    border-color: #334155;
    margin: 1.5rem 0;
}

.footer-copyright {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.footer-copyright a {
    color: #94a3b8;
}

.footer-copyright a:hover {
    color: #ffffff;
}

/* Scroll animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Image enhancement */
.img-shadow {
    border-radius: var(--xsec-radius-lg);
    box-shadow: var(--xsec-shadow-lg);
    transition: var(--xsec-transition);
}

.img-shadow:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
}

/* ===== Hero Section ===== */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0d6efd 100%);
    color: #ffffff;
    padding: 5rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, #ffffff);
}

.hero-icon {
    font-size: 4rem;
    color: var(--xsec-accent);
    filter: drop-shadow(0 4px 12px rgba(16, 185, 129, 0.4));
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 0;
}

.hero-screenshot {
    max-width: 100%;
    height: auto;
    border: 1px solid rgba(255,255,255,0.1);
}

.hero-actions .btn-outline-warning {
    color: #ffc107;
    border-color: #ffc107;
}

.hero-actions .btn-outline-warning:hover {
    background-color: #ffc107;
    color: #000;
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 3rem 0 2rem;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .hero-icon {
        font-size: 3rem;
    }
}

/* ===== Awards Section ===== */
.awards-section {
    background-color: var(--xsec-light);
}

.award-card {
    background: #ffffff;
    border-radius: var(--xsec-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--xsec-shadow);
    transition: var(--xsec-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
}

.award-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--xsec-shadow-lg);
}

.award-img {
    max-width: 100%;
    max-height: 100px;
    height: auto;
}
