@font-face {
    font-family: 'AnsibylMedium';
    src: url('ab-medium.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --bg-color: #0E1112;
    --text-primary: #fafafa;
    --text-secondary: rgba(250, 250, 250, 0.5);
    --text-hover: rgba(250, 250, 250, 0.8);
    --card-bg: rgba(250, 250, 250, 0.02);
    --card-hover-bg: rgba(250, 250, 250, 0.05);
    --max-width: 520px;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'AnsibylMedium', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;

    ::selection {
        background: rgba(231, 231, 248, 0.3);
        color: inherit;
    }
}

.hero-container {
    position: relative;
    width: 100%;
    height: 480px;
    display: flex;
    justify-content: center;
    overflow: hidden; /* Prevent scaled image from overflowing and missing the mask */
    flex-shrink: 0;
}

.hero-visuals {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://res.cloudinary.com/dykifi158/image/upload/v1767558011/monet-min_cgvulg.png');
    background-size: cover;
    background-position: center;
}

.hero-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(14, 17, 18, 0.15) 0%, #0E1112 100%);
    z-index: 1; /* Above hero-bg */
}

.content-wrapper {
    width: 100%;
    max-width: var(--max-width);
    padding: 0 24px;
    margin: 0 auto;
}

main.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

header {
    padding-top: 64px;
}

.logo {
    height: 24px;
    width: auto;
    display: block;
}

.heading {
    font-size: 40px;
    line-height: 1.2;
    font-weight: normal;
    margin-top: -12px; /* Overlap the image section */
    position: relative; /* Ensure it stays on top */
    z-index: 2;
    margin-bottom: 64px;
    color: var(--text-primary);
}

.cards-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 64px;
}

.card {
    display: flex;
    align-items: center; /* Center items vertically */
    gap: 16px;
    background-color: var(--card-bg);
    border-radius: 24px;
    padding: 12px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    background-color: var(--card-hover-bg);
}

.card-logo-container {
    width: 56px;
    height: 56px;
    background-color: rgba(250, 250, 250, 0.02); /* card logo bg fafafa at 2% */
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-logo-container img {
    width: 24px;
    height: 24px;
}

.card-text h2 {
    font-size: 16px;
    font-weight: normal;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.card-text p {
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-secondary);
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 24px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: auto; /* Push to the bottom of the main container */
    padding-top: 64px; /* Maintain minimum gap from cards */
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-container {
        height: 320px;
    }
    
    header {
        padding-top: 32px;
    }
    
    .heading {
        font-size: 32px;
        margin-top: -60px; /* Adjusted overlap for mobile */
        margin-bottom: 40px;
    }
    
    .cards-section {
        margin-bottom: 40px;
    }

    footer {
        padding-top: 40px;
    }
    
    .logo {
        height: 24px;
    }
}

@media (max-width: 480px) {
    .hero-container {
        height: 240px;
    }
    
    .heading {
        font-size: 32px;
    }
    
    .content-wrapper {
        padding: 0 20px;
    }
}

