@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Nunito:wght@700;800;900&display=swap');

:root {
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --bg-color: #F3F4F6;
    --text-main: #111827;
    --text-muted: #4B5563;
    --card-bg: #FFFFFF;
    --border-color: #E5E7EB;
    --radius: 16px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headings with rounded font */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Nunito', system-ui, -apple-system, sans-serif;
}

/* Header with gradient */
header {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    color: white;
    padding: 5rem 1.5rem 7rem 1.5rem; /* Extra bottom padding to allow main content to overlap */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.app-logo {
    width: 96px;
    height: 96px;
    margin-bottom: 1rem;
    border-radius: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
    background-color: white; /* Added white background */
    padding: 4px; /* Added slight padding so the image doesn't touch the edges */
    box-sizing: border-box; /* Ensure padding doesn't increase total size */
}

header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin: 0 0 1rem 0;
    letter-spacing: -0.025em;
}

header p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 auto;
    max-width: 600px;
}

header a {
    color: white;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.4);
    text-underline-offset: 4px;
    transition: text-decoration-color 0.2s ease;
}

header a:hover {
    text-decoration-color: white;
}

/* Main Container overlapping the header */
main {
    flex: 1;
    padding: 0 1.5rem 3rem 1.5rem;
    max-width: 800px;
    margin: -4rem auto 0 auto; /* Pull up over the header */
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
}

/* Card Styles */
.hero, .content-box {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.hero {
    text-align: center;
    padding: 4rem 2rem;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--text-main);
    letter-spacing: -0.025em;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

p {
    color: var(--text-muted);
    margin-top: 0;
    margin-bottom: 1.25rem;
}

strong {
    color: var(--text-main);
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 9999px; /* Pill shape */
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
    border: none;
    cursor: pointer;
    margin-top: 1rem;
}

.btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

/* Play Badge */
.play-badge-link {
    display: inline-block;
    margin-top: 1rem;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.play-badge-link:hover {
    transform: translateY(-2px);
}

.play-badge {
    height: 64px; /* Standard badge height */
    width: auto;
}

/* Navigation Menu */
nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
}

nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    background-color: transparent;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

nav a:hover {
    color: var(--primary);
    background-color: var(--card-bg);
    border-color: var(--border-color);
    box-shadow: var(--shadow-sm);
}

/* Content Box Specifics */
.content-box h2 {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.content-box a:not(.btn) {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.content-box a:not(.btn):hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.content-box ul {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.content-box li {
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: auto;
}

/* Footer Navigation */
.footer-nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin: 0 0 1rem 0;
}

.footer-nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    header {
        padding: 4rem 1rem 6rem 1rem;
    }

    header h1 {
        font-size: 2.25rem;
    }

    .hero, .content-box {
        padding: 2rem 1.5rem;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    nav a {
        width: 100%;
        text-align: center;
    }
}