/* CSS Custom Properties */
:root {
    --color-red: rgb(216, 3, 28);
    --color-red-dark: rgb(180, 2, 23);
    --color-blue: rgb(1, 1, 111);
    --color-blue-light: rgb(20, 20, 140);
    --color-white: rgb(254, 255, 254);
    --color-black: rgb(17, 17, 17);
    --color-gray: rgb(156, 163, 175);

    --font-primary: 'Lato', sans-serif;

    --header-height: 64px;
}

/* Placeholder styling to prevent layout shift */
#header-placeholder {
    height: var(--header-height);
    background: var(--color-red);
}

#footer-placeholder {
    min-height: 200px;
    background: var(--color-black);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--color-white);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.85;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header / Toolbar */
.header {
    background: var(--color-red);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.logo span {
    font-weight: 500;
    opacity: 0.9;
}

.header-nav a {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.header-nav a:hover {
    background: rgba(255, 255, 255, 0.15);
    opacity: 1;
}

/* Main / Hero Section */
.main {
    flex: 1;
    background: var(--color-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    min-height: 0;
}

.hero-container {
    width: 100%;
    text-align: center;
    line-height: 0;
}

.hero-image-link {
    display: block;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    line-height: 0;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: bottom;
}

.hero-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    line-height: 0;
}

.hero-btn {
    position: absolute;
    /* DEBUG */
    /* background: rgba(255, 0, 0, 0.3); */
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.hero-btn:hover {
    opacity: 1;
    /* DEBUG*/
    /* background: rgba(255, 255, 255, 0.1); */
}

.hero-btn-ios {
    /* Example: button is 20% from left, 70% from top, 15% wide, 10% tall */
    left: 64.5%;
    top: 58%;
    width: 9.25%;
    height: 7.75%;
}

.hero-btn-android {
    /* Example: button is 55% from left, 70% from top, 15% wide, 10% tall */
    left: 74.5%;
    top: 58%;
    width: 9.25%;
    height: 7.75%;
}

.hero-image-link:hover {
    opacity: 1;
}

/* Placeholder hero - replace with actual image */
.hero-placeholder {
    background: linear-gradient(135deg, var(--color-blue-light) 0%, var(--color-red) 100%);
    width: 100%;
    aspect-ratio: 16 / 7;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 48px;
}

.hero-placeholder h1 {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.1;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-placeholder p {
    font-size: clamp(1rem, 2vw, 1.5rem);
    opacity: 0.9;
    max-width: 600px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--color-white);
    color: var(--color-blue);
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 16px 32px;
    border-radius: 8px;
    margin-top: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Footer */
.footer {
    background: var(--color-black);
    color: var(--color-white);
    padding: 48px 24px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 48px;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

/* Left column - copyright */
.footer-column:first-child {
    justify-content: center;
}

.footer-copyright {
    font-size: 0.875rem;
    line-height: 1.8;
}

.footer-copyright strong {
    font-size: 1rem;
}

/* Middle column - links */
.footer-column:nth-child(2) {
    align-items: center;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9375rem;
    color: var(--color-gray);
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--color-white);
    opacity: 1;
}

.footer-link i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.footer-link.app-link {
    color: var(--color-white);
    font-weight: 500;
}

/* Right column - social */
.footer-column:last-child {
    align-items: flex-end;
    justify-content: center;
}

.footer-social-title {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--color-gray);
    text-align: center;
    width: 100%;
}

.footer-social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    font-size: 1.25rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.social-link:hover {
    background: var(--color-red);
    transform: translateY(-3px);
    opacity: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-container {
        padding: 0 16px;
    }

    .logo {
        font-size: 1.1rem;
    }

    .logo span {
        display: none;
    }

    .header-nav a {
        font-size: 0.875rem;
        padding: 8px 12px;
    }

    .hero-placeholder {
        aspect-ratio: 4 / 3;
        padding: 32px 24px;
    }

    .footer {
        padding: 40px 20px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 36px;
        text-align: center;
    }

    .footer-column {
        align-items: center !important;
    }

    .footer-social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    :root {
        --header-height: 56px;
    }

    .logo {
        font-size: 1rem;
    }

    .hero-placeholder h1 {
        font-size: 2rem;
    }

    .hero-cta {
        font-size: 1rem;
        padding: 12px 24px;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}