/* Hero Section */
.hero {
    padding: 6rem 2rem 4rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 4rem;
    /* Larger */
    font-weight: 700;
    letter-spacing: -0.05em;
    /* Tighter tracking characteristic of Apple headers */
    line-height: 1.05;
    margin-bottom: 1.5rem;
    background: var(--hero-title-gradient);
    /* Apple Pro gradient mask */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: background 0.5s var(--apple-ease);
    will-change: transform;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-tertiary);
    /* Zinc 400 */
    max-width: 600px;
    margin: 0 auto;
    transition: color 0.5s var(--apple-ease);
}

/* Navigation Bar */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: var(--nav-bg);
    border-bottom: 1px solid var(--nav-border);
    z-index: 50;
    padding: 1rem 0;
    transition: background-color 0.5s var(--apple-ease), border-color 0.5s var(--apple-ease);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.025em;
    cursor: pointer;
}

.logo-accent {
    color: var(--accent-blue);
    transition: color 0.5s var(--apple-ease);
}

.nav-link {
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

/* Main Container & Grid */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 6rem;
    width: 100%;
    flex: 1;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* Professional Corporate Footer */
.corporate-footer {
    border-top: 1px solid var(--nav-border);
    padding: 4rem 0 2rem;
    margin-top: auto;
    background: var(--nav-bg);
    color: var(--text-secondary);
    font-size: 0.9rem;
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.footer-brand {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.footer-logo img {
    height: 32px;
    width: auto;
}

.footer-brand p {
    color: var(--text-tertiary);
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
}

.link-column h4 {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    letter-spacing: 0.5px;
}

.link-column a {
    display: block;
    color: var(--text-tertiary);
    text-decoration: none;
    margin-bottom: 0.75rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.link-column a:hover {
    color: var(--accent-blue);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    border-top: 1px solid var(--nav-border);
    padding-top: 2rem;
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

/* View Section Control */
.view-section {
    width: 100%;
    animation: fadeInUp 0.4s ease forwards;
}

/* Featured Section */
.featured-section {
    width: 100%;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--nav-border);
    overflow: hidden;
    /* Prevent horizontal scrollbar on body */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s var(--apple-ease), transform 0.8s var(--apple-ease);
}

.featured-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.featured-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    margin-bottom: 1.5rem;
}

.featured-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.featured-header p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.featured-carousel {
    width: 100%;
    overflow: hidden;
    padding: 1.5rem 0;
    /* extra padding for hover shadows */
    /* Apply a fade effect to the left and right edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.featured-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    /* Will animate in JS or CSS */
    animation: scrollFeatured 40s linear infinite;
}


/* We want the track to scroll exactly half of its width (which is the original 6 items, since the other 6 are clones) */
@keyframes scrollFeatured {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Cards inside the featured track need to have a fixed width to not shrink */
.featured-track .card {
    width: 320px;
    height: 100%;
    /* Make sure they stretch evenly */
    opacity: 1;
    /* override intersection observer defaults */
    transform: none;
    flex-shrink: 0;
    cursor: default;
    transition: transform 0.4s var(--apple-ease), box-shadow 0.4s var(--apple-ease), border-color 0.4s var(--apple-ease);
}

.featured-track .card:hover {
    transform: translateY(-8px) scale(1.02);
}