/* ============================================
   SwingPlane - Golf Swing Analyzer CSS
   Modern, Clean, Mobile-First Design
   ============================================ */

/* ============================================
   CSS Variables & Reset
   ============================================ */

   :root {
    /* Color Palette - Golf Green Theme */
    --primary-green: #2ecc71;
    --primary-dark: #27ae60;
    --primary-light: #a8e6cf;
    
    --accent-blue: #3498db;
    --accent-orange: #e67e22;
    
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --text-white: #ffffff;
    
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #2c3e50;
    
    --border-color: #e1e8ed;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    
    /* Typography */
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-heading: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Container & Layout
   ============================================ */

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

/* ============================================
   Navigation
   ============================================ */

.navbar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: var(--spacing-sm) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.logo {
    font-size: 2rem;
}

.brand-name {
    font-family: var(--font-heading);
    background: linear-gradient(135deg, var(--primary-green), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
}

.nav-links a:hover {
    color: var(--primary-green);
    background: var(--bg-light);
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-dark));
    color: var(--text-white);
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    display: inline-block;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--primary-green);
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-green);
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--primary-green);
    color: var(--text-white);
}

.btn-outline {
    background: transparent;
    color: var(--primary-green);
    padding: 1rem 2rem;
    border: 2px solid var(--primary-green);
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    text-decoration: none;
}

.btn-outline:hover {
    background: var(--primary-green);
    color: var(--text-white);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.125rem;
}

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

.hero {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(46, 204, 113, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.hero-content {
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

.highlight {
    background: linear-gradient(135deg, var(--primary-green), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

.upload-section {
    margin-bottom: var(--spacing-md);
}

.upload-note {
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
    margin-top: var(--spacing-sm);
}

/* Social Proof */
.social-proof {
    display: flex;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-green);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: var(--text-dark);
    border-radius: 40px;
    padding: 15px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.swing-animation {
    font-size: 5rem;
    animation: swing 2s ease-in-out infinite;
}

@keyframes swing {
    0%, 100% { transform: rotate(-15deg); }
    50% { transform: rotate(15deg); }
}

.analysis-overlay {
    position: absolute;
    bottom: 30px;
    left: 20px;
    right: 20px;
}

.plane-line {
    height: 3px;
    background: var(--text-white);
    width: 80%;
    margin: 0 auto 1rem;
    position: relative;
    transform: rotate(-45deg);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.result-badge {
    background: var(--bg-white);
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    text-align: center;
}

.result-badge.good {
    border-left: 4px solid var(--primary-green);
}

.result-angle {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-green);
}

.result-status {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* ============================================
   Sections
   ============================================ */

section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
}

/* ============================================
   How It Works
   ============================================ */

.how-it-works {
    background: var(--bg-white);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.step {
    text-align: center;
    padding: var(--spacing-md);
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    position: relative;
    transition: var(--transition);
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary-green);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.step-icon {
    font-size: 4rem;
    margin: var(--spacing-md) 0;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.step-description {
    color: var(--text-light);
    line-height: 1.6;
}

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

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

.features {
    background: var(--bg-light);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.feature-card {
    background: var(--bg-white);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

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

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

.pricing {
    background: var(--bg-white);
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.1);
}

.plan-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-green);
    color: var(--text-white);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.plan-price {
    margin-bottom: var(--spacing-md);
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-green);
}

.price-period {
    font-size: 1rem;
    color: var(--text-light);
}

.plan-features {
    list-style: none;
    margin-bottom: var(--spacing-md);
    text-align: left;
}

.plan-features li {
    padding: var(--spacing-xs) 0;
    color: var(--text-dark);
}

/* ============================================
   Final CTA
   ============================================ */

.final-cta {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-dark));
    color: var(--text-white);
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.cta-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

.cta-note {
    margin-top: var(--spacing-sm);
    opacity: 0.8;
    font-size: 0.875rem;
}

.final-cta .btn-primary {
    background: var(--bg-white);
    color: var(--primary-green);
}

.final-cta .btn-primary:hover {
    background: var(--bg-light);
}

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

.footer {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: var(--spacing-md) 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.footer-brand .logo {
    font-size: 1.5rem;
}

.footer-brand .brand-name {
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-tagline {
    display: none;
}

.footer-links {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.footer-column {
    display: none;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: var(--primary-green);
}

.footer-bottom {
    padding-top: var(--spacing-sm);
    text-align: center;
    color: var(--text-light);
    font-size: 0.75rem;
}

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

@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .social-proof {
        justify-content: center;
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links a:not(.btn-secondary) {
        display: none;
    }
    
    .phone-mockup {
        width: 250px;
        height: 500px;
    }
    
    .swing-animation {
        font-size: 3rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .btn-large {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 100%;
    }
    
    .social-proof {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .footer-links {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-xs);
    }
    
    /* Modal Responsive */
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 0.625rem 0.75rem;
    }
    
    .modal-header h2 {
        font-size: 1.125rem;
    }
    
    .modal-body {
        padding: 0.625rem 0.75rem;
    }
    
    .result-angle-display {
        font-size: 2rem;
    }
    
    .result-status {
        font-size: 1rem;
    }
    
    .result-message {
        font-size: 0.8125rem;
    }
    
    .signup-prompt {
        padding: 0.625rem;
    }
    
    .signup-prompt h3 {
        font-size: 0.9375rem;
        margin-bottom: 0.5rem;
    }
    
    /* Hide arrow on mobile */
    .signup-prompt h3::after {
        display: none;
    }
    
    /* Stack columns on mobile */
    .signup-content {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .signup-prompt li {
        font-size: 0.75rem;
        padding: 0.0625rem 0;
    }
    
    .btn-signup {
        padding: 0.5rem 0.625rem;
        font-size: 0.8125rem;
    }
    
    .signup-note {
        margin-top: 0.375rem;
    }
}

/* ============================================
   Modals
   ============================================ */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.modal-body {
    padding: 0.75rem 1rem;
}

/* ============================================
   Processing Modal
   ============================================ */

.processing-animation {
    display: flex;
    justify-content: center;
    margin: var(--spacing-md) 0;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--bg-light);
    border-top: 4px solid var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.processing-file {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
}

.processing-status {
    text-align: center;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-light);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-blue));
    width: 0%;
    transition: width 0.5s ease;
    border-radius: var(--radius-full);
}

/* ============================================
   Results Modal
   ============================================ */

.results-teaser {
    margin-bottom: 0.5rem;
}

.result-main {
    text-align: center;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
}

.result-angle-display {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.result-status {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.result-status.green {
    color: var(--primary-green);
}

.result-status.orange {
    color: var(--accent-orange);
}

.result-status.red {
    color: #e74c3c;
}

.result-message {
    font-size: 0.875rem;
    color: var(--text-dark);
    margin-bottom: 0.125rem;
}

.result-ideal {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Blurred Preview */
.blurred-preview {
    position: relative;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    overflow: hidden;
    min-height: 60px;
}

.blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.lock-icon {
    font-size: 1.5rem;
    opacity: 0.5;
}

.preview-content {
    position: relative;
    z-index: 0;
}

.preview-content p {
    margin: 0.125rem 0;
    color: var(--text-dark);
    font-size: 0.75rem;
}

/* ============================================
   Sign-up Prompt
   ============================================ */

.signup-prompt {
    background: var(--bg-white);
    border: 2px solid var(--primary-green);
    border-radius: var(--radius-md);
    padding: 0.75rem;
}

.signup-prompt h3 {
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-size: 1rem;
    position: relative;
}

/* Arrow pointing to buttons */
.signup-prompt h3::after {
    content: '→';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary-green);
    font-weight: 700;
}

.signup-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: center;
}

.signup-prompt ul {
    list-style: none;
    margin: 0;
}

.signup-prompt li {
    padding: 0.125rem 0;
    color: var(--text-dark);
    font-size: 0.8125rem;
}

.signup-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.btn-signup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid var(--border-color);
    background: var(--bg-white);
}

.btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-google {
    border-color: #4285f4;
    color: #4285f4;
}

.btn-google:hover {
    background: #4285f4;
    color: white;
}

.btn-apple {
    border-color: #000000;
    color: #000000;
}

.btn-apple:hover {
    background: #000000;
    color: white;
}

.btn-email {
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.btn-email:hover {
    background: var(--primary-green);
    color: white;
}

.btn-icon {
    font-size: 1rem;
    font-weight: 700;
}

.signup-note {
    text-align: center;
    font-size: 0.625rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    grid-column: 1 / -1;
}

/* ============================================
   Error Modal
   ============================================ */

.error-modal .modal-header {
    background: #fee;
    border-bottom: 2px solid #e74c3c;
}

.error-modal .modal-body {
    text-align: center;
}

.error-modal .modal-body p {
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

/* ============================================
   Utilities
   ============================================ */

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

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }

/* ============================================
   Animations
   ============================================ */

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

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

@media print {
    .navbar,
    .footer,
    .final-cta {
        display: none;
    }
}

/* ============================================
   BETA BANNER & PROGRAM STYLES - ADD TO END
   ============================================ */

/* Beta Banner at Top */
.beta-banner {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    padding: 0.75rem 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.beta-banner .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.beta-badge-pulse {
    background: white;
    color: #2ecc71;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.875rem;
    animation: pulse 2s infinite;
}

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

.beta-text {
    font-weight: 600;
    font-size: 0.9375rem;
}

.beta-spots {
    font-size: 0.875rem;
    opacity: 0.95;
}

.beta-spots strong {
    font-weight: 700;
    font-size: 1rem;
    text-decoration: underline;
}

/* Adjust navbar for beta banner */
.navbar {
    top: 52px;
}

/* Beta Program Section */
.beta-program {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.beta-header {
    text-align: center;
    margin-bottom: 3rem;
}

.beta-badge-large {
    display: inline-block;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

/* Scarcity Counter */
.scarcity-counter {
    max-width: 600px;
    margin: 0 auto 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    padding: 2rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.counter-circle {
    position: relative;
    width: 120px;
    height: 120px;
}

.counter-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.counter-bg {
    fill: none;
    stroke: #e1e8ed;
    stroke-width: 8;
}

.counter-progress {
    fill: none;
    stroke: #2ecc71;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 339.3;
    stroke-dashoffset: 117.8;
    transition: stroke-dashoffset 1s ease;
}

.counter-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.counter-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
}

.counter-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.counter-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.counter-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-big {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
}

.stat-small {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* Beta Benefits Grid */
.beta-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.benefit-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.benefit-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.benefit-description {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Beta CTA */
.beta-cta {
    text-align: center;
    padding: 3rem 0;
}

.btn-pulse {
    animation: pulse 2s infinite;
}

.beta-note {
    margin-top: 1rem;
    font-size: 0.9375rem;
    color: var(--text-light);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .beta-banner .container {
        gap: 0.75rem;
        padding: 0.5rem 1rem;
    }
    
    .beta-text {
        font-size: 0.8125rem;
    }
    
    .beta-spots {
        font-size: 0.75rem;
        width: 100%;
    }
    
    .scarcity-counter {
        flex-direction: column;
        gap: 2rem;
        padding: 1.5rem;
    }
    
    .counter-details {
        flex-direction: row;
        gap: 2rem;
        width: 100%;
        justify-content: space-around;
    }
    
    .beta-benefits {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .beta-banner {
        padding: 0.5rem 0;
    }
    
    .beta-badge-pulse {
        font-size: 0.75rem;
        padding: 0.25rem 0.625rem;
    }
    
    .beta-text {
        display: none;
    }
    
    .counter-circle {
        width: 100px;
        height: 100px;
    }
    
    .counter-number {
        font-size: 1.75rem;
    }
    
    .stat-big {
        font-size: 1.5rem;
    }
}

/* ============================================
   PROCESSING MODAL - ADD TO END OF STYLES.CSS
   ============================================ */

   .processing-modal {
    max-width: 500px;
    text-align: center;
    padding: 3rem;
}

.processing-modal h2 {
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.processing-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* Spinner Animation */
.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Processing Text */
#processingText {
    font-size: 1.125rem;
    color: var(--text-dark);
    font-weight: 600;
    min-height: 1.5rem;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-dark));
    border-radius: 10px;
    transition: width 0.5s ease;
}

.progress-percent {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 600;
}

/* ============================================
   RESULTS MODAL STYLES - APPEND TO STYLES.CSS
   ============================================ */

/* Results Modal */
.results-modal {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
}

.results-modal h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

/* Priority Fix Section */
.priority-fix-section {
    margin-bottom: 2rem;
}

.priority-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.priority-fix-card {
    background: #f8f9fa;
    border-left: 4px solid #2ecc71;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.fix-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.fix-icon {
    font-size: 2rem;
}

.fix-title h3 {
    margin: 0;
    color: var(--text-dark);
    font-size: 1.25rem;
}

.fix-deviation {
    color: var(--text-light);
    font-size: 0.9375rem;
    margin: 0.25rem 0 0 0;
}

.fix-deviation.warning {
    color: #e67e22;
    font-weight: 600;
}

.fix-deviation.error {
    color: #e74c3c;
    font-weight: 600;
}

.fix-metrics {
    display: flex;
    gap: 2rem;
    margin: 1rem 0;
}

.metric {
    display: flex;
    flex-direction: column;
}

.metric-label {
    font-size: 0.875rem;
    color: var(--text-light);
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.metric-value.current {
    color: #e67e22;
}

.metric-value.ideal {
    color: #2ecc71;
}

.fix-impact {
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.5;
}

/* Drill Section */
.drill-section {
    margin: 2rem 0;
}

.drill-section h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.drill-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
}

.drill-header h5 {
    color: var(--text-dark);
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.drill-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.drill-meta span {
    font-size: 0.875rem;
    color: var(--text-light);
}

.drill-instructions {
    margin: 1rem 0;
}

.drill-instructions p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.drill-tips {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
}

.drill-tips ul {
    margin: 0.5rem 0 0 1.5rem;
}

.drill-tips li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.drill-card .btn-primary {
    width: 100%;
    margin-top: 1rem;
}

/* Other Metrics Section */
.other-metrics-section {
    margin: 2rem 0;
}

.other-metrics-section h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.metric-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.metric-card.good {
    border-color: #2ecc71;
}

.metric-card.warning {
    border-color: #e67e22;
}

.metric-card .metric-icon {
    font-size: 1.5rem;
}

.metric-card .metric-info h5 {
    margin: 0 0 0.25rem 0;
    font-size: 0.875rem;
    color: var(--text-dark);
}

.metric-card .metric-result {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0.25rem 0;
}

.metric-card .metric-message {
    font-size: 0.8125rem;
    color: var(--text-light);
    margin: 0;
}

/* Next Steps */
.next-steps-section {
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.next-steps-text {
    margin: 0;
    color: var(--text-dark);
    font-size: 0.9375rem;
}

/* Results Actions */
.results-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.results-actions button {
    flex: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .results-modal {
        padding: 1.5rem;
    }
    
    .fix-metrics {
        flex-direction: column;
        gap: 1rem;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .results-actions {
        flex-direction: column;
    }
    
    .drill-meta {
        font-size: 0.8125rem;
    }
}

/* ============================================
   SIGNUP UNLOCK MODAL - APPEND TO STYLES.CSS
   ============================================ */

   .signup-unlock-modal {
    max-width: 600px;
    padding: 2.5rem;
    text-align: center;
}

.signup-unlock-modal h2 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.signup-subtitle {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* Results Preview */
.results-preview {
    margin: 2rem 0;
}

.preview-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.preview-card h3 {
    color: var(--text-dark);
    font-size: 1rem;
    margin-bottom: 1rem;
    text-align: left;
}

.preview-metric {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1rem;
    border-radius: 8px;
}

.preview-metric .metric-icon {
    font-size: 2rem;
}

.preview-metric .metric-details {
    flex: 1;
    text-align: left;
}

.preview-metric h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-dark);
    font-size: 1.125rem;
}

.preview-metric .metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0.5rem 0;
}

.preview-metric .metric-value.blurred {
    filter: blur(8px);
    user-select: none;
}

.blur-badge {
    display: inline-block;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Benefits Preview */
.benefits-preview {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: left;
}

.benefits-preview h3 {
    color: var(--text-dark);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.benefits-preview ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-preview li {
    padding: 0.5rem 0;
    color: var(--text-dark);
    font-size: 0.9375rem;
}

/* Signup Actions */
.signup-actions {
    margin-top: 2rem;
}

.btn-google,
.btn-email {
    width: 100%;
    padding: 0.875rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: var(--transition);
    margin-bottom: 0.75rem;
}

.btn-google {
    background: white;
    border: 2px solid var(--border-color);
    color: var(--text-dark);
}

.btn-google:hover {
    background: #f8f9fa;
    border-color: var(--text-light);
}

.btn-email {
    background: var(--primary-green);
    color: white;
}

.btn-email:hover {
    background: var(--primary-dark);
}

.google-icon,
.email-icon {
    font-size: 1.25rem;
    font-weight: 700;
}

.signup-note {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .signup-unlock-modal {
        padding: 1.5rem;
    }
    
    .preview-metric {
        flex-direction: column;
        text-align: center;
    }
    
    .preview-metric .metric-details {
        text-align: center;
    }
}