/* ==========================================================================
   UnderPar - Main Styles
   ========================================================================== */

/* CSS Variables */
:root {
    --primary: #32ad7e;
    --primary-hover: #2a9970;
    --secondary-dark: #042537;
    --secondary-light: #f4f6f8;
    --accent-slate: #7c8b98;
    --bg-primary: #ffffff;
    --bg-secondary: #f4f6f8;
    --bg-dark: #042537;
    --text-primary: #042537;
    --text-secondary: #7c8b98;
    --border: #e2e8f0;
    --success: #32ad7e;
    --error: #ef4444;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    
    /* Spacing */
    --container-max-width: 1200px;
    --container-padding: 24px;
    --section-padding: 100px;
    
    /* Border Radius */
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 20px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Layout Components
   ========================================================================== */

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

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition-fast);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.logo:hover {
    color: var(--primary-hover);
}

.nav-link {
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: none;
    margin-right: 24px;
    font-size: 14px;
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary);
}

.nav-button {
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
    font-size: 14px;
}

.nav-button:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    padding: 120px 0 80px;
    background: linear-gradient(180deg, var(--secondary-light) 0%, var(--bg-primary) 100%);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 8px 16px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.hero-badge::before {
    content: "⚡";
    margin-right: 8px;
}

.hero h1 {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin: 60px 0;
    padding: 40px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    display: block;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(50, 173, 126, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    padding: 16px 32px;
    border: 1px solid var(--border);
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn-secondary:hover {
    background: var(--secondary-light);
}

/* Loading state for buttons */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ==========================================================================
   Features Section
   ========================================================================== */

.features {
    padding: var(--section-padding) 0;
    background: var(--secondary-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.feature-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-md);
    padding: 32px;
    transition: all var(--transition-normal);
}

.feature-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 24px;
    color: white;
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================================================
   Social Proof / Results Section
   ========================================================================== */

.social-proof {
    padding: var(--section-padding) 0;
    background: var(--bg-primary);
}

/* Results Widget */
.results-widget {
    max-width: 900px;
    margin: 40px auto;
    border: 1px solid var(--border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: var(--bg-primary);
    box-shadow: var(--shadow-lg);
}

.results-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
    padding: 20px;
    font-size: 20px;
    font-weight: 700;
}

.results-stats {
    background-color: var(--secondary-light);
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    text-align: center;
}

.results-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.results-stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.results-content {
    padding: 24px;
}

.tournament-summary {
    background: linear-gradient(135deg, var(--primary), #2a9970);
    color: white;
    padding: 16px;
    border-radius: var(--border-radius-md);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.tournament-name {
    font-size: 16px;
    font-weight: 600;
}

.tournament-details {
    font-size: 13px;
    opacity: 0.9;
}

.tournament-profit {
    font-size: 20px;
    font-weight: 700;
}

.tournament-record {
    font-size: 13px;
    opacity: 0.9;
}

.picks-list {
    display: grid;
    gap: 12px;
}

.pick-item {
    border-radius: var(--border-radius-sm);
    padding: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.pick-win {
    border: 1px solid var(--primary);
    background-color: rgba(50, 173, 126, 0.05);
}

.pick-loss {
    border: 1px solid var(--error);
    background-color: rgba(239, 68, 68, 0.05);
}

.pick-details {
    flex: 1;
    min-width: 200px;
}

.pick-matchup {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.pick-info {
    font-size: 12px;
    color: var(--text-secondary);
}

.pick-result {
    text-align: right;
}

.pick-status {
    padding: 4px 12px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 4px;
    display: inline-block;
}

.pick-status-win {
    background-color: var(--primary);
    color: white;
}

.pick-status-loss {
    background-color: var(--error);
    color: white;
}

.pick-profit {
    font-size: 12px;
    font-weight: 600;
}

.pick-profit-positive {
    color: var(--primary);
}

.pick-profit-negative {
    color: var(--error);
}

.results-footer {
    text-align: center;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    margin-top: 20px;
    font-size: 12px;
    color: var(--text-secondary);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.testimonial {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-md);
    padding: 32px;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.author-title {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */

.pricing {
    padding: var(--section-padding) 0;
    background: var(--bg-primary);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 800px;
    margin: 60px auto 0;
}

.pricing-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-lg);
    padding: 40px 32px;
    position: relative;
    transition: all var(--transition-normal);
}

.pricing-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(50, 173, 126, 0.15);
    transform: scale(1.02);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.pricing-plan {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.pricing-price {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.pricing-period {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 14px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
}

.pricing-features li::before {
    content: "✓";
    color: var(--success);
    font-weight: 600;
    font-size: 16px;
}

.pricing-button {
    width: 100%;
    justify-content: center;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */

.faq {
    padding: var(--section-padding) 0;
    background: var(--secondary-light);
}

.faq-list {
    max-width: 800px;
    margin: 60px auto 0;
}

.faq-item {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-md);
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 24px;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-fast);
}

.faq-question:hover {
    background: var(--secondary-light);
}

.faq-answer {
    padding: 0 24px 24px;
    color: var(--text-secondary);
    line-height: 1.6;
    display: none;
}

.faq-icon {
    transition: transform var(--transition-fast);
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
}

.faq-item.open .faq-answer {
    display: block;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    background: var(--secondary-dark);
    color: white;
    padding: 60px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-section p,
.footer-section a {
    color: var(--accent-slate);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.6;
}

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

.footer-bottom {
    border-top: 1px solid var(--accent-slate);
    padding-top: 24px;
    text-align: center;
    color: var(--accent-slate);
    font-size: 14px;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .hero h1 {
        font-size: 40px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

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

    .pricing-card.featured {
        transform: none;
    }

    .container {
        padding: 0 16px;
    }

    .section-title {
        font-size: 36px;
    }

    .results-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .tournament-summary {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .pick-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .pick-result {
        text-align: left;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 32px;
    }

    .section-title {
        font-size: 28px;
    }

    .results-stats {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .header,
    .footer,
    .cta-group,
    .pricing-card {
        display: none;
    }
}