@import url('https://unpkg.com/normalize.css') layer(normalize);

@layer normalize, base;

@layer base {
    *,
    *::before,
    *::after {
        box-sizing: border-box;
    }

    body {
        margin: 0;
        min-height: 100vh;
        display: grid;
        place-items: center;
        background: #e8e8e8;
        font-family: 'SF Pro Text', 'SF Pro Icons', 'Helvetica Neue',
            Helvetica, Arial, sans-serif, system-ui;
        overflow: hidden;
    }

    /* Grid background */
    body::before {
        --size: 45px;
        --line: rgba(0, 0, 0, 0.15);
        content: '';
        height: 100vh;
        width: 100vw;
        position: fixed;
        background:
            linear-gradient(90deg, var(--line) 1px, transparent 1px var(--size))
                calc(var(--size) * 0.36) 50% / var(--size) var(--size),
            linear-gradient(var(--line) 1px, transparent 1px var(--size))
                0% calc(var(--size) * 0.32) / var(--size) var(--size);
        mask: linear-gradient(-20deg, transparent 50%, white);
        top: 0;
        pointer-events: none;
        z-index: -1;
    }

    main {
        width: 100%;
        max-width: 1200px;
        padding: 2rem;
    }

    .hero {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4rem;
        min-height: 80vh;
    }

    .hero__content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero__title {
        font-size: clamp(3rem, 8vw, 6rem);
        font-weight: 700;
        margin: 0;
        color: #1a1a1a;
        letter-spacing: -0.02em;
    }

    .hero__subtitle {
        font-size: clamp(1rem, 2.5vw, 1.5rem);
        color: #555;
        margin: 0.5rem 0 2rem;
        font-weight: 300;
    }

    .hero__button {
        display: inline-block;
        padding: 1rem 2.5rem;
        background: #1a1a1a;
        color: #fff;
        text-decoration: none;
        border-radius: 8px;
        font-size: 1.1rem;
        font-weight: 500;
        transition: background 0.2s ease, transform 0.2s ease;
    }

    .hero__button:hover {
        background: #333;
        transform: translateY(-2px);
    }

    .hero__button:active {
        transform: translateY(0);
    }

    .hero__logo {
        flex-shrink: 0;
        perspective: 1000px;
    }

    .hero__logo img {
        max-width: 450px;
        width: 100%;
        height: auto;
        transition: transform 0.1s ease-out;
        will-change: transform;
    }

    /* Responsive - Tablet */
    @media (max-width: 768px) {
        main {
            padding: 1.5rem;
        }

        .hero {
            flex-direction: column-reverse;
            gap: 2rem;
            min-height: auto;
            padding: 2rem 0;
        }

        .hero__logo img {
            max-width: 280px;
        }

        .hero__button {
            padding: 0.875rem 2rem;
            font-size: 1rem;
        }
    }

    /* Responsive - Mobile */
    @media (max-width: 480px) {
        body {
            overflow-x: hidden;
            overflow-y: auto;
        }

        body::before {
            --size: 30px;
        }

        main {
            padding: 1rem;
        }

        .hero {
            gap: 1.5rem;
            padding: 1rem 0;
        }

        .hero__title {
            font-size: clamp(2.5rem, 12vw, 3.5rem);
        }

        .hero__subtitle {
            font-size: 1rem;
            margin: 0.5rem 0 1.5rem;
            padding: 0 1rem;
        }

        .hero__logo img {
            max-width: 200px;
        }

        .hero__button {
            padding: 0.875rem 1.75rem;
            font-size: 0.95rem;
            width: 100%;
            max-width: 280px;
            text-align: center;
        }
    }

    /* Small mobile devices */
    @media (max-width: 360px) {
        .hero__title {
            font-size: 2.25rem;
        }

        .hero__logo img {
            max-width: 160px;
        }

        .hero__subtitle {
            font-size: 0.9rem;
        }
    }
}
