:root {
    /* Primary colors from the app's palette */
    --primary-blue: #235699;      /* boardTrianglePurple - Lapis Lazuli */
    --primary-brown: #976956;     /* boardTriangleBlue - Raw Umber */
    --light-gray: #bcbbbb;        /* Primary background color */
    --darker-gray: #a0a0a0;       /* Slightly darker gray */
    --checker-light: #c8c8c8;     /* player1Checker */
    --checker-dark: #1a4c72;      /* player2Checker */
    --border-coffee: #724d3e;     /* boardBorder - Coffee */
    
    /* Secondary colors */
    --success-green: #4CAF50;
    --error-red: #F44336;
    --warning-amber: #FFC107;
    --gradient-primary: linear-gradient(135deg, #235699 0%, #1a4472 100%);
    --gradient-secondary: linear-gradient(135deg, #976956 0%, #724d3e 100%);
    --gradient-hero: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #dee2e6 100%);
}

/* Global Styles */
body {
    font-family: 'Nunito', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f8f9fa;
    padding-top: 80px; /* Account for fixed header */
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #242325;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-brown);
}

.btn {
    border-radius: 12px;
    padding: 12px 28px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(35, 86, 153, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(35, 86, 153, 0.4);
    color: white;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 700;
}

.btn-warning {
    background: linear-gradient(135deg, #FFC107 0%, #FF8F00 100%);
    color: #333;
    font-weight: 700;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
    color: #333;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    padding-bottom: 15px;
    font-size: 2.5rem;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-secondary);
    border-radius: 2px;
}

/* Floating CTA */
.floating-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    animation: pulse 2s infinite;
}

.floating-cta .btn {
    border-radius: 50px;
    padding: 15px 25px;
    box-shadow: 0 8px 25px rgba(35, 86, 153, 0.3);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand img.logo {
    height: 45px;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img.logo {
    transform: rotate(5deg);
}

.navbar-brand span {
    font-weight: 700;
    font-size: 1.5rem;
    color: #242325;
}

.nav-link {
    color: #333;
    font-weight: 500;
    padding: 10px 15px;
    margin: 0 5px;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link:focus::after {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(0,0,0,0.03)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.hero-badge i {
    color: #FFC107;
    margin-right: 8px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #242325;
    line-height: 1.2;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .lead {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: #555;
    max-width: 600px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 40px;
}

.primary-cta {
    transition: transform 0.3s ease;
}

.primary-cta:hover {
    transform: scale(1.05);
}

.download-note {
    text-align: center;
    margin-top: 10px;
    color: #666;
}

.hero-image {
    position: relative;
    padding: 20px;
}

.hero-carousel {
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.3s ease;
}

.hero-carousel:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.hero-carousel img {
    border-radius: 0;
}

/* Trust Signals */
.trust-signals {
    padding: 60px 0;
    background: white;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: rgba(35, 86, 153, 0.05);
    border-radius: 50px;
    color: var(--primary-blue);
    font-weight: 600;
    transition: all 0.3s ease;
}

.trust-badge:hover {
    background: rgba(35, 86, 153, 0.1);
    transform: translateY(-2px);
}

.trust-badge i {
    font-size: 1.2rem;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    height: 100%;
    transition: all 0.4s ease;
    border: 1px solid rgba(35, 86, 153, 0.1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: translateX(0);
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.feature-highlight {
    border: 2px solid var(--primary-blue);
    position: relative;
}

.feature-highlight::after {
    content: 'POPULAR';
    position: absolute;
    top: -1px;
    right: 20px;
    background: var(--gradient-primary);
    color: white;
    padding: 5px 15px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 0 0 10px 10px;
    letter-spacing: 1px;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    margin-bottom: 25px;
    font-size: 32px;
    box-shadow: 0 10px 30px rgba(35, 86, 153, 0.3);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #242325;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.feature-benefit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(76, 175, 80, 0.1);
    color: var(--success-green);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background: var(--gradient-hero);
}

.testimonial-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    height: 100%;
    margin-bottom: 30px;
    position: relative;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: rgba(35, 86, 153, 0.2);
    font-family: serif;
}

.stars {
    font-size: 1.2rem;
    color: #FFC107;
    margin-bottom: 20px;
}

.testimonial-card p {
    font-style: italic;
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.6;
}

.testimonial-author strong {
    color: var(--primary-blue);
    font-weight: 700;
    display: block;
}

.testimonial-author span {
    color: #666;
    font-size: 0.9rem;
}

/* App Preview Section */
.app-preview {
    padding: 100px 0;
    background: white;
}

.app-preview h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #242325;
}

.app-preview .lead {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.features-list li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.features-list i {
    color: var(--success-green);
    margin-right: 15px;
    font-size: 1.3rem;
}

.app-preview img {
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* Urgency Section */
.urgency-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E8E 100%);
    color: white;
}

.urgency-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 50px 40px;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    color: #333;
    position: relative;
    overflow: hidden;
}

.urgency-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.urgency-card > * {
    position: relative;
    z-index: 1;
}

.urgency-card h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.urgency-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.urgency-stat {
    text-align: center;
}

.urgency-stat strong {
    display: block;
    font-size: 1.8rem;
    color: var(--primary-blue);
    font-weight: 800;
}

.urgency-stat span {
    font-size: 0.9rem;
    color: #666;
}

/* Analysis Engine */
.analysis-engine {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, white 100%);
}

.analysis-engine h3 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #242325;
}

.analysis-engine .lead {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
}

.analysis-features {
    margin-top: 40px;
}

.analysis-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.analysis-feature:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.analysis-feature i {
    color: var(--success-green);
    margin-right: 20px;
    font-size: 1.5rem;
    margin-top: 5px;
}

.analysis-feature h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #242325;
}

.analysis-feature p {
    color: #666;
    margin: 0;
}

/* Download Section */
.download {
    padding: 100px 0;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

.download h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
}

.download .lead {
    font-size: 1.3rem;
    margin-bottom: 50px;
    opacity: 0.9;
}

.download-benefits {
    margin: 50px 0;
}

.download-benefit {
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.download-benefit:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.download-benefit i {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #FFC107;
}

.download-benefit h4 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.download-benefit p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.download-buttons {
    margin: 40px 0;
}

.download-info .platforms {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin-top: 30px;
}

/* Footer improvements */
.footer {
    background: #242325;
    color: #ccc;
    padding: 60px 0 30px;
}

.footer-brand {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-brand img.logo {
    height: 40px;
    margin-right: 12px;
}

.footer-brand span {
    font-weight: 700;
    font-size: 1.3rem;
    color: white;
}

.footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #444;
    color: #999;
}

/* App Store Badge */
.app-store-badge {
    height: 60px;
    transition: all 0.3s ease;
}

.app-store-badge:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        gap: 20px;
        justify-content: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .trust-badges {
        gap: 20px;
    }
    
    .urgency-stats {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .header {
        padding: 10px 0;
    }
    
    .navbar-brand img.logo {
        height: 35px;
    }
    
    .hero {
        padding: 80px 0 60px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero .lead {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .stat {
        flex: 1;
        min-width: 120px;
    }
    
    .trust-badges {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .features,
    .testimonials,
    .app-preview,
    .analysis-engine,
    .download {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .floating-cta {
        bottom: 15px;
        right: 15px;
    }
    
    .floating-cta .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .urgency-card {
        padding: 30px 20px;
    }
    
    .urgency-card h3 {
        font-size: 1.5rem;
    }
    
    .urgency-stats {
        flex-direction: column;
        gap: 20px;
    }
}

/* Additional animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Focus states for accessibility */
.btn:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .feature-card {
        border: 2px solid #333;
    }
    
    .trust-badge {
        border: 1px solid var(--primary-blue);
    }
} 