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

:root {
    --cream: #f5f3ef;
    --dark: #1a1614;
    --gold: #c9a961;
    --silver: #9da3a8;
    --accent-glass: #4a7c8e;
    --accent-makeup: #a85167;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--cream);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    position: relative;
    overflow-x: hidden;
}

.grain-overlay {
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(201, 169, 97, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(157, 163, 168, 0.03) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

.container {
    width: 100%;
    max-width: 1600px;
    padding: 3rem;
    position: relative;
    z-index: 2;
}

.main-header {
    text-align: center;
    margin-bottom: 6rem;
    animation: fadeInDown 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-wrapper {
    display: inline-block;
    position: relative;
    margin-bottom: 1.5rem;
}

.brand-title {
    font-family: 'Playfair Display', serif;
    font-size: 5.5rem;
    font-weight: 400;
    letter-spacing: 0.8rem;
    color: var(--dark);
    position: relative;
    padding: 0 1rem;
}

.logo-underline {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin-top: 1rem;
    animation: lineExpand 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.brand-subtitle {
    font-size: 0.95rem;
    letter-spacing: 0.5rem;
    color: var(--silver);
    font-weight: 300;
    text-transform: uppercase;
}

.portals {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    padding: 2rem 0;
    max-width: 1400px;
    margin: 0 auto;
}

.portal {
    position: relative;
    height: 680px;
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    background: #fff;
}

.portal:nth-child(1) {
    animation-delay: 0.1s;
}

.portal:nth-child(2) {
    animation-delay: 0.2s;
}

.portal:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12);
}

.portal-background {
    position: absolute;
    inset: 0;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-portal .portal-background {
    background: linear-gradient(135deg, #e8f1f5 0%, #d4e4eb 50%, #bdd4de 100%);
}

.makeup-portal .portal-background {
    background: linear-gradient(135deg, #f9eef2 0%, #f3dfe6 50%, #e8cdd7 100%);
}

.portal:hover .portal-background {
    transform: scale(1.05);
}

.portal-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.portal:hover .portal-shine {
    opacity: 1;
}

.portal-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(26, 22, 20, 0.4) 100%);
    transition: background 0.6s ease;
}

.portal:hover .portal-overlay {
    background: linear-gradient(180deg, transparent 0%, rgba(26, 22, 20, 0.2) 100%);
}

.portal-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 3rem;
    text-align: center;
    z-index: 2;
}

.portal-icon-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-bg {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portal:hover .icon-bg {
    transform: scale(1.15);
    background: rgba(255, 255, 255, 0.95);
}

.portal-icon {
    width: 70px;
    height: 70px;
    position: relative;
    z-index: 1;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-portal .portal-icon {
    stroke: var(--accent-glass);
}

.makeup-portal .portal-icon {
    stroke: var(--accent-makeup);
}

.portal:hover .portal-icon {
    transform: scale(1.1) rotate(5deg);
}

.portal-text {
    max-width: 450px;
}

.portal-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 500;
    letter-spacing: 0.05rem;
    margin-bottom: 0.8rem;
    color: var(--dark);
    line-height: 1.2;
}

.portal-subtitle {
    font-size: 0.85rem;
    letter-spacing: 0.2rem;
    color: var(--silver);
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.glass-portal .portal-subtitle {
    color: var(--accent-glass);
}

.makeup-portal .portal-subtitle {
    color: var(--accent-makeup);
}

.portal-description {
    font-size: 1.05rem;
    color: rgba(26, 22, 20, 0.7);
    letter-spacing: 0.02rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    line-height: 1.6;
}

.portal-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    letter-spacing: 0.1rem;
    padding: 1rem 2rem;
    border: 1px solid rgba(26, 22, 20, 0.2);
    border-radius: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-weight: 400;
    color: var(--dark);
    background: transparent;
}

.portal-cta svg {
    width: 20px;
    height: 20px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.portal:hover .portal-cta {
    border-color: var(--dark);
    padding-right: 2.5rem;
}

.portal:hover .portal-cta svg {
    transform: translateX(8px);
}

.landing-footer {
    text-align: center;
    margin-top: 6rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(26, 22, 20, 0.1);
    animation: fadeInUp 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.landing-footer p {
    font-size: 0.85rem;
    color: var(--silver);
    letter-spacing: 0.05rem;
    font-weight: 300;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes lineExpand {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 100%;
        opacity: 1;
    }
}

@media (max-width: 1200px) {
    .portals {
        grid-template-columns: 1fr;
        max-width: 700px;
        gap: 3rem;
    }

    .portal {
        height: 600px;
    }

    .brand-title {
        font-size: 4rem;
    }

    .portal-title {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 2rem 1.5rem;
    }

    .main-header {
        margin-bottom: 4rem;
    }

    .brand-title {
        font-size: 3rem;
        letter-spacing: 0.4rem;
    }

    .brand-subtitle {
        font-size: 0.8rem;
        letter-spacing: 0.3rem;
    }

    .portals {
        gap: 2rem;
    }

    .portal {
        height: 550px;
    }

    .portal-content {
        padding: 3rem 2rem;
    }

    .portal-icon-wrapper {
        width: 110px;
        height: 110px;
        margin-bottom: 2.5rem;
    }

    .portal-icon {
        width: 55px;
        height: 55px;
    }

    .portal-title {
        font-size: 2rem;
    }

    .portal-subtitle {
        font-size: 0.75rem;
    }

    .portal-description {
        font-size: 0.95rem;
    }

    .landing-footer {
        margin-top: 4rem;
    }
}

@media (max-width: 480px) {
    .brand-title {
        font-size: 2.2rem;
        letter-spacing: 0.3rem;
    }

    .portal {
        height: 500px;
    }

    .portal-title {
        font-size: 1.8rem;
    }
}
