/* Root Variables - Matching CardioInsight Design System */
:root {
    /* Dark theme base colors */
    --background: rgb(15, 20, 23);
    --secondary-background: rgb(20, 26, 31);
    --card-background: rgb(26, 31, 36);
    
    /* Green accent colors (muted) */
    --primary-green: rgb(102, 179, 102);
    --secondary-green: rgb(77, 153, 77);
    --accent-green: rgb(128, 204, 128);
    
    /* Text colors */
    --primary-text: rgb(255, 255, 255);
    --secondary-text: rgb(179, 179, 179);
    --tertiary-text: rgb(128, 128, 128);
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 48px;
    
    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

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

body {
    font-family: ui-rounded, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: var(--background);
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(102, 179, 102, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(77, 153, 77, 0.1) 0%, transparent 50%);
    color: var(--primary-text);
    line-height: 1.6;
    min-height: 100vh;
    font-feature-settings: "tnum", "case";
}

/* Typography - matching app's rounded design */
h1, h2, h3, h4, h5, h6 {
    font-family: ui-rounded, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-feature-settings: "tnum", "case";
}

.logo-text {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.hero-text h2 {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.features-content h2,
.download-content h2 {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.feature-card h3 {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.download-info h3 {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

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

/* Hero Section */
.hero {
    text-align: center;
    padding: var(--spacing-xxl) 0;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.logo-image {
    width: 200px;
    height: 200px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(102, 179, 102, 0.3));
}

.logo-text {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.hero-text h2 {
    font-family: ui-rounded, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--primary-green);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum", "case";
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--secondary-text);
    max-width: 600px;
    margin: 0 auto;
}

/* Screenshots Section */
.screenshots {
    padding: var(--spacing-xxl) 0;
}

.screenshot-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.screenshot-row {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
}

.screenshot-item {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
}

.screenshot-image {
    width: 100%;
    height: auto;
    aspect-ratio: 9/19.5;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(102, 179, 102, 0.3);
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(102, 179, 102, 0.1) inset;
    object-fit: cover;
}

.screenshot-image:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 16px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(102, 179, 102, 0.2) inset,
        0 0 20px rgba(102, 179, 102, 0.1);
}

/* Features Section */
.features {
    padding: var(--spacing-xxl) 0;
}

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

.features-content h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xxl);
    color: var(--primary-green);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xxl);
}

.feature-card {
    background: linear-gradient(135deg, rgba(26, 31, 36, 0.8), rgba(20, 26, 31, 0.8));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(102, 179, 102, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: var(--spacing-xl);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(102, 179, 102, 0.1) inset;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(102, 179, 102, 0.5);
    box-shadow: 
        0 16px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(102, 179, 102, 0.2) inset,
        0 0 20px rgba(102, 179, 102, 0.1);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 179, 102, 0.5), transparent);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    filter: drop-shadow(0 0 10px rgba(102, 179, 102, 0.3));
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--primary-text);
}

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

/* Download Section */
.download {
    padding: var(--spacing-xxl) 0;
}

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

.download-content h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--primary-green);
}

.download-content > p {
    font-size: 1.2rem;
    color: var(--secondary-text);
    margin-bottom: var(--spacing-xxl);
}

.qr-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-xxl);
    flex-wrap: wrap;
}

.qr-placeholder {
    flex-shrink: 0;
}

.qr-image {
    width: 200px;
    height: 200px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(102, 179, 102, 0.3);
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(102, 179, 102, 0.1) inset;
    object-fit: contain;
    background: white;
}

.download-info {
    text-align: left;
    max-width: 400px;
}

.download-info h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-text);
}

.download-info > p {
    color: var(--secondary-text);
    margin-bottom: var(--spacing-lg);
}

.app-details {
    background: linear-gradient(135deg, rgba(26, 31, 36, 0.6), rgba(20, 26, 31, 0.6));
    border-radius: var(--radius-md);
    border: 1px solid rgba(102, 179, 102, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: var(--spacing-md);
    position: relative;
    overflow: hidden;
}

.app-details::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 179, 102, 0.3), transparent);
}

.app-details p {
    color: var(--secondary-text);
    margin-bottom: var(--spacing-sm);
}

.app-details p:last-child {
    margin-bottom: 0;
}

.app-details strong {
    color: var(--primary-green);
}

/* Footer */
footer {
    text-align: center;
    padding: var(--spacing-xxl) 0;
    color: var(--tertiary-text);
    font-size: 0.9rem;
}

footer a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 500;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: var(--spacing-md);
    }
    
    .logo-text {
        font-size: 2rem;
    }
    
    .hero-text h2 {
        font-size: 2rem;
    }
    
    .hero-text p {
        font-size: 1.1rem;
    }
    
    .features-content h2,
    .download-content h2 {
        font-size: 2rem;
    }
    
    .screenshot-row {
        flex-direction: column;
        align-items: center;
    }
    
    .screenshot-item {
        max-width: 250px;
    }
    
    .qr-section {
        flex-direction: column;
        gap: var(--spacing-lg);
    }
    
    .download-info {
        text-align: center;
        max-width: none;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

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

.hero,
.features,
.download {
    animation: fadeInUp 0.8s ease-out;
}

/* Glassmorphism Enhancement */
.screenshot-image,
.feature-card,
.qr-image,
.app-details {
    position: relative;
}

.screenshot-image::after,
.feature-card::after,
.qr-image::after,
.app-details::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    pointer-events: none;
    border-radius: inherit;
} 