:root {
    --bg-color: #F5F5F7;
    --text-main: #1D1D1F;
    --text-secondary: #86868B;
    --accent-color: #FC4C02;
    /* Strava Orange */
    --accent-hover: #E34402;
    --card-bg: #FFFFFF;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    padding: 20px 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 10;
}

.logo {
    font-weight: 800;
    font-size: 1.2rem;
    text-decoration: none;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    /* Space for navbar */
    padding-bottom: 40px;
    overflow: hidden;
    /* For card animations */
}

.hero-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
    background: linear-gradient(180deg, #1D1D1F 0%, #424245 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 40px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* Button */
.btn-primary {
    background-color: var(--text-main);
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 99px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    background-color: black;
}

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

.btn-primary:hover svg {
    transform: translateX(4px);
}

.disclaimer {
    margin-top: 16px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Visual Card Stack */
.hero-visual {
    display: flex;
    justify-content: center;
    perspective: 1000px;
    position: relative;
    height: 300px;
    /* Fixed height for stack */
    width: 100%;
    margin-bottom: 20px;
}

.card-stack {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 100%;
}

.card {
    background: var(--card-bg);
    width: 100%;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: absolute;
    top: 0;
    left: 0;
    transition: all 0.5s ease;
    transform-origin: center bottom;
}

/* Stacking Effect */
.card:nth-child(1) {
    z-index: 3;
    transform: scale(1) translateY(0);
}

.card:nth-child(2) {
    z-index: 2;
    transform: scale(0.95) translateY(15px);
    opacity: 0.8;
}

.card:nth-child(3) {
    z-index: 1;
    transform: scale(0.9) translateY(30px);
    opacity: 0.6;
}

/* Hover Effect on Stack */
.hero-visual:hover .card:nth-child(1) {
    transform: scale(1.02) translateY(-5px);
}

.hero-visual:hover .card:nth-child(2) {
    transform: scale(0.97) translateY(10px);
    opacity: 0.9;
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 12px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #eee;
    background-size: cover;
    background-position: center;
}

.line {
    height: 8px;
    background-color: #eee;
    border-radius: 4px;
}

.short {
    width: 100px;
    margin-bottom: 6px;
}

.shorter {
    width: 60px;
}

.card-body h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.joke-punchline {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    opacity: 0;
    /* Hidden initially */
    animation: fadeIn 0.5s ease forwards;
    animation-delay: 0.2s;
    /* 200ms delay */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Feature Badges */
.stats {
    display: flex;
    gap: 12px;
}

.stat-badge {
    flex: 1;
    background-color: #F5F5F7;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
}

.stat-badge svg {
    width: 20px;
    height: 20px;
    stroke: var(--accent-color);
}

/* Metrics Section */
.metrics-container {
    text-align: center;
    margin-top: 40px;
    display: flex;
    gap: 40px;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.metric-item strong {
    display: block;
    font-size: 1.5rem;
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 4px;
}

/* Footer */
.footer {
    padding: 40px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: auto;
    width: 100%;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
}

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

.footer-links a:hover {
    color: var(--text-main);
}

.copyright {
    text-align: center;
    color: #B0B0B5;
    font-size: 0.75rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-section {
        padding-top: 100px;
        padding-bottom: 60px;
        display: block;
    }

    .card-stack {
        margin-top: 40px;
    }

    .metrics-container {
        flex-direction: column;
        gap: 20px;
    }
}